sun-biz 0.0.2-beta.23 → 0.0.2-beta.24
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/dist/components/index.js +13 -2
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.js +97 -1
- package/dist/hooks/use-editable-table/index.d.ts +29 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +109 -3
- package/package.json +1 -1
package/dist/components/index.js
CHANGED
|
@@ -4,6 +4,7 @@ import * as __WEBPACK_EXTERNAL_MODULE_element_sun__ from "element-sun";
|
|
|
4
4
|
import * as __WEBPACK_EXTERNAL_MODULE_sortablejs__ from "sortablejs";
|
|
5
5
|
import * as __WEBPACK_EXTERNAL_MODULE__element_sun_icons_vue__ from "@element-sun/icons-vue";
|
|
6
6
|
import * as __WEBPACK_EXTERNAL_MODULE__sun_toolkit_enums__ from "@sun-toolkit/enums";
|
|
7
|
+
import "@sun-toolkit/shared";
|
|
7
8
|
import * as __WEBPACK_EXTERNAL_MODULE_i18next_vue__ from "i18next-vue";
|
|
8
9
|
import * as __WEBPACK_EXTERNAL_MODULE_js_pinyin__ from "js-pinyin";
|
|
9
10
|
var __webpack_modules__ = {
|
|
@@ -3617,12 +3618,22 @@ const DICT_SELECT = 'dictSelect';
|
|
|
3617
3618
|
}, {
|
|
3618
3619
|
...(0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(attrs)
|
|
3619
3620
|
}), {
|
|
3621
|
+
label: (0, __WEBPACK_EXTERNAL_MODULE_vue__.withCtx)(({ label })=>[
|
|
3622
|
+
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("span", null, (0, __WEBPACK_EXTERNAL_MODULE_vue__.toDisplayString)(label?.split('|')?.[0]), 1)
|
|
3623
|
+
]),
|
|
3620
3624
|
default: (0, __WEBPACK_EXTERNAL_MODULE_vue__.withCtx)(()=>[
|
|
3621
3625
|
((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(true), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementBlock)(__WEBPACK_EXTERNAL_MODULE_vue__.Fragment, null, (0, __WEBPACK_EXTERNAL_MODULE_vue__.renderList)((0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(attrs).options, (item)=>((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createBlock)(_component_el_option, {
|
|
3626
|
+
disabled: !!item?.disabled,
|
|
3622
3627
|
key: __WEBPACK_EXTERNAL_MODULE_vue__.unref(attrs)?.props?.value ? item[(0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(attrs).props.value] : item.value ?? item.dataValueNo,
|
|
3623
|
-
label: __WEBPACK_EXTERNAL_MODULE_vue__.unref(attrs)?.props?.label ? item[(0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(attrs).props.label] : item.label ?? item.dataValueNameDisplay,
|
|
3628
|
+
label: (__WEBPACK_EXTERNAL_MODULE_vue__.unref(attrs)?.props?.label ? item[(0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(attrs).props.label] : item.label ?? item.dataValueNameDisplay) + '|' + (item?.spellNo ?? ''),
|
|
3624
3629
|
value: __WEBPACK_EXTERNAL_MODULE_vue__.unref(attrs)?.props?.value ? item[(0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(attrs).props.value] : item.value ?? item.dataValueNo
|
|
3625
|
-
},
|
|
3630
|
+
}, {
|
|
3631
|
+
default: (0, __WEBPACK_EXTERNAL_MODULE_vue__.withCtx)(()=>[
|
|
3632
|
+
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode)((0, __WEBPACK_EXTERNAL_MODULE_vue__.toDisplayString)(__WEBPACK_EXTERNAL_MODULE_vue__.unref(attrs)?.props?.label ? item[(0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(attrs).props.label] : item.label ?? item.dataValueNameDisplay), 1)
|
|
3633
|
+
]),
|
|
3634
|
+
_: 2
|
|
3635
|
+
}, 1032, [
|
|
3636
|
+
"disabled",
|
|
3626
3637
|
"label",
|
|
3627
3638
|
"value"
|
|
3628
3639
|
]))), 128))
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -2,4 +2,5 @@ export { default as useRequest } from "./use-request/index.ts";
|
|
|
2
2
|
export { default as useAppConfigData, MAIN_APP_CONFIG, } from "./use-app-config/index.ts";
|
|
3
3
|
export { default as useDirectionSelect } from "./use-direction-select/index.ts";
|
|
4
4
|
export { default as useFetchDataset } from "./use-fetch-dataset/index.ts";
|
|
5
|
+
export { default as useEditableTable } from './use-editable-table/index.ts';
|
|
5
6
|
export { useColumnConfig, useFormConfig, } from "./use-column&form-config/index.ts";
|
package/dist/hooks/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
|
|
2
2
|
import * as __WEBPACK_EXTERNAL_MODULE__sun_toolkit_request__ from "@sun-toolkit/request";
|
|
3
3
|
import * as __WEBPACK_EXTERNAL_MODULE__sun_toolkit_enums__ from "@sun-toolkit/enums";
|
|
4
|
+
import * as __WEBPACK_EXTERNAL_MODULE__sun_toolkit_shared__ from "@sun-toolkit/shared";
|
|
4
5
|
import * as __WEBPACK_EXTERNAL_MODULE_i18next_vue__ from "i18next-vue";
|
|
5
6
|
/* eslint-disable @typescript-eslint/no-explicit-any */ // support refreshDeps & ready
|
|
6
7
|
const useAutoRunPlugin = (fetchInstance, { manual, ready = true, refreshDeps = [], refreshDepsAction })=>{
|
|
@@ -453,6 +454,101 @@ function useFetchDataset(codeSystemCodes, enabledFlag) {
|
|
|
453
454
|
return list;
|
|
454
455
|
}
|
|
455
456
|
/* ESM default export */ const use_fetch_dataset = useFetchDataset;
|
|
457
|
+
/**
|
|
458
|
+
* 表格编辑功能
|
|
459
|
+
*/ function useEditableTable(options) {
|
|
460
|
+
const { tableRef, data, rowKey = 'key', cancelToDelete = true, id } = options;
|
|
461
|
+
const tableData = data ? data : (0, __WEBPACK_EXTERNAL_MODULE_vue__.ref)([]);
|
|
462
|
+
const cachedEditData = {};
|
|
463
|
+
const getRowKey = (row)=>row?.[rowKey] ? rowKey : id;
|
|
464
|
+
/**
|
|
465
|
+
* 校验行数据规则
|
|
466
|
+
*/ const validateItem = async (row)=>{
|
|
467
|
+
const cacheKey = getRowKey(row);
|
|
468
|
+
const index = tableData.value.findIndex((item)=>item[cacheKey] === row[cacheKey]);
|
|
469
|
+
try {
|
|
470
|
+
const isValid = await tableRef?.value?.validateRow(index);
|
|
471
|
+
return !!isValid;
|
|
472
|
+
} catch (e) {
|
|
473
|
+
console.log(e);
|
|
474
|
+
return false;
|
|
475
|
+
}
|
|
476
|
+
};
|
|
477
|
+
/**
|
|
478
|
+
* 切换编辑状态
|
|
479
|
+
*/ const toggleEdit = async (row)=>{
|
|
480
|
+
const cacheKey = getRowKey(row);
|
|
481
|
+
if (row.editable) {
|
|
482
|
+
const index = tableData.value.findIndex((item)=>item[cacheKey] === row[cacheKey]);
|
|
483
|
+
try {
|
|
484
|
+
const isValid = await tableRef?.value?.validateRow(index);
|
|
485
|
+
if (isValid) {
|
|
486
|
+
row.editable = false;
|
|
487
|
+
if (cachedEditData[row[cacheKey]]) delete cachedEditData[row[cacheKey]];
|
|
488
|
+
}
|
|
489
|
+
} catch (e) {
|
|
490
|
+
console.log(e);
|
|
491
|
+
}
|
|
492
|
+
} else {
|
|
493
|
+
if (row[cacheKey]) cachedEditData[row[cacheKey]] = (0, __WEBPACK_EXTERNAL_MODULE__sun_toolkit_shared__.cloneDeep)(row);
|
|
494
|
+
row.editable = true;
|
|
495
|
+
}
|
|
496
|
+
};
|
|
497
|
+
/**
|
|
498
|
+
* 取消编辑
|
|
499
|
+
* @param row
|
|
500
|
+
*/ const cancelEdit = (row, index, deleteWithoutId = true)=>{
|
|
501
|
+
const targetData = cachedEditData[row[getRowKey(row)]];
|
|
502
|
+
if ((row?.[id] || cancelToDelete || !deleteWithoutId) && targetData) Object.keys(row).forEach((key)=>{
|
|
503
|
+
row[key] = targetData[key];
|
|
504
|
+
});
|
|
505
|
+
else tableData.value.splice(index, 1);
|
|
506
|
+
row.editable = false;
|
|
507
|
+
};
|
|
508
|
+
const addItem = (row)=>{
|
|
509
|
+
if (row?.[rowKey]) tableData.value.push({
|
|
510
|
+
...row
|
|
511
|
+
});
|
|
512
|
+
else tableData.value.push({
|
|
513
|
+
...row,
|
|
514
|
+
key: (0, __WEBPACK_EXTERNAL_MODULE__sun_toolkit_shared__.generateUUID)()
|
|
515
|
+
});
|
|
516
|
+
};
|
|
517
|
+
/**
|
|
518
|
+
* 插入行
|
|
519
|
+
* @param row
|
|
520
|
+
* @param index
|
|
521
|
+
*/ const insertItem = (row, index, step = 0)=>{
|
|
522
|
+
if (row?.[rowKey]) tableData.value.splice(index + step, 0, {
|
|
523
|
+
...row
|
|
524
|
+
});
|
|
525
|
+
else tableData.value.splice(index + step, 0, {
|
|
526
|
+
...row,
|
|
527
|
+
key: (0, __WEBPACK_EXTERNAL_MODULE__sun_toolkit_shared__.generateUUID)()
|
|
528
|
+
});
|
|
529
|
+
};
|
|
530
|
+
const delItem = (index)=>{
|
|
531
|
+
tableData.value.splice(index, 1);
|
|
532
|
+
};
|
|
533
|
+
const updateItem = (row, index)=>{
|
|
534
|
+
if (void 0 === index) {
|
|
535
|
+
const cacheKey = getRowKey(row);
|
|
536
|
+
const index = tableData.value.findIndex((item)=>item[cacheKey] === row[cacheKey]);
|
|
537
|
+
tableData.value[index] = row;
|
|
538
|
+
} else tableData.value[index] = row;
|
|
539
|
+
};
|
|
540
|
+
return {
|
|
541
|
+
tableData,
|
|
542
|
+
toggleEdit,
|
|
543
|
+
cancelEdit,
|
|
544
|
+
addItem,
|
|
545
|
+
delItem,
|
|
546
|
+
insertItem,
|
|
547
|
+
updateItem,
|
|
548
|
+
validateItem
|
|
549
|
+
};
|
|
550
|
+
}
|
|
551
|
+
/* ESM default export */ const use_editable_table = useEditableTable;
|
|
456
552
|
function useFormConfig(options) {
|
|
457
553
|
const { t } = (0, __WEBPACK_EXTERNAL_MODULE_i18next_vue__.useTranslation)();
|
|
458
554
|
const { getData, dataSetCodes } = options;
|
|
@@ -467,4 +563,4 @@ function useColumnConfig(options) {
|
|
|
467
563
|
const data = (0, __WEBPACK_EXTERNAL_MODULE_vue__.computed)(()=>getData(t, dataSet));
|
|
468
564
|
return data;
|
|
469
565
|
}
|
|
470
|
-
export { use_app_config_MAIN_APP_CONFIG as MAIN_APP_CONFIG, use_app_config as useAppConfigData, useColumnConfig, use_direction_select as useDirectionSelect, use_fetch_dataset as useFetchDataset, useFormConfig, use_request as useRequest };
|
|
566
|
+
export { use_app_config_MAIN_APP_CONFIG as MAIN_APP_CONFIG, use_app_config as useAppConfigData, useColumnConfig, use_direction_select as useDirectionSelect, use_editable_table as useEditableTable, use_fetch_dataset as useFetchDataset, useFormConfig, use_request as useRequest };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import type { FormInstance } from 'element-sun';
|
|
3
|
+
export type TableRef = {
|
|
4
|
+
formRef: FormInstance;
|
|
5
|
+
validateRow: (index: number, cb?: (isValid: boolean) => void) => Promise<boolean>;
|
|
6
|
+
} | undefined;
|
|
7
|
+
/**
|
|
8
|
+
* 表格编辑功能
|
|
9
|
+
*/
|
|
10
|
+
export declare function useEditableTable<TData extends {
|
|
11
|
+
editable: boolean;
|
|
12
|
+
[key: string]: any;
|
|
13
|
+
}>(options: {
|
|
14
|
+
tableRef: Ref<TableRef, TableRef>;
|
|
15
|
+
data?: Ref<TData[]>;
|
|
16
|
+
rowKey?: string;
|
|
17
|
+
id: string;
|
|
18
|
+
cancelToDelete?: boolean;
|
|
19
|
+
}): {
|
|
20
|
+
tableData: Ref<TData[], TData[]>;
|
|
21
|
+
toggleEdit: (row: TData) => Promise<void>;
|
|
22
|
+
cancelEdit: (row: TData, index: number, deleteWithoutId?: boolean) => void;
|
|
23
|
+
addItem: (row: TData) => void;
|
|
24
|
+
delItem: (index: number) => void;
|
|
25
|
+
insertItem: (row: TData, index: number, step?: number) => void;
|
|
26
|
+
updateItem: (row: TData, index?: number) => void;
|
|
27
|
+
validateItem: (row: TData) => Promise<boolean>;
|
|
28
|
+
};
|
|
29
|
+
export default useEditableTable;
|
package/dist/index.d.ts
CHANGED
|
@@ -14,5 +14,6 @@ export { default as useRequest } from "./hooks/use-request";
|
|
|
14
14
|
export { default as useAppConfigData, MAIN_APP_CONFIG, } from "./hooks/use-app-config";
|
|
15
15
|
export { default as useDirectionSelect } from "./hooks/use-direction-select";
|
|
16
16
|
export { default as useFetchDataset } from "./hooks/use-fetch-dataset";
|
|
17
|
+
export { default as useEditableTable } from './hooks/use-editable-table';
|
|
17
18
|
export { useColumnConfig, useFormConfig } from "./hooks/use-column&form-config";
|
|
18
19
|
export { debounce, isNumber, decimalCount, formatDecimalNumber } from "./utils";
|
package/dist/index.js
CHANGED
|
@@ -4,6 +4,7 @@ import * as __WEBPACK_EXTERNAL_MODULE_sortablejs__ from "sortablejs";
|
|
|
4
4
|
import * as __WEBPACK_EXTERNAL_MODULE__element_sun_icons_vue__ from "@element-sun/icons-vue";
|
|
5
5
|
import * as __WEBPACK_EXTERNAL_MODULE__sun_toolkit_enums__ from "@sun-toolkit/enums";
|
|
6
6
|
import * as __WEBPACK_EXTERNAL_MODULE__sun_toolkit_request__ from "@sun-toolkit/request";
|
|
7
|
+
import * as __WEBPACK_EXTERNAL_MODULE__sun_toolkit_shared__ from "@sun-toolkit/shared";
|
|
7
8
|
import * as __WEBPACK_EXTERNAL_MODULE_i18next_vue__ from "i18next-vue";
|
|
8
9
|
import * as __WEBPACK_EXTERNAL_MODULE_js_pinyin__ from "js-pinyin";
|
|
9
10
|
var __webpack_modules__ = {
|
|
@@ -2117,6 +2118,101 @@ function useSelectByDirectionEvent(options) {
|
|
|
2117
2118
|
});
|
|
2118
2119
|
}
|
|
2119
2120
|
/* ESM default export */ const use_direction_select = useSelectByDirectionEvent;
|
|
2121
|
+
/**
|
|
2122
|
+
* 表格编辑功能
|
|
2123
|
+
*/ function useEditableTable(options) {
|
|
2124
|
+
const { tableRef, data, rowKey = 'key', cancelToDelete = true, id } = options;
|
|
2125
|
+
const tableData = data ? data : (0, __WEBPACK_EXTERNAL_MODULE_vue__.ref)([]);
|
|
2126
|
+
const cachedEditData = {};
|
|
2127
|
+
const getRowKey = (row)=>row?.[rowKey] ? rowKey : id;
|
|
2128
|
+
/**
|
|
2129
|
+
* 校验行数据规则
|
|
2130
|
+
*/ const validateItem = async (row)=>{
|
|
2131
|
+
const cacheKey = getRowKey(row);
|
|
2132
|
+
const index = tableData.value.findIndex((item)=>item[cacheKey] === row[cacheKey]);
|
|
2133
|
+
try {
|
|
2134
|
+
const isValid = await tableRef?.value?.validateRow(index);
|
|
2135
|
+
return !!isValid;
|
|
2136
|
+
} catch (e) {
|
|
2137
|
+
console.log(e);
|
|
2138
|
+
return false;
|
|
2139
|
+
}
|
|
2140
|
+
};
|
|
2141
|
+
/**
|
|
2142
|
+
* 切换编辑状态
|
|
2143
|
+
*/ const toggleEdit = async (row)=>{
|
|
2144
|
+
const cacheKey = getRowKey(row);
|
|
2145
|
+
if (row.editable) {
|
|
2146
|
+
const index = tableData.value.findIndex((item)=>item[cacheKey] === row[cacheKey]);
|
|
2147
|
+
try {
|
|
2148
|
+
const isValid = await tableRef?.value?.validateRow(index);
|
|
2149
|
+
if (isValid) {
|
|
2150
|
+
row.editable = false;
|
|
2151
|
+
if (cachedEditData[row[cacheKey]]) delete cachedEditData[row[cacheKey]];
|
|
2152
|
+
}
|
|
2153
|
+
} catch (e) {
|
|
2154
|
+
console.log(e);
|
|
2155
|
+
}
|
|
2156
|
+
} else {
|
|
2157
|
+
if (row[cacheKey]) cachedEditData[row[cacheKey]] = (0, __WEBPACK_EXTERNAL_MODULE__sun_toolkit_shared__.cloneDeep)(row);
|
|
2158
|
+
row.editable = true;
|
|
2159
|
+
}
|
|
2160
|
+
};
|
|
2161
|
+
/**
|
|
2162
|
+
* 取消编辑
|
|
2163
|
+
* @param row
|
|
2164
|
+
*/ const cancelEdit = (row, index, deleteWithoutId = true)=>{
|
|
2165
|
+
const targetData = cachedEditData[row[getRowKey(row)]];
|
|
2166
|
+
if ((row?.[id] || cancelToDelete || !deleteWithoutId) && targetData) Object.keys(row).forEach((key)=>{
|
|
2167
|
+
row[key] = targetData[key];
|
|
2168
|
+
});
|
|
2169
|
+
else tableData.value.splice(index, 1);
|
|
2170
|
+
row.editable = false;
|
|
2171
|
+
};
|
|
2172
|
+
const addItem = (row)=>{
|
|
2173
|
+
if (row?.[rowKey]) tableData.value.push({
|
|
2174
|
+
...row
|
|
2175
|
+
});
|
|
2176
|
+
else tableData.value.push({
|
|
2177
|
+
...row,
|
|
2178
|
+
key: (0, __WEBPACK_EXTERNAL_MODULE__sun_toolkit_shared__.generateUUID)()
|
|
2179
|
+
});
|
|
2180
|
+
};
|
|
2181
|
+
/**
|
|
2182
|
+
* 插入行
|
|
2183
|
+
* @param row
|
|
2184
|
+
* @param index
|
|
2185
|
+
*/ const insertItem = (row, index, step = 0)=>{
|
|
2186
|
+
if (row?.[rowKey]) tableData.value.splice(index + step, 0, {
|
|
2187
|
+
...row
|
|
2188
|
+
});
|
|
2189
|
+
else tableData.value.splice(index + step, 0, {
|
|
2190
|
+
...row,
|
|
2191
|
+
key: (0, __WEBPACK_EXTERNAL_MODULE__sun_toolkit_shared__.generateUUID)()
|
|
2192
|
+
});
|
|
2193
|
+
};
|
|
2194
|
+
const delItem = (index)=>{
|
|
2195
|
+
tableData.value.splice(index, 1);
|
|
2196
|
+
};
|
|
2197
|
+
const updateItem = (row, index)=>{
|
|
2198
|
+
if (void 0 === index) {
|
|
2199
|
+
const cacheKey = getRowKey(row);
|
|
2200
|
+
const index = tableData.value.findIndex((item)=>item[cacheKey] === row[cacheKey]);
|
|
2201
|
+
tableData.value[index] = row;
|
|
2202
|
+
} else tableData.value[index] = row;
|
|
2203
|
+
};
|
|
2204
|
+
return {
|
|
2205
|
+
tableData,
|
|
2206
|
+
toggleEdit,
|
|
2207
|
+
cancelEdit,
|
|
2208
|
+
addItem,
|
|
2209
|
+
delItem,
|
|
2210
|
+
insertItem,
|
|
2211
|
+
updateItem,
|
|
2212
|
+
validateItem
|
|
2213
|
+
};
|
|
2214
|
+
}
|
|
2215
|
+
/* ESM default export */ const use_editable_table = useEditableTable;
|
|
2120
2216
|
function useFormConfig(options) {
|
|
2121
2217
|
const { t } = (0, __WEBPACK_EXTERNAL_MODULE_i18next_vue__.useTranslation)();
|
|
2122
2218
|
const { getData, dataSetCodes } = options;
|
|
@@ -4133,12 +4229,22 @@ const DICT_SELECT = 'dictSelect';
|
|
|
4133
4229
|
}, {
|
|
4134
4230
|
...(0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(attrs)
|
|
4135
4231
|
}), {
|
|
4232
|
+
label: (0, __WEBPACK_EXTERNAL_MODULE_vue__.withCtx)(({ label })=>[
|
|
4233
|
+
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("span", null, (0, __WEBPACK_EXTERNAL_MODULE_vue__.toDisplayString)(label?.split('|')?.[0]), 1)
|
|
4234
|
+
]),
|
|
4136
4235
|
default: (0, __WEBPACK_EXTERNAL_MODULE_vue__.withCtx)(()=>[
|
|
4137
4236
|
((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(true), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementBlock)(__WEBPACK_EXTERNAL_MODULE_vue__.Fragment, null, (0, __WEBPACK_EXTERNAL_MODULE_vue__.renderList)((0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(attrs).options, (item)=>((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createBlock)(_component_el_option, {
|
|
4237
|
+
disabled: !!item?.disabled,
|
|
4138
4238
|
key: __WEBPACK_EXTERNAL_MODULE_vue__.unref(attrs)?.props?.value ? item[(0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(attrs).props.value] : item.value ?? item.dataValueNo,
|
|
4139
|
-
label: __WEBPACK_EXTERNAL_MODULE_vue__.unref(attrs)?.props?.label ? item[(0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(attrs).props.label] : item.label ?? item.dataValueNameDisplay,
|
|
4239
|
+
label: (__WEBPACK_EXTERNAL_MODULE_vue__.unref(attrs)?.props?.label ? item[(0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(attrs).props.label] : item.label ?? item.dataValueNameDisplay) + '|' + (item?.spellNo ?? ''),
|
|
4140
4240
|
value: __WEBPACK_EXTERNAL_MODULE_vue__.unref(attrs)?.props?.value ? item[(0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(attrs).props.value] : item.value ?? item.dataValueNo
|
|
4141
|
-
},
|
|
4241
|
+
}, {
|
|
4242
|
+
default: (0, __WEBPACK_EXTERNAL_MODULE_vue__.withCtx)(()=>[
|
|
4243
|
+
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode)((0, __WEBPACK_EXTERNAL_MODULE_vue__.toDisplayString)(__WEBPACK_EXTERNAL_MODULE_vue__.unref(attrs)?.props?.label ? item[(0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(attrs).props.label] : item.label ?? item.dataValueNameDisplay), 1)
|
|
4244
|
+
]),
|
|
4245
|
+
_: 2
|
|
4246
|
+
}, 1032, [
|
|
4247
|
+
"disabled",
|
|
4142
4248
|
"label",
|
|
4143
4249
|
"value"
|
|
4144
4250
|
]))), 128))
|
|
@@ -5329,4 +5435,4 @@ const form_design_render_exports_ = /*#__PURE__*/ (0, exportHelper["default"])(f
|
|
|
5329
5435
|
]);
|
|
5330
5436
|
/* ESM default export */ const form_design_render = form_design_render_exports_;
|
|
5331
5437
|
/** components **/ /** hooks ** */ var __webpack_exports__COMPONENT_CODE = __WEBPACK_EXTERNAL_MODULE__sun_toolkit_enums__.COMPONENT_CODE;
|
|
5332
|
-
export { copy_text_with_tooltip as CopyTextWithTooltip, dbgrid_component_setting as DbgridComponentSetting, dict_select as DictSelect, flag_select as FlagSelect, form_design_render as FormDesignRender, FormUnit, hospital_select as HospitalSelect, use_app_config_MAIN_APP_CONFIG as MAIN_APP_CONFIG, patient_access as PatientAccess, PatientInfo, printReceiptBtn as PrintReceiptBtn, pro_dialog as ProDialog, pro_form as ProForm, invoice as ProInvoice, pro_table as ProTable, Title, convertToSpellNo, convertToWbNo, debounce, decimalCount, formatDecimalNumber, isNumber, print, use_app_config as useAppConfigData, useColumnConfig, use_direction_select as useDirectionSelect, use_fetch_dataset as useFetchDataset, useFormConfig, usePrintReceipt, use_request as useRequest, __webpack_exports__COMPONENT_CODE as COMPONENT_CODE };
|
|
5438
|
+
export { copy_text_with_tooltip as CopyTextWithTooltip, dbgrid_component_setting as DbgridComponentSetting, dict_select as DictSelect, flag_select as FlagSelect, form_design_render as FormDesignRender, FormUnit, hospital_select as HospitalSelect, use_app_config_MAIN_APP_CONFIG as MAIN_APP_CONFIG, patient_access as PatientAccess, PatientInfo, printReceiptBtn as PrintReceiptBtn, pro_dialog as ProDialog, pro_form as ProForm, invoice as ProInvoice, pro_table as ProTable, Title, convertToSpellNo, convertToWbNo, debounce, decimalCount, formatDecimalNumber, isNumber, print, use_app_config as useAppConfigData, useColumnConfig, use_direction_select as useDirectionSelect, use_editable_table as useEditableTable, use_fetch_dataset as useFetchDataset, useFormConfig, usePrintReceipt, use_request as useRequest, __webpack_exports__COMPONENT_CODE as COMPONENT_CODE };
|