
UI插件的坑
_小太子
啾咪啾咪
展开
-
ivew 的 InputNumber 框控制只能输入
通过formatter格式化数字,以展示具有具体含义的数据,往往需要配合parser一起使用。<InputNumber :step="1" :formatter="value =>`$ ${value}`.replace(/^(0+)|[^\d]+/g, '')" :parser="value => value.replace(/^(0+)|[^\d]+/g, '')" ...原创 2020-06-16 11:41:04 · 556 阅读 · 0 评论 -
iview + vue 表格给单个单元格特定样式 如必填的 红色(*)
data() { return { columns2: [ { title: '编号', align: 'center', slot: 'numIndex', width: 40 }, ...原创 2020-04-13 10:15:10 · 1678 阅读 · 0 评论 -
ivue 的报错 TypeError: ctx.injections.tableRoot.$scopedSlots[ctx.props.column.slot] is not a function
使用 iview的 <Table> 组件,报了个错原因是 我给Table组件的columns中定义了4个含有slot的列,但是实际在<Table>中只使用了其中3个,导致的报错。也就是,在 Table组件的columns中定义了多少个含有slot的列,那么在<Table>内部必须输出多少个,否则会报错。...原创 2020-04-13 10:00:16 · 6754 阅读 · 0 评论