sun-biz 0.0.2-beta.23 → 0.0.2-beta.25

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.
@@ -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__ = {
@@ -3245,7 +3246,11 @@ const Titlevue_type_script_setup_true_lang_ts_name_sunTitle_hoisted_1 = {
3245
3246
  return (_ctx, _cache)=>((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementBlock)("h3", (0, __WEBPACK_EXTERNAL_MODULE_vue__.mergeProps)(_ctx.$attrs, {
3246
3247
  class: "flex items-center justify-between"
3247
3248
  }), [
3248
- (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("span", Titlevue_type_script_setup_true_lang_ts_name_sunTitle_hoisted_1, (0, __WEBPACK_EXTERNAL_MODULE_vue__.toDisplayString)(props.title), 1),
3249
+ (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("span", Titlevue_type_script_setup_true_lang_ts_name_sunTitle_hoisted_1, [
3250
+ (0, __WEBPACK_EXTERNAL_MODULE_vue__.renderSlot)(_ctx.$slots, "title", {}, ()=>[
3251
+ (0, __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode)((0, __WEBPACK_EXTERNAL_MODULE_vue__.toDisplayString)(props.title), 1)
3252
+ ])
3253
+ ]),
3249
3254
  (0, __WEBPACK_EXTERNAL_MODULE_vue__.renderSlot)(_ctx.$slots, "default")
3250
3255
  ], 16));
3251
3256
  }
@@ -3617,12 +3622,22 @@ const DICT_SELECT = 'dictSelect';
3617
3622
  }, {
3618
3623
  ...(0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(attrs)
3619
3624
  }), {
3625
+ label: (0, __WEBPACK_EXTERNAL_MODULE_vue__.withCtx)(({ label })=>[
3626
+ (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("span", null, (0, __WEBPACK_EXTERNAL_MODULE_vue__.toDisplayString)(label?.split('|')?.[0]), 1)
3627
+ ]),
3620
3628
  default: (0, __WEBPACK_EXTERNAL_MODULE_vue__.withCtx)(()=>[
3621
3629
  ((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, {
3630
+ disabled: !!item?.disabled,
3622
3631
  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,
3632
+ 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 ?? '') + '|' + (item?.wbNo ?? ''),
3624
3633
  value: __WEBPACK_EXTERNAL_MODULE_vue__.unref(attrs)?.props?.value ? item[(0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(attrs).props.value] : item.value ?? item.dataValueNo
3625
- }, null, 8, [
3634
+ }, {
3635
+ default: (0, __WEBPACK_EXTERNAL_MODULE_vue__.withCtx)(()=>[
3636
+ (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)
3637
+ ]),
3638
+ _: 2
3639
+ }, 1032, [
3640
+ "disabled",
3626
3641
  "label",
3627
3642
  "value"
3628
3643
  ]))), 128))
@@ -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";
@@ -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,7 @@ 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 { useEditableTable } from './hooks/use-editable-table';
18
+ export type { TableRef } from './hooks/use-editable-table';
17
19
  export { useColumnConfig, useFormConfig } from "./hooks/use-column&form-config";
18
20
  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,100 @@ 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
+ }
2120
2215
  function useFormConfig(options) {
2121
2216
  const { t } = (0, __WEBPACK_EXTERNAL_MODULE_i18next_vue__.useTranslation)();
2122
2217
  const { getData, dataSetCodes } = options;
@@ -3761,7 +3856,11 @@ const Titlevue_type_script_setup_true_lang_ts_name_sunTitle_hoisted_1 = {
3761
3856
  return (_ctx, _cache)=>((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementBlock)("h3", (0, __WEBPACK_EXTERNAL_MODULE_vue__.mergeProps)(_ctx.$attrs, {
3762
3857
  class: "flex items-center justify-between"
3763
3858
  }), [
3764
- (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("span", Titlevue_type_script_setup_true_lang_ts_name_sunTitle_hoisted_1, (0, __WEBPACK_EXTERNAL_MODULE_vue__.toDisplayString)(props.title), 1),
3859
+ (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("span", Titlevue_type_script_setup_true_lang_ts_name_sunTitle_hoisted_1, [
3860
+ (0, __WEBPACK_EXTERNAL_MODULE_vue__.renderSlot)(_ctx.$slots, "title", {}, ()=>[
3861
+ (0, __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode)((0, __WEBPACK_EXTERNAL_MODULE_vue__.toDisplayString)(props.title), 1)
3862
+ ])
3863
+ ]),
3765
3864
  (0, __WEBPACK_EXTERNAL_MODULE_vue__.renderSlot)(_ctx.$slots, "default")
3766
3865
  ], 16));
3767
3866
  }
@@ -4133,12 +4232,22 @@ const DICT_SELECT = 'dictSelect';
4133
4232
  }, {
4134
4233
  ...(0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(attrs)
4135
4234
  }), {
4235
+ label: (0, __WEBPACK_EXTERNAL_MODULE_vue__.withCtx)(({ label })=>[
4236
+ (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("span", null, (0, __WEBPACK_EXTERNAL_MODULE_vue__.toDisplayString)(label?.split('|')?.[0]), 1)
4237
+ ]),
4136
4238
  default: (0, __WEBPACK_EXTERNAL_MODULE_vue__.withCtx)(()=>[
4137
4239
  ((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, {
4240
+ disabled: !!item?.disabled,
4138
4241
  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,
4242
+ 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 ?? '') + '|' + (item?.wbNo ?? ''),
4140
4243
  value: __WEBPACK_EXTERNAL_MODULE_vue__.unref(attrs)?.props?.value ? item[(0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(attrs).props.value] : item.value ?? item.dataValueNo
4141
- }, null, 8, [
4244
+ }, {
4245
+ default: (0, __WEBPACK_EXTERNAL_MODULE_vue__.withCtx)(()=>[
4246
+ (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)
4247
+ ]),
4248
+ _: 2
4249
+ }, 1032, [
4250
+ "disabled",
4142
4251
  "label",
4143
4252
  "value"
4144
4253
  ]))), 128))
@@ -5329,4 +5438,4 @@ const form_design_render_exports_ = /*#__PURE__*/ (0, exportHelper["default"])(f
5329
5438
  ]);
5330
5439
  /* ESM default export */ const form_design_render = form_design_render_exports_;
5331
5440
  /** 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 };
5441
+ 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, useEditableTable, use_fetch_dataset as useFetchDataset, useFormConfig, usePrintReceipt, use_request as useRequest, __webpack_exports__COMPONENT_CODE as COMPONENT_CODE };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sun-biz",
3
- "version": "0.0.2-beta.23",
3
+ "version": "0.0.2-beta.25",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {