|
@@ -11,7 +11,7 @@ export interface ColumnItem {
|
|
|
setterIndex?: string;
|
|
|
props?: { [name: string]: any };
|
|
|
itemProps?: { [name: string]: any };
|
|
|
- getValue?: (v: any, data?:any) => any;
|
|
|
+ getValue?: (v: any, data?: any) => any;
|
|
|
isDisable?: (value: any, data: any) => boolean;
|
|
|
isLoading?: (value: any, data: any) => boolean;
|
|
|
isVisible?: (value: any, data: any) => boolean;
|
|
@@ -91,16 +91,16 @@ export const renderFormItem = (props: {
|
|
|
// return column.getValue ? column.getValue(itemValue) : itemValue;
|
|
|
// });
|
|
|
|
|
|
- // const editor = props.editor;
|
|
|
- // const compValue = editor ? editor.commands.get(column.dataIndex) : "";
|
|
|
+ const editor = props.editor;
|
|
|
+ const compValue = editor ? editor.commands.get(column.dataIndex) : "";
|
|
|
// console.log(column.dataIndex, compValue.value);
|
|
|
-
|
|
|
- const compValue = computed(() => {
|
|
|
- const { data, column } = props;
|
|
|
- if (!column.dataIndex) return;
|
|
|
- const itemValue = _.get(data, column.dataIndex);
|
|
|
- return column.getValue ? column.getValue(itemValue, data) : itemValue;
|
|
|
- });
|
|
|
+
|
|
|
+ // const compValue = computed(() => {
|
|
|
+ // const { data, column } = props;
|
|
|
+ // if (!column.dataIndex) return;
|
|
|
+ // const itemValue = _.get(data, column.dataIndex);
|
|
|
+ // return column.getValue ? column.getValue(itemValue, data) : itemValue;
|
|
|
+ // });
|
|
|
|
|
|
const changeVal = (value: any, ...args: any[]) => {
|
|
|
const { column } = props;
|