cnhis-design-vue 3.1.21-beta.1 → 3.1.21-beta.10

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.
Files changed (130) hide show
  1. package/README.md +123 -123
  2. package/es/components/big-table/index.d.ts +12 -10
  3. package/es/components/big-table/src/BigTable.vue.d.ts +12 -10
  4. package/es/components/big-table/src/BigTable.vue_vue_type_script_setup_true_lang.js +24 -16
  5. package/es/components/big-table/src/bigTableProps.d.ts +1 -1
  6. package/es/components/big-table/src/components/edit-form/edit-input.js +15 -7
  7. package/es/components/big-table/src/hooks/useEdit.d.ts +2 -1
  8. package/es/components/big-table/src/hooks/useEdit2.js +3 -2
  9. package/es/components/big-table/src/hooks/useFormat.d.ts +3 -1
  10. package/es/components/big-table/src/hooks/useFormat2.js +11 -2
  11. package/es/components/fabric-chart/src/components/PopupMenu.js +9 -2
  12. package/es/components/fabric-chart/src/hooks/useCenter2.js +21 -20
  13. package/es/components/fabric-chart/src/hooks/useLeft2.js +4 -3
  14. package/es/components/form-config/index.d.ts +1 -0
  15. package/es/components/form-config/src/FormConfig.vue.d.ts +1 -0
  16. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +1 -0
  17. package/es/components/form-render/index2.js +4 -5
  18. package/es/components/form-render/src/FormRender.js +3 -3
  19. package/es/components/form-render/src/components/renderer/cascader.js +3 -4
  20. package/es/components/form-render/src/components/renderer/checkbox.js +2 -5
  21. package/es/components/form-render/src/components/renderer/combination.js +2 -4
  22. package/es/components/form-render/src/components/renderer/complex.js +1 -4
  23. package/es/components/form-render/src/components/renderer/date.js +12 -3
  24. package/es/components/form-render/src/components/renderer/formItem.js +1 -4
  25. package/es/components/form-render/src/components/renderer/radio.js +1 -3
  26. package/es/components/form-render/src/components/renderer/search.js +11 -17
  27. package/es/components/form-render/src/components/renderer/select.js +13 -19
  28. package/es/components/form-render/src/components/renderer/switch.js +2 -5
  29. package/es/components/form-render/src/components/renderer/textarea.js +2 -5
  30. package/es/components/form-render/src/hooks/useAnchor2.js +1 -3
  31. package/es/components/form-render/src/hooks/useBusinessBinding2.js +1 -3
  32. package/es/components/form-render/src/hooks/useChangeContext.d.ts +3 -5
  33. package/es/components/form-render/src/hooks/useChangeContext2.js +2 -2
  34. package/es/components/form-render/src/hooks/useFormItemDeps2.js +1 -4
  35. package/es/components/{form-table → form-render}/src/hooks/useNuiThemeOverrides.d.ts +0 -0
  36. package/es/components/{form-table → form-render}/src/hooks/useNuiThemeOverrides.js +0 -0
  37. package/es/components/{form-table → form-render}/src/hooks/useNuiThemeOverrides2.js +0 -0
  38. package/es/components/form-render/src/hooks/usePresetScope2.js +1 -4
  39. package/es/components/form-render/src/types/fieldItem.d.ts +1 -0
  40. package/es/components/form-render/src/utils/index.d.ts +4 -1
  41. package/es/components/form-render/src/utils/index.js +27 -1
  42. package/es/components/index.d.ts +1 -2
  43. package/es/components/index.js +0 -1
  44. package/es/components/index2.js +0 -3
  45. package/es/components/info-header/index.d.ts +31 -8
  46. package/es/components/info-header/src/HiddenContent.vue.d.ts +2 -2
  47. package/es/components/info-header/src/InfoEllipsis.vue.d.ts +1 -1
  48. package/es/components/info-header/src/InfoHeader.js +9 -10
  49. package/es/components/info-header/src/InfoHeader.vue.d.ts +32 -8
  50. package/es/components/scale-view/src/components/formitem/text-over-tooltip/TextOverTooltip.vue.d.ts +1 -1
  51. package/es/components/shortcut-setter/index.d.ts +1 -0
  52. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +1 -0
  53. package/es/components/steps-wheel/index.d.ts +1 -1
  54. package/es/components/steps-wheel/src/StepsWheel.vue.d.ts +1 -1
  55. package/es/shared/components/TextOverTooltip/TextOverTooltip.vue.d.ts +1 -1
  56. package/package.json +2 -2
  57. package/es/components/big-table/src/components/edit-form/useCommon.d.ts +0 -4
  58. package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
  59. package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +0 -1
  60. package/es/components/bpmn-workflow/types/ModelingModule.d.ts +0 -1
  61. package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +0 -1
  62. package/es/components/fabric-chart/src/utils/index.d.ts +0 -6823
  63. package/es/components/form-table/index.d.ts +0 -4019
  64. package/es/components/form-table/index.js +0 -1
  65. package/es/components/form-table/index2.js +0 -10
  66. package/es/components/form-table/src/FormTable.js +0 -474
  67. package/es/components/form-table/src/FormTable.vue.d.ts +0 -4019
  68. package/es/components/form-table/src/components/index.d.ts +0 -3778
  69. package/es/components/form-table/src/components/index.js +0 -1
  70. package/es/components/form-table/src/components/index2.js +0 -40
  71. package/es/components/form-table/src/components/table-age.js +0 -235
  72. package/es/components/form-table/src/components/table-age.vue.d.ts +0 -318
  73. package/es/components/form-table/src/components/table-date-picker.js +0 -179
  74. package/es/components/form-table/src/components/table-date-picker.vue.d.ts +0 -250
  75. package/es/components/form-table/src/components/table-digital.js +0 -141
  76. package/es/components/form-table/src/components/table-digital.vue.d.ts +0 -261
  77. package/es/components/form-table/src/components/table-input-password.js +0 -141
  78. package/es/components/form-table/src/components/table-input-password.vue.d.ts +0 -304
  79. package/es/components/form-table/src/components/table-input.js +0 -127
  80. package/es/components/form-table/src/components/table-input.vue.d.ts +0 -261
  81. package/es/components/form-table/src/components/table-month-picker.js +0 -104
  82. package/es/components/form-table/src/components/table-month-picker.vue.d.ts +0 -193
  83. package/es/components/form-table/src/components/table-search-more.js +0 -6
  84. package/es/components/form-table/src/components/table-search-more.vue.d.ts +0 -392
  85. package/es/components/form-table/src/components/table-search-more.vue_vue_type_script_setup_true_lang.js +0 -276
  86. package/es/components/form-table/src/components/table-search.js +0 -6
  87. package/es/components/form-table/src/components/table-search.vue.d.ts +0 -386
  88. package/es/components/form-table/src/components/table-search.vue_vue_type_script_setup_true_lang.js +0 -276
  89. package/es/components/form-table/src/components/table-select-multiple.js +0 -164
  90. package/es/components/form-table/src/components/table-select-multiple.vue.d.ts +0 -235
  91. package/es/components/form-table/src/components/table-select.js +0 -159
  92. package/es/components/form-table/src/components/table-select.vue.d.ts +0 -234
  93. package/es/components/form-table/src/components/table-textarea.js +0 -157
  94. package/es/components/form-table/src/components/table-textarea.vue.d.ts +0 -320
  95. package/es/components/form-table/src/components/table-time-picker.js +0 -150
  96. package/es/components/form-table/src/components/table-time-picker.vue.d.ts +0 -246
  97. package/es/components/form-table/src/components/table-tree-select.js +0 -285
  98. package/es/components/form-table/src/components/table-tree-select.vue.d.ts +0 -349
  99. package/es/components/form-table/src/components/text-over-tooltip.js +0 -64
  100. package/es/components/form-table/src/components/text-over-tooltip.vue.d.ts +0 -70
  101. package/es/components/form-table/src/configs/index.d.ts +0 -35
  102. package/es/components/form-table/src/configs/index.js +0 -1
  103. package/es/components/form-table/src/configs/index2.js +0 -67
  104. package/es/components/form-table/src/hooks/index.d.ts +0 -5
  105. package/es/components/form-table/src/hooks/index.js +0 -5
  106. package/es/components/form-table/src/hooks/useBoundDate.d.ts +0 -21
  107. package/es/components/form-table/src/hooks/useBoundDate.js +0 -1
  108. package/es/components/form-table/src/hooks/useBoundDate2.js +0 -414
  109. package/es/components/form-table/src/hooks/useDateType.d.ts +0 -17
  110. package/es/components/form-table/src/hooks/useDateType.js +0 -1
  111. package/es/components/form-table/src/hooks/useDateType2.js +0 -160
  112. package/es/components/form-table/src/hooks/useFormCommon.d.ts +0 -14
  113. package/es/components/form-table/src/hooks/useFormCommon.js +0 -1
  114. package/es/components/form-table/src/hooks/useFormCommon2.js +0 -101
  115. package/es/components/form-table/src/hooks/useFormEvent.d.ts +0 -9
  116. package/es/components/form-table/src/hooks/useFormEvent.js +0 -1
  117. package/es/components/form-table/src/hooks/useFormEvent2.js +0 -68
  118. package/es/components/form-table/src/hooks/useItemDefault.d.ts +0 -53
  119. package/es/components/form-table/src/hooks/useItemDefault.js +0 -1
  120. package/es/components/form-table/src/hooks/useItemDefault2.js +0 -218
  121. package/es/components/form-table/src/hooks/useSearch.d.ts +0 -165
  122. package/es/components/form-table/src/hooks/useSearch.js +0 -1
  123. package/es/components/form-table/src/hooks/useSearch2.js +0 -1154
  124. package/es/components/form-table/src/hooks/useValidate.d.ts +0 -24
  125. package/es/components/form-table/src/hooks/useValidate.js +0 -1
  126. package/es/components/form-table/src/hooks/useValidate2.js +0 -480
  127. package/es/components/form-table/src/types/index.d.ts +0 -11
  128. package/es/components/form-table/src/types/index.js +0 -1
  129. package/es/components/form-table/style/index.css +0 -1
  130. package/es/shared/utils/tapable/index.d.ts +0 -139
