上一页 1 2 3 4 5 6 ··· 9 下一页
摘要: antdesign2.0版,form 和 formmodel合并成form了,保留了formmodel的功能。 <a-form class="ant-advanced-search-form" :model="ruleForm" :rules="rules" /> a-input v-model绑定 阅读全文
posted @ 2021-03-13 00:30 liuyong111 阅读(4606) 评论(0) 推荐(0)
摘要: 创建项目后 安装antdesign npm i --save ant-design-vue@next main.js中添加引用 import { createApp } from 'vue' import Antd from 'ant-design-vue'; import 'ant-design- 阅读全文
posted @ 2021-03-13 00:17 liuyong111 阅读(5982) 评论(0) 推荐(0)
摘要: 安装vue-router npm install vue-router@4.0.0-beta.13 创建src/router/index.js import { createRouter, createWebHashHistory } from 'vue-router' const router = 阅读全文
posted @ 2021-03-07 23:49 liuyong111 阅读(2796) 评论(0) 推荐(1)
摘要: 安装axios npm install axios vue-axios main.js里 import axios from 'axios' import VueAxios from 'vue-axios' const app = createApp(App) // 创建实例 app.config. 阅读全文
posted @ 2021-03-04 15:21 liuyong111 阅读(756) 评论(0) 推荐(0)
摘要: public class KdMqttClient { private static KdMqttClient MQInstance; private MqttClient MQClient; private string clientId; public delegate void Receive 阅读全文
posted @ 2021-02-21 21:57 liuyong111 阅读(1242) 评论(0) 推荐(0)
摘要: nuget安装Faker 用法: 新建一个model public class Model { public string Name { get; set; } public int Age { get; set; } } 使用Faker给Model赋值 private void Button_Cl 阅读全文
posted @ 2020-12-30 16:15 liuyong111 阅读(857) 评论(0) 推荐(0)
摘要: 效果图: 添加扩展类 public static class DataGridExtend { /// <summary> /// 获取DataGrid控件单元格 /// </summary> /// <param name="dataGrid">DataGrid控件</param> /// <pa 阅读全文
posted @ 2020-11-18 13:58 liuyong111 阅读(2337) 评论(0) 推荐(0)
摘要: vs2019更新到16.8.0 安装.net 5 sdk 下载地址 https://dotnet.microsoft.com/download/dotnet/5.0 安装完成后,打开PowerShell,进入希望生成的wpf项目文件夹。 例: 然后再输入dotnet new wpf -o Net5W 阅读全文
posted @ 2020-11-12 16:38 liuyong111 阅读(2667) 评论(1) 推荐(0)
摘要: ListView有时加载个几百条数据都要好几秒钟。 1.ItemsPanelTemplate中用的StackPanel,改成VirtualizingStackPanel。 <ListView ItemsSource="{Binding WOList}" > <ListView.ItemsPanel> 阅读全文
posted @ 2020-08-24 16:58 liuyong111 阅读(1744) 评论(0) 推荐(1)
摘要: vs中新建扩展项目 添加Command文件 修改command配置 IDM_VS_CTXT_ITEMNODE是将扩展添加到类文件右键菜单中。 右键点击后,会触发comman中的Execute方法 上面这张图是扩展包适用的目标visual studio 版本[16,17)适用于vs2019. 编译好扩 阅读全文
posted @ 2020-07-08 16:08 liuyong111 阅读(571) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 ··· 9 下一页