@das-fed/ui 1.1.4 → 6.3.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/global/icons/index.local.js +1 -1
- package/global/style/index.css +1 -1
- package/global/style/scrollbar.css +22 -22
- package/global/theme/index.js +12 -12
- package/global/theme/module/color.js +31 -31
- package/global/theme/module/fontSize.js +5 -5
- package/global/theme/module/scrollbar.js +6 -6
- package/package.json +15 -9
- package/packages/business-components/app-container/index.js +154 -147
- package/packages/business-components/change-enterprises/index.css +1 -0
- package/packages/business-components/change-enterprises/index.js +241 -0
- package/packages/business-components/change-pwd/index.css +1 -0
- package/packages/business-components/change-pwd/index.js +330 -0
- package/packages/business-components/currency-page/index.css +1 -0
- package/packages/business-components/currency-page/index.js +99 -0
- package/packages/business-components/device-panel/index.css +1 -0
- package/packages/business-components/device-panel/index.js +115939 -0
- package/packages/business-components/echarts/index.js +93 -122
- package/packages/business-components/export-button/index.js +73 -66
- package/packages/business-components/import-button/index.js +213 -170
- package/packages/business-components/index.js +8 -1
- package/packages/business-components/layout-breadcrumb/index.js +82 -66
- package/packages/business-components/model-table-dialog/index.js +299 -289
- package/packages/business-components/process-configuration/index.css +1 -0
- package/packages/business-components/process-configuration/index.js +612 -0
- package/packages/business-components/process-form/index.css +1 -0
- package/packages/business-components/process-form/index.js +524 -0
- package/packages/business-components/process-search-form/index.js +73 -315
- package/packages/business-components/process-table/index.css +1 -1
- package/packages/business-components/process-table/index.js +186 -152
- package/packages/business-components/urgent-panel/index.css +1 -0
- package/packages/business-components/urgent-panel/index.js +3914 -0
- package/packages/business-components/user-org-dialog/index.js +466 -375
- package/packages/business-components/video-dialog/index.css +1 -0
- package/packages/business-components/video-dialog/index.js +1041 -0
- package/packages/business.js +1 -2
- package/packages/components/alert/index.js +449 -633
- package/packages/components/audio-video/index.css +1 -1
- package/packages/components/audio-video/index.js +312 -126
- package/packages/components/autocomplete/index.css +1 -1
- package/packages/components/autocomplete/index.js +312 -2923
- package/packages/components/breadcrumb/index.js +97 -82
- package/packages/components/button/index.css +1 -1
- package/packages/components/button/index.js +646 -787
- package/packages/components/calendar/index.css +1 -1
- package/packages/components/calendar/index.js +655 -3879
- package/packages/components/cascader/index.js +209 -203
- package/packages/components/checkbox/index.css +1 -1
- package/packages/components/checkbox/index.js +710 -872
- package/packages/components/collapse-panel/index.css +1 -1
- package/packages/components/collapse-panel/index.js +419 -601
- package/packages/components/collapse-transition/index.js +23 -21
- package/packages/components/collaspe/index.css +1 -1
- package/packages/components/collaspe/index.js +413 -595
- package/packages/components/color-picker/index.css +1 -1
- package/packages/components/color-picker/index.js +176 -133
- package/packages/components/custom-search-item/index.js +43 -37
- package/packages/components/date-picker/index.js +1338 -1459
- package/packages/components/dialog/index.js +429 -215
- package/packages/components/dimple-layout/index.css +1 -1
- package/packages/components/dimple-layout/index.js +1298 -1794
- package/packages/components/drawer/index.js +105 -77
- package/packages/components/dropdown/index.js +129 -109
- package/packages/components/edit-table/index.css +1 -1
- package/packages/components/edit-table/index.js +868 -752
- package/packages/components/empty/index.js +83 -78
- package/packages/components/form/index.js +22 -15
- package/packages/components/form-item/index.css +1 -1
- package/packages/components/form-item/index.js +601 -440
- package/packages/components/icon/index.css +1 -1
- package/packages/components/icon/index.js +38 -22
- package/packages/components/image-preview/index.css +1 -0
- package/packages/components/image-preview/index.js +2714 -0
- package/packages/components/image-upload/index.js +601 -765
- package/packages/components/image-viewer/index.css +1 -1
- package/packages/components/image-viewer/index.js +909 -990
- package/packages/components/index.js +2 -2
- package/packages/components/input/index.css +1 -1
- package/packages/components/input/index.js +284 -256
- package/packages/components/input-dialog-select/index.css +1 -1
- package/packages/components/input-dialog-select/index.js +179 -156
- package/packages/components/input-number/index.css +1 -1
- package/packages/components/input-number/index.js +157 -170
- package/packages/components/live-player/index.css +1 -0
- package/packages/components/live-player/index.js +170 -0
- package/packages/components/loading/index.js +17 -26
- package/packages/components/map/index.css +1 -1
- package/packages/components/map/index.js +18913 -461
- package/packages/components/menu-aside/index.css +1 -1
- package/packages/components/menu-aside/index.js +648 -713
- package/packages/components/menu-header/index.js +446 -629
- package/packages/components/message/index.js +25 -16
- package/packages/components/notification/index.js +386 -575
- package/packages/components/overlay/index.js +112 -103
- package/packages/components/pagination/index.js +260 -330
- package/packages/components/popover/index.js +104 -93
- package/packages/components/popup-mask/index.css +1 -1
- package/packages/components/popup-mask/index.js +77 -72
- package/packages/components/preview/index.js +33 -28
- package/packages/components/progress/index.js +214 -221
- package/packages/components/radio/index.css +1 -1
- package/packages/components/radio/index.js +699 -862
- package/packages/components/radio-tabs/index.js +144 -107
- package/packages/components/rich-editor/index.css +1 -1
- package/packages/components/rich-editor/index.js +105 -106
- package/packages/components/scrollbar/index.css +3 -2
- package/packages/components/scrollbar/index.js +2262 -1201
- package/packages/components/search/index.js +500 -664
- package/packages/components/search-form/index.css +1 -1
- package/packages/components/search-form/index.js +724 -626
- package/packages/components/select/index.css +1 -1
- package/packages/components/select/index.js +1052 -950
- package/packages/components/select-input/index.js +63 -53
- package/packages/components/select-list/index.css +1 -1
- package/packages/components/select-list/index.js +258 -235
- package/packages/components/special-range-picker-month/index.css +1 -1
- package/packages/components/special-range-picker-month/index.js +3068 -72555
- package/packages/components/special-range-picker-year/index.css +1 -1
- package/packages/components/special-range-picker-year/index.js +345 -339
- package/packages/components/spin/index.js +415 -594
- package/packages/components/split-panel/index.css +1 -1
- package/packages/components/split-panel/index.js +146 -127
- package/packages/components/step/index.js +414 -597
- package/packages/components/steps/index.js +407 -590
- package/packages/components/switch/index.js +23 -23
- package/packages/components/table/index.css +1 -1
- package/packages/components/table/index.js +80813 -27734
- package/packages/components/tabs/index.css +1 -1
- package/packages/components/tabs/index.js +620 -813
- package/packages/components/tag/index.js +63 -63
- package/packages/components/text-tooltip/index.css +9 -0
- package/packages/components/text-tooltip/index.js +2739 -33
- package/packages/components/time-line/index.js +464 -643
- package/packages/components/tooltip/index.css +1 -1
- package/packages/components/tooltip/index.js +108 -79
- package/packages/components/tree/index.css +1 -1
- package/packages/components/tree/index.js +840 -809
- package/packages/components/tree-select/index.js +271 -303
- package/packages/components/tree-table/index.js +461 -352
- package/packages/components/upload/index.js +682 -858
- package/packages/components/virtual-tree/index.css +1 -1
- package/packages/components/virtual-tree/index.js +144 -126
- package/packages/index.d.ts +1 -0
- package/packages/index.js +2 -2
- package/style/business.css +11 -4
- package/style/index.css +52 -42
- package/packages/business-components/low-code/index.css +0 -1
- package/packages/business-components/low-code/index.js +0 -60
- package/packages/components/audio-video-player/index.css +0 -1
- package/packages/components/audio-video-player/index.js +0 -83
- package/packages/components/table-column/index.css +0 -1
- package/packages/components/table-column/index.js +0 -82021
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { ref, defineComponent, useAttrs, computed, watch, openBlock, createBlock,
|
|
1
|
+
import { ref, defineComponent, useAttrs, computed, watch, nextTick, openBlock, createBlock, mergeProps, createSlots, withCtx, renderSlot, createCommentVNode, createElementBlock, Fragment, renderList, createElementVNode, normalizeStyle, withKeys, createVNode, withDirectives, createTextVNode, toDisplayString } from 'vue';
|
|
2
2
|
import { withInstall } from '@das-fed/utils';
|
|
3
|
-
import { DasTableRef, DasTable, DasTableColumn, DasInput, DasInputNumber, DasRadio, DasCheckbox, DasSwitch, DasSelect, DasTreeSelect, DasCascader, DasColorPicker, DasDatePicker, DasRangePicker, DasTimePicker, DasTimeRangePicker,
|
|
3
|
+
import { DasTableRef, DasTable, DasTableColumn, DasInput, DasInputNumber, DasRadio, DasCheckbox, DasSwitch, DasSelect, DasTreeSelect, DasCascader, DasColorPicker, DasInputDialogSelect, DasDatePicker, DasRangePicker, DasTimePicker, DasTimeRangePicker, DasAutocomplete, vDasTooltip } from '@das-fed/ui';
|
|
4
|
+
import crypto from 'crypto';
|
|
4
5
|
import { useZIndex } from '@das-fed/utils/hooks/popup-manager/use-zindex';
|
|
5
6
|
|
|
6
7
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
@@ -17209,11 +17210,31 @@ lodash.exports;
|
|
|
17209
17210
|
|
|
17210
17211
|
var lodashExports = lodash.exports;
|
|
17211
17212
|
|
|
17212
|
-
|
|
17213
|
-
|
|
17214
|
-
|
|
17215
|
-
|
|
17213
|
+
let urlAlphabet =
|
|
17214
|
+
'useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict';
|
|
17215
|
+
|
|
17216
|
+
const POOL_SIZE_MULTIPLIER = 128;
|
|
17217
|
+
let pool, poolOffset;
|
|
17218
|
+
let fillPool = bytes => {
|
|
17219
|
+
if (!pool || pool.length < bytes) {
|
|
17220
|
+
pool = Buffer.allocUnsafe(bytes * POOL_SIZE_MULTIPLIER);
|
|
17221
|
+
crypto.randomFillSync(pool);
|
|
17222
|
+
poolOffset = 0;
|
|
17223
|
+
} else if (poolOffset + bytes > pool.length) {
|
|
17224
|
+
crypto.randomFillSync(pool);
|
|
17225
|
+
poolOffset = 0;
|
|
17226
|
+
}
|
|
17227
|
+
poolOffset += bytes;
|
|
17228
|
+
};
|
|
17229
|
+
let nanoid = (size = 21) => {
|
|
17230
|
+
fillPool((size -= 0));
|
|
17231
|
+
let id = '';
|
|
17232
|
+
for (let i = poolOffset - size; i < poolOffset; i++) {
|
|
17233
|
+
id += urlAlphabet[pool[i] & 63];
|
|
17234
|
+
}
|
|
17235
|
+
return id
|
|
17216
17236
|
};
|
|
17237
|
+
|
|
17217
17238
|
const isShow = (types, type) => {
|
|
17218
17239
|
return types.includes(type);
|
|
17219
17240
|
};
|
|
@@ -18554,13 +18575,13 @@ Schema.warning = warning;
|
|
|
18554
18575
|
Schema.messages = messages;
|
|
18555
18576
|
Schema.validators = validators;
|
|
18556
18577
|
|
|
18557
|
-
const useValidator = (props,
|
|
18578
|
+
const useValidator = (props, tableConfig, tableData) => {
|
|
18558
18579
|
const rules = ref({});
|
|
18559
18580
|
const validator = ref(null);
|
|
18560
18581
|
const errorFieldList = ref([]);
|
|
18561
18582
|
const errorModelZIndex = ref(2e3);
|
|
18562
18583
|
const setRules = () => {
|
|
18563
|
-
|
|
18584
|
+
tableConfig.value.forEach((row) => {
|
|
18564
18585
|
if (row?.rules) {
|
|
18565
18586
|
const key = row.prop;
|
|
18566
18587
|
rules.value[key] = [...row.rules];
|
|
@@ -18573,7 +18594,7 @@ const useValidator = (props, tableColumn, tableData) => {
|
|
|
18573
18594
|
const setCustomErrorMessage = (row, rowIndex) => {
|
|
18574
18595
|
let errors = null;
|
|
18575
18596
|
let fields = {};
|
|
18576
|
-
|
|
18597
|
+
tableConfig.value.forEach((config) => {
|
|
18577
18598
|
const curentItem = {
|
|
18578
18599
|
$uuidKey: row["$uuidKey"],
|
|
18579
18600
|
fields: {},
|
|
@@ -18581,16 +18602,12 @@ const useValidator = (props, tableColumn, tableData) => {
|
|
|
18581
18602
|
errorMessage: ""
|
|
18582
18603
|
};
|
|
18583
18604
|
if (config?.error !== void 0) {
|
|
18584
|
-
if (typeof config.error === "boolean")
|
|
18585
|
-
|
|
18586
|
-
if (typeof config.error === "function")
|
|
18587
|
-
curentItem.error = config.error(row, rowIndex);
|
|
18605
|
+
if (typeof config.error === "boolean") curentItem.error = config.error;
|
|
18606
|
+
if (typeof config.error === "function") curentItem.error = config.error(row, rowIndex);
|
|
18588
18607
|
if (curentItem.error) {
|
|
18589
18608
|
if (config?.errorMessage !== void 0) {
|
|
18590
|
-
if (typeof config.errorMessage === "boolean")
|
|
18591
|
-
|
|
18592
|
-
if (typeof config.errorMessage === "function")
|
|
18593
|
-
curentItem.errorMessage = config.errorMessage(row, rowIndex);
|
|
18609
|
+
if (typeof config.errorMessage === "boolean") curentItem.errorMessage = config.errorMessage;
|
|
18610
|
+
if (typeof config.errorMessage === "function") curentItem.errorMessage = config.errorMessage(row, rowIndex);
|
|
18594
18611
|
}
|
|
18595
18612
|
const error = {
|
|
18596
18613
|
message: curentItem.errorMessage,
|
|
@@ -18598,8 +18615,7 @@ const useValidator = (props, tableColumn, tableData) => {
|
|
|
18598
18615
|
field: config.prop
|
|
18599
18616
|
};
|
|
18600
18617
|
curentItem.fields[config.prop] = [error];
|
|
18601
|
-
if (!errors)
|
|
18602
|
-
errors = [];
|
|
18618
|
+
if (!errors) errors = [];
|
|
18603
18619
|
errors.push(error);
|
|
18604
18620
|
fields = curentItem.fields;
|
|
18605
18621
|
}
|
|
@@ -18626,26 +18642,23 @@ const useValidator = (props, tableColumn, tableData) => {
|
|
|
18626
18642
|
return result;
|
|
18627
18643
|
};
|
|
18628
18644
|
const removeCellError = (row, prop) => {
|
|
18629
|
-
if (!row["$uuidKey"])
|
|
18630
|
-
return;
|
|
18645
|
+
if (!row["$uuidKey"]) return;
|
|
18631
18646
|
if (prop) {
|
|
18632
18647
|
errorFieldList.value.forEach(({ $uuidKey, fields }) => {
|
|
18633
|
-
if (row["$uuidKey"] === $uuidKey)
|
|
18634
|
-
fields[prop] && delete fields[prop];
|
|
18635
|
-
}
|
|
18648
|
+
if (row["$uuidKey"] === $uuidKey) fields[prop] && delete fields[prop];
|
|
18636
18649
|
});
|
|
18637
18650
|
} else {
|
|
18638
18651
|
const index = errorFieldList.value.findIndex((item) => item["$uuidKey"] === row["$uuidKey"]);
|
|
18639
|
-
if (index !== -1)
|
|
18640
|
-
errorFieldList.value.splice(index, 1);
|
|
18652
|
+
if (index !== -1) errorFieldList.value.splice(index, 1);
|
|
18641
18653
|
}
|
|
18642
18654
|
};
|
|
18643
18655
|
const removeErrorByRowKey = (id) => {
|
|
18644
18656
|
const ids = typeof id === "string" || typeof id === "number" ? [id] : Array.isArray(id) ? id : [];
|
|
18645
18657
|
ids.forEach((currentId) => {
|
|
18646
18658
|
const currentRow = tableData.value.find((row) => row[props.rowKey] === currentId);
|
|
18647
|
-
if (currentRow)
|
|
18659
|
+
if (currentRow) {
|
|
18648
18660
|
errorFieldList.value = errorFieldList.value.filter((item) => item.$uuidKey !== currentRow.$uuidKey);
|
|
18661
|
+
}
|
|
18649
18662
|
});
|
|
18650
18663
|
};
|
|
18651
18664
|
const validateRow = (row, rowIndex, callback = (errorsParams, fieldsParams) => {
|
|
@@ -18674,8 +18687,7 @@ const useValidator = (props, tableColumn, tableData) => {
|
|
|
18674
18687
|
let sortIds = [];
|
|
18675
18688
|
for (let i = 0; i < tableData.value.length; i++) {
|
|
18676
18689
|
const id2 = tableData.value[i][props.rowKey];
|
|
18677
|
-
if (ids.includes(id2))
|
|
18678
|
-
sortIds.push(id2);
|
|
18690
|
+
if (ids.includes(id2)) sortIds.push(id2);
|
|
18679
18691
|
}
|
|
18680
18692
|
const lastIndex = tableData.value.findIndex((row) => row[props.rowKey] === sortIds[sortIds.length - 1]);
|
|
18681
18693
|
let result = null;
|
|
@@ -18686,18 +18698,15 @@ const useValidator = (props, tableColumn, tableData) => {
|
|
|
18686
18698
|
validateRow(row, rowIndex, (errors, fields) => {
|
|
18687
18699
|
if (errors) {
|
|
18688
18700
|
setErrorFieldList(row, fields);
|
|
18689
|
-
if (!result)
|
|
18690
|
-
result = [];
|
|
18701
|
+
if (!result) result = [];
|
|
18691
18702
|
result.push({
|
|
18692
18703
|
key: row[props.rowKey],
|
|
18693
18704
|
errors
|
|
18694
18705
|
});
|
|
18695
18706
|
}
|
|
18696
|
-
if (rowIndex === lastIndex)
|
|
18697
|
-
callback && callback(result);
|
|
18707
|
+
if (rowIndex === lastIndex) callback && callback(result);
|
|
18698
18708
|
});
|
|
18699
|
-
if (result && result.length)
|
|
18700
|
-
errorModelZIndex.value = useZIndex().nextZIndex();
|
|
18709
|
+
if (result && result.length) errorModelZIndex.value = useZIndex().nextZIndex();
|
|
18701
18710
|
}
|
|
18702
18711
|
});
|
|
18703
18712
|
};
|
|
@@ -18719,8 +18728,7 @@ const useValidator = (props, tableColumn, tableData) => {
|
|
|
18719
18728
|
callback && callback(true);
|
|
18720
18729
|
}
|
|
18721
18730
|
});
|
|
18722
|
-
if (isError)
|
|
18723
|
-
errorModelZIndex.value = useZIndex().nextZIndex();
|
|
18731
|
+
if (isError) errorModelZIndex.value = useZIndex().nextZIndex();
|
|
18724
18732
|
};
|
|
18725
18733
|
const deactivateAll = () => {
|
|
18726
18734
|
tableData.value.forEach((row) => {
|
|
@@ -18730,8 +18738,7 @@ const useValidator = (props, tableColumn, tableData) => {
|
|
|
18730
18738
|
};
|
|
18731
18739
|
const activateRowByKeys = (keys) => {
|
|
18732
18740
|
tableData.value.forEach((item) => {
|
|
18733
|
-
if (keys.includes(item["$uuidKey"]))
|
|
18734
|
-
item.isError = true;
|
|
18741
|
+
if (keys.includes(item["$uuidKey"])) item.isError = true;
|
|
18735
18742
|
});
|
|
18736
18743
|
};
|
|
18737
18744
|
const validateAll = (callback = (valid, errFiedList) => {
|
|
@@ -18741,9 +18748,7 @@ const useValidator = (props, tableColumn, tableData) => {
|
|
|
18741
18748
|
pList.push(
|
|
18742
18749
|
new Promise((resolve, reject) => {
|
|
18743
18750
|
validateRow(row, rowIndex, (errors, fields) => {
|
|
18744
|
-
if (errors)
|
|
18745
|
-
setErrorFieldList(row, fields);
|
|
18746
|
-
}
|
|
18751
|
+
if (errors) setErrorFieldList(row, fields);
|
|
18747
18752
|
resolve(true);
|
|
18748
18753
|
});
|
|
18749
18754
|
})
|
|
@@ -18752,14 +18757,14 @@ const useValidator = (props, tableColumn, tableData) => {
|
|
|
18752
18757
|
}, []);
|
|
18753
18758
|
Promise.all(promiseFns).then(() => {
|
|
18754
18759
|
let valid = errorFieldList.value.length === 0;
|
|
18755
|
-
if (!valid)
|
|
18756
|
-
errorModelZIndex.value = useZIndex().nextZIndex();
|
|
18760
|
+
if (!valid) errorModelZIndex.value = useZIndex().nextZIndex();
|
|
18757
18761
|
activateRowByKeys(errorFieldList.value.map((item) => item["$uuidKey"]));
|
|
18758
18762
|
callback && callback(valid, errorFieldList.value);
|
|
18759
18763
|
});
|
|
18760
18764
|
};
|
|
18761
18765
|
const clearValidate = () => {
|
|
18762
18766
|
errorFieldList.value = [];
|
|
18767
|
+
tableData.value.forEach((item) => item.isError = false);
|
|
18763
18768
|
};
|
|
18764
18769
|
const changeRules = (key, callback = (rule, checkFn) => {
|
|
18765
18770
|
}) => {
|
|
@@ -18783,28 +18788,6 @@ const useValidator = (props, tableColumn, tableData) => {
|
|
|
18783
18788
|
};
|
|
18784
18789
|
};
|
|
18785
18790
|
|
|
18786
|
-
const _hoisted_1 = { class: "form-content" };
|
|
18787
|
-
const _hoisted_2 = {
|
|
18788
|
-
key: 0,
|
|
18789
|
-
class: "form-left"
|
|
18790
|
-
};
|
|
18791
|
-
const _hoisted_3 = ["tabindex", "onFocus"];
|
|
18792
|
-
const _hoisted_4 = {
|
|
18793
|
-
key: 4,
|
|
18794
|
-
class: "center-box_y"
|
|
18795
|
-
};
|
|
18796
|
-
const _hoisted_5 = { key: 15 };
|
|
18797
|
-
const _hoisted_6 = {
|
|
18798
|
-
key: 1,
|
|
18799
|
-
class: "form-right"
|
|
18800
|
-
};
|
|
18801
|
-
const _hoisted_7 = /* @__PURE__ */ createElementVNode(
|
|
18802
|
-
"div",
|
|
18803
|
-
{ class: "placeholder" },
|
|
18804
|
-
"-",
|
|
18805
|
-
-1
|
|
18806
|
-
/* HOISTED */
|
|
18807
|
-
);
|
|
18808
18791
|
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
18809
18792
|
...{
|
|
18810
18793
|
inheritAttrs: false
|
|
@@ -18827,26 +18810,29 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
18827
18810
|
const emit = __emit;
|
|
18828
18811
|
const errorMode = ref("overlay");
|
|
18829
18812
|
const tableRef = DasTableRef();
|
|
18830
|
-
const
|
|
18813
|
+
const tableConfig = ref([]);
|
|
18831
18814
|
const tableData = ref([]);
|
|
18832
18815
|
const cacheTableData = ref([]);
|
|
18833
|
-
const newInsertRowList = ref([]);
|
|
18834
18816
|
const attrs = useAttrs();
|
|
18835
18817
|
const outerBorder = computed(
|
|
18836
18818
|
() => attrs?.outerBorder ? attrs.outerBorder : attrs["outer-border"] ? attrs["outer-border"] : true
|
|
18837
18819
|
);
|
|
18838
18820
|
const tableCellClassName = ({ row, column, rowIndex, columnIndex }) => {
|
|
18839
|
-
const config =
|
|
18821
|
+
const config = tableConfig.value[columnIndex];
|
|
18840
18822
|
const innerClassName = calcView(config, row, column, columnIndex) ? "is-view" : "";
|
|
18841
|
-
if (!props.cellClassName)
|
|
18842
|
-
|
|
18843
|
-
if (typeof props.cellClassName === "string")
|
|
18844
|
-
return `${innerClassName} ${props.cellClassName}`;
|
|
18823
|
+
if (!props.cellClassName) return innerClassName;
|
|
18824
|
+
if (typeof props.cellClassName === "string") return `${innerClassName} ${props.cellClassName}`;
|
|
18845
18825
|
if (typeof props.cellClassName === "function") {
|
|
18846
18826
|
const className = props.cellClassName({ row, column, rowIndex, columnIndex });
|
|
18847
18827
|
return `${innerClassName} ${className}`;
|
|
18848
18828
|
}
|
|
18849
18829
|
};
|
|
18830
|
+
const tableColumnClassName = (config) => {
|
|
18831
|
+
let name = "das-edit-table-column__cell";
|
|
18832
|
+
if (config["className"]) name = `${name} ${config["className"]}`;
|
|
18833
|
+
if (config["classname"]) name = `${name} ${config["classname"]}`;
|
|
18834
|
+
return name;
|
|
18835
|
+
};
|
|
18850
18836
|
const innerSelectionRows = computed({
|
|
18851
18837
|
get: () => {
|
|
18852
18838
|
return props.selectionRows;
|
|
@@ -18855,30 +18841,22 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
18855
18841
|
emit("update:selection-rows", val);
|
|
18856
18842
|
}
|
|
18857
18843
|
});
|
|
18858
|
-
const getMode = (config, row, column, index) => {
|
|
18859
|
-
if (typeof config.mode === "string")
|
|
18860
|
-
|
|
18861
|
-
if (typeof config.mode === "function")
|
|
18862
|
-
return config.mode(row, column, index);
|
|
18844
|
+
const getMode = (config, row, column, $index) => {
|
|
18845
|
+
if (typeof config.mode === "string") return config.mode;
|
|
18846
|
+
if (typeof config.mode === "function") return config.mode(row, column, $index);
|
|
18863
18847
|
};
|
|
18864
18848
|
const getPlaceholder = (config, row, column, $index) => {
|
|
18865
|
-
const defaultVal =
|
|
18866
|
-
|
|
18867
|
-
|
|
18868
|
-
|
|
18869
|
-
if (calcView(config, row, column, $index))
|
|
18870
|
-
return defaultVal;
|
|
18871
|
-
return config?.placeholder ?? defaultVal;
|
|
18872
|
-
};
|
|
18873
|
-
const setCacheTableData = () => {
|
|
18874
|
-
cacheTableData.value = lodashExports.cloneDeep(tableData.value);
|
|
18875
|
-
};
|
|
18876
|
-
const setNewRowCacheList = (newRow) => {
|
|
18877
|
-
newInsertRowList.value.push(newRow);
|
|
18849
|
+
const defaultVal = void 0;
|
|
18850
|
+
if (!config.placeholder || calcView(config, row, column, $index)) return defaultVal;
|
|
18851
|
+
if (typeof config.placeholder === "string") return config.placeholder;
|
|
18852
|
+
if (typeof config.placeholder === "function") return config.placeholder(row, column, $index);
|
|
18878
18853
|
};
|
|
18879
18854
|
const getItemAttrs = (itemProps) => {
|
|
18880
18855
|
return itemProps;
|
|
18881
18856
|
};
|
|
18857
|
+
const getAutocompleteItemAttrs = (itemProps, row) => {
|
|
18858
|
+
return getItemAttrs(itemProps);
|
|
18859
|
+
};
|
|
18882
18860
|
const propsConfig = computed(() => {
|
|
18883
18861
|
const defaultProps = {
|
|
18884
18862
|
isView: "isView",
|
|
@@ -18886,6 +18864,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
18886
18864
|
};
|
|
18887
18865
|
return { ...defaultProps, ...props.props };
|
|
18888
18866
|
});
|
|
18867
|
+
const calcNotSetDefaultVal = (config, row, column, $index) => {
|
|
18868
|
+
return !props.isView && calcView(config, row, column, $index);
|
|
18869
|
+
};
|
|
18889
18870
|
const calcView = (config, row, column, $index) => {
|
|
18890
18871
|
return props.isView || !!row[propsConfig.value.isView] || useDefined(config?.isView, row, column, $index, false) || !row.isEdit && !row.isFocus && !row.isError;
|
|
18891
18872
|
};
|
|
@@ -18896,13 +18877,11 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
18896
18877
|
return useDefined(config.options, row, column, $index, []);
|
|
18897
18878
|
};
|
|
18898
18879
|
const showFormItem = (config, row, column, $index) => {
|
|
18899
|
-
if (!props.isView)
|
|
18900
|
-
return true;
|
|
18880
|
+
if (!props.isView) return true;
|
|
18901
18881
|
if (isShow(["inputDialogSelect"], getMode(config, row, column, $index)))
|
|
18902
18882
|
return !!getOptions(config, row, column, $index)?.length;
|
|
18903
18883
|
const currentVal = row[config.prop];
|
|
18904
|
-
if (Array.isArray(currentVal) && currentVal.length === 0)
|
|
18905
|
-
return false;
|
|
18884
|
+
if (Array.isArray(currentVal) && currentVal.length === 0) return false;
|
|
18906
18885
|
return currentVal || currentVal === 0 || currentVal === false;
|
|
18907
18886
|
};
|
|
18908
18887
|
const {
|
|
@@ -18919,7 +18898,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
18919
18898
|
changeRules,
|
|
18920
18899
|
validateByRowKey,
|
|
18921
18900
|
removeCellError
|
|
18922
|
-
} = useValidator(props,
|
|
18901
|
+
} = useValidator(props, tableConfig, tableData);
|
|
18923
18902
|
const init = () => {
|
|
18924
18903
|
setRules();
|
|
18925
18904
|
setValidator();
|
|
@@ -18927,13 +18906,12 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
18927
18906
|
watch(
|
|
18928
18907
|
() => props.config,
|
|
18929
18908
|
(newVal) => {
|
|
18930
|
-
|
|
18931
|
-
|
|
18909
|
+
tableConfig.value = lodashExports.cloneDeep(newVal);
|
|
18910
|
+
tableConfig.value.forEach((item) => {
|
|
18932
18911
|
item.mode = item?.mode ?? "input";
|
|
18933
18912
|
item.itemProps = item?.itemProps ?? {};
|
|
18934
18913
|
item.clearable = item?.clearable ?? true;
|
|
18935
|
-
if (item?.error !== void 0 || item?.errorMessage !== void 0)
|
|
18936
|
-
item.rules = [];
|
|
18914
|
+
if (item?.error !== void 0 || item?.errorMessage !== void 0) item.rules = [];
|
|
18937
18915
|
if (isShow(["treeSelect"], item.mode)) {
|
|
18938
18916
|
item.pathProp = item?.pathProp ?? "path";
|
|
18939
18917
|
item.keywordProp = item?.keywordProp ?? "keyword";
|
|
@@ -18949,19 +18927,15 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
18949
18927
|
() => props.data,
|
|
18950
18928
|
(newVal) => {
|
|
18951
18929
|
tableData.value = lodashExports.cloneDeep(newVal);
|
|
18952
|
-
tableData.value.
|
|
18953
|
-
item.
|
|
18954
|
-
|
|
18955
|
-
|
|
18956
|
-
|
|
18957
|
-
|
|
18958
|
-
|
|
18959
|
-
|
|
18960
|
-
|
|
18961
|
-
}
|
|
18962
|
-
item["$uuidKey"] = item[props.rowKey] ? item[props.rowKey] + index : generateUniqueKey();
|
|
18963
|
-
}
|
|
18964
|
-
});
|
|
18930
|
+
tableData.value = tableData.value.map((item) => ({
|
|
18931
|
+
$uuidKey: props.uuidKey ? item[props.uuidKey] : item[props.rowKey] ?? nanoid(),
|
|
18932
|
+
isEdit: false,
|
|
18933
|
+
isFocus: false,
|
|
18934
|
+
isError: false,
|
|
18935
|
+
treeSelectRenderDom: false,
|
|
18936
|
+
autocompleteRenderDom: false,
|
|
18937
|
+
...item
|
|
18938
|
+
}));
|
|
18965
18939
|
},
|
|
18966
18940
|
{
|
|
18967
18941
|
immediate: true
|
|
@@ -18973,8 +18947,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
18973
18947
|
}
|
|
18974
18948
|
};
|
|
18975
18949
|
const handleChange = (row, column, index, config, value, options) => {
|
|
18976
|
-
if (typeof config["change"] == "function")
|
|
18977
|
-
config["change"](value, row, column, index, options);
|
|
18950
|
+
if (typeof config["change"] == "function") config["change"](value, row, column, index, options);
|
|
18978
18951
|
const trigger = config?.trigger ? config.trigger : props.trigger;
|
|
18979
18952
|
if (trigger === "change" || trigger === "blur" && config["mode"] === "select")
|
|
18980
18953
|
validateSingleField(row, index, config["prop"]);
|
|
@@ -18992,81 +18965,84 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
18992
18965
|
config["blur"](e, row, column, index);
|
|
18993
18966
|
}
|
|
18994
18967
|
const trigger = config?.trigger ? config.trigger : props.trigger;
|
|
18995
|
-
if (trigger === "blur")
|
|
18996
|
-
validateSingleField(row, index, config["prop"]);
|
|
18968
|
+
if (trigger === "blur") validateSingleField(row, index, config["prop"]);
|
|
18997
18969
|
};
|
|
18998
18970
|
const formCenterFocus = (row, column, index, config, event) => {
|
|
18999
|
-
tableData.value.forEach((item) => {
|
|
19000
|
-
item.isFocus = !!(item["$uuidKey"] === row["$uuidKey"]);
|
|
19001
|
-
});
|
|
19002
18971
|
nextTick(() => {
|
|
19003
18972
|
const element = event.target?.querySelector("input") || event.target?.querySelector(".das-ui-input-dialog-select");
|
|
19004
|
-
if (element)
|
|
19005
|
-
element.focus();
|
|
18973
|
+
if (element) element.focus();
|
|
19006
18974
|
});
|
|
19007
18975
|
};
|
|
19008
18976
|
const handleFocus = (row, column, index, config, e) => {
|
|
18977
|
+
if (!row.isFocus) {
|
|
18978
|
+
const proRow = tableData.value.find((item) => item.isFocus);
|
|
18979
|
+
if (proRow) proRow.isFocus = false;
|
|
18980
|
+
row.isFocus = true;
|
|
18981
|
+
}
|
|
19009
18982
|
if (config?.prop) {
|
|
19010
18983
|
removeCellError(row, config.prop);
|
|
19011
18984
|
if (errorFieldList.value && errorFieldList.value.length) {
|
|
19012
18985
|
const currentErrorField = errorFieldList.value.find((item) => item["$uuidKey"] === row["$uuidKey"]);
|
|
19013
|
-
if (!currentErrorField) {
|
|
18986
|
+
if (!currentErrorField || !currentErrorField?.fields || currentErrorField?.fields && JSON.stringify(currentErrorField.fields) === "{}") {
|
|
19014
18987
|
row.isError = false;
|
|
19015
|
-
return;
|
|
19016
18988
|
}
|
|
19017
|
-
if (!currentErrorField?.fields || currentErrorField?.fields && JSON.stringify(currentErrorField.fields) === "{}")
|
|
19018
|
-
row.isError = false;
|
|
19019
18989
|
}
|
|
19020
18990
|
}
|
|
19021
18991
|
if (typeof config["focus"] == "function") {
|
|
19022
18992
|
config["focus"](e, row, column, index);
|
|
19023
18993
|
}
|
|
19024
18994
|
};
|
|
19025
|
-
const
|
|
19026
|
-
|
|
19027
|
-
|
|
19028
|
-
|
|
19029
|
-
|
|
19030
|
-
|
|
19031
|
-
});
|
|
18995
|
+
const handleLazyTreeSelectFocus = (row, column, index, config, e) => {
|
|
18996
|
+
row.treeSelectRenderDom = true;
|
|
18997
|
+
handleFocus(row, column, index, config, e);
|
|
18998
|
+
};
|
|
18999
|
+
const handleAutocompleteFocus = (row, column, index, config, e) => {
|
|
19000
|
+
row.autocompleteRenderDom = true;
|
|
19032
19001
|
handleFocus(row, column, index, config, e);
|
|
19033
19002
|
};
|
|
19034
19003
|
const handleKeyupEnter = (row, column, index, config, e) => {
|
|
19035
|
-
if (calcView(config, row, column, index))
|
|
19036
|
-
return;
|
|
19004
|
+
if (calcView(config, row, column, index)) return;
|
|
19037
19005
|
if (typeof config["keyupEnter"] == "function") {
|
|
19038
19006
|
config["keyupEnter"](e, row, column, index);
|
|
19039
19007
|
}
|
|
19040
19008
|
};
|
|
19041
19009
|
const handleOpenDialog = (row, column, index, config) => {
|
|
19042
|
-
if (calcView(config, row, column, index))
|
|
19043
|
-
|
|
19044
|
-
if (config
|
|
19045
|
-
|
|
19046
|
-
|
|
19047
|
-
|
|
19010
|
+
if (calcView(config, row, column, index)) return;
|
|
19011
|
+
if (config?.prop) removeCellError(row, config.prop);
|
|
19012
|
+
if (typeof config["openDialog"] == "function") config["openDialog"](row, column, index);
|
|
19013
|
+
};
|
|
19014
|
+
const handleNodeClick = (row, column, index, config, value) => {
|
|
19015
|
+
if (calcView(config, row, column, index)) return;
|
|
19016
|
+
if (config?.prop) removeCellError(row, config.prop);
|
|
19017
|
+
if (typeof config["nodeClick"] == "function") config["nodeClick"](value, row, column, index);
|
|
19048
19018
|
};
|
|
19049
19019
|
const rowClick = (row, column, event) => {
|
|
19050
|
-
if (row.isFocus)
|
|
19051
|
-
|
|
19052
|
-
|
|
19053
|
-
|
|
19054
|
-
}
|
|
19020
|
+
if (!row.isFocus) {
|
|
19021
|
+
const proRow = tableData.value.find((item) => item.isFocus);
|
|
19022
|
+
if (proRow) proRow.isFocus = false;
|
|
19023
|
+
row.isFocus = true;
|
|
19024
|
+
}
|
|
19055
19025
|
};
|
|
19056
19026
|
const cellMouseEnter = (row, column) => {
|
|
19057
|
-
|
|
19058
|
-
return;
|
|
19059
|
-
|
|
19060
|
-
|
|
19061
|
-
});
|
|
19027
|
+
setTimeout(() => {
|
|
19028
|
+
if (row.isEdit) return;
|
|
19029
|
+
if (window.inTextTooltip) return;
|
|
19030
|
+
row.isEdit = true;
|
|
19031
|
+
}, 300);
|
|
19032
|
+
};
|
|
19033
|
+
const cellMouseLeave = (row, column) => {
|
|
19034
|
+
setTimeout(() => {
|
|
19035
|
+
if (!row.isEdit) return;
|
|
19036
|
+
if (window.inTextTooltip) return;
|
|
19037
|
+
row.isEdit = false;
|
|
19038
|
+
}, 300);
|
|
19062
19039
|
};
|
|
19063
19040
|
const getResultData = () => {
|
|
19064
19041
|
const copyTableData = lodashExports.cloneDeep(tableData.value);
|
|
19065
19042
|
return copyTableData.map((row) => {
|
|
19066
|
-
const excludeKeys = ["$uuidKey", "isFocus", "isEdit", "isError", "
|
|
19043
|
+
const excludeKeys = ["$uuidKey", "isFocus", "isEdit", "isError", "treeSelectRenderDom", "autocompleteRenderDom"];
|
|
19067
19044
|
return Object.keys(row).reduce((obj, field) => {
|
|
19068
|
-
if (excludeKeys.includes(field))
|
|
19069
|
-
return obj;
|
|
19045
|
+
if (excludeKeys.includes(field)) return obj;
|
|
19070
19046
|
obj[field] = row[field];
|
|
19071
19047
|
return obj;
|
|
19072
19048
|
}, {});
|
|
@@ -19074,16 +19050,17 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
19074
19050
|
};
|
|
19075
19051
|
const insert = (newRow, index, position = "after") => {
|
|
19076
19052
|
deactivateAll();
|
|
19077
|
-
const nRow =
|
|
19078
|
-
$uuidKey:
|
|
19053
|
+
const nRow = {
|
|
19054
|
+
$uuidKey: props.uuidKey ? newRow[props.uuidKey] : newRow[props.rowKey] ?? nanoid(),
|
|
19079
19055
|
isEdit: false,
|
|
19080
19056
|
isFocus: true,
|
|
19081
19057
|
isError: false,
|
|
19082
|
-
|
|
19058
|
+
treeSelectRenderDom: false,
|
|
19059
|
+
autocompleteRenderDom: false,
|
|
19083
19060
|
...newRow
|
|
19084
|
-
}
|
|
19085
|
-
if (index
|
|
19086
|
-
tableData.value.
|
|
19061
|
+
};
|
|
19062
|
+
if (!index && index !== 0) {
|
|
19063
|
+
tableData.value = [...lodashExports.cloneDeep(tableData.value), nRow];
|
|
19087
19064
|
} else {
|
|
19088
19065
|
if (position === "before") {
|
|
19089
19066
|
tableData.value.splice(index, 0, nRow);
|
|
@@ -19091,11 +19068,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
19091
19068
|
tableData.value.splice(index + 1, 0, nRow);
|
|
19092
19069
|
}
|
|
19093
19070
|
}
|
|
19094
|
-
setNewRowCacheList(nRow);
|
|
19095
19071
|
};
|
|
19096
19072
|
const removeRowByKey = (value) => {
|
|
19097
|
-
if (!value && value !== 0)
|
|
19098
|
-
return;
|
|
19073
|
+
if (!value && value !== 0) return;
|
|
19099
19074
|
if (Array.isArray(value)) {
|
|
19100
19075
|
tableData.value = tableData.value.filter((item) => !value.includes(item[props.rowKey]));
|
|
19101
19076
|
if (innerSelectionRows.value && innerSelectionRows.value.length) {
|
|
@@ -19103,12 +19078,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
19103
19078
|
}
|
|
19104
19079
|
} else {
|
|
19105
19080
|
const index = tableData.value.findIndex((item) => item[props.rowKey] === value);
|
|
19106
|
-
if (index !== -1)
|
|
19107
|
-
tableData.value.splice(index, 1);
|
|
19081
|
+
if (index !== -1) tableData.value.splice(index, 1);
|
|
19108
19082
|
if (innerSelectionRows.value && innerSelectionRows.value.length) {
|
|
19109
19083
|
const selectIndex = innerSelectionRows.value.findIndex((item) => item[props.rowKey] === value);
|
|
19110
|
-
if (selectIndex !== -1)
|
|
19111
|
-
innerSelectionRows.value.splice(selectIndex, 1);
|
|
19084
|
+
if (selectIndex !== -1) innerSelectionRows.value.splice(selectIndex, 1);
|
|
19112
19085
|
}
|
|
19113
19086
|
}
|
|
19114
19087
|
};
|
|
@@ -19123,10 +19096,21 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
19123
19096
|
if (prop) {
|
|
19124
19097
|
tableData.value[currentIndex][prop] = value;
|
|
19125
19098
|
} else {
|
|
19126
|
-
const
|
|
19127
|
-
|
|
19128
|
-
|
|
19129
|
-
|
|
19099
|
+
const {
|
|
19100
|
+
$uuidKey,
|
|
19101
|
+
isEdit,
|
|
19102
|
+
isFocus,
|
|
19103
|
+
treeSelectRenderDom = false,
|
|
19104
|
+
autocompleteRenderDom = false
|
|
19105
|
+
} = tableData.value[currentIndex];
|
|
19106
|
+
tableData.value[currentIndex] = {
|
|
19107
|
+
$uuidKey,
|
|
19108
|
+
isEdit,
|
|
19109
|
+
isFocus,
|
|
19110
|
+
treeSelectRenderDom,
|
|
19111
|
+
autocompleteRenderDom,
|
|
19112
|
+
...value
|
|
19113
|
+
};
|
|
19130
19114
|
}
|
|
19131
19115
|
}
|
|
19132
19116
|
};
|
|
@@ -19139,10 +19123,18 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
19139
19123
|
}
|
|
19140
19124
|
});
|
|
19141
19125
|
};
|
|
19126
|
+
const tableKey = ref("0");
|
|
19127
|
+
const toggleTableKey = () => {
|
|
19128
|
+
tableKey.value === "0" ? tableKey.value = "1" : tableKey.value = "0";
|
|
19129
|
+
};
|
|
19142
19130
|
const sortEnd = (oldData, newData, oldIndex, newIndex) => {
|
|
19143
19131
|
tableData.value = lodashExports.cloneDeep(newData);
|
|
19132
|
+
toggleTableKey();
|
|
19144
19133
|
emit("sortEnd", oldData, newData, oldIndex, newIndex);
|
|
19145
19134
|
};
|
|
19135
|
+
const setCacheTableData = () => {
|
|
19136
|
+
cacheTableData.value = lodashExports.cloneDeep(tableData.value);
|
|
19137
|
+
};
|
|
19146
19138
|
setCacheTableData();
|
|
19147
19139
|
__expose({
|
|
19148
19140
|
getResultData,
|
|
@@ -19158,586 +19150,47 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
19158
19150
|
clearValidate,
|
|
19159
19151
|
changeRules
|
|
19160
19152
|
});
|
|
19161
|
-
|
|
19162
|
-
return
|
|
19163
|
-
|
|
19164
|
-
|
|
19165
|
-
|
|
19166
|
-
|
|
19167
|
-
|
|
19168
|
-
|
|
19169
|
-
|
|
19170
|
-
|
|
19171
|
-
|
|
19172
|
-
|
|
19173
|
-
|
|
19174
|
-
|
|
19175
|
-
|
|
19176
|
-
|
|
19177
|
-
|
|
19178
|
-
|
|
19179
|
-
|
|
19180
|
-
|
|
19181
|
-
|
|
19182
|
-
|
|
19183
|
-
|
|
19184
|
-
|
|
19185
|
-
|
|
19186
|
-
|
|
19187
|
-
|
|
19188
|
-
|
|
19189
|
-
|
|
19190
|
-
|
|
19191
|
-
|
|
19192
|
-
|
|
19193
|
-
|
|
19194
|
-
|
|
19195
|
-
|
|
19196
|
-
|
|
19197
|
-
|
|
19198
|
-
|
|
19199
|
-
|
|
19200
|
-
|
|
19201
|
-
|
|
19202
|
-
default: withCtx(({ row, column, $index }) => [
|
|
19203
|
-
createElementVNode("div", _hoisted_1, [
|
|
19204
|
-
createCommentVNode(" \u8868\u5355\u5185\u5BB9 "),
|
|
19205
|
-
showFormItem(config, row, column, $index) ? (openBlock(), createElementBlock(
|
|
19206
|
-
Fragment,
|
|
19207
|
-
{ key: 0 },
|
|
19208
|
-
[
|
|
19209
|
-
createCommentVNode(" @slot-\u8868\u5355\u5217\u5DE6\u4FA7\u63D2\u69FD "),
|
|
19210
|
-
_ctx.$slots[`${config.prop}-left`] ? (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
19211
|
-
renderSlot(_ctx.$slots, `${config.prop}-left`, {
|
|
19212
|
-
config,
|
|
19213
|
-
row,
|
|
19214
|
-
column,
|
|
19215
|
-
$index
|
|
19216
|
-
})
|
|
19217
|
-
])) : createCommentVNode("v-if", true),
|
|
19218
|
-
createElementVNode("div", {
|
|
19219
|
-
class: "form-center",
|
|
19220
|
-
style: normalizeStyle(config?.inputWidth ? { width: config.inputWidth } : { flex: 1 }),
|
|
19221
|
-
tabindex: unref(isShow)(["text", "radio", "checkbox", "switch", "slot"], getMode(config, row, column, $index)) ? void 0 : "0",
|
|
19222
|
-
onFocus: (event) => formCenterFocus(row, column, $index, config, event)
|
|
19223
|
-
}, [
|
|
19224
|
-
createCommentVNode(" \u8F93\u5165\u6846 "),
|
|
19225
|
-
unref(isShow)(["input", "textarea", "password"], getMode(config, row, column, $index)) ? (openBlock(), createBlock(unref(DasInput), mergeProps({
|
|
19226
|
-
key: 0,
|
|
19227
|
-
ref_for: true,
|
|
19228
|
-
ref: (el) => {
|
|
19229
|
-
if (config?.getRef)
|
|
19230
|
-
config.getRef(el);
|
|
19231
|
-
}
|
|
19232
|
-
}, getItemAttrs(config.itemProps), {
|
|
19233
|
-
modelValue: row[config.prop],
|
|
19234
|
-
"onUpdate:modelValue": ($event) => row[config.prop] = $event,
|
|
19235
|
-
noSetDefaultVal: "",
|
|
19236
|
-
placeholder: getPlaceholder(config, row, column, $index),
|
|
19237
|
-
clearable: config.clearable,
|
|
19238
|
-
isView: calcView(config, row, column, $index),
|
|
19239
|
-
disabled: calcDisabled(config, row, column, $index),
|
|
19240
|
-
type: getMode(config, row, column, $index),
|
|
19241
|
-
"error-mode": errorMode.value,
|
|
19242
|
-
errorModelZIndex: unref(errorModelZIndex),
|
|
19243
|
-
error: unref(handleError)(row, $index, config).error,
|
|
19244
|
-
"error-label": unref(handleError)(row, $index, config).message,
|
|
19245
|
-
size: config?.itemProps?.size ?? "table",
|
|
19246
|
-
borderType: config?.borderType ?? "bordered",
|
|
19247
|
-
onInput: ($event) => handleInput(row, column, $index, config, $event),
|
|
19248
|
-
onChange: ($event) => handleChange(row, column, $index, config, $event),
|
|
19249
|
-
onBlur: ($event) => handleBlur(row, column, $index, config, $event),
|
|
19250
|
-
onFocus: ($event) => handleFocus(row, column, $index, config, $event),
|
|
19251
|
-
onKeyup: withKeys(($event) => handleKeyupEnter(row, column, $index, config, $event), ["enter"]),
|
|
19252
|
-
width: "100%"
|
|
19253
|
-
}), createSlots({
|
|
19254
|
-
_: 2
|
|
19255
|
-
/* DYNAMIC */
|
|
19256
|
-
}, [
|
|
19257
|
-
_ctx.$slots.suffix ? {
|
|
19258
|
-
name: "suffix",
|
|
19259
|
-
fn: withCtx(() => [
|
|
19260
|
-
renderSlot(_ctx.$slots, "suffix")
|
|
19261
|
-
]),
|
|
19262
|
-
key: "0"
|
|
19263
|
-
} : void 0,
|
|
19264
|
-
_ctx.$slots.prefix ? {
|
|
19265
|
-
name: "prefix",
|
|
19266
|
-
fn: withCtx(() => [
|
|
19267
|
-
renderSlot(_ctx.$slots, "prefix")
|
|
19268
|
-
]),
|
|
19269
|
-
key: "1"
|
|
19270
|
-
} : void 0,
|
|
19271
|
-
_ctx.$slots.prepend ? {
|
|
19272
|
-
name: "prepend",
|
|
19273
|
-
fn: withCtx(() => [
|
|
19274
|
-
renderSlot(_ctx.$slots, "prepend")
|
|
19275
|
-
]),
|
|
19276
|
-
key: "2"
|
|
19277
|
-
} : void 0,
|
|
19278
|
-
_ctx.$slots.append ? {
|
|
19279
|
-
name: "append",
|
|
19280
|
-
fn: withCtx(() => [
|
|
19281
|
-
renderSlot(_ctx.$slots, "append")
|
|
19282
|
-
]),
|
|
19283
|
-
key: "3"
|
|
19284
|
-
} : void 0
|
|
19285
|
-
]), 1040, ["modelValue", "onUpdate:modelValue", "placeholder", "clearable", "isView", "disabled", "type", "error-mode", "errorModelZIndex", "error", "error-label", "size", "borderType", "onInput", "onChange", "onBlur", "onFocus", "onKeyup"])) : createCommentVNode("v-if", true),
|
|
19286
|
-
createCommentVNode(" \u6B65\u8FDB\u5668 "),
|
|
19287
|
-
unref(isShow)(["inputNumber"], getMode(config, row, column, $index)) ? (openBlock(), createBlock(unref(DasInputNumber), mergeProps({
|
|
19288
|
-
key: 1,
|
|
19289
|
-
ref_for: true,
|
|
19290
|
-
ref: (el) => {
|
|
19291
|
-
if (config?.getRef)
|
|
19292
|
-
config.getRef(el);
|
|
19293
|
-
}
|
|
19294
|
-
}, getItemAttrs(config.itemProps), {
|
|
19295
|
-
modelValue: row[config.prop],
|
|
19296
|
-
"onUpdate:modelValue": ($event) => row[config.prop] = $event,
|
|
19297
|
-
noSetDefaultVal: "",
|
|
19298
|
-
"controls-position": "right",
|
|
19299
|
-
placeholder: getPlaceholder(config, row, column, $index),
|
|
19300
|
-
isView: calcView(config, row, column, $index),
|
|
19301
|
-
size: config?.itemProps?.size ?? "table",
|
|
19302
|
-
disabled: calcDisabled(config, row, column, $index),
|
|
19303
|
-
"error-mode": errorMode.value,
|
|
19304
|
-
errorModelZIndex: unref(errorModelZIndex),
|
|
19305
|
-
error: unref(handleError)(row, $index, config).error,
|
|
19306
|
-
"error-label": unref(handleError)(row, $index, config).message,
|
|
19307
|
-
onInput: ($event) => handleInput(row, column, $index, config, $event),
|
|
19308
|
-
onChange: ($event) => handleChange(row, column, $index, config, $event),
|
|
19309
|
-
onBlur: ($event) => handleBlur(row, column, $index, config, $event),
|
|
19310
|
-
onFocus: ($event) => handleFocus(row, column, $index, config, $event),
|
|
19311
|
-
onKeyup: withKeys(($event) => handleKeyupEnter(row, column, $index, config, $event), ["enter"]),
|
|
19312
|
-
width: "100%"
|
|
19313
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "isView", "size", "disabled", "error-mode", "errorModelZIndex", "error", "error-label", "onInput", "onChange", "onBlur", "onFocus", "onKeyup"])) : createCommentVNode("v-if", true),
|
|
19314
|
-
createCommentVNode(" \u5355\u9009\u6846 "),
|
|
19315
|
-
unref(isShow)(["radio"], getMode(config, row, column, $index)) ? (openBlock(), createBlock(unref(DasRadio), mergeProps({
|
|
19316
|
-
key: 2,
|
|
19317
|
-
ref_for: true,
|
|
19318
|
-
ref: (el) => {
|
|
19319
|
-
if (config?.getRef)
|
|
19320
|
-
config.getRef(el);
|
|
19321
|
-
}
|
|
19322
|
-
}, getItemAttrs(config.itemProps), {
|
|
19323
|
-
modelValue: row[config.prop],
|
|
19324
|
-
"onUpdate:modelValue": ($event) => row[config.prop] = $event,
|
|
19325
|
-
isView: calcView(config, row, column, $index),
|
|
19326
|
-
disabled: calcDisabled(config, row, column, $index),
|
|
19327
|
-
radioType: config?.itemProps?.radioType ?? "group",
|
|
19328
|
-
options: getOptions(config, row, column, $index),
|
|
19329
|
-
defaultProps: {
|
|
19330
|
-
value: config?.optionsValueKey ?? "id",
|
|
19331
|
-
label: config?.optionsLabelKey ?? "name"
|
|
19332
|
-
},
|
|
19333
|
-
onChange: ($event) => handleChange(row, column, $index, config, $event),
|
|
19334
|
-
width: "100%"
|
|
19335
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "isView", "disabled", "radioType", "options", "defaultProps", "onChange"])) : createCommentVNode("v-if", true),
|
|
19336
|
-
createCommentVNode(" \u591A\u9009\u6846 "),
|
|
19337
|
-
unref(isShow)(["checkbox"], getMode(config, row, column, $index)) ? (openBlock(), createBlock(unref(DasCheckbox), mergeProps({
|
|
19338
|
-
key: 3,
|
|
19339
|
-
ref_for: true,
|
|
19340
|
-
ref: (el) => {
|
|
19341
|
-
if (config?.getRef)
|
|
19342
|
-
config.getRef(el);
|
|
19343
|
-
}
|
|
19344
|
-
}, getItemAttrs(config.itemProps), {
|
|
19345
|
-
modelValue: row[config.prop],
|
|
19346
|
-
"onUpdate:modelValue": ($event) => row[config.prop] = $event,
|
|
19347
|
-
isView: calcView(config, row, column, $index),
|
|
19348
|
-
disabled: calcDisabled(config, row, column, $index),
|
|
19349
|
-
checkboxType: config?.itemProps?.checkboxType ?? "group",
|
|
19350
|
-
options: getOptions(config, row, column, $index),
|
|
19351
|
-
defaultProps: {
|
|
19352
|
-
value: config?.optionsValueKey ?? "id",
|
|
19353
|
-
label: config?.optionsLabelKey ?? "name"
|
|
19354
|
-
},
|
|
19355
|
-
onChange: ($event) => handleChange(row, column, $index, config, $event),
|
|
19356
|
-
width: "100%"
|
|
19357
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "isView", "disabled", "checkboxType", "options", "defaultProps", "onChange"])) : createCommentVNode("v-if", true),
|
|
19358
|
-
createCommentVNode(" \u5F00\u5173 "),
|
|
19359
|
-
unref(isShow)(["switch"], getMode(config, row, column, $index)) ? (openBlock(), createElementBlock("div", _hoisted_4, [
|
|
19360
|
-
createVNode(unref(DasSwitch), mergeProps({
|
|
19361
|
-
ref_for: true,
|
|
19362
|
-
ref: (el) => {
|
|
19363
|
-
if (config?.getRef)
|
|
19364
|
-
config.getRef(el);
|
|
19365
|
-
}
|
|
19366
|
-
}, getItemAttrs(config.itemProps), {
|
|
19367
|
-
modelValue: row[config.prop],
|
|
19368
|
-
"onUpdate:modelValue": ($event) => row[config.prop] = $event,
|
|
19369
|
-
disabled: calcView(config, row, column, $index) || calcDisabled(config, row, column, $index),
|
|
19370
|
-
onChange: ($event) => handleChange(row, column, $index, config, $event)
|
|
19371
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "disabled", "onChange"])
|
|
19372
|
-
])) : createCommentVNode("v-if", true),
|
|
19373
|
-
createCommentVNode(" \u4E0B\u62C9\u6846 "),
|
|
19374
|
-
unref(isShow)(["select"], getMode(config, row, column, $index)) ? (openBlock(), createBlock(unref(DasSelect), mergeProps({
|
|
19375
|
-
key: 5,
|
|
19376
|
-
ref_for: true,
|
|
19377
|
-
ref: (el) => {
|
|
19378
|
-
if (config?.getRef)
|
|
19379
|
-
config.getRef(el);
|
|
19380
|
-
}
|
|
19381
|
-
}, getItemAttrs(config.itemProps), {
|
|
19382
|
-
modelValue: row[config.prop],
|
|
19383
|
-
"onUpdate:modelValue": ($event) => row[config.prop] = $event,
|
|
19384
|
-
size: config?.itemProps?.size ?? "table",
|
|
19385
|
-
"show-search": config.itemProps?.showSearch ?? true,
|
|
19386
|
-
noSetDefaultVal: "",
|
|
19387
|
-
placeholder: getPlaceholder(config, row, column, $index),
|
|
19388
|
-
allowClear: config?.clearable,
|
|
19389
|
-
isView: calcView(config, row, column, $index),
|
|
19390
|
-
disabled: calcDisabled(config, row, column, $index),
|
|
19391
|
-
"error-mode": errorMode.value,
|
|
19392
|
-
errorModelZIndex: unref(errorModelZIndex),
|
|
19393
|
-
error: unref(handleError)(row, $index, config).error,
|
|
19394
|
-
"error-label": unref(handleError)(row, $index, config).message,
|
|
19395
|
-
borderType: config?.borderType ?? "bordered",
|
|
19396
|
-
options: getOptions(config, row, column, $index),
|
|
19397
|
-
maxTagCount: config.itemProps?.maxTagCount ?? 5,
|
|
19398
|
-
fieldNames: {
|
|
19399
|
-
value: config?.optionsValueKey ?? "id",
|
|
19400
|
-
label: config?.optionsLabelKey ?? "name"
|
|
19401
|
-
},
|
|
19402
|
-
onInput: ($event) => handleInput(row, column, $index, config, $event),
|
|
19403
|
-
onChange: (val, options) => handleChange(row, column, $index, config, val, options),
|
|
19404
|
-
onBlur: ($event) => handleBlur(row, column, $index, config, $event),
|
|
19405
|
-
onFocus: ($event) => handleFocus(row, column, $index, config, $event),
|
|
19406
|
-
onKeyup: withKeys(($event) => handleKeyupEnter(row, column, $index, config, $event), ["enter"]),
|
|
19407
|
-
width: "100%"
|
|
19408
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "size", "show-search", "placeholder", "allowClear", "isView", "disabled", "error-mode", "errorModelZIndex", "error", "error-label", "borderType", "options", "maxTagCount", "fieldNames", "onInput", "onChange", "onBlur", "onFocus", "onKeyup"])) : createCommentVNode("v-if", true),
|
|
19409
|
-
createCommentVNode(" \u4E0B\u62C9\u9009\u62E9\u6811--\u975E\u61D2\u52A0\u8F7D "),
|
|
19410
|
-
unref(isShow)(["treeSelect"], getMode(config, row, column, $index)) && !config?.load ? (openBlock(), createBlock(unref(DasTreeSelect), mergeProps({
|
|
19411
|
-
key: 6,
|
|
19412
|
-
ref_for: true,
|
|
19413
|
-
ref: (el) => {
|
|
19414
|
-
if (config?.getRef)
|
|
19415
|
-
config.getRef(el);
|
|
19416
|
-
}
|
|
19417
|
-
}, getItemAttrs(config.itemProps), {
|
|
19418
|
-
modelValue: row[config.prop],
|
|
19419
|
-
"onUpdate:modelValue": ($event) => row[config.prop] = $event,
|
|
19420
|
-
keyword: row[config.keywordProp],
|
|
19421
|
-
"onUpdate:keyword": ($event) => row[config.keywordProp] = $event,
|
|
19422
|
-
"select-attrs": {
|
|
19423
|
-
...config.itemProps?.selectAttrs ?? {},
|
|
19424
|
-
noSetDefaultVal: true,
|
|
19425
|
-
allowClear: config.clearable
|
|
19426
|
-
},
|
|
19427
|
-
placeholder: getPlaceholder(config, row, column, $index),
|
|
19428
|
-
isView: calcView(config, row, column, $index),
|
|
19429
|
-
disabled: calcDisabled(config, row, column, $index),
|
|
19430
|
-
"error-mode": errorMode.value,
|
|
19431
|
-
errorModelZIndex: unref(errorModelZIndex),
|
|
19432
|
-
error: unref(handleError)(row, $index, config).error,
|
|
19433
|
-
"error-label": unref(handleError)(row, $index, config).message,
|
|
19434
|
-
size: config?.itemProps?.size ?? "table",
|
|
19435
|
-
borderType: config?.borderType ?? "bordered",
|
|
19436
|
-
data: getOptions(config, row, column, $index),
|
|
19437
|
-
maxTagCount: config.itemProps?.maxTagCount ?? 5,
|
|
19438
|
-
props: {
|
|
19439
|
-
...config.itemProps?.props ?? {},
|
|
19440
|
-
value: config?.optionsValueKey ?? "id",
|
|
19441
|
-
label: config?.optionsLabelKey ?? "name"
|
|
19442
|
-
},
|
|
19443
|
-
onChange: (val, options) => handleChange(row, column, $index, config, val, options),
|
|
19444
|
-
onBlur: ($event) => handleBlur(row, column, $index, config, $event),
|
|
19445
|
-
onFocus: ($event) => handleFocus(row, column, $index, config, $event),
|
|
19446
|
-
onKeyup: withKeys(($event) => handleKeyupEnter(row, column, $index, config, $event), ["enter"]),
|
|
19447
|
-
width: "100%"
|
|
19448
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "keyword", "onUpdate:keyword", "select-attrs", "placeholder", "isView", "disabled", "error-mode", "errorModelZIndex", "error", "error-label", "size", "borderType", "data", "maxTagCount", "props", "onChange", "onBlur", "onFocus", "onKeyup"])) : createCommentVNode("v-if", true),
|
|
19449
|
-
createCommentVNode(" \u4E0B\u62C9\u9009\u62E9\u6811--\u61D2\u52A0\u8F7D "),
|
|
19450
|
-
unref(isShow)(["treeSelect"], getMode(config, row, column, $index)) && config?.load ? (openBlock(), createBlock(unref(DasTreeSelect), mergeProps({
|
|
19451
|
-
key: 7,
|
|
19452
|
-
ref_for: true,
|
|
19453
|
-
ref: (el) => {
|
|
19454
|
-
if (config?.getRef)
|
|
19455
|
-
config.getRef(el);
|
|
19456
|
-
},
|
|
19457
|
-
"render-dom": row.renderDom
|
|
19458
|
-
}, getItemAttrs(config.itemProps), {
|
|
19459
|
-
modelValue: row[config.prop],
|
|
19460
|
-
"onUpdate:modelValue": ($event) => row[config.prop] = $event,
|
|
19461
|
-
path: row[config.pathProp],
|
|
19462
|
-
"onUpdate:path": ($event) => row[config.pathProp] = $event,
|
|
19463
|
-
keyword: row[config.keywordProp],
|
|
19464
|
-
"onUpdate:keyword": ($event) => row[config.keywordProp] = $event,
|
|
19465
|
-
"select-attrs": {
|
|
19466
|
-
...config.itemProps?.selectAttrs ?? {},
|
|
19467
|
-
noSetDefaultVal: true,
|
|
19468
|
-
allowClear: config.clearable
|
|
19469
|
-
},
|
|
19470
|
-
placeholder: getPlaceholder(config, row, column, $index),
|
|
19471
|
-
isView: calcView(config, row, column, $index),
|
|
19472
|
-
disabled: calcDisabled(config, row, column, $index),
|
|
19473
|
-
"error-mode": errorMode.value,
|
|
19474
|
-
errorModelZIndex: unref(errorModelZIndex),
|
|
19475
|
-
error: unref(handleError)(row, $index, config).error,
|
|
19476
|
-
"error-label": unref(handleError)(row, $index, config).message,
|
|
19477
|
-
size: config?.itemProps?.size ?? "table",
|
|
19478
|
-
borderType: config?.borderType ?? "bordered",
|
|
19479
|
-
load: config?.load ? config.load : void 0,
|
|
19480
|
-
search: config?.search ? config.search : void 0,
|
|
19481
|
-
maxTagCount: config.itemProps?.maxTagCount ?? 5,
|
|
19482
|
-
props: {
|
|
19483
|
-
...config.itemProps?.props ?? {},
|
|
19484
|
-
value: config?.optionsValueKey ?? "id",
|
|
19485
|
-
label: config?.optionsLabelKey ?? "name"
|
|
19486
|
-
},
|
|
19487
|
-
onChange: (val, options) => lazyTreeSelectChange(row, column, $index, config, val, options),
|
|
19488
|
-
onBlur: ($event) => handleBlur(row, column, $index, config, $event),
|
|
19489
|
-
onFocus: ($event) => lazyTreeSelectFocus(row, column, $index, config, $event),
|
|
19490
|
-
onKeyup: withKeys(($event) => handleKeyupEnter(row, column, $index, config, $event), ["enter"]),
|
|
19491
|
-
width: "100%"
|
|
19492
|
-
}), null, 16, ["render-dom", "modelValue", "onUpdate:modelValue", "path", "onUpdate:path", "keyword", "onUpdate:keyword", "select-attrs", "placeholder", "isView", "disabled", "error-mode", "errorModelZIndex", "error", "error-label", "size", "borderType", "load", "search", "maxTagCount", "props", "onChange", "onBlur", "onFocus", "onKeyup"])) : createCommentVNode("v-if", true),
|
|
19493
|
-
createCommentVNode(" \u7EA7\u8054\u9009\u62E9\u5668 "),
|
|
19494
|
-
unref(isShow)(["cascader"], getMode(config, row, column, $index)) ? (openBlock(), createBlock(unref(DasCascader), mergeProps({
|
|
19495
|
-
key: 8,
|
|
19496
|
-
ref_for: true,
|
|
19497
|
-
ref: (el) => {
|
|
19498
|
-
if (config?.getRef)
|
|
19499
|
-
config.getRef(el);
|
|
19500
|
-
}
|
|
19501
|
-
}, getItemAttrs(config.itemProps), {
|
|
19502
|
-
modelValue: row[config.prop],
|
|
19503
|
-
"onUpdate:modelValue": ($event) => row[config.prop] = $event,
|
|
19504
|
-
size: config?.itemProps?.size ?? "table",
|
|
19505
|
-
placeholder: getPlaceholder(config, row, column, $index),
|
|
19506
|
-
isView: calcView(config, row, column, $index),
|
|
19507
|
-
clearable: config?.clearable ?? true,
|
|
19508
|
-
disabled: calcDisabled(config, row, column, $index),
|
|
19509
|
-
"error-mode": errorMode.value,
|
|
19510
|
-
errorModelZIndex: unref(errorModelZIndex),
|
|
19511
|
-
error: unref(handleError)(row, $index, config).error,
|
|
19512
|
-
"error-label": unref(handleError)(row, $index, config).message,
|
|
19513
|
-
noSetDefaultVal: "",
|
|
19514
|
-
height: config?.itemProps?.height ?? "30px",
|
|
19515
|
-
bordered: config?.borderType ? config.borderType === "bordered" ? true : false : true,
|
|
19516
|
-
options: getOptions(config, row, column, $index),
|
|
19517
|
-
props: {
|
|
19518
|
-
...config.itemProps?.props ?? {},
|
|
19519
|
-
value: config?.optionsValueKey ?? "id",
|
|
19520
|
-
label: config?.optionsLabelKey ?? "name"
|
|
19521
|
-
},
|
|
19522
|
-
onChange: ($event) => handleChange(row, column, $index, config, $event),
|
|
19523
|
-
onBlur: ($event) => handleBlur(row, column, $index, config, $event),
|
|
19524
|
-
onFocus: ($event) => handleFocus(row, column, $index, config, $event),
|
|
19525
|
-
onKeyup: withKeys(($event) => handleKeyupEnter(row, column, $index, config, $event), ["enter"]),
|
|
19526
|
-
width: "100%"
|
|
19527
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "size", "placeholder", "isView", "clearable", "disabled", "error-mode", "errorModelZIndex", "error", "error-label", "height", "bordered", "options", "props", "onChange", "onBlur", "onFocus", "onKeyup"])) : createCommentVNode("v-if", true),
|
|
19528
|
-
createCommentVNode(" \u989C\u8272\u9009\u62E9\u5668 "),
|
|
19529
|
-
unref(isShow)(["colorPicker"], getMode(config, row, column, $index)) ? (openBlock(), createBlock(unref(DasColorPicker), mergeProps({ key: 9 }, getItemAttrs(config.itemProps), {
|
|
19530
|
-
modelValue: row[config.prop],
|
|
19531
|
-
"onUpdate:modelValue": ($event) => row[config.prop] = $event,
|
|
19532
|
-
placeholder: getPlaceholder(config, row, column, $index),
|
|
19533
|
-
isView: calcView(config, row, column, $index),
|
|
19534
|
-
size: config?.itemProps?.size ?? "table",
|
|
19535
|
-
disabled: calcDisabled(config, row, column, $index),
|
|
19536
|
-
"error-mode": errorMode.value,
|
|
19537
|
-
errorModelZIndex: unref(errorModelZIndex),
|
|
19538
|
-
error: unref(handleError)(row, $index, config).error,
|
|
19539
|
-
"error-label": unref(handleError)(row, $index, config).message,
|
|
19540
|
-
options: config?.options,
|
|
19541
|
-
borderType: config?.borderType ?? "bordered",
|
|
19542
|
-
onChange: ($event) => handleChange(row, column, $index, config, $event),
|
|
19543
|
-
onBlur: ($event) => handleBlur(row, column, $index, config, $event),
|
|
19544
|
-
onFocus: ($event) => handleFocus(row, column, $index, config, $event),
|
|
19545
|
-
onKeyup: withKeys(($event) => handleKeyupEnter(row, column, $index, config, $event), ["enter"]),
|
|
19546
|
-
width: "100%"
|
|
19547
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "isView", "size", "disabled", "error-mode", "errorModelZIndex", "error", "error-label", "options", "borderType", "onChange", "onBlur", "onFocus", "onKeyup"])) : createCommentVNode("v-if", true),
|
|
19548
|
-
createCommentVNode(" \u65E5\u671F\u9009\u62E9\u5668 "),
|
|
19549
|
-
unref(isShow)(["date", "dateTime", "week", "month", "quarter", "year"], getMode(config, row, column, $index)) ? (openBlock(), createBlock(unref(DasDatePicker), mergeProps({ key: 10 }, getItemAttrs(config.itemProps), {
|
|
19550
|
-
modelValue: row[config.prop],
|
|
19551
|
-
"onUpdate:modelValue": ($event) => row[config.prop] = $event,
|
|
19552
|
-
noSetDefaultVal: "",
|
|
19553
|
-
size: config?.itemProps?.size ?? "table",
|
|
19554
|
-
placeholder: getPlaceholder(config, row, column, $index),
|
|
19555
|
-
isView: calcView(config, row, column, $index),
|
|
19556
|
-
"show-time": getMode(config, row, column, $index) === "dateTime",
|
|
19557
|
-
picker: getMode(config, row, column, $index) !== "dateTime" ? getMode(config, row, column, $index) : "date",
|
|
19558
|
-
disabled: calcDisabled(config, row, column, $index),
|
|
19559
|
-
"error-mode": errorMode.value,
|
|
19560
|
-
errorModelZIndex: unref(errorModelZIndex),
|
|
19561
|
-
error: unref(handleError)(row, $index, config).error,
|
|
19562
|
-
"error-label": unref(handleError)(row, $index, config).message,
|
|
19563
|
-
borderType: config?.borderType ?? "bordered",
|
|
19564
|
-
onChange: ($event) => handleChange(row, column, $index, config, $event),
|
|
19565
|
-
onBlur: ($event) => handleBlur(row, column, $index, config, $event),
|
|
19566
|
-
onFocus: ($event) => handleFocus(row, column, $index, config, $event),
|
|
19567
|
-
onKeyup: withKeys(($event) => handleKeyupEnter(row, column, $index, config, $event), ["enter"]),
|
|
19568
|
-
width: "100%"
|
|
19569
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "size", "placeholder", "isView", "show-time", "picker", "disabled", "error-mode", "errorModelZIndex", "error", "error-label", "borderType", "onChange", "onBlur", "onFocus", "onKeyup"])) : createCommentVNode("v-if", true),
|
|
19570
|
-
createCommentVNode(" \u65E5\u671F\u8303\u56F4\u9009\u62E9\u5668 "),
|
|
19571
|
-
unref(isShow)(
|
|
19572
|
-
["dateRange", "dateTimeRange", "weekRange", "monthRange", "yearRange"],
|
|
19573
|
-
getMode(config, row, column, $index)
|
|
19574
|
-
) ? (openBlock(), createBlock(unref(DasRangePicker), mergeProps({ key: 11 }, getItemAttrs(config.itemProps), {
|
|
19575
|
-
modelValue: row[config.prop],
|
|
19576
|
-
"onUpdate:modelValue": ($event) => row[config.prop] = $event,
|
|
19577
|
-
size: config?.itemProps?.size ?? "table",
|
|
19578
|
-
noSetDefaultVal: "",
|
|
19579
|
-
placeholder: getPlaceholder(config, row, column, $index),
|
|
19580
|
-
isView: calcView(config, row, column, $index),
|
|
19581
|
-
separator: calcView(config, row, column, $index) && (!row[config.prop] || !row[config.prop][0]) ? " " : "~",
|
|
19582
|
-
"show-time": getMode(config, row, column, $index) === "dateTimeRange",
|
|
19583
|
-
picker: getMode(config, row, column, $index) !== "dateTimeRange" ? getMode(config, row, column, $index).slice(0, -5) : "date",
|
|
19584
|
-
disabled: calcDisabled(config, row, column, $index),
|
|
19585
|
-
"error-mode": errorMode.value,
|
|
19586
|
-
errorModelZIndex: unref(errorModelZIndex),
|
|
19587
|
-
error: unref(handleError)(row, $index, config).error,
|
|
19588
|
-
"error-label": unref(handleError)(row, $index, config).message,
|
|
19589
|
-
borderType: config?.borderType ?? "bordered",
|
|
19590
|
-
onChange: ($event) => handleChange(row, column, $index, config, $event),
|
|
19591
|
-
onBlur: ($event) => handleBlur(row, column, $index, config, $event),
|
|
19592
|
-
onFocus: ($event) => handleFocus(row, column, $index, config, $event),
|
|
19593
|
-
onKeyup: withKeys(($event) => handleKeyupEnter(row, column, $index, config, $event), ["enter"]),
|
|
19594
|
-
width: "100%"
|
|
19595
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "size", "placeholder", "isView", "separator", "show-time", "picker", "disabled", "error-mode", "errorModelZIndex", "error", "error-label", "borderType", "onChange", "onBlur", "onFocus", "onKeyup"])) : createCommentVNode("v-if", true),
|
|
19596
|
-
createCommentVNode(" \u65F6\u95F4\u9009\u62E9\u5668 "),
|
|
19597
|
-
unref(isShow)(["time"], getMode(config, row, column, $index)) ? (openBlock(), createBlock(unref(DasTimePicker), mergeProps({ key: 12 }, getItemAttrs(config.itemProps), {
|
|
19598
|
-
modelValue: row[config.prop],
|
|
19599
|
-
"onUpdate:modelValue": ($event) => row[config.prop] = $event,
|
|
19600
|
-
size: config?.itemProps?.size ?? "table",
|
|
19601
|
-
noSetDefaultVal: "",
|
|
19602
|
-
placeholder: getPlaceholder(config, row, column, $index),
|
|
19603
|
-
isView: calcView(config, row, column, $index),
|
|
19604
|
-
disabled: calcDisabled(config, row, column, $index),
|
|
19605
|
-
"error-mode": errorMode.value,
|
|
19606
|
-
errorModelZIndex: unref(errorModelZIndex),
|
|
19607
|
-
error: unref(handleError)(row, $index, config).error,
|
|
19608
|
-
"error-label": unref(handleError)(row, $index, config).message,
|
|
19609
|
-
borderType: config?.borderType ?? "bordered",
|
|
19610
|
-
onChange: ($event) => handleChange(row, column, $index, config, $event),
|
|
19611
|
-
onBlur: ($event) => handleBlur(row, column, $index, config, $event),
|
|
19612
|
-
onFocus: ($event) => handleFocus(row, column, $index, config, $event),
|
|
19613
|
-
onKeyup: withKeys(($event) => handleKeyupEnter(row, column, $index, config, $event), ["enter"]),
|
|
19614
|
-
width: "100%"
|
|
19615
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "size", "placeholder", "isView", "disabled", "error-mode", "errorModelZIndex", "error", "error-label", "borderType", "onChange", "onBlur", "onFocus", "onKeyup"])) : createCommentVNode("v-if", true),
|
|
19616
|
-
createCommentVNode(" \u65F6\u95F4\u8303\u56F4\u9009\u62E9\u5668 "),
|
|
19617
|
-
unref(isShow)(["timeRange"], getMode(config, row, column, $index)) ? (openBlock(), createBlock(unref(DasTimeRangePicker), mergeProps({ key: 13 }, getItemAttrs(config.itemProps), {
|
|
19618
|
-
modelValue: row[config.prop],
|
|
19619
|
-
"onUpdate:modelValue": ($event) => row[config.prop] = $event,
|
|
19620
|
-
noSetDefaultVal: "",
|
|
19621
|
-
size: config?.itemProps?.size ?? "table",
|
|
19622
|
-
placeholder: getPlaceholder(config, row, column, $index),
|
|
19623
|
-
isView: calcView(config, row, column, $index),
|
|
19624
|
-
separator: calcView(config, row, column, $index) && (!row[config.prop] || !row[config.prop][0]) ? " " : "~",
|
|
19625
|
-
disabled: calcDisabled(config, row, column, $index),
|
|
19626
|
-
"error-mode": errorMode.value,
|
|
19627
|
-
errorModelZIndex: unref(errorModelZIndex),
|
|
19628
|
-
error: unref(handleError)(row, $index, config).error,
|
|
19629
|
-
"error-label": unref(handleError)(row, $index, config).message,
|
|
19630
|
-
borderType: config?.borderType ?? "bordered",
|
|
19631
|
-
onChange: ($event) => handleChange(row, column, $index, config, $event),
|
|
19632
|
-
onBlur: ($event) => handleBlur(row, column, $index, config, $event),
|
|
19633
|
-
onFocus: ($event) => handleFocus(row, column, $index, config, $event),
|
|
19634
|
-
onKeyup: withKeys(($event) => handleKeyupEnter(row, column, $index, config, $event), ["enter"]),
|
|
19635
|
-
width: "100%"
|
|
19636
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "size", "placeholder", "isView", "separator", "disabled", "error-mode", "errorModelZIndex", "error", "error-label", "borderType", "onChange", "onBlur", "onFocus", "onKeyup"])) : createCommentVNode("v-if", true),
|
|
19637
|
-
createCommentVNode(" \u5F39\u7A97\u9009\u62E9 "),
|
|
19638
|
-
unref(isShow)(["inputDialogSelect"], getMode(config, row, column, $index)) ? (openBlock(), createBlock(unref(DasInputDialogSelect), mergeProps({ key: 14 }, getItemAttrs(config.itemProps), {
|
|
19639
|
-
modelValue: row[config.prop],
|
|
19640
|
-
"onUpdate:modelValue": ($event) => row[config.prop] = $event,
|
|
19641
|
-
noSetDefaultVal: "",
|
|
19642
|
-
size: config?.itemProps?.size ?? "table",
|
|
19643
|
-
placeholder: getPlaceholder(config, row, column, $index),
|
|
19644
|
-
isView: calcView(config, row, column, $index),
|
|
19645
|
-
disabled: calcDisabled(config, row, column, $index),
|
|
19646
|
-
"error-mode": errorMode.value,
|
|
19647
|
-
errorModelZIndex: unref(errorModelZIndex),
|
|
19648
|
-
error: unref(handleError)(row, $index, config).error,
|
|
19649
|
-
"error-label": unref(handleError)(row, $index, config).message,
|
|
19650
|
-
"selected-options": getOptions(config, row, column, $index),
|
|
19651
|
-
borderType: config?.borderType ?? "bordered",
|
|
19652
|
-
onChange: ($event) => handleChange(row, column, $index, config, $event),
|
|
19653
|
-
onBlur: ($event) => handleBlur(row, column, $index, config, $event),
|
|
19654
|
-
onFocus: ($event) => handleFocus(row, column, $index, config, $event),
|
|
19655
|
-
onOpenDialog: ($event) => handleOpenDialog(row, column, $index, config),
|
|
19656
|
-
width: "100%"
|
|
19657
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "size", "placeholder", "isView", "disabled", "error-mode", "errorModelZIndex", "error", "error-label", "selected-options", "borderType", "onChange", "onBlur", "onFocus", "onOpenDialog"])) : createCommentVNode("v-if", true),
|
|
19658
|
-
createCommentVNode(" \u6587\u5B57\u7C7B\u578B "),
|
|
19659
|
-
unref(isShow)(["text"], getMode(config, row, column, $index)) ? withDirectives((openBlock(), createElementBlock("div", _hoisted_5, [
|
|
19660
|
-
createTextVNode(
|
|
19661
|
-
toDisplayString(row[config.prop]),
|
|
19662
|
-
1
|
|
19663
|
-
/* TEXT */
|
|
19664
|
-
)
|
|
19665
|
-
])), [
|
|
19666
|
-
[unref(vDasTooltip)]
|
|
19667
|
-
]) : createCommentVNode("v-if", true),
|
|
19668
|
-
createCommentVNode(" @slot-\u81EA\u5B9A\u4E49column\u63D2\u69FD "),
|
|
19669
|
-
unref(isShow)(["slot"], getMode(config, row, column, $index)) ? renderSlot(_ctx.$slots, config.slot, {
|
|
19670
|
-
key: 16,
|
|
19671
|
-
config,
|
|
19672
|
-
row,
|
|
19673
|
-
column,
|
|
19674
|
-
$index
|
|
19675
|
-
}) : createCommentVNode("v-if", true)
|
|
19676
|
-
], 44, _hoisted_3),
|
|
19677
|
-
createCommentVNode(" @slot-\u8868\u5355\u5217\u53F3\u4FA7\u63D2\u69FD "),
|
|
19678
|
-
_ctx.$slots[`${config.prop}-right`] ? (openBlock(), createElementBlock("div", _hoisted_6, [
|
|
19679
|
-
renderSlot(_ctx.$slots, `${config.prop}-right`, {
|
|
19680
|
-
config,
|
|
19681
|
-
row,
|
|
19682
|
-
column,
|
|
19683
|
-
$index
|
|
19684
|
-
})
|
|
19685
|
-
])) : createCommentVNode("v-if", true)
|
|
19686
|
-
],
|
|
19687
|
-
64
|
|
19688
|
-
/* STABLE_FRAGMENT */
|
|
19689
|
-
)) : (openBlock(), createElementBlock(
|
|
19690
|
-
Fragment,
|
|
19691
|
-
{ key: 1 },
|
|
19692
|
-
[
|
|
19693
|
-
createCommentVNode(" \u67E5\u770B\u6A21\u5F0F===\u5360\u4F4D\u7B26 "),
|
|
19694
|
-
_hoisted_7
|
|
19695
|
-
],
|
|
19696
|
-
2112
|
|
19697
|
-
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
19698
|
-
))
|
|
19699
|
-
])
|
|
19700
|
-
]),
|
|
19701
|
-
_: 2
|
|
19702
|
-
/* DYNAMIC */
|
|
19703
|
-
}, [
|
|
19704
|
-
config?.headerSlot ? {
|
|
19705
|
-
name: "header",
|
|
19706
|
-
fn: withCtx(({ column, $index }) => [
|
|
19707
|
-
renderSlot(_ctx.$slots, config.headerSlot, {
|
|
19708
|
-
column,
|
|
19709
|
-
$index
|
|
19710
|
-
})
|
|
19711
|
-
]),
|
|
19712
|
-
key: "0"
|
|
19713
|
-
} : void 0
|
|
19714
|
-
]), 1040, ["required"]);
|
|
19715
|
-
}),
|
|
19716
|
-
128
|
|
19717
|
-
/* KEYED_FRAGMENT */
|
|
19718
|
-
)),
|
|
19719
|
-
_ctx.$slots.tableRight ? renderSlot(_ctx.$slots, "tableRight", { key: 2 }) : createCommentVNode("v-if", true)
|
|
19720
|
-
]),
|
|
19721
|
-
_: 2
|
|
19722
|
-
/* DYNAMIC */
|
|
19723
|
-
}, [
|
|
19724
|
-
_ctx.$slots["pagination-left"] ? {
|
|
19725
|
-
name: "pagination-left",
|
|
19726
|
-
fn: withCtx(() => [
|
|
19727
|
-
createCommentVNode(" @slot-\u5206\u9875\u8868\u683C\u5934\u90E8\u5DE6\u4FA7\u63D2\u69FD "),
|
|
19728
|
-
renderSlot(_ctx.$slots, "pagination-left")
|
|
19729
|
-
]),
|
|
19730
|
-
key: "0"
|
|
19731
|
-
} : void 0,
|
|
19732
|
-
_ctx.$slots.empty ? {
|
|
19733
|
-
name: "empty",
|
|
19734
|
-
fn: withCtx(() => [
|
|
19735
|
-
renderSlot(_ctx.$slots, "empty")
|
|
19736
|
-
]),
|
|
19737
|
-
key: "1"
|
|
19738
|
-
} : void 0
|
|
19739
|
-
]), 1040, ["outer-border", "row-key", "data", "selection-rows"]);
|
|
19740
|
-
};
|
|
19153
|
+
const __returned__ = { props, emit, errorMode, tableRef, tableConfig, tableData, cacheTableData, attrs, outerBorder, tableCellClassName, tableColumnClassName, innerSelectionRows, getMode, getPlaceholder, getItemAttrs, getAutocompleteItemAttrs, propsConfig, calcNotSetDefaultVal, calcView, calcDisabled, getOptions, showFormItem, errorFieldList, errorModelZIndex, setRules, setValidator, validateSingleField, handleError, removeErrorByRowKey, deactivateAll, validateAll, clearValidate, changeRules, validateByRowKey, removeCellError, init, handleInput, handleChange, lazyTreeSelectChange, handleBlur, formCenterFocus, handleFocus, handleLazyTreeSelectFocus, handleAutocompleteFocus, handleKeyupEnter, handleOpenDialog, handleNodeClick, rowClick, cellMouseEnter, cellMouseLeave, getResultData, insert, removeRowByKey, recover, changeRowValueByKey, recoverByKey, tableKey, toggleTableKey, sortEnd, setCacheTableData, get DasTable() {
|
|
19154
|
+
return DasTable;
|
|
19155
|
+
}, get DasTableColumn() {
|
|
19156
|
+
return DasTableColumn;
|
|
19157
|
+
}, get DasInput() {
|
|
19158
|
+
return DasInput;
|
|
19159
|
+
}, get DasInputNumber() {
|
|
19160
|
+
return DasInputNumber;
|
|
19161
|
+
}, get DasRadio() {
|
|
19162
|
+
return DasRadio;
|
|
19163
|
+
}, get DasCheckbox() {
|
|
19164
|
+
return DasCheckbox;
|
|
19165
|
+
}, get DasSwitch() {
|
|
19166
|
+
return DasSwitch;
|
|
19167
|
+
}, get DasSelect() {
|
|
19168
|
+
return DasSelect;
|
|
19169
|
+
}, get DasTreeSelect() {
|
|
19170
|
+
return DasTreeSelect;
|
|
19171
|
+
}, get DasCascader() {
|
|
19172
|
+
return DasCascader;
|
|
19173
|
+
}, get DasColorPicker() {
|
|
19174
|
+
return DasColorPicker;
|
|
19175
|
+
}, get DasInputDialogSelect() {
|
|
19176
|
+
return DasInputDialogSelect;
|
|
19177
|
+
}, get DasDatePicker() {
|
|
19178
|
+
return DasDatePicker;
|
|
19179
|
+
}, get DasRangePicker() {
|
|
19180
|
+
return DasRangePicker;
|
|
19181
|
+
}, get DasTimePicker() {
|
|
19182
|
+
return DasTimePicker;
|
|
19183
|
+
}, get DasTimeRangePicker() {
|
|
19184
|
+
return DasTimeRangePicker;
|
|
19185
|
+
}, get DasAutocomplete() {
|
|
19186
|
+
return DasAutocomplete;
|
|
19187
|
+
}, get vDasTooltip() {
|
|
19188
|
+
return vDasTooltip;
|
|
19189
|
+
}, get isShow() {
|
|
19190
|
+
return isShow;
|
|
19191
|
+
} };
|
|
19192
|
+
Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
|
|
19193
|
+
return __returned__;
|
|
19741
19194
|
}
|
|
19742
19195
|
});
|
|
19743
19196
|
|
|
@@ -19749,7 +19202,670 @@ var _export_sfc = (sfc, props) => {
|
|
|
19749
19202
|
return target;
|
|
19750
19203
|
};
|
|
19751
19204
|
|
|
19752
|
-
|
|
19205
|
+
const _hoisted_1 = { class: "form-content" };
|
|
19206
|
+
const _hoisted_2 = {
|
|
19207
|
+
key: 0,
|
|
19208
|
+
class: "form-left"
|
|
19209
|
+
};
|
|
19210
|
+
const _hoisted_3 = ["tabindex", "onFocus"];
|
|
19211
|
+
const _hoisted_4 = {
|
|
19212
|
+
key: 4,
|
|
19213
|
+
class: "center-box_y"
|
|
19214
|
+
};
|
|
19215
|
+
const _hoisted_5 = {
|
|
19216
|
+
key: 16,
|
|
19217
|
+
class: "edit-table_text"
|
|
19218
|
+
};
|
|
19219
|
+
const _hoisted_6 = {
|
|
19220
|
+
key: 1,
|
|
19221
|
+
class: "form-right"
|
|
19222
|
+
};
|
|
19223
|
+
const _hoisted_7 = /* @__PURE__ */ createElementVNode(
|
|
19224
|
+
"div",
|
|
19225
|
+
{ class: "placeholder" },
|
|
19226
|
+
"-",
|
|
19227
|
+
-1
|
|
19228
|
+
/* HOISTED */
|
|
19229
|
+
);
|
|
19230
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
19231
|
+
return openBlock(), createBlock($setup["DasTable"], mergeProps({
|
|
19232
|
+
ref: "tableRef",
|
|
19233
|
+
key: $setup.tableKey,
|
|
19234
|
+
class: "das-ui-edit-table",
|
|
19235
|
+
"outer-border": $setup.outerBorder
|
|
19236
|
+
}, _ctx.$attrs, {
|
|
19237
|
+
"row-key": $props.rowKey,
|
|
19238
|
+
"highlight-key": "$uuidKey",
|
|
19239
|
+
data: $setup.tableData,
|
|
19240
|
+
"cell-class-name": $setup.tableCellClassName,
|
|
19241
|
+
"selection-rows": $setup.innerSelectionRows,
|
|
19242
|
+
"onUpdate:selectionRows": _cache[0] || (_cache[0] = ($event) => $setup.innerSelectionRows = $event),
|
|
19243
|
+
onRowClick: $setup.rowClick,
|
|
19244
|
+
onCellMouseEnter: $setup.cellMouseEnter,
|
|
19245
|
+
onCellMouseLeave: $setup.cellMouseLeave,
|
|
19246
|
+
onSortEnd: $setup.sortEnd
|
|
19247
|
+
}), createSlots({
|
|
19248
|
+
default: withCtx(() => [
|
|
19249
|
+
_ctx.$slots.tableLeft ? renderSlot(_ctx.$slots, "tableLeft", { key: 0 }) : createCommentVNode("v-if", true),
|
|
19250
|
+
_ctx.$slots.expandContent ? (openBlock(), createBlock($setup["DasTableColumn"], {
|
|
19251
|
+
key: 1,
|
|
19252
|
+
type: "expand",
|
|
19253
|
+
showOverflowTooltip: false
|
|
19254
|
+
}, {
|
|
19255
|
+
default: withCtx(({ row, column, $index }) => [
|
|
19256
|
+
renderSlot(_ctx.$slots, "expandContent", {
|
|
19257
|
+
row,
|
|
19258
|
+
column,
|
|
19259
|
+
$index
|
|
19260
|
+
})
|
|
19261
|
+
]),
|
|
19262
|
+
_: 3
|
|
19263
|
+
/* FORWARDED */
|
|
19264
|
+
})) : createCommentVNode("v-if", true),
|
|
19265
|
+
(openBlock(true), createElementBlock(
|
|
19266
|
+
Fragment,
|
|
19267
|
+
null,
|
|
19268
|
+
renderList($setup.tableConfig, (config, idx) => {
|
|
19269
|
+
return openBlock(), createBlock($setup["DasTableColumn"], mergeProps({
|
|
19270
|
+
key: config?.prop ? config.prop + idx : idx,
|
|
19271
|
+
required: config.required,
|
|
19272
|
+
showOverflowTooltip: false,
|
|
19273
|
+
"class-name": $setup.tableColumnClassName(config),
|
|
19274
|
+
ref_for: true
|
|
19275
|
+
}, config), createSlots({
|
|
19276
|
+
default: withCtx(({ row, column, $index }) => [
|
|
19277
|
+
createElementVNode("div", _hoisted_1, [
|
|
19278
|
+
createCommentVNode(" \u8868\u5355\u5185\u5BB9 "),
|
|
19279
|
+
$setup.showFormItem(config, row, column, $index) ? (openBlock(), createElementBlock(
|
|
19280
|
+
Fragment,
|
|
19281
|
+
{ key: 0 },
|
|
19282
|
+
[
|
|
19283
|
+
createCommentVNode(" @slot-\u8868\u5355\u5217\u5DE6\u4FA7\u63D2\u69FD "),
|
|
19284
|
+
_ctx.$slots[`${config.prop}-left`] ? (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
19285
|
+
renderSlot(_ctx.$slots, `${config.prop}-left`, {
|
|
19286
|
+
config,
|
|
19287
|
+
row,
|
|
19288
|
+
column,
|
|
19289
|
+
$index
|
|
19290
|
+
})
|
|
19291
|
+
])) : createCommentVNode("v-if", true),
|
|
19292
|
+
createElementVNode("div", {
|
|
19293
|
+
class: "form-center",
|
|
19294
|
+
style: normalizeStyle(config?.inputWidth ? { width: config.inputWidth } : { flex: 1 }),
|
|
19295
|
+
tabindex: $setup.isShow(["text", "radio", "checkbox", "switch", "slot"], $setup.getMode(config, row, column, $index)) ? void 0 : "0",
|
|
19296
|
+
onFocus: (event) => $setup.formCenterFocus(row, column, $index, config, event)
|
|
19297
|
+
}, [
|
|
19298
|
+
createCommentVNode(" \u8F93\u5165\u6846 "),
|
|
19299
|
+
$setup.isShow(["input", "textarea", "password"], $setup.getMode(config, row, column, $index)) ? (openBlock(), createBlock($setup["DasInput"], mergeProps({
|
|
19300
|
+
key: 0,
|
|
19301
|
+
ref_for: true,
|
|
19302
|
+
ref: (el) => {
|
|
19303
|
+
if (config?.getRef)
|
|
19304
|
+
config.getRef(el);
|
|
19305
|
+
}
|
|
19306
|
+
}, $setup.getItemAttrs(config.itemProps), {
|
|
19307
|
+
modelValue: row[config.prop],
|
|
19308
|
+
"onUpdate:modelValue": ($event) => row[config.prop] = $event,
|
|
19309
|
+
noSetDefaultVal: $setup.calcNotSetDefaultVal(config, row, column, $index),
|
|
19310
|
+
placeholder: $setup.getPlaceholder(config, row, column, $index),
|
|
19311
|
+
clearable: config.clearable,
|
|
19312
|
+
isView: $setup.calcView(config, row, column, $index),
|
|
19313
|
+
disabled: $setup.calcDisabled(config, row, column, $index),
|
|
19314
|
+
type: $setup.getMode(config, row, column, $index),
|
|
19315
|
+
"error-mode": $setup.errorMode,
|
|
19316
|
+
errorModelZIndex: $setup.errorModelZIndex,
|
|
19317
|
+
error: $setup.handleError(row, $index, config).error,
|
|
19318
|
+
"error-label": $setup.handleError(row, $index, config).message,
|
|
19319
|
+
size: config?.itemProps?.size ?? "table",
|
|
19320
|
+
borderType: config?.borderType ?? "bordered",
|
|
19321
|
+
onInput: ($event) => $setup.handleInput(row, column, $index, config, $event),
|
|
19322
|
+
onChange: ($event) => $setup.handleChange(row, column, $index, config, $event),
|
|
19323
|
+
onBlur: ($event) => $setup.handleBlur(row, column, $index, config, $event),
|
|
19324
|
+
onFocus: ($event) => $setup.handleFocus(row, column, $index, config, $event),
|
|
19325
|
+
onKeyup: withKeys(($event) => $setup.handleKeyupEnter(row, column, $index, config, $event), ["enter"]),
|
|
19326
|
+
width: "100%"
|
|
19327
|
+
}), createSlots({
|
|
19328
|
+
_: 2
|
|
19329
|
+
/* DYNAMIC */
|
|
19330
|
+
}, [
|
|
19331
|
+
_ctx.$slots.suffix ? {
|
|
19332
|
+
name: "suffix",
|
|
19333
|
+
fn: withCtx(() => [
|
|
19334
|
+
renderSlot(_ctx.$slots, "suffix")
|
|
19335
|
+
]),
|
|
19336
|
+
key: "0"
|
|
19337
|
+
} : void 0,
|
|
19338
|
+
_ctx.$slots.prefix ? {
|
|
19339
|
+
name: "prefix",
|
|
19340
|
+
fn: withCtx(() => [
|
|
19341
|
+
renderSlot(_ctx.$slots, "prefix")
|
|
19342
|
+
]),
|
|
19343
|
+
key: "1"
|
|
19344
|
+
} : void 0,
|
|
19345
|
+
_ctx.$slots.prepend ? {
|
|
19346
|
+
name: "prepend",
|
|
19347
|
+
fn: withCtx(() => [
|
|
19348
|
+
renderSlot(_ctx.$slots, "prepend")
|
|
19349
|
+
]),
|
|
19350
|
+
key: "2"
|
|
19351
|
+
} : void 0,
|
|
19352
|
+
_ctx.$slots.append ? {
|
|
19353
|
+
name: "append",
|
|
19354
|
+
fn: withCtx(() => [
|
|
19355
|
+
renderSlot(_ctx.$slots, "append")
|
|
19356
|
+
]),
|
|
19357
|
+
key: "3"
|
|
19358
|
+
} : void 0
|
|
19359
|
+
]), 1040, ["modelValue", "onUpdate:modelValue", "noSetDefaultVal", "placeholder", "clearable", "isView", "disabled", "type", "error-mode", "errorModelZIndex", "error", "error-label", "size", "borderType", "onInput", "onChange", "onBlur", "onFocus", "onKeyup"])) : createCommentVNode("v-if", true),
|
|
19360
|
+
createCommentVNode(" \u6B65\u8FDB\u5668 "),
|
|
19361
|
+
$setup.isShow(["inputNumber"], $setup.getMode(config, row, column, $index)) ? (openBlock(), createBlock($setup["DasInputNumber"], mergeProps({
|
|
19362
|
+
key: 1,
|
|
19363
|
+
ref_for: true,
|
|
19364
|
+
ref: (el) => {
|
|
19365
|
+
if (config?.getRef)
|
|
19366
|
+
config.getRef(el);
|
|
19367
|
+
}
|
|
19368
|
+
}, $setup.getItemAttrs(config.itemProps), {
|
|
19369
|
+
modelValue: row[config.prop],
|
|
19370
|
+
"onUpdate:modelValue": ($event) => row[config.prop] = $event,
|
|
19371
|
+
noSetDefaultVal: $setup.calcNotSetDefaultVal(config, row, column, $index),
|
|
19372
|
+
"controls-position": "right",
|
|
19373
|
+
placeholder: $setup.getPlaceholder(config, row, column, $index),
|
|
19374
|
+
isView: $setup.calcView(config, row, column, $index),
|
|
19375
|
+
size: config?.itemProps?.size ?? "table",
|
|
19376
|
+
disabled: $setup.calcDisabled(config, row, column, $index),
|
|
19377
|
+
"error-mode": $setup.errorMode,
|
|
19378
|
+
errorModelZIndex: $setup.errorModelZIndex,
|
|
19379
|
+
error: $setup.handleError(row, $index, config).error,
|
|
19380
|
+
"error-label": $setup.handleError(row, $index, config).message,
|
|
19381
|
+
onInput: ($event) => $setup.handleInput(row, column, $index, config, $event),
|
|
19382
|
+
onChange: ($event) => $setup.handleChange(row, column, $index, config, $event),
|
|
19383
|
+
onBlur: ($event) => $setup.handleBlur(row, column, $index, config, $event),
|
|
19384
|
+
onFocus: ($event) => $setup.handleFocus(row, column, $index, config, $event),
|
|
19385
|
+
onKeyup: withKeys(($event) => $setup.handleKeyupEnter(row, column, $index, config, $event), ["enter"]),
|
|
19386
|
+
width: "100%"
|
|
19387
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "noSetDefaultVal", "placeholder", "isView", "size", "disabled", "error-mode", "errorModelZIndex", "error", "error-label", "onInput", "onChange", "onBlur", "onFocus", "onKeyup"])) : createCommentVNode("v-if", true),
|
|
19388
|
+
createCommentVNode(" \u5355\u9009\u6846 "),
|
|
19389
|
+
$setup.isShow(["radio"], $setup.getMode(config, row, column, $index)) ? (openBlock(), createBlock($setup["DasRadio"], mergeProps({
|
|
19390
|
+
key: 2,
|
|
19391
|
+
ref_for: true,
|
|
19392
|
+
ref: (el) => {
|
|
19393
|
+
if (config?.getRef)
|
|
19394
|
+
config.getRef(el);
|
|
19395
|
+
}
|
|
19396
|
+
}, $setup.getItemAttrs(config.itemProps), {
|
|
19397
|
+
modelValue: row[config.prop],
|
|
19398
|
+
"onUpdate:modelValue": ($event) => row[config.prop] = $event,
|
|
19399
|
+
noSetDefaultVal: $setup.calcNotSetDefaultVal(config, row, column, $index),
|
|
19400
|
+
isView: $setup.calcView(config, row, column, $index),
|
|
19401
|
+
disabled: $setup.calcDisabled(config, row, column, $index),
|
|
19402
|
+
radioType: config?.itemProps?.radioType ?? "group",
|
|
19403
|
+
options: $setup.getOptions(config, row, column, $index),
|
|
19404
|
+
defaultProps: {
|
|
19405
|
+
value: config?.optionsValueKey ?? "id",
|
|
19406
|
+
label: config?.optionsLabelKey ?? "name"
|
|
19407
|
+
},
|
|
19408
|
+
onChange: ($event) => $setup.handleChange(row, column, $index, config, $event),
|
|
19409
|
+
width: "100%"
|
|
19410
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "noSetDefaultVal", "isView", "disabled", "radioType", "options", "defaultProps", "onChange"])) : createCommentVNode("v-if", true),
|
|
19411
|
+
createCommentVNode(" \u591A\u9009\u6846 "),
|
|
19412
|
+
$setup.isShow(["checkbox"], $setup.getMode(config, row, column, $index)) ? (openBlock(), createBlock($setup["DasCheckbox"], mergeProps({
|
|
19413
|
+
key: 3,
|
|
19414
|
+
ref_for: true,
|
|
19415
|
+
ref: (el) => {
|
|
19416
|
+
if (config?.getRef)
|
|
19417
|
+
config.getRef(el);
|
|
19418
|
+
}
|
|
19419
|
+
}, $setup.getItemAttrs(config.itemProps), {
|
|
19420
|
+
modelValue: row[config.prop],
|
|
19421
|
+
"onUpdate:modelValue": ($event) => row[config.prop] = $event,
|
|
19422
|
+
noSetDefaultVal: $setup.calcNotSetDefaultVal(config, row, column, $index),
|
|
19423
|
+
isView: $setup.calcView(config, row, column, $index),
|
|
19424
|
+
disabled: $setup.calcDisabled(config, row, column, $index),
|
|
19425
|
+
checkboxType: config?.itemProps?.checkboxType ?? "group",
|
|
19426
|
+
options: $setup.getOptions(config, row, column, $index),
|
|
19427
|
+
defaultProps: {
|
|
19428
|
+
value: config?.optionsValueKey ?? "id",
|
|
19429
|
+
label: config?.optionsLabelKey ?? "name"
|
|
19430
|
+
},
|
|
19431
|
+
onChange: ($event) => $setup.handleChange(row, column, $index, config, $event),
|
|
19432
|
+
width: "100%"
|
|
19433
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "noSetDefaultVal", "isView", "disabled", "checkboxType", "options", "defaultProps", "onChange"])) : createCommentVNode("v-if", true),
|
|
19434
|
+
createCommentVNode(" \u5F00\u5173 "),
|
|
19435
|
+
$setup.isShow(["switch"], $setup.getMode(config, row, column, $index)) ? (openBlock(), createElementBlock("div", _hoisted_4, [
|
|
19436
|
+
createVNode($setup["DasSwitch"], mergeProps({
|
|
19437
|
+
ref_for: true,
|
|
19438
|
+
ref: (el) => {
|
|
19439
|
+
if (config?.getRef)
|
|
19440
|
+
config.getRef(el);
|
|
19441
|
+
}
|
|
19442
|
+
}, $setup.getItemAttrs(config.itemProps), {
|
|
19443
|
+
modelValue: row[config.prop],
|
|
19444
|
+
"onUpdate:modelValue": ($event) => row[config.prop] = $event,
|
|
19445
|
+
disabled: $setup.calcView(config, row, column, $index) || $setup.calcDisabled(config, row, column, $index),
|
|
19446
|
+
onChange: ($event) => $setup.handleChange(row, column, $index, config, $event)
|
|
19447
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "disabled", "onChange"])
|
|
19448
|
+
])) : createCommentVNode("v-if", true),
|
|
19449
|
+
createCommentVNode(" \u4E0B\u62C9\u6846 "),
|
|
19450
|
+
$setup.isShow(["select"], $setup.getMode(config, row, column, $index)) ? (openBlock(), createBlock($setup["DasSelect"], mergeProps({
|
|
19451
|
+
key: 5,
|
|
19452
|
+
ref_for: true,
|
|
19453
|
+
ref: (el) => {
|
|
19454
|
+
if (config?.getRef)
|
|
19455
|
+
config.getRef(el);
|
|
19456
|
+
}
|
|
19457
|
+
}, $setup.getItemAttrs(config.itemProps), {
|
|
19458
|
+
modelValue: row[config.prop],
|
|
19459
|
+
"onUpdate:modelValue": ($event) => row[config.prop] = $event,
|
|
19460
|
+
size: config?.itemProps?.size ?? "table",
|
|
19461
|
+
"show-search": config.itemProps?.showSearch ?? true,
|
|
19462
|
+
noSetDefaultVal: $setup.calcNotSetDefaultVal(config, row, column, $index),
|
|
19463
|
+
placeholder: $setup.getPlaceholder(config, row, column, $index),
|
|
19464
|
+
allowClear: config?.clearable,
|
|
19465
|
+
isView: $setup.calcView(config, row, column, $index),
|
|
19466
|
+
disabled: $setup.calcDisabled(config, row, column, $index),
|
|
19467
|
+
"error-mode": $setup.errorMode,
|
|
19468
|
+
errorModelZIndex: $setup.errorModelZIndex,
|
|
19469
|
+
error: $setup.handleError(row, $index, config).error,
|
|
19470
|
+
"error-label": $setup.handleError(row, $index, config).message,
|
|
19471
|
+
borderType: config?.borderType ?? "bordered",
|
|
19472
|
+
options: $setup.getOptions(config, row, column, $index),
|
|
19473
|
+
fieldNames: {
|
|
19474
|
+
value: config?.optionsValueKey ?? "id",
|
|
19475
|
+
label: config?.optionsLabelKey ?? "name"
|
|
19476
|
+
},
|
|
19477
|
+
"focus-open": false,
|
|
19478
|
+
onInput: ($event) => $setup.handleInput(row, column, $index, config, $event),
|
|
19479
|
+
onChange: (val, options) => $setup.handleChange(row, column, $index, config, val, options),
|
|
19480
|
+
onBlur: ($event) => $setup.handleBlur(row, column, $index, config, $event),
|
|
19481
|
+
onFocus: ($event) => $setup.handleFocus(row, column, $index, config, $event),
|
|
19482
|
+
onKeyup: withKeys(($event) => $setup.handleKeyupEnter(row, column, $index, config, $event), ["enter"]),
|
|
19483
|
+
width: "100%"
|
|
19484
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "size", "show-search", "noSetDefaultVal", "placeholder", "allowClear", "isView", "disabled", "error-mode", "errorModelZIndex", "error", "error-label", "borderType", "options", "fieldNames", "onInput", "onChange", "onBlur", "onFocus", "onKeyup"])) : createCommentVNode("v-if", true),
|
|
19485
|
+
createCommentVNode(" \u4E0B\u62C9\u9009\u62E9\u6811--\u975E\u61D2\u52A0\u8F7D "),
|
|
19486
|
+
$setup.isShow(["treeSelect"], $setup.getMode(config, row, column, $index)) && !config?.load ? (openBlock(), createBlock($setup["DasTreeSelect"], mergeProps({
|
|
19487
|
+
key: 6,
|
|
19488
|
+
ref_for: true,
|
|
19489
|
+
ref: (el) => {
|
|
19490
|
+
if (config?.getRef)
|
|
19491
|
+
config.getRef(el);
|
|
19492
|
+
}
|
|
19493
|
+
}, $setup.getItemAttrs(config.itemProps), {
|
|
19494
|
+
modelValue: row[config.prop],
|
|
19495
|
+
"onUpdate:modelValue": ($event) => row[config.prop] = $event,
|
|
19496
|
+
keyword: row[config.keywordProp],
|
|
19497
|
+
"onUpdate:keyword": ($event) => row[config.keywordProp] = $event,
|
|
19498
|
+
"select-attrs": {
|
|
19499
|
+
...config.itemProps?.selectAttrs ?? {},
|
|
19500
|
+
noSetDefaultVal: $setup.calcNotSetDefaultVal(config, row, column, $index),
|
|
19501
|
+
allowClear: config.clearable,
|
|
19502
|
+
focusOpen: false
|
|
19503
|
+
},
|
|
19504
|
+
placeholder: $setup.getPlaceholder(config, row, column, $index),
|
|
19505
|
+
isView: $setup.calcView(config, row, column, $index),
|
|
19506
|
+
disabled: $setup.calcDisabled(config, row, column, $index),
|
|
19507
|
+
"error-mode": $setup.errorMode,
|
|
19508
|
+
errorModelZIndex: $setup.errorModelZIndex,
|
|
19509
|
+
error: $setup.handleError(row, $index, config).error,
|
|
19510
|
+
"error-label": $setup.handleError(row, $index, config).message,
|
|
19511
|
+
size: config?.itemProps?.size ?? "table",
|
|
19512
|
+
borderType: config?.borderType ?? "bordered",
|
|
19513
|
+
data: $setup.getOptions(config, row, column, $index),
|
|
19514
|
+
props: {
|
|
19515
|
+
...config.itemProps?.props ?? {},
|
|
19516
|
+
value: config?.optionsValueKey ?? "id",
|
|
19517
|
+
label: config?.optionsLabelKey ?? "name"
|
|
19518
|
+
},
|
|
19519
|
+
onChange: (val, options) => $setup.handleChange(row, column, $index, config, val, options),
|
|
19520
|
+
onBlur: ($event) => $setup.handleBlur(row, column, $index, config, $event),
|
|
19521
|
+
onFocus: ($event) => $setup.handleFocus(row, column, $index, config, $event),
|
|
19522
|
+
onKeyup: withKeys(($event) => $setup.handleKeyupEnter(row, column, $index, config, $event), ["enter"]),
|
|
19523
|
+
width: "100%"
|
|
19524
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "keyword", "onUpdate:keyword", "select-attrs", "placeholder", "isView", "disabled", "error-mode", "errorModelZIndex", "error", "error-label", "size", "borderType", "data", "props", "onChange", "onBlur", "onFocus", "onKeyup"])) : createCommentVNode("v-if", true),
|
|
19525
|
+
createCommentVNode(" \u4E0B\u62C9\u9009\u62E9\u6811--\u61D2\u52A0\u8F7D "),
|
|
19526
|
+
$setup.isShow(["treeSelect"], $setup.getMode(config, row, column, $index)) && config?.load ? (openBlock(), createBlock($setup["DasTreeSelect"], mergeProps({
|
|
19527
|
+
key: 7,
|
|
19528
|
+
ref_for: true,
|
|
19529
|
+
ref: (el) => {
|
|
19530
|
+
if (config?.getRef)
|
|
19531
|
+
config.getRef(el);
|
|
19532
|
+
},
|
|
19533
|
+
"render-dom": row.treeSelectRenderDom
|
|
19534
|
+
}, $setup.getItemAttrs(config.itemProps), {
|
|
19535
|
+
modelValue: row[config.prop],
|
|
19536
|
+
"onUpdate:modelValue": ($event) => row[config.prop] = $event,
|
|
19537
|
+
path: row[config.pathProp],
|
|
19538
|
+
"onUpdate:path": ($event) => row[config.pathProp] = $event,
|
|
19539
|
+
keyword: row[config.keywordProp],
|
|
19540
|
+
"onUpdate:keyword": ($event) => row[config.keywordProp] = $event,
|
|
19541
|
+
"select-attrs": {
|
|
19542
|
+
...config.itemProps?.selectAttrs ?? {},
|
|
19543
|
+
noSetDefaultVal: $setup.calcNotSetDefaultVal(config, row, column, $index),
|
|
19544
|
+
allowClear: config.clearable,
|
|
19545
|
+
focusOpen: false
|
|
19546
|
+
},
|
|
19547
|
+
placeholder: $setup.getPlaceholder(config, row, column, $index),
|
|
19548
|
+
isView: $setup.calcView(config, row, column, $index),
|
|
19549
|
+
disabled: $setup.calcDisabled(config, row, column, $index),
|
|
19550
|
+
"error-mode": $setup.errorMode,
|
|
19551
|
+
errorModelZIndex: $setup.errorModelZIndex,
|
|
19552
|
+
error: $setup.handleError(row, $index, config).error,
|
|
19553
|
+
"error-label": $setup.handleError(row, $index, config).message,
|
|
19554
|
+
size: config?.itemProps?.size ?? "table",
|
|
19555
|
+
borderType: config?.borderType ?? "bordered",
|
|
19556
|
+
load: config?.load ? config.load : void 0,
|
|
19557
|
+
search: config?.search ? config.search : void 0,
|
|
19558
|
+
props: {
|
|
19559
|
+
...config.itemProps?.props ?? {},
|
|
19560
|
+
value: config?.optionsValueKey ?? "id",
|
|
19561
|
+
label: config?.optionsLabelKey ?? "name"
|
|
19562
|
+
},
|
|
19563
|
+
onChange: (val, options) => $setup.lazyTreeSelectChange(row, column, $index, config, val, options),
|
|
19564
|
+
onBlur: ($event) => $setup.handleBlur(row, column, $index, config, $event),
|
|
19565
|
+
onFocus: ($event) => $setup.handleLazyTreeSelectFocus(row, column, $index, config, $event),
|
|
19566
|
+
onKeyup: withKeys(($event) => $setup.handleKeyupEnter(row, column, $index, config, $event), ["enter"]),
|
|
19567
|
+
width: "100%"
|
|
19568
|
+
}), null, 16, ["render-dom", "modelValue", "onUpdate:modelValue", "path", "onUpdate:path", "keyword", "onUpdate:keyword", "select-attrs", "placeholder", "isView", "disabled", "error-mode", "errorModelZIndex", "error", "error-label", "size", "borderType", "load", "search", "props", "onChange", "onBlur", "onFocus", "onKeyup"])) : createCommentVNode("v-if", true),
|
|
19569
|
+
createCommentVNode(" \u7EA7\u8054\u9009\u62E9\u5668 "),
|
|
19570
|
+
$setup.isShow(["cascader"], $setup.getMode(config, row, column, $index)) ? (openBlock(), createBlock($setup["DasCascader"], mergeProps({
|
|
19571
|
+
key: 8,
|
|
19572
|
+
ref_for: true,
|
|
19573
|
+
ref: (el) => {
|
|
19574
|
+
if (config?.getRef)
|
|
19575
|
+
config.getRef(el);
|
|
19576
|
+
}
|
|
19577
|
+
}, $setup.getItemAttrs(config.itemProps), {
|
|
19578
|
+
modelValue: row[config.prop],
|
|
19579
|
+
"onUpdate:modelValue": ($event) => row[config.prop] = $event,
|
|
19580
|
+
size: config?.itemProps?.size ?? "table",
|
|
19581
|
+
placeholder: $setup.getPlaceholder(config, row, column, $index),
|
|
19582
|
+
isView: $setup.calcView(config, row, column, $index),
|
|
19583
|
+
clearable: config?.clearable ?? true,
|
|
19584
|
+
disabled: $setup.calcDisabled(config, row, column, $index),
|
|
19585
|
+
"error-mode": $setup.errorMode,
|
|
19586
|
+
errorModelZIndex: $setup.errorModelZIndex,
|
|
19587
|
+
error: $setup.handleError(row, $index, config).error,
|
|
19588
|
+
"error-label": $setup.handleError(row, $index, config).message,
|
|
19589
|
+
noSetDefaultVal: $setup.calcNotSetDefaultVal(config, row, column, $index),
|
|
19590
|
+
height: config?.itemProps?.height ?? "30px",
|
|
19591
|
+
bordered: config?.borderType ? config.borderType === "bordered" ? true : false : true,
|
|
19592
|
+
options: $setup.getOptions(config, row, column, $index),
|
|
19593
|
+
props: {
|
|
19594
|
+
...config.itemProps?.props ?? {},
|
|
19595
|
+
value: config?.optionsValueKey ?? "id",
|
|
19596
|
+
label: config?.optionsLabelKey ?? "name"
|
|
19597
|
+
},
|
|
19598
|
+
onChange: ($event) => $setup.handleChange(row, column, $index, config, $event),
|
|
19599
|
+
onBlur: ($event) => $setup.handleBlur(row, column, $index, config, $event),
|
|
19600
|
+
onFocus: ($event) => $setup.handleFocus(row, column, $index, config, $event),
|
|
19601
|
+
onKeyup: withKeys(($event) => $setup.handleKeyupEnter(row, column, $index, config, $event), ["enter"]),
|
|
19602
|
+
width: "100%"
|
|
19603
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "size", "placeholder", "isView", "clearable", "disabled", "error-mode", "errorModelZIndex", "error", "error-label", "noSetDefaultVal", "height", "bordered", "options", "props", "onChange", "onBlur", "onFocus", "onKeyup"])) : createCommentVNode("v-if", true),
|
|
19604
|
+
createCommentVNode(" \u989C\u8272\u9009\u62E9\u5668 "),
|
|
19605
|
+
$setup.isShow(["colorPicker"], $setup.getMode(config, row, column, $index)) ? (openBlock(), createBlock($setup["DasColorPicker"], mergeProps({
|
|
19606
|
+
key: 9,
|
|
19607
|
+
ref_for: true
|
|
19608
|
+
}, $setup.getItemAttrs(config.itemProps), {
|
|
19609
|
+
modelValue: row[config.prop],
|
|
19610
|
+
"onUpdate:modelValue": ($event) => row[config.prop] = $event,
|
|
19611
|
+
placeholder: $setup.getPlaceholder(config, row, column, $index),
|
|
19612
|
+
isView: $setup.calcView(config, row, column, $index),
|
|
19613
|
+
size: config?.itemProps?.size ?? "table",
|
|
19614
|
+
disabled: $setup.calcDisabled(config, row, column, $index),
|
|
19615
|
+
noSetDefaultVal: $setup.calcNotSetDefaultVal(config, row, column, $index),
|
|
19616
|
+
"error-mode": $setup.errorMode,
|
|
19617
|
+
errorModelZIndex: $setup.errorModelZIndex,
|
|
19618
|
+
error: $setup.handleError(row, $index, config).error,
|
|
19619
|
+
"error-label": $setup.handleError(row, $index, config).message,
|
|
19620
|
+
options: config?.options,
|
|
19621
|
+
borderType: config?.borderType ?? "bordered",
|
|
19622
|
+
onChange: ($event) => $setup.handleChange(row, column, $index, config, $event),
|
|
19623
|
+
onBlur: ($event) => $setup.handleBlur(row, column, $index, config, $event),
|
|
19624
|
+
onFocus: ($event) => $setup.handleFocus(row, column, $index, config, $event),
|
|
19625
|
+
onKeyup: withKeys(($event) => $setup.handleKeyupEnter(row, column, $index, config, $event), ["enter"]),
|
|
19626
|
+
width: "100%"
|
|
19627
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "isView", "size", "disabled", "noSetDefaultVal", "error-mode", "errorModelZIndex", "error", "error-label", "options", "borderType", "onChange", "onBlur", "onFocus", "onKeyup"])) : createCommentVNode("v-if", true),
|
|
19628
|
+
createCommentVNode(" \u65E5\u671F\u9009\u62E9\u5668 "),
|
|
19629
|
+
$setup.isShow(["date", "dateTime", "week", "month", "quarter", "year"], $setup.getMode(config, row, column, $index)) ? (openBlock(), createBlock($setup["DasDatePicker"], mergeProps({
|
|
19630
|
+
key: 10,
|
|
19631
|
+
ref_for: true
|
|
19632
|
+
}, $setup.getItemAttrs(config.itemProps), {
|
|
19633
|
+
modelValue: row[config.prop],
|
|
19634
|
+
"onUpdate:modelValue": ($event) => row[config.prop] = $event,
|
|
19635
|
+
noSetDefaultVal: $setup.calcNotSetDefaultVal(config, row, column, $index),
|
|
19636
|
+
size: config?.itemProps?.size ?? "table",
|
|
19637
|
+
placeholder: $setup.getPlaceholder(config, row, column, $index),
|
|
19638
|
+
isView: $setup.calcView(config, row, column, $index),
|
|
19639
|
+
"show-time": $setup.getMode(config, row, column, $index) === "dateTime",
|
|
19640
|
+
picker: $setup.getMode(config, row, column, $index) !== "dateTime" ? $setup.getMode(config, row, column, $index) : "date",
|
|
19641
|
+
disabled: $setup.calcDisabled(config, row, column, $index),
|
|
19642
|
+
"error-mode": $setup.errorMode,
|
|
19643
|
+
errorModelZIndex: $setup.errorModelZIndex,
|
|
19644
|
+
error: $setup.handleError(row, $index, config).error,
|
|
19645
|
+
"error-label": $setup.handleError(row, $index, config).message,
|
|
19646
|
+
borderType: config?.borderType ?? "bordered",
|
|
19647
|
+
onChange: ($event) => $setup.handleChange(row, column, $index, config, $event),
|
|
19648
|
+
onBlur: ($event) => $setup.handleBlur(row, column, $index, config, $event),
|
|
19649
|
+
onFocus: ($event) => $setup.handleFocus(row, column, $index, config, $event),
|
|
19650
|
+
onKeyup: withKeys(($event) => $setup.handleKeyupEnter(row, column, $index, config, $event), ["enter"]),
|
|
19651
|
+
width: "100%"
|
|
19652
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "noSetDefaultVal", "size", "placeholder", "isView", "show-time", "picker", "disabled", "error-mode", "errorModelZIndex", "error", "error-label", "borderType", "onChange", "onBlur", "onFocus", "onKeyup"])) : createCommentVNode("v-if", true),
|
|
19653
|
+
createCommentVNode(" \u65E5\u671F\u8303\u56F4\u9009\u62E9\u5668 "),
|
|
19654
|
+
$setup.isShow(
|
|
19655
|
+
["dateRange", "dateTimeRange", "weekRange", "monthRange", "yearRange"],
|
|
19656
|
+
$setup.getMode(config, row, column, $index)
|
|
19657
|
+
) ? (openBlock(), createBlock($setup["DasRangePicker"], mergeProps({
|
|
19658
|
+
key: 11,
|
|
19659
|
+
ref_for: true
|
|
19660
|
+
}, $setup.getItemAttrs(config.itemProps), {
|
|
19661
|
+
modelValue: row[config.prop],
|
|
19662
|
+
"onUpdate:modelValue": ($event) => row[config.prop] = $event,
|
|
19663
|
+
size: config?.itemProps?.size ?? "table",
|
|
19664
|
+
noSetDefaultVal: $setup.calcNotSetDefaultVal(config, row, column, $index),
|
|
19665
|
+
placeholder: $setup.getPlaceholder(config, row, column, $index),
|
|
19666
|
+
isView: $setup.calcView(config, row, column, $index),
|
|
19667
|
+
separator: $setup.calcView(config, row, column, $index) && (!row[config.prop] || !row[config.prop][0]) ? " " : "~",
|
|
19668
|
+
"show-time": $setup.getMode(config, row, column, $index) === "dateTimeRange",
|
|
19669
|
+
picker: $setup.getMode(config, row, column, $index) !== "dateTimeRange" ? $setup.getMode(config, row, column, $index).slice(0, -5) : "date",
|
|
19670
|
+
disabled: $setup.calcDisabled(config, row, column, $index),
|
|
19671
|
+
"error-mode": $setup.errorMode,
|
|
19672
|
+
errorModelZIndex: $setup.errorModelZIndex,
|
|
19673
|
+
error: $setup.handleError(row, $index, config).error,
|
|
19674
|
+
"error-label": $setup.handleError(row, $index, config).message,
|
|
19675
|
+
borderType: config?.borderType ?? "bordered",
|
|
19676
|
+
onChange: ($event) => $setup.handleChange(row, column, $index, config, $event),
|
|
19677
|
+
onBlur: ($event) => $setup.handleBlur(row, column, $index, config, $event),
|
|
19678
|
+
onFocus: ($event) => $setup.handleFocus(row, column, $index, config, $event),
|
|
19679
|
+
onKeyup: withKeys(($event) => $setup.handleKeyupEnter(row, column, $index, config, $event), ["enter"]),
|
|
19680
|
+
width: "100%"
|
|
19681
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "size", "noSetDefaultVal", "placeholder", "isView", "separator", "show-time", "picker", "disabled", "error-mode", "errorModelZIndex", "error", "error-label", "borderType", "onChange", "onBlur", "onFocus", "onKeyup"])) : createCommentVNode("v-if", true),
|
|
19682
|
+
createCommentVNode(" \u65F6\u95F4\u9009\u62E9\u5668 "),
|
|
19683
|
+
$setup.isShow(["time"], $setup.getMode(config, row, column, $index)) ? (openBlock(), createBlock($setup["DasTimePicker"], mergeProps({
|
|
19684
|
+
key: 12,
|
|
19685
|
+
ref_for: true
|
|
19686
|
+
}, $setup.getItemAttrs(config.itemProps), {
|
|
19687
|
+
modelValue: row[config.prop],
|
|
19688
|
+
"onUpdate:modelValue": ($event) => row[config.prop] = $event,
|
|
19689
|
+
size: config?.itemProps?.size ?? "table",
|
|
19690
|
+
noSetDefaultVal: $setup.calcNotSetDefaultVal(config, row, column, $index),
|
|
19691
|
+
placeholder: $setup.getPlaceholder(config, row, column, $index),
|
|
19692
|
+
isView: $setup.calcView(config, row, column, $index),
|
|
19693
|
+
disabled: $setup.calcDisabled(config, row, column, $index),
|
|
19694
|
+
"error-mode": $setup.errorMode,
|
|
19695
|
+
errorModelZIndex: $setup.errorModelZIndex,
|
|
19696
|
+
error: $setup.handleError(row, $index, config).error,
|
|
19697
|
+
"error-label": $setup.handleError(row, $index, config).message,
|
|
19698
|
+
borderType: config?.borderType ?? "bordered",
|
|
19699
|
+
onChange: ($event) => $setup.handleChange(row, column, $index, config, $event),
|
|
19700
|
+
onBlur: ($event) => $setup.handleBlur(row, column, $index, config, $event),
|
|
19701
|
+
onFocus: ($event) => $setup.handleFocus(row, column, $index, config, $event),
|
|
19702
|
+
onKeyup: withKeys(($event) => $setup.handleKeyupEnter(row, column, $index, config, $event), ["enter"]),
|
|
19703
|
+
width: "100%"
|
|
19704
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "size", "noSetDefaultVal", "placeholder", "isView", "disabled", "error-mode", "errorModelZIndex", "error", "error-label", "borderType", "onChange", "onBlur", "onFocus", "onKeyup"])) : createCommentVNode("v-if", true),
|
|
19705
|
+
createCommentVNode(" \u65F6\u95F4\u8303\u56F4\u9009\u62E9\u5668 "),
|
|
19706
|
+
$setup.isShow(["timeRange"], $setup.getMode(config, row, column, $index)) ? (openBlock(), createBlock($setup["DasTimeRangePicker"], mergeProps({
|
|
19707
|
+
key: 13,
|
|
19708
|
+
ref_for: true
|
|
19709
|
+
}, $setup.getItemAttrs(config.itemProps), {
|
|
19710
|
+
modelValue: row[config.prop],
|
|
19711
|
+
"onUpdate:modelValue": ($event) => row[config.prop] = $event,
|
|
19712
|
+
noSetDefaultVal: $setup.calcNotSetDefaultVal(config, row, column, $index),
|
|
19713
|
+
size: config?.itemProps?.size ?? "table",
|
|
19714
|
+
placeholder: $setup.getPlaceholder(config, row, column, $index),
|
|
19715
|
+
isView: $setup.calcView(config, row, column, $index),
|
|
19716
|
+
separator: $setup.calcView(config, row, column, $index) && (!row[config.prop] || !row[config.prop][0]) ? " " : "~",
|
|
19717
|
+
disabled: $setup.calcDisabled(config, row, column, $index),
|
|
19718
|
+
"error-mode": $setup.errorMode,
|
|
19719
|
+
errorModelZIndex: $setup.errorModelZIndex,
|
|
19720
|
+
error: $setup.handleError(row, $index, config).error,
|
|
19721
|
+
"error-label": $setup.handleError(row, $index, config).message,
|
|
19722
|
+
borderType: config?.borderType ?? "bordered",
|
|
19723
|
+
onChange: ($event) => $setup.handleChange(row, column, $index, config, $event),
|
|
19724
|
+
onBlur: ($event) => $setup.handleBlur(row, column, $index, config, $event),
|
|
19725
|
+
onFocus: ($event) => $setup.handleFocus(row, column, $index, config, $event),
|
|
19726
|
+
onKeyup: withKeys(($event) => $setup.handleKeyupEnter(row, column, $index, config, $event), ["enter"]),
|
|
19727
|
+
width: "100%"
|
|
19728
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "noSetDefaultVal", "size", "placeholder", "isView", "separator", "disabled", "error-mode", "errorModelZIndex", "error", "error-label", "borderType", "onChange", "onBlur", "onFocus", "onKeyup"])) : createCommentVNode("v-if", true),
|
|
19729
|
+
createCommentVNode(" \u5F39\u7A97\u9009\u62E9 "),
|
|
19730
|
+
$setup.isShow(["inputDialogSelect"], $setup.getMode(config, row, column, $index)) ? (openBlock(), createBlock($setup["DasInputDialogSelect"], mergeProps({
|
|
19731
|
+
key: 14,
|
|
19732
|
+
ref_for: true
|
|
19733
|
+
}, $setup.getItemAttrs(config.itemProps), {
|
|
19734
|
+
modelValue: row[config.prop],
|
|
19735
|
+
"onUpdate:modelValue": ($event) => row[config.prop] = $event,
|
|
19736
|
+
noSetDefaultVal: $setup.calcNotSetDefaultVal(config, row, column, $index),
|
|
19737
|
+
size: config?.itemProps?.size ?? "table",
|
|
19738
|
+
placeholder: $setup.getPlaceholder(config, row, column, $index),
|
|
19739
|
+
isView: $setup.calcView(config, row, column, $index),
|
|
19740
|
+
disabled: $setup.calcDisabled(config, row, column, $index),
|
|
19741
|
+
"error-mode": $setup.errorMode,
|
|
19742
|
+
errorModelZIndex: $setup.errorModelZIndex,
|
|
19743
|
+
error: $setup.handleError(row, $index, config).error,
|
|
19744
|
+
"error-label": $setup.handleError(row, $index, config).message,
|
|
19745
|
+
"selected-options": $setup.getOptions(config, row, column, $index),
|
|
19746
|
+
borderType: config?.borderType ?? "bordered",
|
|
19747
|
+
onChange: ($event) => $setup.handleChange(row, column, $index, config, $event),
|
|
19748
|
+
onBlur: ($event) => $setup.handleBlur(row, column, $index, config, $event),
|
|
19749
|
+
onFocus: ($event) => $setup.handleFocus(row, column, $index, config, $event),
|
|
19750
|
+
onOpenDialog: ($event) => $setup.handleOpenDialog(row, column, $index, config),
|
|
19751
|
+
width: "100%"
|
|
19752
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "noSetDefaultVal", "size", "placeholder", "isView", "disabled", "error-mode", "errorModelZIndex", "error", "error-label", "selected-options", "borderType", "onChange", "onBlur", "onFocus", "onOpenDialog"])) : createCommentVNode("v-if", true),
|
|
19753
|
+
createCommentVNode(" \u8F93\u5165\u5EFA\u8BAE\u7EC4\u4EF6 "),
|
|
19754
|
+
$setup.isShow(["autocomplete"], $setup.getMode(config, row, column, $index)) ? (openBlock(), createBlock($setup["DasAutocomplete"], mergeProps({
|
|
19755
|
+
key: 15,
|
|
19756
|
+
ref_for: true,
|
|
19757
|
+
ref: (el) => {
|
|
19758
|
+
if (config?.getRef)
|
|
19759
|
+
config.getRef(el);
|
|
19760
|
+
}
|
|
19761
|
+
}, $setup.getAutocompleteItemAttrs(config.itemProps, row), {
|
|
19762
|
+
modelValue: row[config.prop],
|
|
19763
|
+
"onUpdate:modelValue": ($event) => row[config.prop] = $event,
|
|
19764
|
+
path: row[config.pathProp],
|
|
19765
|
+
"onUpdate:path": ($event) => row[config.pathProp] = $event,
|
|
19766
|
+
noSetDefaultVal: $setup.calcNotSetDefaultVal(config, row, column, $index),
|
|
19767
|
+
placeholder: $setup.getPlaceholder(config, row, column, $index),
|
|
19768
|
+
clearable: config.clearable,
|
|
19769
|
+
isView: $setup.calcView(config, row, column, $index),
|
|
19770
|
+
disabled: $setup.calcDisabled(config, row, column, $index),
|
|
19771
|
+
"error-mode": $setup.errorMode,
|
|
19772
|
+
errorModelZIndex: $setup.errorModelZIndex,
|
|
19773
|
+
error: $setup.handleError(row, $index, config).error,
|
|
19774
|
+
"error-label": $setup.handleError(row, $index, config).message,
|
|
19775
|
+
size: config?.itemProps?.size ?? "table",
|
|
19776
|
+
borderType: config?.borderType ?? "bordered",
|
|
19777
|
+
options: config?.itemProps?.["tree-options"]?.load ? void 0 : $setup.getOptions(config, row, column, $index),
|
|
19778
|
+
onChange: ($event) => $setup.handleChange(row, column, $index, config, $event),
|
|
19779
|
+
onBlur: ($event) => $setup.handleBlur(row, column, $index, config, $event),
|
|
19780
|
+
onFocus: ($event) => $setup.handleAutocompleteFocus(row, column, $index, config, $event),
|
|
19781
|
+
onInput: ($event) => $setup.handleInput(row, column, $index, config, $event),
|
|
19782
|
+
onNodeClick: ($event) => $setup.handleNodeClick(row, column, $index, config, $event),
|
|
19783
|
+
width: "100%"
|
|
19784
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "path", "onUpdate:path", "noSetDefaultVal", "placeholder", "clearable", "isView", "disabled", "error-mode", "errorModelZIndex", "error", "error-label", "size", "borderType", "options", "onChange", "onBlur", "onFocus", "onInput", "onNodeClick"])) : createCommentVNode("v-if", true),
|
|
19785
|
+
createCommentVNode(" \u6587\u5B57\u7C7B\u578B "),
|
|
19786
|
+
$setup.isShow(["text"], $setup.getMode(config, row, column, $index)) ? withDirectives((openBlock(), createElementBlock("div", _hoisted_5, [
|
|
19787
|
+
createTextVNode(
|
|
19788
|
+
toDisplayString(row[config.prop]),
|
|
19789
|
+
1
|
|
19790
|
+
/* TEXT */
|
|
19791
|
+
)
|
|
19792
|
+
])), [
|
|
19793
|
+
[$setup["vDasTooltip"]]
|
|
19794
|
+
]) : createCommentVNode("v-if", true),
|
|
19795
|
+
createCommentVNode(" @slot-\u81EA\u5B9A\u4E49column\u63D2\u69FD "),
|
|
19796
|
+
$setup.isShow(["slot"], $setup.getMode(config, row, column, $index)) ? renderSlot(_ctx.$slots, config.slot, {
|
|
19797
|
+
key: 17,
|
|
19798
|
+
config,
|
|
19799
|
+
row,
|
|
19800
|
+
column,
|
|
19801
|
+
$index
|
|
19802
|
+
}) : createCommentVNode("v-if", true)
|
|
19803
|
+
], 44, _hoisted_3),
|
|
19804
|
+
createCommentVNode(" @slot-\u8868\u5355\u5217\u53F3\u4FA7\u63D2\u69FD "),
|
|
19805
|
+
_ctx.$slots[`${config.prop}-right`] ? (openBlock(), createElementBlock("div", _hoisted_6, [
|
|
19806
|
+
renderSlot(_ctx.$slots, `${config.prop}-right`, {
|
|
19807
|
+
config,
|
|
19808
|
+
row,
|
|
19809
|
+
column,
|
|
19810
|
+
$index
|
|
19811
|
+
})
|
|
19812
|
+
])) : createCommentVNode("v-if", true)
|
|
19813
|
+
],
|
|
19814
|
+
64
|
|
19815
|
+
/* STABLE_FRAGMENT */
|
|
19816
|
+
)) : (openBlock(), createElementBlock(
|
|
19817
|
+
Fragment,
|
|
19818
|
+
{ key: 1 },
|
|
19819
|
+
[
|
|
19820
|
+
createCommentVNode(" \u67E5\u770B\u6A21\u5F0F===\u5360\u4F4D\u7B26 "),
|
|
19821
|
+
_hoisted_7
|
|
19822
|
+
],
|
|
19823
|
+
2112
|
|
19824
|
+
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
19825
|
+
))
|
|
19826
|
+
])
|
|
19827
|
+
]),
|
|
19828
|
+
_: 2
|
|
19829
|
+
/* DYNAMIC */
|
|
19830
|
+
}, [
|
|
19831
|
+
config?.headerSlot ? {
|
|
19832
|
+
name: "header",
|
|
19833
|
+
fn: withCtx(({ column, $index }) => [
|
|
19834
|
+
renderSlot(_ctx.$slots, config.headerSlot, {
|
|
19835
|
+
column,
|
|
19836
|
+
$index
|
|
19837
|
+
})
|
|
19838
|
+
]),
|
|
19839
|
+
key: "0"
|
|
19840
|
+
} : void 0
|
|
19841
|
+
]), 1040, ["required", "class-name"]);
|
|
19842
|
+
}),
|
|
19843
|
+
128
|
|
19844
|
+
/* KEYED_FRAGMENT */
|
|
19845
|
+
)),
|
|
19846
|
+
_ctx.$slots.tableRight ? renderSlot(_ctx.$slots, "tableRight", { key: 2 }) : createCommentVNode("v-if", true)
|
|
19847
|
+
]),
|
|
19848
|
+
_: 2
|
|
19849
|
+
/* DYNAMIC */
|
|
19850
|
+
}, [
|
|
19851
|
+
_ctx.$slots["pagination-left"] ? {
|
|
19852
|
+
name: "pagination-left",
|
|
19853
|
+
fn: withCtx(() => [
|
|
19854
|
+
createCommentVNode(" @slot-\u5206\u9875\u8868\u683C\u5934\u90E8\u5DE6\u4FA7\u63D2\u69FD "),
|
|
19855
|
+
renderSlot(_ctx.$slots, "pagination-left")
|
|
19856
|
+
]),
|
|
19857
|
+
key: "0"
|
|
19858
|
+
} : void 0,
|
|
19859
|
+
_ctx.$slots.empty ? {
|
|
19860
|
+
name: "empty",
|
|
19861
|
+
fn: withCtx(() => [
|
|
19862
|
+
renderSlot(_ctx.$slots, "empty")
|
|
19863
|
+
]),
|
|
19864
|
+
key: "1"
|
|
19865
|
+
} : void 0
|
|
19866
|
+
]), 1040, ["outer-border", "row-key", "data", "selection-rows"]);
|
|
19867
|
+
}
|
|
19868
|
+
var editTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/Users/xiecp/das/das-fe/framework/packages/das-ui/packages/components/edit-table/src/index.vue"]]);
|
|
19753
19869
|
|
|
19754
19870
|
const DasEditTableRef = () => ref(null);
|
|
19755
19871
|
const DasEditTable = withInstall(editTable);
|