cnhis-design-vue 3.1.22-beta.9 → 3.1.23-beta.0
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/es/components/big-table/index.d.ts +8 -0
- package/es/components/big-table/src/BigTable.vue.d.ts +8 -0
- package/es/components/big-table/src/BigTable.vue_vue_type_script_setup_true_lang.js +9 -23
- package/es/components/big-table/src/components/edit-form/edit-date.js +81 -10
- package/es/components/big-table/src/components/edit-form/edit-input.js +1 -0
- package/es/components/big-table/src/components/edit-form/edit-separate.js +4 -1
- package/es/components/big-table/src/hooks/useEdit.d.ts +1 -1
- package/es/components/big-table/src/hooks/useEdit2.js +6 -3
- package/es/components/big-table/src/hooks/useSeparateRow2.js +1 -41
- package/es/components/big-table/src/utils2.js +0 -1
- package/es/components/big-table/style/index.css +1 -1
- package/es/components/field-set/src/FieldSet.js +5 -1
- package/es/components/form-render/src/hooks/useFormContext2.js +2 -1
- package/es/components/form-render/src/utils/index.d.ts +0 -1
- package/es/components/form-render/src/utils/index.js +1 -10
- package/es/components/iho-table/index.d.ts +142 -276
- package/es/components/iho-table/index.js +1 -1
- package/es/components/iho-table/src/IhoTable.js +52 -31
- package/es/components/iho-table/src/IhoTable.vue.d.ts +143 -277
- package/es/components/iho-table/src/components/IhoTableColumn.js +2 -2
- package/es/components/iho-table/src/constants/index.d.ts +5 -2
- package/es/components/iho-table/src/constants/index.js +1 -1
- package/es/components/iho-table/src/constants/index2.js +8 -5
- package/es/components/iho-table/src/hooks/index.js +1 -1
- package/es/components/iho-table/src/hooks/tapHooks/index.d.ts +12 -3
- package/es/components/iho-table/src/hooks/tapHooks/index.js +1 -1
- package/es/components/iho-table/src/hooks/tapHooks/index2.js +41 -6
- package/es/components/iho-table/src/hooks/tapHooks/useDataHooks.d.ts +16 -0
- package/es/components/iho-table/src/hooks/tapHooks/useDataHooks.js +1 -0
- package/es/components/iho-table/src/hooks/tapHooks/useDataHooks2.js +26 -0
- package/es/components/iho-table/src/hooks/tapHooks/useEventHooks.d.ts +177 -60
- package/es/components/iho-table/src/hooks/tapHooks/useEventHooks2.js +223 -59
- package/es/components/iho-table/src/hooks/tapHooks/useSetupHooks.d.ts +10 -0
- package/es/components/iho-table/src/hooks/tapHooks/useSetupHooks.js +1 -0
- package/es/components/iho-table/src/hooks/tapHooks/useSetupHooks2.js +27 -0
- package/es/components/iho-table/src/plugins/index.js +2 -1
- package/es/components/iho-table/src/plugins/index2.js +2 -1
- package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index2.js +2 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/index.d.ts +2 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/index.js +2 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/{inputs → editableWidgets}/inputRendererPlugins.d.ts +0 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/{inputs → editableWidgets}/inputRendererPlugins.js +0 -5
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/edit-separate.js +110 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/edit-separate.vue.d.ts +107 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/index.d.ts +1 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/index.js +158 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/separate-utils.d.ts +14 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/separate-utils.js +1 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/separate-utils2.js +54 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/index.d.ts +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/index.js +2 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/pictureRendererPlugin.js +2 -1
- package/es/components/iho-table/src/types/index.d.ts +8 -3
- package/es/components/iho-table/src/types/index.js +1 -1
- package/es/components/iho-table/src/types/pluginType.d.ts +105 -81
- package/es/components/iho-table/src/types/pluginType.js +1 -1
- package/es/components/iho-table/src/types/pluginType2.js +5 -1
- package/es/components/iho-table/src/utils/index2.js +1 -1
- package/es/components/index.css +1 -1
- package/es/components/index.js +1 -1
- package/es/components/info-header/index.d.ts +2 -0
- package/es/components/info-header/src/InfoHeader.js +3 -1
- package/es/components/info-header/src/InfoHeader.vue.d.ts +2 -0
- package/es/components/info-header/style/iconfont.ttf +0 -0
- package/es/components/info-header/style/index.css +1 -1
- package/es/shared/utils/index.d.ts +4 -0
- package/es/shared/utils/index.js +1 -1
- package/es/shared/utils/index2.js +60 -2
- package/es/shared/utils/tapable/AsyncSeriesHook.js +17 -2
- package/es/shared/utils/tapable/SyncHook.js +23 -2
- package/package.json +2 -2
- package/es/components/iho-table/src/plugins/rendererPlugins/inputs/index.d.ts +0 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/inputs/index.js +0 -1
|
@@ -329,6 +329,14 @@ declare const BigTable: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
329
329
|
showInsertStatus?: boolean | undefined;
|
|
330
330
|
showAsterisk?: boolean | undefined;
|
|
331
331
|
autoClear?: boolean | undefined;
|
|
332
|
+
beforeEditMethod?: ((params: {
|
|
333
|
+
row: any;
|
|
334
|
+
rowIndex: number;
|
|
335
|
+
column: import("vxe-table").VxeTableDefines.ColumnInfo;
|
|
336
|
+
columnIndex: number;
|
|
337
|
+
$table: import("vxe-table").VxeTableConstructor & import("vxe-table").VxeTablePrivateMethods;
|
|
338
|
+
$grid: import("vxe-table").VxeGridConstructor | null | undefined;
|
|
339
|
+
}) => boolean) | undefined;
|
|
332
340
|
activeMethod?: ((params: {
|
|
333
341
|
row: any;
|
|
334
342
|
rowIndex: number;
|
|
@@ -327,6 +327,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
327
327
|
showInsertStatus?: boolean | undefined;
|
|
328
328
|
showAsterisk?: boolean | undefined;
|
|
329
329
|
autoClear?: boolean | undefined;
|
|
330
|
+
beforeEditMethod?: ((params: {
|
|
331
|
+
row: any;
|
|
332
|
+
rowIndex: number;
|
|
333
|
+
column: import("vxe-table").VxeTableDefines.ColumnInfo;
|
|
334
|
+
columnIndex: number;
|
|
335
|
+
$table: import("vxe-table").VxeTableConstructor & import("vxe-table").VxeTablePrivateMethods;
|
|
336
|
+
$grid: import("vxe-table").VxeGridConstructor | null | undefined;
|
|
337
|
+
}) => boolean) | undefined;
|
|
330
338
|
activeMethod?: ((params: {
|
|
331
339
|
row: any;
|
|
332
340
|
rowIndex: number;
|
|
@@ -87,7 +87,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
87
87
|
deleteRow,
|
|
88
88
|
onFormChange,
|
|
89
89
|
getDefaultValue
|
|
90
|
-
} = useEdit(props, state, emit, xGrid);
|
|
90
|
+
} = useEdit(props, state, emit, xGrid, loadData);
|
|
91
91
|
const {
|
|
92
92
|
isAboutNestTable,
|
|
93
93
|
isExpandTable,
|
|
@@ -262,40 +262,31 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
262
262
|
onColumnResize(payload);
|
|
263
263
|
emit("resizableChange", payload);
|
|
264
264
|
};
|
|
265
|
-
|
|
265
|
+
async function loadData(data) {
|
|
266
266
|
state.isShowEmpty = !(data == null ? void 0 : data.length);
|
|
267
|
-
let
|
|
267
|
+
let formatList = data;
|
|
268
268
|
let {
|
|
269
269
|
isTransform
|
|
270
270
|
} = props.tableParams;
|
|
271
271
|
if (isTransform && [1, 3].includes(Number(state.isTree)))
|
|
272
|
-
|
|
272
|
+
formatList = treeToList(data);
|
|
273
273
|
let table = xGrid.value;
|
|
274
274
|
if (!table)
|
|
275
275
|
return;
|
|
276
276
|
state.checkedRows = [];
|
|
277
|
-
let formatList = setChecklist(list);
|
|
278
277
|
state.originFormatList = formatList;
|
|
279
278
|
setGroupTitleToFristColumnFieldData(formatList);
|
|
280
|
-
state.curAbleCheckedLen =
|
|
279
|
+
state.curAbleCheckedLen = formatList.filter((item) => checkMethod({
|
|
281
280
|
row: item
|
|
282
281
|
})).length;
|
|
283
282
|
if (!props.isNestTable) {
|
|
284
283
|
await handleFormTheUniqueKey();
|
|
285
284
|
}
|
|
286
|
-
formatList = formatList.map((v) => {
|
|
287
|
-
return {
|
|
288
|
-
...v,
|
|
289
|
-
selectTableShow: false,
|
|
290
|
-
selectTableDisable: false
|
|
291
|
-
};
|
|
292
|
-
});
|
|
293
285
|
await table.loadData(await separate(formatList, data));
|
|
294
286
|
table.setCurrentRow({});
|
|
295
287
|
setCurrentPageRowChecked();
|
|
296
288
|
setGroupTreeExpand();
|
|
297
|
-
|
|
298
|
-
};
|
|
289
|
+
}
|
|
299
290
|
separateHandle.clear();
|
|
300
291
|
separateHandle.add(() => loadData(props.data));
|
|
301
292
|
const setGroupTitleToFristColumnFieldData = (formatList) => {
|
|
@@ -544,7 +535,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
544
535
|
},
|
|
545
536
|
editTrigger: state.editConfig.trigger
|
|
546
537
|
};
|
|
547
|
-
if (
|
|
538
|
+
if (["date", "time"].includes(formType)) {
|
|
548
539
|
propsData.formattedValue = row[col.columnName];
|
|
549
540
|
} else if (formatMap) {
|
|
550
541
|
propsData.value = row[formatMap.value];
|
|
@@ -2158,13 +2149,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2158
2149
|
}, {
|
|
2159
2150
|
immediate: true
|
|
2160
2151
|
});
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
loadData(value);
|
|
2164
|
-
});
|
|
2165
|
-
}, {
|
|
2166
|
-
immediate: true,
|
|
2167
|
-
deep: true
|
|
2152
|
+
nextTick(() => {
|
|
2153
|
+
loadData(props.data);
|
|
2168
2154
|
});
|
|
2169
2155
|
watch(() => currentCheckedKeys, (val) => {
|
|
2170
2156
|
setVisibleCheckAllWrap(state, props, currentCheckedKeys.value);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent, computed, createVNode, mergeProps } from 'vue';
|
|
1
|
+
import { defineComponent, ref, computed, watch, createVNode, mergeProps } from 'vue';
|
|
2
2
|
import { generateTimeFormat } from '../../../../../shared/utils/index2.js';
|
|
3
|
-
import { isFunction } from 'lodash-es';
|
|
4
|
-
import { NDatePicker } from 'naive-ui';
|
|
3
|
+
import { isFunction, isNaN } from 'lodash-es';
|
|
4
|
+
import { NDatePicker, NPopover, NInput } from 'naive-ui';
|
|
5
5
|
import { useCommon } from './useCommon2.js';
|
|
6
6
|
|
|
7
7
|
var EditDate = defineComponent({
|
|
@@ -33,7 +33,9 @@ var EditDate = defineComponent({
|
|
|
33
33
|
formRef,
|
|
34
34
|
isShow
|
|
35
35
|
} = useCommon(props, attrs);
|
|
36
|
+
const __value = ref(attrs.formattedValue);
|
|
36
37
|
const onConfirm = (value) => {
|
|
38
|
+
__value.value = value;
|
|
37
39
|
emit("formChange", {
|
|
38
40
|
value,
|
|
39
41
|
row: props.row,
|
|
@@ -107,6 +109,45 @@ var EditDate = defineComponent({
|
|
|
107
109
|
return customDateDisabled(ts, props.row);
|
|
108
110
|
};
|
|
109
111
|
}
|
|
112
|
+
function getFormatDate(str) {
|
|
113
|
+
if (!str)
|
|
114
|
+
return "";
|
|
115
|
+
const d = new Date(str);
|
|
116
|
+
const month = `00${d.getMonth() + 1}`.slice(-2);
|
|
117
|
+
const day = `00${d.getDate()}`.slice(-2);
|
|
118
|
+
const valueFormat = formatConfig.value.valueFormat;
|
|
119
|
+
const format = valueFormat.includes("/") ? "/" : valueFormat.includes(".") ? "." : "-";
|
|
120
|
+
let date = `${d.getFullYear()}${format}${month}${format}${day}`;
|
|
121
|
+
const dTime = d.getTime();
|
|
122
|
+
const connectFieldTime = new Date(props.row[connectField]).getTime();
|
|
123
|
+
if (props.row[connectField] && (isStartDate && dTime > connectFieldTime || isEndDate && dTime < connectFieldTime)) {
|
|
124
|
+
date = "";
|
|
125
|
+
}
|
|
126
|
+
return date;
|
|
127
|
+
}
|
|
128
|
+
function onBlur() {
|
|
129
|
+
let date = __value.value;
|
|
130
|
+
if (isNaN(new Date(date).getTime())) {
|
|
131
|
+
if (/^\d{8}$/.test(date)) {
|
|
132
|
+
const dateNew = `${date.slice(0, 4)} ${date.slice(4, 6)} ${date.slice(6)}`;
|
|
133
|
+
date = "";
|
|
134
|
+
if (!isNaN(new Date(dateNew).getTime())) {
|
|
135
|
+
date = getFormatDate(dateNew);
|
|
136
|
+
}
|
|
137
|
+
} else {
|
|
138
|
+
date = "";
|
|
139
|
+
}
|
|
140
|
+
} else {
|
|
141
|
+
date = getFormatDate(date);
|
|
142
|
+
}
|
|
143
|
+
__value.value = date || void 0;
|
|
144
|
+
emit("formChange", {
|
|
145
|
+
value: __value.value,
|
|
146
|
+
row: props.row,
|
|
147
|
+
column: props.col,
|
|
148
|
+
index: props.index
|
|
149
|
+
});
|
|
150
|
+
}
|
|
110
151
|
const formatConfig = computed(() => {
|
|
111
152
|
var _a;
|
|
112
153
|
const valueFormat = ((_a = props.col.componentProps) == null ? void 0 : _a.valueFormat) || props.col.valueFormat || "yyyy-MM-dd HH:mm:ss";
|
|
@@ -130,13 +171,43 @@ var EditDate = defineComponent({
|
|
|
130
171
|
if (config.type.includes("time")) {
|
|
131
172
|
config.isTimeDisabled = customDateDisabledDecorator(props.col.isTimeDisabled) || isTimeDisabled;
|
|
132
173
|
}
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
174
|
+
watch(() => attrs.formattedValue, (value) => {
|
|
175
|
+
__value.value = value;
|
|
176
|
+
});
|
|
177
|
+
return () => {
|
|
178
|
+
var _a;
|
|
179
|
+
return ((_a = props.col.componentProps) == null ? void 0 : _a.isPopover) ? createVNode(NPopover, mergeProps({
|
|
180
|
+
"show": isShow.value,
|
|
181
|
+
"trigger": "click",
|
|
182
|
+
"showArrow": false,
|
|
183
|
+
"placement": "bottom-start",
|
|
184
|
+
"style": "padding: 0"
|
|
185
|
+
}, props.col.componentProps || {}, {
|
|
186
|
+
"onClickoutside": () => isShow.value = false
|
|
187
|
+
}), {
|
|
188
|
+
trigger: () => createVNode(NInput, {
|
|
189
|
+
"ref": formRef,
|
|
190
|
+
"clearable": true,
|
|
191
|
+
"value": __value.value,
|
|
192
|
+
"onUpdate:value": ($event) => __value.value = $event,
|
|
193
|
+
"onBlur": onBlur,
|
|
194
|
+
"onClick": () => isShow.value = true
|
|
195
|
+
}, null),
|
|
196
|
+
default: () => createVNode(NDatePicker, mergeProps({
|
|
197
|
+
"panel": true,
|
|
198
|
+
"show": isShow.value,
|
|
199
|
+
"onUpdate:show": ($event) => isShow.value = $event
|
|
200
|
+
}, attrs, config, {
|
|
201
|
+
"onUpdateFormattedValue": onConfirm
|
|
202
|
+
}), null)
|
|
203
|
+
}) : createVNode(NDatePicker, mergeProps({
|
|
204
|
+
"ref": formRef,
|
|
205
|
+
"show": isShow.value,
|
|
206
|
+
"onUpdate:show": ($event) => isShow.value = $event
|
|
207
|
+
}, attrs, config, {
|
|
208
|
+
"onUpdateFormattedValue": onConfirm
|
|
209
|
+
}), null);
|
|
210
|
+
};
|
|
140
211
|
}
|
|
141
212
|
});
|
|
142
213
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, ref, watch, openBlock, createBlock, unref, withCtx, createVNode, withModifiers } from 'vue';
|
|
1
|
+
import { defineComponent, ref, watch, onDeactivated, openBlock, createBlock, unref, withCtx, createVNode, withModifiers } from 'vue';
|
|
2
2
|
import script from '../../../../../shared/components/SlotRender/SlotRender.js';
|
|
3
3
|
import { cloneDeep, isObject, isArray } from 'lodash-es';
|
|
4
4
|
import { NPopover, NInput } from 'naive-ui';
|
|
@@ -57,6 +57,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
57
57
|
background: "white",
|
|
58
58
|
"border-radius": "4px"
|
|
59
59
|
};
|
|
60
|
+
onDeactivated(() => {
|
|
61
|
+
onClose(getRowData(props.row));
|
|
62
|
+
});
|
|
60
63
|
return (_ctx, _cache) => {
|
|
61
64
|
return openBlock(), createBlock(unref(NPopover), {
|
|
62
65
|
ref_key: "popoverRef",
|
|
@@ -322,7 +322,7 @@ export declare const comps: {
|
|
|
322
322
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
|
323
323
|
}, {}>;
|
|
324
324
|
};
|
|
325
|
-
export declare const useEdit: (props: any, state: any, emit: any, xGrid: any) => {
|
|
325
|
+
export declare const useEdit: (props: any, state: any, emit: any, xGrid: any, loadData: (data: unknown) => void) => {
|
|
326
326
|
initEditTable: () => Promise<void>;
|
|
327
327
|
deleteRow: (row: any, col: any, index: number) => void;
|
|
328
328
|
onClickSelectTable: (row: any) => Promise<void>;
|
|
@@ -12,7 +12,7 @@ const comps = {
|
|
|
12
12
|
time: EditTime,
|
|
13
13
|
separate: EditSeparate
|
|
14
14
|
};
|
|
15
|
-
const useEdit = (props, state, emit, xGrid) => {
|
|
15
|
+
const useEdit = (props, state, emit, xGrid, loadData) => {
|
|
16
16
|
const initEditTable = async () => {
|
|
17
17
|
const { isEdit, fieldList = [] } = props.columnConfig;
|
|
18
18
|
if (!isEdit)
|
|
@@ -65,7 +65,7 @@ const useEdit = (props, state, emit, xGrid) => {
|
|
|
65
65
|
}) => {
|
|
66
66
|
var _a, _b;
|
|
67
67
|
let oldValue = row[column.columnName];
|
|
68
|
-
if (
|
|
68
|
+
if (["input", "number"].includes(column == null ? void 0 : column.formType) && ((_a = props.columnConfig) == null ? void 0 : _a.formValidate)) {
|
|
69
69
|
row[column.columnName] = (_b = props.columnConfig) == null ? void 0 : _b.formValidate({
|
|
70
70
|
row,
|
|
71
71
|
column,
|
|
@@ -82,9 +82,12 @@ const useEdit = (props, state, emit, xGrid) => {
|
|
|
82
82
|
} else {
|
|
83
83
|
row[column.columnName] = value;
|
|
84
84
|
}
|
|
85
|
-
if (
|
|
85
|
+
if (["date", "time"].includes(column == null ? void 0 : column.formType) && !value) {
|
|
86
86
|
row[column.columnName] = void 0;
|
|
87
87
|
}
|
|
88
|
+
if (["separate"].includes(column == null ? void 0 : column.formType)) {
|
|
89
|
+
loadData(props.data);
|
|
90
|
+
}
|
|
88
91
|
emit("formChange", { value, row, column, index, oldValue, ...type ? { type } : {} });
|
|
89
92
|
};
|
|
90
93
|
const getDefaultValue = (params, item) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { getStringWidth } from '../../../../shared/utils/index2.js';
|
|
2
2
|
import { isNumber, isArray, cloneDeep, isString } from 'lodash-es';
|
|
3
3
|
import { ref, computed, provide, watch, nextTick } from 'vue';
|
|
4
4
|
import { InjectionSeparateHandle } from '../constants/index2.js';
|
|
@@ -20,46 +20,6 @@ class SeparateHandle {
|
|
|
20
20
|
this.callbacks.forEach((cb) => cb());
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
|
-
const getStringWidth = /* @__PURE__ */ useMemoize(function(str) {
|
|
24
|
-
if (!str)
|
|
25
|
-
return 0;
|
|
26
|
-
return [...str].reduce((width, char) => {
|
|
27
|
-
if (/[a-z]/.test(char)) {
|
|
28
|
-
return width + 8;
|
|
29
|
-
}
|
|
30
|
-
if (/[A-Z]/.test(char)) {
|
|
31
|
-
return width + 12;
|
|
32
|
-
}
|
|
33
|
-
if (/\d/.test(char)) {
|
|
34
|
-
return width + 9;
|
|
35
|
-
}
|
|
36
|
-
if (/\./.test(char)) {
|
|
37
|
-
return width + 4;
|
|
38
|
-
}
|
|
39
|
-
if (/[\u4e00-\u9fa5]/.test(char)) {
|
|
40
|
-
return width + 15;
|
|
41
|
-
}
|
|
42
|
-
if (/-/.test(char)) {
|
|
43
|
-
return width + 4;
|
|
44
|
-
}
|
|
45
|
-
if (/[()]/.test(char)) {
|
|
46
|
-
return width + 14;
|
|
47
|
-
}
|
|
48
|
-
if (/[)(]/.test(char)) {
|
|
49
|
-
return width + 5;
|
|
50
|
-
}
|
|
51
|
-
if (/-/.test(char)) {
|
|
52
|
-
return width + 10;
|
|
53
|
-
}
|
|
54
|
-
if (/%/.test(char)) {
|
|
55
|
-
return width + 14;
|
|
56
|
-
}
|
|
57
|
-
if (/‰/.test(char)) {
|
|
58
|
-
return width + 16;
|
|
59
|
-
}
|
|
60
|
-
return width + 6;
|
|
61
|
-
}, 0);
|
|
62
|
-
});
|
|
63
23
|
const separateDataMap = ref(/* @__PURE__ */ new WeakMap());
|
|
64
24
|
function useSeparateMap() {
|
|
65
25
|
function getRowData(row) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.big-table-filter-wrap{background-color:#fff;border-radius:4px;-webkit-box-shadow:0 2px 8px rgba(0,0,0,.15);box-shadow:0 2px 8px rgba(0,0,0,.2);display:flex;flex-direction:column;flex-wrap:wrap;margin-top:-6px;min-width:280px;overflow:hidden;position:fixed;transform:translateX(-2%);transition:width 2s;z-index:99998}.big-table-filter-wrap .sort-list{margin-top:6px}.big-table-filter-wrap .sort-item{align-items:center;display:flex;height:32px;padding:0 13px}.big-table-filter-wrap .sort-item.active,.big-table-filter-wrap .sort-item:hover{background:#f2f2f2}.big-table-filter-wrap .sort-icon{background-size:contain;display:inline-block;height:16px;width:16px}.big-table-filter-wrap .sort-text{color:rgba(0,0,0,.8);font-size:14px;line-height:32px;margin-left:11px}.big-table-filter-wrap .sort-icon-desc{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAABT0lEQVRYR+3WvSuGYRTH8c9TykpJSimLMvgHpLyUCQsmg/wBMss/ILvdJgspNnkbZFYGk7JQSAaLwUuX7uFxu3E/nvvqSd3XeHW6zvec65zfORUNPpUG+1cClBnIysABhiMV5y4mqt/OAliPCHCImd8AIgWf/WzMIhzFK/Z/iigWQAtuE4A2PH0HEQugG5eJ005clwBlBmrJwDwGcorBNjYybOsqwit05QQ4R1/RAB3oqQHgoWiAnL5/NKvrC/4tQBNacYesDAR5fkxHV6QU72EQczhNSfE4VpOOmY01jsOyMYYXLGElcbSIZT4W4C1MxQIIUy9sU1ltGXyeYQSfuua7L2jOWYnPKbt2HKE3dR/0Iqx593lq4AT9OQE2MZ2yDTpyXKUlF0lthP3gy8nKwBqGcgLsYCHDNuwAAe4Nk7ipZRbk9F2MWZFt+CeiEuAdAU5CIQxYYdUAAAAASUVORK5CYII=")}.big-table-filter-wrap .filter-header{cursor:auto;padding:0 13px}.big-table-filter-wrap .filter-header-icon{border-right-color:#333;border-top-color:#333}.big-table-filter-wrap .filter-header-text{margin-left:11px}.big-table-filter-wrap .check-search-wrap{background:#f7f7f7;display:flex;justify-content:center;padding:8px 0;width:100%}.big-table-filter-wrap .check-seach-input{line-height:32px}.big-table-filter-wrap .checkbox-box{padding-right:3px;width:100%}.big-table-filter-wrap .checkbox-wrap{background:#fff;display:flex;flex-direction:column;overflow-y:auto;padding-left:13px;padding-right:3px}.big-table-filter-wrap .checkbox-wrap::-webkit-scrollbar{height:4px;width:4px}.big-table-filter-wrap .checkbox-wrap::-webkit-scrollbar-thumb{background-color:#d5d5d5;border-radius:4px}.big-table-filter-wrap .checkbox-wrap::-webkit-scrollbar-track{background-color:#fff;border-radius:4px}.big-table-filter-wrap .checkbox-wrap::-webkit-scrollbar-corner{background-color:#000;border-radius:4px;width:4px}.big-table-filter-wrap .checkbox-wrap--search{padding-right:10px}.big-table-filter-wrap .checkbox-btn-wrap{display:flex;padding:9px 10px 9px 14px}.big-table-filter-wrap .checkbox-btn-wrap .checkbox-btn{padding:0;width:56px}.big-table-filter-wrap .checkbox-btn-wrap .checkbox-btn+.checkbox-btn{margin-left:8px}.big-table-filter-wrap .checkbox-btn-wrap .checkbox-btn-status .checkbox-btn{border:0;border-radius:0;margin:0 13px;position:relative;width:auto}.big-table-filter-wrap .checkbox-btn-wrap .checkbox-btn-status .checkbox-btn:hover:after{background-color:#5585f5;bottom:5px;content:"";display:block;height:1px;position:absolute;width:100%}.big-table-filter-wrap .arrows-icon{bottom:-1px;cursor:nw-resize;font-size:15px;height:20px;position:absolute;right:-1px;width:25px}.big-table__separate{padding:4px}.big-table__separatePlaceholder{display:inline-block;max-width:0;visibility:hidden;width:0;word-break:keep-all}.custom-big-table{position:relative}.custom-big-table .n-input{width:fit-content}.custom-big-table .img-wrap{align-items:center;display:flex;height:100%;line-height:1;padding:2px 0}.custom-big-table .img-wrap img{cursor:pointer;max-height:100%;object-fit:contain}.custom-big-table .img-wrap.img-circle img{border-radius:50%;object-fit:contain;width:28px}.custom-big-table .bigTable-qr-span{display:inline-block;height:100%;position:relative}.custom-big-table .bigTable-qr-span .bigTable-qr-img{max-height:96%}.custom-big-table .bigTable-qr-span>span{align-items:center;background:rgba(0,0,0,.7);color:#fff;cursor:pointer;display:none;height:100%;justify-content:center;left:0;position:absolute;top:0;width:100%}.custom-big-table .bigTable-qr-span:hover>span{display:inline-flex}.custom-big-table .base-form{align-items:center;display:flex;overflow:hidden!important;width:100%}.custom-big-table .base-form-content{width:100%}.custom-big-table textarea{height:32px;margin-bottom:0;resize:none}.custom-big-table .formItem-select-multiple{align-items:center;display:flex;line-height:40px;width:100%}.custom-big-table.mt{height:calc(100% - 78px)!important;margin-top:26px}.custom-big-table.expand-padding .vxe-table .vxe-body--expanded-cell{padding-left:66px!important;padding-right:66px!important}.custom-big-table th.vxe-header--column{cursor:pointer}.custom-big-table .row-btn{margin-right:10px}.custom-big-table .vxe-table{transform:translateZ(0)}.custom-big-table .vxe-table .vxe-table--empty-content,.custom-big-table .vxe-table .vxe-table--empty-content>div{height:100%;width:100%}.custom-big-table .vxe-table .vxe-table--empty-content>div .no-data-tip{display:inline-flex}.custom-big-table .vxe-table .col--checkbox .vxe-cell,.custom-big-table .vxe-table .col--seq .vxe-cell{padding:0}.custom-big-table .vxe-table .col--checkbox .vxe-cell .vxe-checkbox--label,.custom-big-table .vxe-table .col--seq .vxe-cell .vxe-checkbox--label{padding-left:0}.custom-big-table .vxe-table .vxe-cell .vxe-tree-cell{height:100%}.custom-big-table .vxe-table .scan-multi-delete{color:#f06f64}.custom-big-table .vxe-table .vxe-table--header{background-color:#f2f2f2}.custom-big-table .vxe-table .vxe-table--header .vxe-header--column .vxe-cell--title{color:#35393c;height:100%;line-height:unset}.custom-big-table .vxe-table .vxe-table--header .vxe-header--column .vxe-cell--title .header-title-span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.custom-big-table .vxe-table .vxe-table--header .col--checkbox .vxe-cell--title,.custom-big-table .vxe-table .vxe-table--header .col--seq .vxe-cell--title{display:inline-block}.custom-big-table .vxe-table .vxe-table--body-wrapper::-webkit-scrollbar,.custom-big-table .vxe-table .vxe-table--footer-wrapper.body--wrapper::-webkit-scrollbar{background-color:transparent;height:10px;width:10px}.custom-big-table .vxe-table .vxe-table--body-wrapper::-webkit-scrollbar-thumb,.custom-big-table .vxe-table .vxe-table--footer-wrapper.body--wrapper::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:#f2f2f2;border:3px dashed transparent;border-radius:0}.custom-big-table .vxe-table .vxe-table--body-wrapper::-webkit-scrollbar-thumb:hover,.custom-big-table .vxe-table .vxe-table--footer-wrapper.body--wrapper::-webkit-scrollbar-thumb:hover{background:#b2b2b2}.custom-big-table .vxe-table .vxe-footer--row .vxe-footer--column>.vxe-cell .vxe-cell--item{height:30px;line-height:30px}.custom-big-table .vxe-table .vxe-cell--checkbox .vxe-checkbox--label{display:none}.custom-big-table .filter-box{align-items:center;display:flex;width:100%}.custom-big-table .filter-box .text-over-tooltip-components{max-width:calc(100% - 40px)}.custom-big-table .filter-box .vxe-filter--btn{border-right-color:#c0c4cc;border-top-color:#c0c4cc}.custom-big-table .filter-box .vxe-filter--btn.active{border-right-color:#35393c;border-top-color:#35393c}.custom-big-table .filter-box .vxe-filter--btn.checked{border-right-color:#5585f5;border-top-color:#5585f5}.custom-big-table .disabled-checked-tips{background:#fff;border:2px solid #ff1818;border-radius:50%;bottom:0;box-sizing:border-box;height:16px;margin-top:-8px;overflow:hidden;position:absolute;right:0;top:50%;width:16px}.custom-big-table .disabled-checked-tips:after{background-color:#ff1818;content:"";height:2px;left:0;position:absolute;top:0;transform:rotate(45deg);transform-origin:0 2px;width:16px}.custom-big-table .form-select-table .n-base-select-menu__empty{display:none}.custom-big-table .percent-wrap{align-items:center;display:flex;flex-direction:column;justify-content:center;text-align:center}.custom-big-table .percent-wrap .percent-value{line-height:1;margin-bottom:-4px;margin-top:4px}.custom-big-table .refresh{align-items:center;background-color:#fff;border-bottom-left-radius:14px;border-top-left-radius:14px;box-shadow:0 2px 4px 0 hsla(0,0%,42%,.13);color:#5585f5;cursor:pointer;display:flex;font-size:12px;height:27px;padding-left:14px;padding-right:14px;position:absolute;right:0;top:6px;z-index:1}.custom-big-table .refresh-row{margin-bottom:0;margin-left:3px}.custom-big-table .check-wrap{background:#ffffe9;display:flex;justify-content:center;line-height:26px;margin-top:-26px;position:absolute;width:100%}.custom-big-table .check-wrap .check-wrap-btn,.custom-big-table .check-wrap .check-wrap-title{color:#000;cursor:pointer;font-size:12px;margin-bottom:0}.custom-big-table .check-wrap .check-wrap-btn{color:#5585f5}.custom-big-table .domPropsInnerHTML-span{height:100%}.custom-big-table .domPropsInnerHTML-span img{display:inline-block;height:var(--tableImageHeight);width:var(--tableImageWidth)}.custom-big-table .domPropsInnerHTML-span .icon-dot-custom{background:var(--table-icon-color);box-shadow:0 2px 4px 0 var(--table-icon-shadow)}.custom-big-table .domPropsInnerHTML-span .icon-dot-custom,.custom-big-table .domPropsInnerHTML-span .icon-dot-red{-webkit-border-radius:50%;-moz-border-radius:50%;border-radius:50%;display:inline-block;height:8px;margin-right:6px;width:8px}.custom-big-table .domPropsInnerHTML-span .icon-dot-red{background:red;box-shadow:0 2px 4px 0 rgba(255,0,0,.5)}.custom-big-table .domPropsInnerHTML-span .icon-dot-blue{background:blue;box-shadow:0 2px 4px 0 rgba(0,0,255,.5)}.custom-big-table .domPropsInnerHTML-span .icon-dot-blue,.custom-big-table .domPropsInnerHTML-span .icon-dot-green{-webkit-border-radius:50%;-moz-border-radius:50%;border-radius:50%;display:inline-block;height:8px;margin-right:6px;width:8px}.custom-big-table .domPropsInnerHTML-span .icon-dot-green{background:green;box-shadow:0 2px 4px 0 rgba(0,128,0,.5)}.custom-big-table .domPropsInnerHTML-span .icon-dot-gray{background:gray;box-shadow:0 2px 4px 0 hsla(0,0%,50%,.5)}.custom-big-table .domPropsInnerHTML-span .icon-dot-gray,.custom-big-table .domPropsInnerHTML-span .icon-dot-yellow{-webkit-border-radius:50%;-moz-border-radius:50%;border-radius:50%;display:inline-block;height:8px;margin-right:6px;width:8px}.custom-big-table .domPropsInnerHTML-span .icon-dot-yellow{background:#ff0;box-shadow:0 2px 4px 0 rgba(255,255,0,.5)}.custom-big-table .domPropsInnerHTML-span .icon-dot-resolved{background:#36be8c;box-shadow:0 2px 4px 0 rgba(54,190,140,.5)}.custom-big-table .domPropsInnerHTML-span .icon-dot-huifu,.custom-big-table .domPropsInnerHTML-span .icon-dot-resolved{-webkit-border-radius:50%;-moz-border-radius:50%;border-radius:50%;display:inline-block;height:8px;margin-right:6px;width:8px}.custom-big-table .domPropsInnerHTML-span .icon-dot-huifu{background:#42d0f6;box-shadow:0 2px 4px 0 rgba(66,208,246,.5)}.custom-big-table .domPropsInnerHTML-span .icon-dot-close{background:#718391;box-shadow:0 2px 4px 0 rgba(113,131,145,.5)}.custom-big-table .domPropsInnerHTML-span .icon-dot-audit,.custom-big-table .domPropsInnerHTML-span .icon-dot-close{-webkit-border-radius:50%;-moz-border-radius:50%;border-radius:50%;display:inline-block;height:8px;margin-right:6px;width:8px}.custom-big-table .domPropsInnerHTML-span .icon-dot-audit{background:#f4ba32;box-shadow:0 2px 4px 0 rgba(244,186,50,.5)}.custom-big-table .domPropsInnerHTML-span .icon-dot-design{background:#927ce1;box-shadow:0 2px 4px 0 rgba(146,124,225,.5)}.custom-big-table .domPropsInnerHTML-span .icon-dot-design,.custom-big-table .domPropsInnerHTML-span .icon-dot-develop{-webkit-border-radius:50%;-moz-border-radius:50%;border-radius:50%;display:inline-block;height:8px;margin-right:6px;width:8px}.custom-big-table .domPropsInnerHTML-span .icon-dot-develop{background:#4eb0ef;box-shadow:0 2px 4px 0 rgba(78,176,239,.5)}.custom-big-table .domPropsInnerHTML-span .icon-dot-develop-complete{background:#6381f9;-webkit-border-radius:50%;-moz-border-radius:50%;border-radius:50%;box-shadow:0 2px 4px 0 rgba(99,129,249,.5);display:inline-block;height:8px;margin-right:6px;width:8px}.custom-big-table .vxe-table--render-default .vxe-table--fixed-left-wrapper.scrolling--middle{box-shadow:4px 0 4px 0 rgba(0,0,0,.12)}.custom-big-table .vxe-table--render-default .vxe-table--fixed-right-wrapper.scrolling--middle{box-shadow:-4px 0 4px 0 rgba(0,0,0,.12)}.custom-big-table .v-binder-follower-container{z-index:4!important}.annotation-edit{align-items:center;color:#0067ee;cursor:pointer;display:inline-flex;font-size:16px;user-select:none}.annotation-edit.is-active{color:#ff9828}.annotation-edit__icon{align-items:center;display:inline-flex}.no-data-tip{align-items:center;color:#333;display:flex;flex-direction:column;font-size:22px;height:100%;justify-content:center;width:100%}.no-data-tip>img{max-width:70%;width:260px}.no-data-tip>p{color:rgba(0,0,0,.8);font-size:16px;margin-bottom:0;margin-top:12px}.no-data-tip>span{color:rgba(0,0,0,.4);font-size:14px;margin-top:6px}.text-over-tooltip-components{display:inline-block;max-width:98%}.text-over-tooltip-components .ellipsis{color:#35393c;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.text-over-tooltip-components .ellipsis i{font-style:normal;white-space:nowrap;word-break:keep-all}.text-over-tooltip-components .fs20{color:green;font-size:20px;font-weight:600;line-height:22px}.text-over-tooltip-components .fs12{color:orange;font-size:12px;font-weight:400;line-height:14px}.svg-icon{fill:currentColor;height:1em;overflow:hidden;vertical-align:-.15em;width:1em}.vxe-header--column [annotation-hover-show=true]{visibility:hidden}.vxe-header--column:hover [annotation-hover-show=true]{visibility:visible}.big-table__annotationWrapper{align-items:center;display:inline-flex;width:20px}.big-table__annotationWrapper .is-active{position:relative;top:3px}
|
|
1
|
+
.big-table-filter-wrap{background-color:#fff;border-radius:4px;-webkit-box-shadow:0 2px 8px rgba(0,0,0,.15);box-shadow:0 2px 8px rgba(0,0,0,.2);display:flex;flex-direction:column;flex-wrap:wrap;margin-top:-6px;min-width:280px;overflow:hidden;position:fixed;transform:translateX(-2%);transition:width 2s;z-index:99998}.big-table-filter-wrap .sort-list{margin-top:6px}.big-table-filter-wrap .sort-item{align-items:center;display:flex;height:32px;padding:0 13px}.big-table-filter-wrap .sort-item.active,.big-table-filter-wrap .sort-item:hover{background:#f2f2f2}.big-table-filter-wrap .sort-icon{background-size:contain;display:inline-block;height:16px;width:16px}.big-table-filter-wrap .sort-text{color:rgba(0,0,0,.8);font-size:14px;line-height:32px;margin-left:11px}.big-table-filter-wrap .sort-icon-desc{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAABT0lEQVRYR+3WvSuGYRTH8c9TykpJSimLMvgHpLyUCQsmg/wBMss/ILvdJgspNnkbZFYGk7JQSAaLwUuX7uFxu3E/nvvqSd3XeHW6zvec65zfORUNPpUG+1cClBnIysABhiMV5y4mqt/OAliPCHCImd8AIgWf/WzMIhzFK/Z/iigWQAtuE4A2PH0HEQugG5eJ005clwBlBmrJwDwGcorBNjYybOsqwit05QQ4R1/RAB3oqQHgoWiAnL5/NKvrC/4tQBNacYesDAR5fkxHV6QU72EQczhNSfE4VpOOmY01jsOyMYYXLGElcbSIZT4W4C1MxQIIUy9sU1ltGXyeYQSfuua7L2jOWYnPKbt2HKE3dR/0Iqx593lq4AT9OQE2MZ2yDTpyXKUlF0lthP3gy8nKwBqGcgLsYCHDNuwAAe4Nk7ipZRbk9F2MWZFt+CeiEuAdAU5CIQxYYdUAAAAASUVORK5CYII=")}.big-table-filter-wrap .filter-header{cursor:auto;padding:0 13px}.big-table-filter-wrap .filter-header-icon{border-right-color:#333;border-top-color:#333}.big-table-filter-wrap .filter-header-text{margin-left:11px}.big-table-filter-wrap .check-search-wrap{background:#f7f7f7;display:flex;justify-content:center;padding:8px 0;width:100%}.big-table-filter-wrap .check-seach-input{line-height:32px}.big-table-filter-wrap .checkbox-box{padding-right:3px;width:100%}.big-table-filter-wrap .checkbox-wrap{background:#fff;display:flex;flex-direction:column;overflow-y:auto;padding-left:13px;padding-right:3px}.big-table-filter-wrap .checkbox-wrap::-webkit-scrollbar{height:4px;width:4px}.big-table-filter-wrap .checkbox-wrap::-webkit-scrollbar-thumb{background-color:#d5d5d5;border-radius:4px}.big-table-filter-wrap .checkbox-wrap::-webkit-scrollbar-track{background-color:#fff;border-radius:4px}.big-table-filter-wrap .checkbox-wrap::-webkit-scrollbar-corner{background-color:#000;border-radius:4px;width:4px}.big-table-filter-wrap .checkbox-wrap--search{padding-right:10px}.big-table-filter-wrap .checkbox-btn-wrap{display:flex;padding:9px 10px 9px 14px}.big-table-filter-wrap .checkbox-btn-wrap .checkbox-btn{padding:0;width:56px}.big-table-filter-wrap .checkbox-btn-wrap .checkbox-btn+.checkbox-btn{margin-left:8px}.big-table-filter-wrap .checkbox-btn-wrap .checkbox-btn-status .checkbox-btn{border:0;border-radius:0;margin:0 13px;position:relative;width:auto}.big-table-filter-wrap .checkbox-btn-wrap .checkbox-btn-status .checkbox-btn:hover:after{background-color:#5585f5;bottom:5px;content:"";display:block;height:1px;position:absolute;width:100%}.big-table-filter-wrap .arrows-icon{bottom:-1px;cursor:nw-resize;font-size:15px;height:20px;position:absolute;right:-1px;width:25px}.big-table__separate{padding:4px}.big-table__separatePlaceholder{display:inline-block;max-width:0;visibility:hidden;width:0;word-break:keep-all}.custom-big-table{position:relative}.custom-big-table .n-input{width:fit-content}.custom-big-table .img-wrap{align-items:center;display:flex;height:100%;line-height:1;padding:2px 0}.custom-big-table .img-wrap img{cursor:pointer;max-height:100%;object-fit:contain}.custom-big-table .img-wrap.img-circle img{border-radius:50%;object-fit:contain;width:28px}.custom-big-table .bigTable-qr-span{display:inline-block;height:100%;position:relative}.custom-big-table .bigTable-qr-span .bigTable-qr-img{max-height:96%}.custom-big-table .bigTable-qr-span>span{align-items:center;background:rgba(0,0,0,.7);color:#fff;cursor:pointer;display:none;height:100%;justify-content:center;left:0;position:absolute;top:0;width:100%}.custom-big-table .bigTable-qr-span:hover>span{display:inline-flex}.custom-big-table .base-form{align-items:center;display:flex;overflow:hidden!important;width:100%}.custom-big-table .base-form-content{width:100%}.custom-big-table textarea{height:32px;margin-bottom:0;resize:none}.custom-big-table .formItem-select-multiple{align-items:center;display:flex;line-height:40px;width:100%}.custom-big-table.mt{height:calc(100% - 78px)!important;margin-top:26px}.custom-big-table.expand-padding .vxe-table .vxe-body--expanded-cell{padding-left:66px!important;padding-right:66px!important}.custom-big-table th.vxe-header--column{cursor:pointer}.custom-big-table .row-btn{margin-right:10px}.custom-big-table .vxe-table{transform:translateZ(0)}.custom-big-table .vxe-table .vxe-table--empty-content,.custom-big-table .vxe-table .vxe-table--empty-content>div{height:100%;width:100%}.custom-big-table .vxe-table .vxe-table--empty-content>div .no-data-tip{display:inline-flex}.custom-big-table .vxe-table .col--checkbox .vxe-cell,.custom-big-table .vxe-table .col--seq .vxe-cell{padding:0}.custom-big-table .vxe-table .col--checkbox .vxe-cell .vxe-checkbox--label,.custom-big-table .vxe-table .col--seq .vxe-cell .vxe-checkbox--label{padding-left:0}.custom-big-table .vxe-table .vxe-cell .vxe-tree-cell{height:100%}.custom-big-table .vxe-table .scan-multi-delete{color:#f06f64}.custom-big-table .vxe-table .vxe-table--header{background-color:#f2f2f2}.custom-big-table .vxe-table .vxe-table--header .vxe-header--column .vxe-cell--title{color:#35393c;height:100%;line-height:unset}.custom-big-table .vxe-table .vxe-table--header .vxe-header--column .vxe-cell--title .header-title-span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.custom-big-table .vxe-table .vxe-table--header .col--checkbox .vxe-cell--title,.custom-big-table .vxe-table .vxe-table--header .col--seq .vxe-cell--title{display:inline-block}.custom-big-table .vxe-table .vxe-table--body-wrapper::-webkit-scrollbar,.custom-big-table .vxe-table .vxe-table--footer-wrapper.body--wrapper::-webkit-scrollbar{background-color:transparent;height:10px;width:10px}.custom-big-table .vxe-table .vxe-table--body-wrapper::-webkit-scrollbar-thumb,.custom-big-table .vxe-table .vxe-table--footer-wrapper.body--wrapper::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:#f2f2f2;border:3px dashed transparent;border-radius:0}.custom-big-table .vxe-table .vxe-table--body-wrapper::-webkit-scrollbar-thumb:hover,.custom-big-table .vxe-table .vxe-table--footer-wrapper.body--wrapper::-webkit-scrollbar-thumb:hover{background:#b2b2b2}.custom-big-table .vxe-table .vxe-footer--row .vxe-footer--column>.vxe-cell .vxe-cell--item{height:30px;line-height:30px}.custom-big-table .vxe-table .vxe-cell--checkbox .vxe-checkbox--label{display:none}.custom-big-table .filter-box{align-items:center;display:flex;width:100%}.custom-big-table .filter-box .text-over-tooltip-components{max-width:calc(100% - 40px)}.custom-big-table .filter-box .vxe-filter--btn{border-right-color:#c0c4cc;border-top-color:#c0c4cc}.custom-big-table .filter-box .vxe-filter--btn.active{border-right-color:#35393c;border-top-color:#35393c}.custom-big-table .filter-box .vxe-filter--btn.checked{border-right-color:#5585f5;border-top-color:#5585f5}.custom-big-table .disabled-checked-tips{background:#fff;border:2px solid #ff1818;border-radius:50%;bottom:0;box-sizing:border-box;height:16px;margin-top:-8px;overflow:hidden;position:absolute;right:0;top:50%;width:16px}.custom-big-table .disabled-checked-tips:after{background-color:#ff1818;content:"";height:2px;left:0;position:absolute;top:0;transform:rotate(45deg);transform-origin:0 2px;width:16px}.custom-big-table .form-select-table .n-base-select-menu__empty{display:none}.custom-big-table .percent-wrap{align-items:center;display:flex;flex-direction:column;justify-content:center;text-align:center}.custom-big-table .percent-wrap .percent-value{line-height:1;margin-bottom:-4px;margin-top:4px}.custom-big-table .refresh{align-items:center;background-color:#fff;border-bottom-left-radius:14px;border-top-left-radius:14px;box-shadow:0 2px 4px 0 hsla(0,0%,42%,.13);color:#5585f5;cursor:pointer;display:flex;font-size:12px;height:27px;padding-left:14px;padding-right:14px;position:absolute;right:0;top:6px;z-index:1}.custom-big-table .refresh-row{margin-bottom:0;margin-left:3px}.custom-big-table .check-wrap{background:#ffffe9;display:flex;justify-content:center;line-height:26px;margin-top:-26px;position:absolute;width:100%}.custom-big-table .check-wrap .check-wrap-btn,.custom-big-table .check-wrap .check-wrap-title{color:#000;cursor:pointer;font-size:12px;margin-bottom:0}.custom-big-table .check-wrap .check-wrap-btn{color:#5585f5}.custom-big-table .domPropsInnerHTML-span{height:100%}.custom-big-table .domPropsInnerHTML-span img{display:inline-block;height:var(--tableImageHeight);width:var(--tableImageWidth)}.custom-big-table .domPropsInnerHTML-span .icon-dot-custom{background:var(--table-icon-color);box-shadow:0 2px 4px 0 var(--table-icon-shadow)}.custom-big-table .domPropsInnerHTML-span .icon-dot-custom,.custom-big-table .domPropsInnerHTML-span .icon-dot-red{-webkit-border-radius:50%;-moz-border-radius:50%;border-radius:50%;display:inline-block;height:8px;margin-right:6px;width:8px}.custom-big-table .domPropsInnerHTML-span .icon-dot-red{background:red;box-shadow:0 2px 4px 0 rgba(255,0,0,.5)}.custom-big-table .domPropsInnerHTML-span .icon-dot-blue{background:blue;box-shadow:0 2px 4px 0 rgba(0,0,255,.5)}.custom-big-table .domPropsInnerHTML-span .icon-dot-blue,.custom-big-table .domPropsInnerHTML-span .icon-dot-green{-webkit-border-radius:50%;-moz-border-radius:50%;border-radius:50%;display:inline-block;height:8px;margin-right:6px;width:8px}.custom-big-table .domPropsInnerHTML-span .icon-dot-green{background:green;box-shadow:0 2px 4px 0 rgba(0,128,0,.5)}.custom-big-table .domPropsInnerHTML-span .icon-dot-gray{background:gray;box-shadow:0 2px 4px 0 hsla(0,0%,50%,.5)}.custom-big-table .domPropsInnerHTML-span .icon-dot-gray,.custom-big-table .domPropsInnerHTML-span .icon-dot-yellow{-webkit-border-radius:50%;-moz-border-radius:50%;border-radius:50%;display:inline-block;height:8px;margin-right:6px;width:8px}.custom-big-table .domPropsInnerHTML-span .icon-dot-yellow{background:#ff0;box-shadow:0 2px 4px 0 rgba(255,255,0,.5)}.custom-big-table .domPropsInnerHTML-span .icon-dot-resolved{background:#36be8c;box-shadow:0 2px 4px 0 rgba(54,190,140,.5)}.custom-big-table .domPropsInnerHTML-span .icon-dot-huifu,.custom-big-table .domPropsInnerHTML-span .icon-dot-resolved{-webkit-border-radius:50%;-moz-border-radius:50%;border-radius:50%;display:inline-block;height:8px;margin-right:6px;width:8px}.custom-big-table .domPropsInnerHTML-span .icon-dot-huifu{background:#42d0f6;box-shadow:0 2px 4px 0 rgba(66,208,246,.5)}.custom-big-table .domPropsInnerHTML-span .icon-dot-close{background:#718391;box-shadow:0 2px 4px 0 rgba(113,131,145,.5)}.custom-big-table .domPropsInnerHTML-span .icon-dot-audit,.custom-big-table .domPropsInnerHTML-span .icon-dot-close{-webkit-border-radius:50%;-moz-border-radius:50%;border-radius:50%;display:inline-block;height:8px;margin-right:6px;width:8px}.custom-big-table .domPropsInnerHTML-span .icon-dot-audit{background:#f4ba32;box-shadow:0 2px 4px 0 rgba(244,186,50,.5)}.custom-big-table .domPropsInnerHTML-span .icon-dot-design{background:#927ce1;box-shadow:0 2px 4px 0 rgba(146,124,225,.5)}.custom-big-table .domPropsInnerHTML-span .icon-dot-design,.custom-big-table .domPropsInnerHTML-span .icon-dot-develop{-webkit-border-radius:50%;-moz-border-radius:50%;border-radius:50%;display:inline-block;height:8px;margin-right:6px;width:8px}.custom-big-table .domPropsInnerHTML-span .icon-dot-develop{background:#4eb0ef;box-shadow:0 2px 4px 0 rgba(78,176,239,.5)}.custom-big-table .domPropsInnerHTML-span .icon-dot-develop-complete{background:#6381f9;-webkit-border-radius:50%;-moz-border-radius:50%;border-radius:50%;box-shadow:0 2px 4px 0 rgba(99,129,249,.5);display:inline-block;height:8px;margin-right:6px;width:8px}.custom-big-table .vxe-table--render-default .vxe-table--fixed-left-wrapper.scrolling--middle{box-shadow:4px 0 4px 0 rgba(0,0,0,.12)}.custom-big-table .vxe-table--render-default .vxe-table--fixed-right-wrapper.scrolling--middle{box-shadow:-4px 0 4px 0 rgba(0,0,0,.12)}.annotation-edit{align-items:center;color:#0067ee;cursor:pointer;display:inline-flex;font-size:16px;user-select:none}.annotation-edit.is-active{color:#ff9828}.annotation-edit__icon{align-items:center;display:inline-flex}.no-data-tip{align-items:center;color:#333;display:flex;flex-direction:column;font-size:22px;height:100%;justify-content:center;width:100%}.no-data-tip>img{max-width:70%;width:260px}.no-data-tip>p{color:rgba(0,0,0,.8);font-size:16px;margin-bottom:0;margin-top:12px}.no-data-tip>span{color:rgba(0,0,0,.4);font-size:14px;margin-top:6px}.text-over-tooltip-components{display:inline-block;max-width:98%}.text-over-tooltip-components .ellipsis{color:#35393c;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.text-over-tooltip-components .ellipsis i{font-style:normal;white-space:nowrap;word-break:keep-all}.text-over-tooltip-components .fs20{color:green;font-size:20px;font-weight:600;line-height:22px}.text-over-tooltip-components .fs12{color:orange;font-size:12px;font-weight:400;line-height:14px}.svg-icon{fill:currentColor;height:1em;overflow:hidden;vertical-align:-.15em;width:1em}.vxe-header--column [annotation-hover-show=true]{visibility:hidden}.vxe-header--column:hover [annotation-hover-show=true]{visibility:visible}.big-table__annotationWrapper{align-items:center;display:inline-flex;width:20px}.big-table__annotationWrapper .is-active{position:relative;top:3px}
|
|
@@ -118,7 +118,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
118
118
|
Reflect.deleteProperty(item, key);
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
|
-
item
|
|
121
|
+
if (!Reflect.has(item, "columnWidth")) {
|
|
122
|
+
item.columnWidth = null;
|
|
123
|
+
} else {
|
|
124
|
+
item.columnWidth = +item.columnWidth;
|
|
125
|
+
}
|
|
122
126
|
if (!Reflect.has(item, "alias")) {
|
|
123
127
|
item.alias = "";
|
|
124
128
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { uuidGenerator } from '../../../../shared/utils/index2.js';
|
|
1
2
|
import { isObject } from '@vue/shared';
|
|
2
3
|
import { cloneDeep } from 'lodash-es';
|
|
3
4
|
import { provide, computed, readonly } from 'vue';
|
|
@@ -6,7 +7,7 @@ import '../../index2.js';
|
|
|
6
7
|
import * as index from '../components/renderer/index2.js';
|
|
7
8
|
import { useFormRenderLifeCycle } from './useFormRenderLifeCycle2.js';
|
|
8
9
|
import { usePresetScope } from './usePresetScope2.js';
|
|
9
|
-
import { injectOrProvide,
|
|
10
|
+
import { injectOrProvide, presetRequestHandler } from '../utils/index.js';
|
|
10
11
|
import { InjectionBusinessCollector, InjectionChangeContextCollector, InjectionFormItemDepsCollector, InjectionFormUUID, InjectionAnnotation, InjectAsyncQueue, InjectionSchemaField } from '../constants/index2.js';
|
|
11
12
|
import { useBusinessBinding } from './useBusinessBinding2.js';
|
|
12
13
|
import { useChangeContext } from './useChangeContext2.js';
|
|
@@ -8,7 +8,6 @@ export declare function formRenderLog(message: string): void;
|
|
|
8
8
|
export declare function mergeDeepProperties(target: AnyObject, fieldList: FieldItem[], traverseProperties?: string[], property?: string, targetProperty?: string): AnyObject;
|
|
9
9
|
export declare function injectOrProvide<T>(key: InjectionKey<T>, creator: () => T): T;
|
|
10
10
|
export declare function parseNumberFromMaybeString<T>(value: T): T extends number | string ? number : T;
|
|
11
|
-
export declare function uuidGenerator(): string;
|
|
12
11
|
export declare function createSlot(renderer: unknown, props: AnyObject): Record<string, () => ArrayAble<VNode>> | {
|
|
13
12
|
default(): any;
|
|
14
13
|
};
|
|
@@ -50,15 +50,6 @@ function parseNumberFromMaybeString(value) {
|
|
|
50
50
|
return +value;
|
|
51
51
|
return value;
|
|
52
52
|
}
|
|
53
|
-
function uuidGenerator() {
|
|
54
|
-
if (window.isSecureContext && window.crypto)
|
|
55
|
-
return `key${window.crypto.randomUUID()}`;
|
|
56
|
-
const uuid = "xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(c) {
|
|
57
|
-
const r = Math.random() * 16 | 0, v = c == "x" ? r : r & 3 | 8;
|
|
58
|
-
return v.toString(16);
|
|
59
|
-
});
|
|
60
|
-
return `key${uuid}`;
|
|
61
|
-
}
|
|
62
53
|
function createSlot(renderer, props) {
|
|
63
54
|
if (isObject(renderer) && !isFunction(renderer)) {
|
|
64
55
|
const result = {};
|
|
@@ -134,4 +125,4 @@ function optionMatcher(options, input, key, matcherOption = {
|
|
|
134
125
|
}
|
|
135
126
|
}
|
|
136
127
|
|
|
137
|
-
export { createInputSlot, createSlot, formRenderLog, injectOrProvide, mergeDeepProperties, optionMatcher, parseNumberFromMaybeString, presetRequestHandler
|
|
128
|
+
export { createInputSlot, createSlot, formRenderLog, injectOrProvide, mergeDeepProperties, optionMatcher, parseNumberFromMaybeString, presetRequestHandler };
|