@carljin/vue-canvas-table
自定义 cell Render
在 columns 数据中,提供 cellRenderer 即可,需要提供一个 vue 组件,
props 为
type Porps = {
value: string;
renderProps: RendererProps;
haveError: boolean; // 用来判断是否有输入错误,比如数据验证
};
自定义 editor
在 columns 数据中,提供 cellEditor 即可,需要提供一个 vue 组件,
props 为
type Props = {
renderProps: CellEditorProps;
};
使用输入时的条件验证
要想显示输入时的条件验证,首先确保 在 columns 数据中,提供 dataVerification 类型为 DataVerification
并且在 cellEditor 组件中,触发 updateForDataVerification(string) 事件,来更新判断,比如一个输入框,每次输入值都需要触发这个事件来实时监测
监听错误状态
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 0.0.25 | ^3.2.37 | ISC | |
| 0.0.24 | ^3.2.37 | ISC | |
| 0.0.23 | ^3.2.37 | ISC | |
| 0.0.22 | ^3.2.37 | ISC | |
| 0.0.21 | ^3.2.37 | ISC | |
| 0.0.20 | ^3.2.37 | ISC | |
| 0.0.18 | ^3.2.37 | ISC | |
| 0.0.17 | ^3.2.37 | ISC | |
| 0.0.16 | ^3.2.37 | ISC | |
| 0.0.15 | ^3.2.37 | ISC | |
| 0.0.14 | ^3.2.37 | ISC | |
| 0.0.13 | ^3.2.37 | ISC | |
| 0.0.12 | ^3.2.37 | ISC | |
| 0.0.11 | ^3.2.37 | ISC | |
| 0.0.10 | ^3.2.37 | ISC | |
| 0.0.9 | ^3.2.37 | ISC | |
| 0.0.8 | ^3.2.37 | ISC | |
| 0.0.7 | ^3.2.37 | ISC | |
| 0.0.6 | ^3.2.37 | ISC | |
| 0.0.5 | ^3.2.37 | ISC | |
| 0.0.4 | ^3.2.37 | ISC | |
| 0.0.3 | ^3.2.37 | ISC | |
| 0.0.2 | ^3.2.37 | ISC | |
| 0.0.1 | ^3.2.37 | ISC |