上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 118 下一页
摘要: 报错:Unexpected reserved word 'await' async handleDelete() { let folderFilesIds = [1, 2] this.$confirm('此操作将永久删除文件, 是否继续?', '提示', { confirmButtonText: ' 阅读全文
posted @ 2022-04-23 15:04 与f 阅读(550) 评论(0) 推荐(0) 编辑
摘要: 如果要在css中使用变量,需要借助setProperty函数: <template> <div class="home" ref="UI"> <div class="header">hello world</div> </div> </template> <script> export defaul 阅读全文
posted @ 2022-04-22 16:47 与f 阅读(1269) 评论(0) 推荐(0) 编辑
摘要: Less Scss 预处理语言 通常咱们会应用less等预处理语言来设定全局的色彩治理 color.less // DARK-THEME @base-bg: #001f3b; // @base-bg: #042d6b; @light-font-color: rgb(219, 219, 219); @ 阅读全文
posted @ 2022-04-22 16:42 与f 阅读(1007) 评论(0) 推荐(0) 编辑
摘要: 前言 最近在 github 上发现一个Vue3非常好玩的特性,这个特性我以前就经常这么想:要是我在 data 里面定义的变量也能在 CSS 里面用那该多好啊!(大家有没有也这么想过) vue3的更新,css访问变量的方式改为如下: export default { name: "Home", dat 阅读全文
posted @ 2022-04-22 16:29 与f 阅读(1846) 评论(0) 推荐(0) 编辑
摘要: 在很多的业务场景中,我们可能需要达到这样的一个效果 也就是将左边的label设定成相同的宽度,并且label内部的文字需要两端对齐,这里需要使用到text-align中的justify。 语法 使用起来很简单,只要在需要文本两端对齐的标签上加上text-align:justify 左边是设定text 阅读全文
posted @ 2022-04-19 10:12 与f 阅读(869) 评论(0) 推荐(0) 编辑
摘要: 比如要修改elementUI中某个组件的默认样式, 假设默认鼠标飘到el-button上,button会变蓝, 而我们想又要让button变红,可是全局修改又会使得所有的组件中button的style变化, 那么就要/deep/,表示就修改这个组件中的样式。 参考: Vue中的深度作用选择器/dee 阅读全文
posted @ 2022-04-19 08:56 与f 阅读(448) 评论(0) 推荐(0) 编辑
摘要: 注意:DataGridView控件是从.NET Framework 2.0版本开始追加的。 DataGridView的键事件(KeyDown、KeyUp、KeyPress、PreviewKeyDown),在单元格编辑中是不会发生的。是因为单元格进行编辑时是使用了TextBox。所以,捕捉编辑中单元格 阅读全文
posted @ 2022-04-15 17:07 与f 阅读(417) 评论(0) 推荐(0) 编辑
摘要: uniapp 内置了 rpx 转 px 的方法 // 100 为 100rpx的值 var px = uni.upx2px(100); px 转 rpx // 200 为 px 的值,后面的两个 100 为计算比例使用 var rpx = 200/(uni.upx2px(100)/100); // 阅读全文
posted @ 2022-04-14 14:27 与f 阅读(1045) 评论(0) 推荐(0) 编辑
摘要: 微信小程序: let query = wx.createSelectorQuery(); query.select('.find').boundingClientRect(res => { console.log(res.height); // 1545.7249755859375 }).exec( 阅读全文
posted @ 2022-04-14 14:25 与f 阅读(1468) 评论(0) 推荐(0) 编辑
摘要: 效果图 在winfrom中拖入一个DataGridView控件 private void Form1_Load(object sender, EventArgs e) { DataGridViewTextBoxColumn column = new DataGridViewTextBoxColumn 阅读全文
posted @ 2022-04-13 14:11 与f 阅读(4337) 评论(0) 推荐(0) 编辑
上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 118 下一页