@@ -1,150 +0,0 @@
1
- import { defineComponent, ref, openBlock, createBlock, unref, normalizeClass } from 'vue';
2
- import { useMessage, NTimePicker } from 'naive-ui';
3
- import 'moment';
4
- import { useItemDefault } from '../hooks/useItemDefault2.js';
5
- import { useDateType } from '../hooks/useDateType2.js';
6
- import 'xe-utils';
7
- import _export_sfc from '../../../../_virtual/plugin-vue_export-helper.js';
8
-
9
- const _sfc_main = /* @__PURE__ */ defineComponent({
10
- __name: "table-time-picker",
11
- props: {
12
- mainForm: {
13
- type: Object,
14
- default: () => ({})
15
- },
16
- userInfo: {
17
- type: Object,
18
- default: () => ({})
19
- },
20
- styleSetting: {
21
- type: Object,
22
- default: () => ({})
23
- },
24
- defaultValue: {
25
- type: Object,
26
- default: () => ({})
27
- },
28
- dbParams: {
29
- type: Object
30
- },
31
- row: {
32
- type: Object,
33
- default: () => {
34
- return {};
35
- }
36
- },
37
- item: {
38
- type: Object,
39
- default: () => {
40
- return {
41
- _own: {}
42
- };
43
- }
44
- },
45
- defaultFieldList: {
46
- type: Array,
47
- default: () => {
48
- return [];
49
- }
50
- },
51
- cacheUniqueKey: {
52
- type: Object,
53
- default: () => {
54
- return {
55
- _own: {}
56
- };
57
- }
58
- },
59
- params_formId: [String, Number],
60
- formType: {
61
- type: Object,
62
- default: () => {
63
- return {
64
- _own: {}
65
- };
66
- }
67
- },
68
- isDetail: {
69
- type: Boolean,
70
- default: false
71
- },
72
- handleFormTableValue: Function
73
- },
74
- emits: ["tableBlur", "valueOnChange", "handlerAddOptions", "opentableSelect"],
75
- setup(__props, { emit }) {
76
- const props = __props;
77
- const open = ref(false);
78
- const {
79
- disabledDatePicker,
80
- disabledTimePicker,
81
- openTimeChange,
82
- disabledHours,
83
- disabledMethodTimeRange,
84
- handleCompareTimeRange,
85
- range,
86
- openDateChange
87
- } = useDateType(open);
88
- const $message = useMessage();
89
- const {
90
- formTable,
91
- handlerGetDateType,
92
- hasErr,
93
- handleGetJsonStr,
94
- handleSetFieldsValue,
95
- handleGetUniqueKey,
96
- handleSysParams,
97
- defaultInit,
98
- handleTableBlur,
99
- handleFormParams,
100
- radioColor,
101
- handleGetAgeUnit,
102
- handleAgeToBirthDay,
103
- changeAgeSelect,
104
- handlerSetIdCarInfoValidate,
105
- getInputCheck,
106
- getCustomRegular,
107
- checkDigital,
108
- checkAgeJson,
109
- checkAge,
110
- checkMultipleChoice,
111
- checkLength,
112
- checkinputBlank,
113
- checkSearchCascade,
114
- checkMultipleTree,
115
- handleDateClearBtn,
116
- handleStartDateEndDate,
117
- showTimePanel,
118
- momentLib,
119
- judgeTimeBoundary,
120
- setTimeValue,
121
- judgeTimeRange,
122
- isSameDate,
123
- setDefaultCurrent,
124
- handleDefaultRimeRange,
125
- judgeMinMaxDateIsSameDate,
126
- handleDefaultTimeRange,
127
- changeTimeDate,
128
- setTimeRangeArr
129
- } = useItemDefault({ message: $message, props, emit });
130
- return (_ctx, _cache) => {
131
- return openBlock(), createBlock(unref(NTimePicker), {
132
- value: __props.row[__props.item.val_key],
133
- "onUpdate:value": _cache[0] || (_cache[0] = ($event) => __props.row[__props.item.val_key] = $event),
134
- ref: "timePicker-" + __props.item.val_key,
135
- format: unref(handlerGetDateType)(__props.item),
136
- disabled: +__props.item.is_edit === 0 || __props.isDetail,
137
- "is-hour-disabled": unref(disabledHours)(__props.item, "h"),
138
- "is-minute-disabled": unref(disabledHours)(__props.item, "m"),
139
- "is-second-disabled": unref(disabledHours)(__props.item, "s"),
140
- placeholder: __props.item.placeholder || "",
141
- clearable: +__props.item.is_empty === 0,
142
- class: normalizeClass(["table-time-picker", { "table-time-picker-error": unref(hasErr) }]),
143
- onBlur: unref(handleTableBlur)
144
- }, null, 8, ["value", "format", "disabled", "is-hour-disabled", "is-minute-disabled", "is-second-disabled", "placeholder", "clearable", "class", "onBlur"]);
145
- };
146
- }
147
- });
148
- var tableTimePicker = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "table-time-picker.vue"]]);
149
-
150
- export { tableTimePicker as default };
@@ -1,246 +0,0 @@
1
- import { AnyObject, Func } from '../../../../../es/shared/types';
2
- import { PropType } from 'vue';
3
- import { PropObject } from '../../../../../es/components/form-table/src/types';
4
- declare const _default: import("vue").DefineComponent<{
5
- mainForm: {
6
- type: PropObject;
7
- default: () => {};
8
- };
9
- userInfo: {
10
- type: PropObject;
11
- default: () => {};
12
- };
13
- styleSetting: {
14
- type: PropObject;
15
- default: () => {};
16
- };
17
- defaultValue: {
18
- type: PropObject;
19
- default: () => {};
20
- };
21
- dbParams: {
22
- type: PropType<AnyObject>;
23
- };
24
- row: {
25
- type: PropObject;
26
- default: () => {};
27
- };
28
- item: {
29
- type: PropObject;
30
- default: () => {
31
- _own: {};
32
- };
33
- };
34
- defaultFieldList: {
35
- type: PropType<any[]>;
36
- default: () => never[];
37
- };
38
- cacheUniqueKey: {
39
- type: PropObject;
40
- default: () => {
41
- _own: {};
42
- };
43
- };
44
- params_formId: (NumberConstructor | StringConstructor)[];
45
- formType: {
46
- type: PropObject;
47
- default: () => {
48
- _own: {};
49
- };
50
- };
51
- isDetail: {
52
- type: BooleanConstructor;
53
- default: boolean;
54
- };
55
- handleFormTableValue: PropType<Func<any[], any>>;
56
- }, {
57
- open: import("vue").Ref<boolean>;
58
- disabledDatePicker: (current: any, item: AnyObject) => any;
59
- disabledTimePicker: (current: any, item: AnyObject) => {
60
- disabledHours: () => never[];
61
- disabledMinutes: () => never[];
62
- disabledSeconds: () => never[];
63
- } | undefined;
64
- openTimeChange: (open: any, item: AnyObject) => void;
65
- disabledHours: (item: AnyObject, type: string) => (() => never[]) | undefined;
66
- disabledMethodTimeRange: (item: AnyObject) => void;
67
- handleCompareTimeRange: (time: any, item: AnyObject, type: string) => {};
68
- range: (start: number, end: number) => never[];
69
- openDateChange: (open: any, item: AnyObject) => void;
70
- $message: import("naive-ui").MessageApi;
71
- props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
72
- mainForm: {
73
- type: PropObject;
74
- default: () => {};
75
- };
76
- userInfo: {
77
- type: PropObject;
78
- default: () => {};
79
- };
80
- styleSetting: {
81
- type: PropObject;
82
- default: () => {};
83
- };
84
- defaultValue: {
85
- type: PropObject;
86
- default: () => {};
87
- };
88
- dbParams: {
89
- type: PropType<AnyObject>;
90
- };
91
- row: {
92
- type: PropObject;
93
- default: () => {};
94
- };
95
- item: {
96
- type: PropObject;
97
- default: () => {
98
- _own: {};
99
- };
100
- };
101
- defaultFieldList: {
102
- type: PropType<any[]>;
103
- default: () => never[];
104
- };
105
- cacheUniqueKey: {
106
- type: PropObject;
107
- default: () => {
108
- _own: {};
109
- };
110
- };
111
- params_formId: (NumberConstructor | StringConstructor)[];
112
- formType: {
113
- type: PropObject;
114
- default: () => {
115
- _own: {};
116
- };
117
- };
118
- isDetail: {
119
- type: BooleanConstructor;
120
- default: boolean;
121
- };
122
- handleFormTableValue: PropType<Func<any[], any>>;
123
- }>> & {
124
- onTableBlur?: ((...args: any[]) => any) | undefined;
125
- onValueOnChange?: ((...args: any[]) => any) | undefined;
126
- onHandlerAddOptions?: ((...args: any[]) => any) | undefined;
127
- onOpentableSelect?: ((...args: any[]) => any) | undefined;
128
- }>>;
129
- emit: (event: "tableBlur" | "valueOnChange" | "handlerAddOptions" | "opentableSelect", ...args: any[]) => void;
130
- $t: () => void;
131
- formTable: AnyObject;
132
- handlerGetDateType: (data: AnyObject) => any;
133
- hasErr: import("vue").ComputedRef<any>;
134
- handleGetJsonStr: (str: string | AnyObject) => AnyObject;
135
- handleSetFieldsValue: (setObj?: AnyObject, target?: any) => void;
136
- handleGetUniqueKey: (id: string) => any;
137
- handleSysParams: (str: string) => string;
138
- defaultInit: () => void;
139
- handleTableBlur: (e?: AnyObject | undefined, config?: AnyObject) => void;
140
- handleFormParams: (str: string) => string;
141
- radioColor: () => (p: AnyObject, isOnlyRead?: boolean | undefined) => any;
142
- handleGetAgeUnit: (ageInfo?: AnyObject) => string | undefined;
143
- handleAgeToBirthDay: (val: number, f: string, item: AnyObject) => void;
144
- changeAgeSelect: (val: string, item: AnyObject) => void;
145
- handlerSetIdCarInfoValidate: (value: any, item: AnyObject, callback: Func<any[], any>) => void;
146
- getInputCheck: (validate?: string | undefined) => {
147
- pattern: RegExp;
148
- message: string;
149
- } | undefined;
150
- getCustomRegular: (item: AnyObject) => {
151
- pattern: RegExp;
152
- message: any;
153
- } | null;
154
- checkDigital: import("../../../../../es/components/form-table/src/types").ValidateFunc;
155
- checkAgeJson: import("../../../../../es/components/form-table/src/types").ValidateFunc;
156
- checkAge: import("../../../../../es/components/form-table/src/types").ValidateFunc;
157
- checkMultipleChoice: import("../../../../../es/components/form-table/src/types").ValidateFunc;
158
- checkLength: import("../../../../../es/components/form-table/src/types").ValidateFunc;
159
- checkinputBlank: import("../../../../../es/components/form-table/src/types").ValidateFunc;
160
- checkSearchCascade: import("../../../../../es/components/form-table/src/types").ValidateFunc;
161
- checkMultipleTree: import("../../../../../es/components/form-table/src/types").ValidateFunc;
162
- handleDateClearBtn: (v: any, item: AnyObject) => void;
163
- handleStartDateEndDate: (item: AnyObject) => void;
164
- showTimePanel: (item: AnyObject) => boolean;
165
- momentLib: (date_format: string) => any;
166
- judgeTimeBoundary: (time: any, item: AnyObject) => void;
167
- setTimeValue: (time: any, item: AnyObject) => void;
168
- judgeTimeRange: (time: any, item: AnyObject) => AnyObject | undefined;
169
- isSameDate: (curDate: any, compareMin: any, compareMax: any) => AnyObject;
170
- setDefaultCurrent: (compareItem: AnyObject, currTime: any) => void;
171
- handleDefaultRimeRange: (time: any, item: AnyObject) => void;
172
- judgeMinMaxDateIsSameDate: (item: AnyObject) => boolean;
173
- handleDefaultTimeRange: (time: any, item: any, chooseDate?: any) => {};
174
- changeTimeDate: (time: any, minTime: any, maxTime: any, item: AnyObject) => {};
175
- setTimeRangeArr: (hMin: any, HMax: any, mMin: any, mMax: any, sMin: any, sMax: any) => Required<Partial<Record<"hArr" | "mArr" | "sArr", [any, any]>>>;
176
- NTimePicker: any;
177
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("tableBlur" | "valueOnChange" | "handlerAddOptions" | "opentableSelect")[], "tableBlur" | "valueOnChange" | "handlerAddOptions" | "opentableSelect", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
178
- mainForm: {
179
- type: PropObject;
180
- default: () => {};
181
- };
182
- userInfo: {
183
- type: PropObject;
184
- default: () => {};
185
- };
186
- styleSetting: {
187
- type: PropObject;
188
- default: () => {};
189
- };
190
- defaultValue: {
191
- type: PropObject;
192
- default: () => {};
193
- };
194
- dbParams: {
195
- type: PropType<AnyObject>;
196
- };
197
- row: {
198
- type: PropObject;
199
- default: () => {};
200
- };
201
- item: {
202
- type: PropObject;
203
- default: () => {
204
- _own: {};
205
- };
206
- };
207
- defaultFieldList: {
208
- type: PropType<any[]>;
209
- default: () => never[];
210
- };
211
- cacheUniqueKey: {
212
- type: PropObject;
213
- default: () => {
214
- _own: {};
215
- };
216
- };
217
- params_formId: (NumberConstructor | StringConstructor)[];
218
- formType: {
219
- type: PropObject;
220
- default: () => {
221
- _own: {};
222
- };
223
- };
224
- isDetail: {
225
- type: BooleanConstructor;
226
- default: boolean;
227
- };
228
- handleFormTableValue: PropType<Func<any[], any>>;
229
- }>> & {
230
- onTableBlur?: ((...args: any[]) => any) | undefined;
231
- onValueOnChange?: ((...args: any[]) => any) | undefined;
232
- onHandlerAddOptions?: ((...args: any[]) => any) | undefined;
233
- onOpentableSelect?: ((...args: any[]) => any) | undefined;
234
- }, {
235
- styleSetting: AnyObject;
236
- userInfo: AnyObject;
237
- row: AnyObject;
238
- cacheUniqueKey: AnyObject;
239
- formType: AnyObject;
240
- isDetail: boolean;
241
- item: AnyObject;
242
- defaultValue: AnyObject;
243
- mainForm: AnyObject;
244
- defaultFieldList: any[];
245
- }>;
246
- export default _default;
@@ -1,285 +0,0 @@
1
- import { defineComponent, ref, computed, openBlock, createElementBlock, unref, createBlock, withCtx, createCommentVNode } from 'vue';
2
- import axios from 'axios';
3
- import { useMessage, NTreeSelect } from 'naive-ui';
4
- import 'moment';
5
- import 'xe-utils';
6
- import { useSearch } from '../hooks/useSearch2.js';
7
- import _export_sfc from '../../../../_virtual/plugin-vue_export-helper.js';
8
-
9
- const _hoisted_1 = { class: "tableTreeSelect" };
10
- const _sfc_main = /* @__PURE__ */ defineComponent({
11
- __name: "table-tree-select",
12
- props: {
13
- mainForm: {
14
- type: Object,
15
- default: () => ({})
16
- },
17
- userInfo: {
18
- type: Object,
19
- default: () => ({})
20
- },
21
- styleSetting: {
22
- type: Object,
23
- default: () => ({})
24
- },
25
- defaultValue: {
26
- type: Object,
27
- default: () => ({})
28
- },
29
- dbParams: {
30
- type: Object
31
- },
32
- row: {
33
- type: Object,
34
- default: () => {
35
- return {};
36
- }
37
- },
38
- item: {
39
- type: Object,
40
- default: () => {
41
- return {
42
- _own: {}
43
- };
44
- }
45
- },
46
- defaultFieldList: {
47
- type: Array,
48
- default: () => {
49
- return [];
50
- }
51
- },
52
- cacheUniqueKey: {
53
- type: Object,
54
- default: () => {
55
- return {
56
- _own: {}
57
- };
58
- }
59
- },
60
- params_formId: [String, Number],
61
- formType: {
62
- type: Object,
63
- default: () => {
64
- return {
65
- _own: {}
66
- };
67
- }
68
- },
69
- isDetail: {
70
- type: Boolean,
71
- default: false
72
- },
73
- handleFormTableValue: Function
74
- },
75
- emits: ["tableBlur", "valueOnChange", "handlerAddOptions", "opentableSelect"],
76
- setup(__props, { emit }) {
77
- const props = __props;
78
- const $message = useMessage();
79
- const open = ref(false);
80
- const wrapperRef = ref(null);
81
- const refs = [];
82
- const baseForm = ref({});
83
- const curAddBtnItem = ref();
84
- const dropdownHide = ref(false);
85
- const $_handleTracherLog = () => {
86
- };
87
- const $t = () => {
88
- };
89
- const loadDataPrimary_key = ref();
90
- const optionsRequestSource = ref();
91
- const Choose_to_complete = ref(false);
92
- const noAllow_check_mid_level = ref(false);
93
- const selsectVisible = ref(false);
94
- const {
95
- fetching,
96
- timeout,
97
- curOptions,
98
- selectedOptions,
99
- levelNum,
100
- cascaderInitLabel,
101
- defList,
102
- panelOpen,
103
- searchAddObj,
104
- searchPageConfig,
105
- optionsMaxWidth,
106
- cacheReqOptionsParams,
107
- hotSearchConfig,
108
- searchShowHotList,
109
- showHotSearchConfig,
110
- showSearchEmpty,
111
- selectIsOpen,
112
- isnoPages,
113
- hanldeInitSearchMoreVal,
114
- getSearchDefParams,
115
- getCascadeParams,
116
- handleRowUnique,
117
- handleGetSearchDefVal,
118
- handleRequestedOptions,
119
- handleFreeEntry,
120
- formatField,
121
- formatFieldValue,
122
- getTitleHeader,
123
- handleRequestedUniqueKey,
124
- dealDictionatySearch,
125
- handleMultipleSearch,
126
- multipleSelect,
127
- multipleDeselect,
128
- handlerAddOptions,
129
- searchMoreOnChange,
130
- handleFormCascade,
131
- hanldeGetCascadelabel,
132
- handleCascaderChange,
133
- handleCascaderFilter,
134
- handleCascadeLoadData,
135
- handlerDropdownVisibleChange,
136
- hanlderGetSearchLabel,
137
- hanlderSendSelectLog,
138
- handleSearchSelect,
139
- handleSearchChangePage,
140
- handleCalculateOptionsMaxWidth,
141
- handlerSearchOnFocus,
142
- handleQueryParams,
143
- hideHotSearch,
144
- confirmSelect,
145
- hanldeRemoveDuplicates,
146
- getFormValue,
147
- cancelOptionsRequest,
148
- getHotSearchConfig,
149
- handleSelectHotKeyword,
150
- hanldeClearLately,
151
- closeHotSearch,
152
- handleSearchTracher,
153
- hanldercheckOption,
154
- handleSearchScrollTop,
155
- handleCascaderTracher,
156
- handleSearchBlur,
157
- curMultipleSelected,
158
- formTable,
159
- hasErr,
160
- handleGetJsonStr,
161
- handleSetFieldsValue,
162
- handleGetUniqueKey,
163
- handleSysParams,
164
- defaultInit,
165
- handleTableBlur,
166
- handleFormParams,
167
- radioColor,
168
- handleGetAgeUnit,
169
- handleAgeToBirthDay,
170
- changeAgeSelect,
171
- handlerSetIdCarInfoValidate,
172
- getInputCheck,
173
- getCustomRegular,
174
- checkDigital,
175
- checkAgeJson,
176
- checkAge,
177
- checkMultipleChoice,
178
- checkLength,
179
- checkinputBlank,
180
- handlerGetDateType,
181
- checkSearchCascade,
182
- checkMultipleTree,
183
- handleDateClearBtn,
184
- handleStartDateEndDate,
185
- showTimePanel,
186
- momentLib,
187
- judgeTimeBoundary,
188
- setTimeValue,
189
- judgeTimeRange,
190
- isSameDate,
191
- setDefaultCurrent,
192
- handleDefaultRimeRange,
193
- judgeMinMaxDateIsSameDate,
194
- handleDefaultTimeRange,
195
- changeTimeDate,
196
- setTimeRangeArr
197
- } = useSearch({
198
- wrapperRef,
199
- refs,
200
- baseForm,
201
- curAddBtnItem,
202
- dropdownHide,
203
- $_handleTracherLog,
204
- open,
205
- message: $message,
206
- props,
207
- emit,
208
- axios,
209
- $t,
210
- loadDataPrimary_key,
211
- optionsRequestSource,
212
- Choose_to_complete,
213
- noAllow_check_mid_level,
214
- selsectVisible,
215
- $qs: () => {
216
- }
217
- });
218
- const treeData = ref([
219
- {
220
- value: "_init_key_",
221
- key: "_init_key_",
222
- selectable: false,
223
- scopedSlots: {
224
- title: "title"
225
- }
226
- }
227
- ]);
228
- const showCom = computed(() => {
229
- let value = props.row[props.item.val_key];
230
- return value == null ? void 0 : value.length;
231
- });
232
- function treeSelect(key, vnode) {
233
- var _a, _b;
234
- let d = ((_b = (_a = vnode == null ? void 0 : vnode.$options) == null ? void 0 : _a.propsData) == null ? void 0 : _b.dataRef) || {};
235
- handleSearchSelect(void 0, props.item, "select", {
236
- eventType: "treeSelect",
237
- data: { ...d }
238
- });
239
- }
240
- function filter(pattern, option) {
241
- if (typeof option.title === "string") {
242
- return option.includes(pattern);
243
- }
244
- return false;
245
- }
246
- return (_ctx, _cache) => {
247
- return openBlock(), createElementBlock("div", _hoisted_1, [
248
- !__props.isDetail || unref(showCom) ? (openBlock(), createBlock(unref(NTreeSelect), {
249
- key: 0,
250
- value: __props.row[__props.item.val_key],
251
- "onUpdate:value": _cache[0] || (_cache[0] = ($event) => __props.row[__props.item.val_key] = $event),
252
- dropdownClassName: "table-tree-select-container",
253
- onSelect: treeSelect,
254
- filterable: "",
255
- style: { "width": "100%" },
256
- "dropdown-style": { maxHeight: "293px", overflow: "auto" },
257
- options: treeData.value,
258
- "key-field": "value",
259
- "label-field": "title",
260
- allowClear: +__props.item.is_empty === 0,
261
- disabled: +__props.item.is_edit === 0 || __props.isDetail,
262
- filter,
263
- placeholder: __props.item.placeholder || $t()
264
- }, {
265
- default: withCtx(() => [
266
- createCommentVNode(" <span"),
267
- createCommentVNode(' class="init-key-loading"'),
268
- createCommentVNode(` v-if="key === '_init_key_'"`),
269
- createCommentVNode(' slot="title"'),
270
- createCommentVNode(' slot-scope="{ key, value }"'),
271
- createCommentVNode(' style="color: #08c"'),
272
- createCommentVNode(" >"),
273
- createCommentVNode(' <span v-show="false">{{ value }}</span>'),
274
- createCommentVNode(" <a-spin :tip=\"`${$t('1.1.7.14')}...`\"/>"),
275
- createCommentVNode(" </span>")
276
- ]),
277
- _: 1
278
- }, 8, ["value", "options", "allowClear", "disabled", "placeholder"])) : createCommentVNode("v-if", true)
279
- ]);
280
- };
281
- }
282
- });
283
- var tableTreeSelect = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "table-tree-select.vue"]]);
284
-
285
- export { tableTreeSelect as default };