vben-admin 自定义form components 字典表下拉搜索框
<script lang="ts" setup> import type { SelectValue } from 'ant-design-vue/lib/select' import { debounce } from 'lodash-es' import { defineProps, ref, watch } from …
<script lang="ts" setup> import type { SelectValue } from 'ant-design-vue/lib/select' import { debounce } from 'lodash-es' import { defineProps, ref, watch } from …
页面没有监听到值的变化,使用this.$forceUpdate();重新渲染数据即可
customRender: (text, row, index) => { let colNum = this.getCountNum(text, row, index, "date") return { children: <&…
getCountNum(text, row, index, key) { var data = JSON.parse(JSON.stringify(this.dataSource)) var colNum = 0 var now = row[key] if&n…
popup.vue <!-- 自定义全局弹窗 --> <template> <div id=""> <j-modal :title="title" width="800px" :visible="show&…
customRender: (value, row, index,column) => ({ children: <a-input defaultValue={value} data-title={a} data-row={row} o…
示例 <a-input v-decorator="[{initialValue:text }]" :defaultValue="text" :data-record = "JSON.stringify(record)" @change="editinputChange" :class="…