cnhis-design-vue 3.1.21-beta.3 → 3.1.21-beta.5

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 (85) hide show
  1. package/es/components/big-table/src/BigTable.vue_vue_type_script_setup_true_lang.js +3 -2
  2. package/es/components/form-render/src/FormRender.js +1 -1
  3. package/es/components/form-render/src/components/renderer/date.js +11 -0
  4. package/es/components/{form-table → form-render}/src/hooks/useNuiThemeOverrides.d.ts +0 -0
  5. package/es/components/{form-table → form-render}/src/hooks/useNuiThemeOverrides.js +0 -0
  6. package/es/components/{form-table → form-render}/src/hooks/useNuiThemeOverrides2.js +0 -0
  7. package/es/components/index.d.ts +1 -2
  8. package/es/components/index.js +0 -1
  9. package/es/components/index2.js +0 -3
  10. package/es/components/info-header/index.d.ts +3 -3
  11. package/es/components/info-header/src/HiddenContent.vue.d.ts +2 -2
  12. package/es/components/info-header/src/InfoEllipsis.vue.d.ts +1 -1
  13. package/es/components/info-header/src/InfoHeader.vue.d.ts +3 -3
  14. package/es/components/scale-view/src/components/formitem/text-over-tooltip/TextOverTooltip.vue.d.ts +1 -1
  15. package/es/components/steps-wheel/index.d.ts +1 -1
  16. package/es/components/steps-wheel/src/StepsWheel.vue.d.ts +1 -1
  17. package/es/shared/components/TextOverTooltip/TextOverTooltip.vue.d.ts +1 -1
  18. package/package.json +2 -2
  19. package/es/components/form-table/index.d.ts +0 -4019
  20. package/es/components/form-table/index.js +0 -1
  21. package/es/components/form-table/index2.js +0 -10
  22. package/es/components/form-table/src/FormTable.js +0 -474
  23. package/es/components/form-table/src/FormTable.vue.d.ts +0 -4019
  24. package/es/components/form-table/src/components/index.d.ts +0 -3778
  25. package/es/components/form-table/src/components/index.js +0 -1
  26. package/es/components/form-table/src/components/index2.js +0 -40
  27. package/es/components/form-table/src/components/table-age.js +0 -235
  28. package/es/components/form-table/src/components/table-age.vue.d.ts +0 -318
  29. package/es/components/form-table/src/components/table-date-picker.js +0 -179
  30. package/es/components/form-table/src/components/table-date-picker.vue.d.ts +0 -250
  31. package/es/components/form-table/src/components/table-digital.js +0 -141
  32. package/es/components/form-table/src/components/table-digital.vue.d.ts +0 -261
  33. package/es/components/form-table/src/components/table-input-password.js +0 -141
  34. package/es/components/form-table/src/components/table-input-password.vue.d.ts +0 -304
  35. package/es/components/form-table/src/components/table-input.js +0 -127
  36. package/es/components/form-table/src/components/table-input.vue.d.ts +0 -261
  37. package/es/components/form-table/src/components/table-month-picker.js +0 -104
  38. package/es/components/form-table/src/components/table-month-picker.vue.d.ts +0 -193
  39. package/es/components/form-table/src/components/table-search-more.js +0 -6
  40. package/es/components/form-table/src/components/table-search-more.vue.d.ts +0 -392
  41. package/es/components/form-table/src/components/table-search-more.vue_vue_type_script_setup_true_lang.js +0 -276
  42. package/es/components/form-table/src/components/table-search.js +0 -6
  43. package/es/components/form-table/src/components/table-search.vue.d.ts +0 -386
  44. package/es/components/form-table/src/components/table-search.vue_vue_type_script_setup_true_lang.js +0 -276
  45. package/es/components/form-table/src/components/table-select-multiple.js +0 -164
  46. package/es/components/form-table/src/components/table-select-multiple.vue.d.ts +0 -235
  47. package/es/components/form-table/src/components/table-select.js +0 -159
  48. package/es/components/form-table/src/components/table-select.vue.d.ts +0 -234
  49. package/es/components/form-table/src/components/table-textarea.js +0 -157
  50. package/es/components/form-table/src/components/table-textarea.vue.d.ts +0 -320
  51. package/es/components/form-table/src/components/table-time-picker.js +0 -150
  52. package/es/components/form-table/src/components/table-time-picker.vue.d.ts +0 -246
  53. package/es/components/form-table/src/components/table-tree-select.js +0 -285
  54. package/es/components/form-table/src/components/table-tree-select.vue.d.ts +0 -349
  55. package/es/components/form-table/src/components/text-over-tooltip.js +0 -64
  56. package/es/components/form-table/src/components/text-over-tooltip.vue.d.ts +0 -70
  57. package/es/components/form-table/src/configs/index.d.ts +0 -35
  58. package/es/components/form-table/src/configs/index.js +0 -1
  59. package/es/components/form-table/src/configs/index2.js +0 -67
  60. package/es/components/form-table/src/hooks/index.d.ts +0 -5
  61. package/es/components/form-table/src/hooks/index.js +0 -5
  62. package/es/components/form-table/src/hooks/useBoundDate.d.ts +0 -21
  63. package/es/components/form-table/src/hooks/useBoundDate.js +0 -1
  64. package/es/components/form-table/src/hooks/useBoundDate2.js +0 -414
  65. package/es/components/form-table/src/hooks/useDateType.d.ts +0 -17
  66. package/es/components/form-table/src/hooks/useDateType.js +0 -1
  67. package/es/components/form-table/src/hooks/useDateType2.js +0 -160
  68. package/es/components/form-table/src/hooks/useFormCommon.d.ts +0 -14
  69. package/es/components/form-table/src/hooks/useFormCommon.js +0 -1
  70. package/es/components/form-table/src/hooks/useFormCommon2.js +0 -101
  71. package/es/components/form-table/src/hooks/useFormEvent.d.ts +0 -9
  72. package/es/components/form-table/src/hooks/useFormEvent.js +0 -1
  73. package/es/components/form-table/src/hooks/useFormEvent2.js +0 -68
  74. package/es/components/form-table/src/hooks/useItemDefault.d.ts +0 -53
  75. package/es/components/form-table/src/hooks/useItemDefault.js +0 -1
  76. package/es/components/form-table/src/hooks/useItemDefault2.js +0 -218
  77. package/es/components/form-table/src/hooks/useSearch.d.ts +0 -165
  78. package/es/components/form-table/src/hooks/useSearch.js +0 -1
  79. package/es/components/form-table/src/hooks/useSearch2.js +0 -1154
  80. package/es/components/form-table/src/hooks/useValidate.d.ts +0 -24
  81. package/es/components/form-table/src/hooks/useValidate.js +0 -1
  82. package/es/components/form-table/src/hooks/useValidate2.js +0 -480
  83. package/es/components/form-table/src/types/index.d.ts +0 -11
  84. package/es/components/form-table/src/types/index.js +0 -1
  85. package/es/components/form-table/style/index.css +0 -1
