04 2022 档案

摘要:dialog.warning({ title: "提示", showIcon: false, content: () => { return h( "div", { class: "flex flex-col justify-center items-center text-14px", }, [ 阅读全文
posted @ 2022-04-25 17:19 ling'er 阅读(2228) 评论(0) 推荐(0) 编辑
摘要:const rules = { roleId: { key: "edit",//区别规则 required: true, trigger: ["blur", "input"], validator(rule: FormItemRule, value: Number) { if (value null 阅读全文
posted @ 2022-04-25 16:18 ling'er 阅读(2416) 评论(0) 推荐(0) 编辑
摘要:具体的render函数写法可参照这位大佬https://www.jianshu.com/p/fd62147ab67c { title: "操作", fixed: "right", render(row) { return h("div", [ h(NSwitch, { value: value, / 阅读全文
posted @ 2022-04-14 17:20 ling'er 阅读(306) 评论(0) 推荐(0) 编辑
摘要:一、问题描述 在数据表格中嵌入switch时,写入的switch事件没有效果 二、产生原因 关于table的列表项都是进行过拆分的,单独在ts文件写的数据,此时我们利用的是render函数来创造元素,所以就会出现写法上的偏差 三、解决方案 Naive的官方文档是提到了的,关于事件在jsx的写法如下 阅读全文
posted @ 2022-04-14 17:11 ling'er 阅读(1492) 评论(2) 推荐(0) 编辑

点击右上角即可分享
微信分享提示