01 2021 档案

Ant DataPIcker 禁用时间和日期的方法
摘要:<template> <div> <a-date-picker style="width: 100%" show-time v-decorator="[ 'nextPmTime', { rules: [ { required: true, message: $t('lang.placeholder. 阅读全文

posted @ 2021-01-27 16:30 ㅤㅤㅤㅤㅤㅤ 阅读(714) 评论(0) 推荐(0)

在a-table的基础上实现拖拽功能 (封装的组件)
摘要:/*在vue components文件下 添加一个组件文件 AntTable AntTable下新建一个index.js文件 使用该组件时 只需要在.vue页面引入即可 引入方式/使用方式请参考下面代码*/ <template> <div> <ant-table bordered size="sma 阅读全文

posted @ 2021-01-25 11:34 ㅤㅤㅤㅤㅤㅤ 阅读(1881) 评论(0) 推荐(0)

Ant Table 复选框禁用 全选时禁用复选框被选中问题
摘要:<template> <a-table :row-selection="{ getCheckboxProps: getCheckboxProps, }" rowKey="id" :columns="columns" :data-source="data" > </a-table> </templat 阅读全文

posted @ 2021-01-22 16:42 ㅤㅤㅤㅤㅤㅤ 阅读(3055) 评论(0) 推荐(0)

Ant table报错 Warning: [antdv: Each record in table should have a unique `key` prop,or set `rowKey` to an unique primary key.]
摘要:方法1 <a-table :columns="columns" :data-source="data" size="small" :rowKey="(row) => row.key" > // key为 data 中的一个属性 </a-table> 方法2 <a-table :columns="co 阅读全文

posted @ 2021-01-22 15:30 ㅤㅤㅤㅤㅤㅤ 阅读(1473) 评论(0) 推荐(1)

Ant vue a-tabel实现上移下移功能
摘要:<template> <div> <a-table :row-key="key" :columns="columns" :data-source="data"> <template slot="operation" slot-scope="text, record, index"> <a-icon 阅读全文

posted @ 2021-01-21 15:14 ㅤㅤㅤㅤㅤㅤ 阅读(691) 评论(0) 推荐(0)

VUE使用screenfull全屏 (使用Ant UI)
摘要:// 安装 screenfull // npm install --save screenfull // 在需要的页面引用 // import screenfull from "screenfull"; <template> <a-tooltip placement="top" :title="ti 阅读全文

posted @ 2021-01-21 14:29 ㅤㅤㅤㅤㅤㅤ 阅读(664) 评论(0) 推荐(0)

导航