@@ -1,164 +0,0 @@
1
- import { defineComponent, ref, computed, unref, openBlock, createBlock, normalizeClass, withCtx, createCommentVNode, createTextVNode } from 'vue';
2
- import { useMessage, NSelect } from 'naive-ui';
3
- import 'moment';
4
- import { useItemDefault } from '../hooks/useItemDefault2.js';
5
- import 'xe-utils';
6
- import _export_sfc from '../../../../_virtual/plugin-vue_export-helper.js';
7
-
8
- const _hoisted_1 = /* @__PURE__ */ createTextVNode(" > ");
9
- const _sfc_main = /* @__PURE__ */ defineComponent({
10
- __name: "table-select-multiple",
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 $message = useMessage();
78
- const $t = () => {
79
- };
80
- const {
81
- formTable,
82
- hasErr,
83
- handleGetJsonStr,
84
- handleSetFieldsValue,
85
- handleGetUniqueKey,
86
- handleSysParams,
87
- defaultInit,
88
- handleTableBlur,
89
- handleFormParams,
90
- radioColor,
91
- handleGetAgeUnit,
92
- handleAgeToBirthDay,
93
- changeAgeSelect,
94
- handlerSetIdCarInfoValidate,
95
- getInputCheck,
96
- getCustomRegular,
97
- checkDigital,
98
- checkAgeJson,
99
- checkAge,
100
- checkMultipleChoice,
101
- checkLength,
102
- checkinputBlank,
103
- checkSearchCascade,
104
- checkMultipleTree,
105
- handleDateClearBtn,
106
- handleStartDateEndDate,
107
- showTimePanel,
108
- momentLib,
109
- judgeTimeBoundary,
110
- setTimeValue,
111
- judgeTimeRange,
112
- isSameDate,
113
- setDefaultCurrent,
114
- handleDefaultRimeRange,
115
- judgeMinMaxDateIsSameDate,
116
- handleDefaultTimeRange,
117
- changeTimeDate,
118
- setTimeRangeArr
119
- } = useItemDefault({ message: $message, props, emit });
120
- ref(false);
121
- const showCom = computed(() => {
122
- let value = props.row[props.item.val_key];
123
- return value == null ? void 0 : value.length;
124
- });
125
- function filterOption(inputValue, option) {
126
- if (typeof (option == null ? void 0 : option.text) === "string") {
127
- return option.text.includes(inputValue);
128
- }
129
- }
130
- return (_ctx, _cache) => {
131
- return !__props.isDetail || unref(showCom) ? (openBlock(), createBlock(unref(NSelect), {
132
- key: 0,
133
- value: __props.row[__props.item.val_key],
134
- "onUpdate:value": _cache[0] || (_cache[0] = ($event) => __props.row[__props.item.val_key] = $event),
135
- multiple: "",
136
- class: normalizeClass(["tableItem-select tableItem-select-multiple", { "table-select-multiple-error": unref(hasErr) }]),
137
- defaultActiveFirstOption: "",
138
- ref: __props.item.val_key,
139
- options: __props.item.option,
140
- optionData: `${JSON.stringify(__props.item.option)}`,
141
- clearable: +__props.item.is_empty === 0,
142
- disabled: +__props.item.is_edit === 0 || __props.isDetail,
143
- placeholder: __props.item.placeholder || `${$t()}${__props.item.name}` || "",
144
- filterOption,
145
- onBlur: unref(handleTableBlur),
146
- "label-field": "text"
147
- }, {
148
- default: withCtx(() => [
149
- createCommentVNode(" <a-select-option"),
150
- createCommentVNode(' v-for="(v, y) in item.option"'),
151
- createCommentVNode(' :key="(y + 9).toString(36) + y"'),
152
- createCommentVNode(' :value="v.value"'),
153
- createCommentVNode(" >{{ v.text }}"),
154
- createCommentVNode(" </a-select-option"),
155
- _hoisted_1
156
- ]),
157
- _: 1
158
- }, 8, ["value", "options", "optionData", "clearable", "disabled", "placeholder", "class", "onBlur"])) : createCommentVNode("v-if", true);
159
- };
160
- }
161
- });
162
- var tableSelectMultiple = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "table-select-multiple.vue"]]);
163
-
164
- export { tableSelectMultiple as default };
@@ -1,235 +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
- $message: import("naive-ui").MessageApi;
58
- props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
59
- mainForm: {
60
- type: PropObject;
61
- default: () => {};
62
- };
63
- userInfo: {
64
- type: PropObject;
65
- default: () => {};
66
- };
67
- styleSetting: {
68
- type: PropObject;
69
- default: () => {};
70
- };
71
- defaultValue: {
72
- type: PropObject;
73
- default: () => {};
74
- };
75
- dbParams: {
76
- type: PropType<AnyObject>;
77
- };
78
- row: {
79
- type: PropObject;
80
- default: () => {};
81
- };
82
- item: {
83
- type: PropObject;
84
- default: () => {
85
- _own: {};
86
- };
87
- };
88
- defaultFieldList: {
89
- type: PropType<any[]>;
90
- default: () => never[];
91
- };
92
- cacheUniqueKey: {
93
- type: PropObject;
94
- default: () => {
95
- _own: {};
96
- };
97
- };
98
- params_formId: (NumberConstructor | StringConstructor)[];
99
- formType: {
100
- type: PropObject;
101
- default: () => {
102
- _own: {};
103
- };
104
- };
105
- isDetail: {
106
- type: BooleanConstructor;
107
- default: boolean;
108
- };
109
- handleFormTableValue: PropType<Func<any[], any>>;
110
- }>> & {
111
- onTableBlur?: ((...args: any[]) => any) | undefined;
112
- onValueOnChange?: ((...args: any[]) => any) | undefined;
113
- onHandlerAddOptions?: ((...args: any[]) => any) | undefined;
114
- onOpentableSelect?: ((...args: any[]) => any) | undefined;
115
- }>>;
116
- emit: (event: "tableBlur" | "valueOnChange" | "handlerAddOptions" | "opentableSelect", ...args: any[]) => void;
117
- $t: () => void;
118
- formTable: AnyObject;
119
- hasErr: import("vue").ComputedRef<any>;
120
- handleGetJsonStr: (str: string | AnyObject) => AnyObject;
121
- handleSetFieldsValue: (setObj?: AnyObject, target?: any) => void;
122
- handleGetUniqueKey: (id: string) => any;
123
- handleSysParams: (str: string) => string;
124
- defaultInit: () => void;
125
- handleTableBlur: (e?: AnyObject | undefined, config?: AnyObject) => void;
126
- handleFormParams: (str: string) => string;
127
- radioColor: () => (p: AnyObject, isOnlyRead?: boolean | undefined) => any;
128
- handleGetAgeUnit: (ageInfo?: AnyObject) => string | undefined;
129
- handleAgeToBirthDay: (val: number, f: string, item: AnyObject) => void;
130
- changeAgeSelect: (val: string, item: AnyObject) => void;
131
- handlerSetIdCarInfoValidate: (value: any, item: AnyObject, callback: Func<any[], any>) => void;
132
- getInputCheck: (validate?: string | undefined) => {
133
- pattern: RegExp;
134
- message: string;
135
- } | undefined;
136
- getCustomRegular: (item: AnyObject) => {
137
- pattern: RegExp;
138
- message: any;
139
- } | null;
140
- checkDigital: import("../../../../../es/components/form-table/src/types").ValidateFunc;
141
- checkAgeJson: import("../../../../../es/components/form-table/src/types").ValidateFunc;
142
- checkAge: import("../../../../../es/components/form-table/src/types").ValidateFunc;
143
- checkMultipleChoice: import("../../../../../es/components/form-table/src/types").ValidateFunc;
144
- checkLength: import("../../../../../es/components/form-table/src/types").ValidateFunc;
145
- checkinputBlank: import("../../../../../es/components/form-table/src/types").ValidateFunc;
146
- checkSearchCascade: import("../../../../../es/components/form-table/src/types").ValidateFunc;
147
- checkMultipleTree: import("../../../../../es/components/form-table/src/types").ValidateFunc;
148
- handleDateClearBtn: (v: any, item: AnyObject) => void;
149
- handleStartDateEndDate: (item: AnyObject) => void;
150
- showTimePanel: (item: AnyObject) => boolean;
151
- momentLib: (date_format: string) => any;
152
- judgeTimeBoundary: (time: any, item: AnyObject) => void;
153
- setTimeValue: (time: any, item: AnyObject) => void;
154
- judgeTimeRange: (time: any, item: AnyObject) => AnyObject | undefined;
155
- isSameDate: (curDate: any, compareMin: any, compareMax: any) => AnyObject;
156
- setDefaultCurrent: (compareItem: AnyObject, currTime: any) => void;
157
- handleDefaultRimeRange: (time: any, item: AnyObject) => void;
158
- judgeMinMaxDateIsSameDate: (item: AnyObject) => boolean;
159
- handleDefaultTimeRange: (time: any, item: any, chooseDate?: any) => {};
160
- changeTimeDate: (time: any, minTime: any, maxTime: any, item: AnyObject) => {};
161
- setTimeRangeArr: (hMin: any, HMax: any, mMin: any, mMax: any, sMin: any, sMax: any) => Required<Partial<Record<"hArr" | "mArr" | "sArr", [any, any]>>>;
162
- open: import("vue").Ref<boolean>;
163
- showCom: import("vue").ComputedRef<any>;
164
- filterOption: (inputValue: string, option: AnyObject) => boolean | undefined;
165
- NSelect: any;
166
- }, 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<{
167
- mainForm: {
168
- type: PropObject;
169
- default: () => {};
170
- };
171
- userInfo: {
172
- type: PropObject;
173
- default: () => {};
174
- };
175
- styleSetting: {
176
- type: PropObject;
177
- default: () => {};
178
- };
179
- defaultValue: {
180
- type: PropObject;
181
- default: () => {};
182
- };
183
- dbParams: {
184
- type: PropType<AnyObject>;
185
- };
186
- row: {
187
- type: PropObject;
188
- default: () => {};
189
- };
190
- item: {
191
- type: PropObject;
192
- default: () => {
193
- _own: {};
194
- };
195
- };
196
- defaultFieldList: {
197
- type: PropType<any[]>;
198
- default: () => never[];
199
- };
200
- cacheUniqueKey: {
201
- type: PropObject;
202
- default: () => {
203
- _own: {};
204
- };
205
- };
206
- params_formId: (NumberConstructor | StringConstructor)[];
207
- formType: {
208
- type: PropObject;
209
- default: () => {
210
- _own: {};
211
- };
212
- };
213
- isDetail: {
214
- type: BooleanConstructor;
215
- default: boolean;
216
- };
217
- handleFormTableValue: PropType<Func<any[], any>>;
218
- }>> & {
219
- onTableBlur?: ((...args: any[]) => any) | undefined;
220
- onValueOnChange?: ((...args: any[]) => any) | undefined;
221
- onHandlerAddOptions?: ((...args: any[]) => any) | undefined;
222
- onOpentableSelect?: ((...args: any[]) => any) | undefined;
223
- }, {
224
- styleSetting: AnyObject;
225
- userInfo: AnyObject;
226
- row: AnyObject;
227
- cacheUniqueKey: AnyObject;
228
- formType: AnyObject;
229
- isDetail: boolean;
230
- item: AnyObject;
231
- defaultValue: AnyObject;
232
- mainForm: AnyObject;
233
- defaultFieldList: any[];
234
- }>;
235
- export default _default;
@@ -1,159 +0,0 @@
1
- import { defineComponent, ref, computed, openBlock, createBlock, unref, normalizeClass, withCtx, createCommentVNode } from 'vue';
2
- import { useMessage, NSelect } from 'naive-ui';
3
- import 'moment';
4
- import { useItemDefault } from '../hooks/useItemDefault2.js';
5
- import 'xe-utils';
6
- import _export_sfc from '../../../../_virtual/plugin-vue_export-helper.js';
7
-
8
- const _sfc_main = /* @__PURE__ */ defineComponent({
9
- __name: "table-select",
10
- props: {
11
- mainForm: {
12
- type: Object,
13
- default: () => ({})
14
- },
15
- userInfo: {
16
- type: Object,
17
- default: () => ({})
18
- },
19
- styleSetting: {
20
- type: Object,
21
- default: () => ({})
22
- },
23
- defaultValue: {
24
- type: Object,
25
- default: () => ({})
26
- },
27
- dbParams: {
28
- type: Object
29
- },
30
- row: {
31
- type: Object,
32
- default: () => {
33
- return {};
34
- }
35
- },
36
- item: {
37
- type: Object,
38
- default: () => {
39
- return {
40
- _own: {}
41
- };
42
- }
43
- },
44
- defaultFieldList: {
45
- type: Array,
46
- default: () => {
47
- return [];
48
- }
49
- },
50
- cacheUniqueKey: {
51
- type: Object,
52
- default: () => {
53
- return {
54
- _own: {}
55
- };
56
- }
57
- },
58
- params_formId: [String, Number],
59
- formType: {
60
- type: Object,
61
- default: () => {
62
- return {
63
- _own: {}
64
- };
65
- }
66
- },
67
- isDetail: {
68
- type: Boolean,
69
- default: false
70
- },
71
- handleFormTableValue: Function
72
- },
73
- emits: ["tableBlur", "valueOnChange", "handlerAddOptions", "opentableSelect"],
74
- setup(__props, { emit }) {
75
- const props = __props;
76
- const $message = useMessage();
77
- const $t = () => {
78
- };
79
- const {
80
- formTable,
81
- hasErr,
82
- handleGetJsonStr,
83
- handleSetFieldsValue,
84
- handleGetUniqueKey,
85
- handleSysParams,
86
- defaultInit,
87
- handleTableBlur,
88
- handleFormParams,
89
- radioColor,
90
- handleGetAgeUnit,
91
- handleAgeToBirthDay,
92
- changeAgeSelect,
93
- handlerSetIdCarInfoValidate,
94
- getInputCheck,
95
- getCustomRegular,
96
- checkDigital,
97
- checkAgeJson,
98
- checkAge,
99
- checkMultipleChoice,
100
- checkLength,
101
- checkinputBlank,
102
- checkSearchCascade,
103
- checkMultipleTree,
104
- handleDateClearBtn,
105
- handleStartDateEndDate,
106
- showTimePanel,
107
- momentLib,
108
- judgeTimeBoundary,
109
- setTimeValue,
110
- judgeTimeRange,
111
- isSameDate,
112
- setDefaultCurrent,
113
- handleDefaultRimeRange,
114
- judgeMinMaxDateIsSameDate,
115
- handleDefaultTimeRange,
116
- changeTimeDate,
117
- setTimeRangeArr
118
- } = useItemDefault({ message: $message, props, emit });
119
- ref(false);
120
- const isMultiple = computed(() => {
121
- return String(props.item.multi_select) === "0";
122
- });
123
- return (_ctx, _cache) => {
124
- return !__props.isDetail || __props.row[__props.item.val_key] ? (openBlock(), createBlock(unref(NSelect), {
125
- key: 0,
126
- value: __props.row[__props.item.val_key],
127
- "onUpdate:value": _cache[0] || (_cache[0] = (v) => {
128
- __props.row[__props.item.val_key] = v;
129
- unref(handleTableBlur)({ type: "blur" }, __props.item);
130
- }),
131
- class: normalizeClass(["tableItem-select table-select", { "table-select-error": unref(hasErr) }]),
132
- defaultActiveFirstOption: "",
133
- ref: __props.item.val_key,
134
- options: __props.item.option,
135
- optionData: `${JSON.stringify(__props.item.option)}`,
136
- multiple: unref(isMultiple),
137
- clearable: +__props.item.is_empty === 0,
138
- disabled: +__props.item.is_edit === 0 || __props.isDetail,
139
- placeholder: __props.item.placeholder || `${$t()}${__props.item.name}` || "",
140
- "label-field": "text",
141
- onBlur: unref(handleTableBlur)
142
- }, {
143
- default: withCtx(() => [
144
- createCommentVNode(" <a-select-option"),
145
- createCommentVNode(' v-for="(v, y) in item.option"'),
146
- createCommentVNode(' :key="(y + 9).toString(36) + y"'),
147
- createCommentVNode(' :value="v.value"'),
148
- createCommentVNode(" >{{ v.text }}"),
149
- createCommentVNode(" </a-select-option"),
150
- createCommentVNode(" >")
151
- ]),
152
- _: 1
153
- }, 8, ["value", "options", "optionData", "multiple", "clearable", "disabled", "placeholder", "class", "onBlur"])) : createCommentVNode("v-if", true);
154
- };
155
- }
156
- });
157
- var tableSelect = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "table-select.vue"]]);
158
-
159
- export { tableSelect as default };