cnhis-design-vue 3.1.21-beta.3 → 3.1.21-beta.4
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/README.md +123 -123
- package/es/components/big-table/index.d.ts +1 -1
- package/es/components/big-table/src/BigTable.vue.d.ts +1 -1
- package/es/components/big-table/src/BigTable.vue_vue_type_script_setup_true_lang.js +3 -2
- package/es/components/button-print/index.d.ts +1 -1
- package/es/components/button-print/src/ButtonPrint.vue.d.ts +1 -1
- package/es/components/button-print/src/components/IdentityVerification.vue.d.ts +1 -1
- package/es/components/drag-layout/index.d.ts +1 -1
- package/es/components/drag-layout/src/DragLayout.vue.d.ts +1 -1
- package/es/components/form-config/index.d.ts +2 -2
- package/es/components/form-config/src/FormConfig.vue.d.ts +2 -2
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +1 -1
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +1 -1
- package/es/components/form-render/index.d.ts +1 -1
- package/es/components/form-render/src/FormRender.js +1 -1
- package/es/components/form-render/src/FormRender.vue.d.ts +1 -1
- package/es/components/form-render/src/components/renderer/inputGroup.d.ts +1 -1
- package/es/components/{form-table → form-render}/src/hooks/useNuiThemeOverrides.d.ts +0 -0
- package/es/components/{form-table → form-render}/src/hooks/useNuiThemeOverrides.js +0 -0
- package/es/components/{form-table → form-render}/src/hooks/useNuiThemeOverrides2.js +0 -0
- package/es/components/index.d.ts +1 -2
- package/es/components/index.js +0 -1
- package/es/components/index2.js +0 -3
- package/es/components/info-header/index.d.ts +4 -4
- package/es/components/info-header/src/HiddenContent.vue.d.ts +2 -2
- package/es/components/info-header/src/InfoEllipsis.vue.d.ts +1 -1
- package/es/components/info-header/src/InfoHeader.vue.d.ts +4 -4
- package/es/components/scale-view/index.d.ts +1 -1
- package/es/components/scale-view/src/ScaleView.vue.d.ts +1 -1
- package/es/components/scale-view/src/components/formitem/text-over-tooltip/TextOverTooltip.vue.d.ts +1 -1
- package/es/components/scale-view/src/hooks/use-component.d.ts +2 -2
- package/es/components/select-label/index.d.ts +4 -4
- package/es/components/select-label/src/LabelFormContent.vue.d.ts +2 -2
- package/es/components/select-label/src/SelectLabel.vue.d.ts +2 -2
- package/es/components/select-person/index.d.ts +1 -1
- package/es/components/select-person/src/SelectPerson.vue.d.ts +1 -1
- package/es/components/shortcut-setter/index.d.ts +1 -1
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +1 -1
- package/es/components/steps-wheel/index.d.ts +1 -1
- package/es/components/steps-wheel/src/StepsWheel.vue.d.ts +1 -1
- package/es/components/time-line/index.d.ts +1 -1
- package/es/components/time-line/src/TimeLine.vue.d.ts +1 -1
- package/es/shared/components/TextOverTooltip/TextOverTooltip.vue.d.ts +1 -1
- package/package.json +2 -2
- package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
- package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +0 -1
- package/es/components/bpmn-workflow/types/ModelingModule.d.ts +0 -1
- package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +0 -1
- package/es/components/fabric-chart/src/utils/index.d.ts +0 -6823
- package/es/components/form-table/index.d.ts +0 -4019
- package/es/components/form-table/index.js +0 -1
- package/es/components/form-table/index2.js +0 -10
- package/es/components/form-table/src/FormTable.js +0 -474
- package/es/components/form-table/src/FormTable.vue.d.ts +0 -4019
- package/es/components/form-table/src/components/index.d.ts +0 -3778
- package/es/components/form-table/src/components/index.js +0 -1
- package/es/components/form-table/src/components/index2.js +0 -40
- package/es/components/form-table/src/components/table-age.js +0 -235
- package/es/components/form-table/src/components/table-age.vue.d.ts +0 -318
- package/es/components/form-table/src/components/table-date-picker.js +0 -179
- package/es/components/form-table/src/components/table-date-picker.vue.d.ts +0 -250
- package/es/components/form-table/src/components/table-digital.js +0 -141
- package/es/components/form-table/src/components/table-digital.vue.d.ts +0 -261
- package/es/components/form-table/src/components/table-input-password.js +0 -141
- package/es/components/form-table/src/components/table-input-password.vue.d.ts +0 -304
- package/es/components/form-table/src/components/table-input.js +0 -127
- package/es/components/form-table/src/components/table-input.vue.d.ts +0 -261
- package/es/components/form-table/src/components/table-month-picker.js +0 -104
- package/es/components/form-table/src/components/table-month-picker.vue.d.ts +0 -193
- package/es/components/form-table/src/components/table-search-more.js +0 -6
- package/es/components/form-table/src/components/table-search-more.vue.d.ts +0 -392
- package/es/components/form-table/src/components/table-search-more.vue_vue_type_script_setup_true_lang.js +0 -276
- package/es/components/form-table/src/components/table-search.js +0 -6
- package/es/components/form-table/src/components/table-search.vue.d.ts +0 -386
- package/es/components/form-table/src/components/table-search.vue_vue_type_script_setup_true_lang.js +0 -276
- package/es/components/form-table/src/components/table-select-multiple.js +0 -164
- package/es/components/form-table/src/components/table-select-multiple.vue.d.ts +0 -235
- package/es/components/form-table/src/components/table-select.js +0 -159
- package/es/components/form-table/src/components/table-select.vue.d.ts +0 -234
- package/es/components/form-table/src/components/table-textarea.js +0 -157
- package/es/components/form-table/src/components/table-textarea.vue.d.ts +0 -320
- package/es/components/form-table/src/components/table-time-picker.js +0 -150
- package/es/components/form-table/src/components/table-time-picker.vue.d.ts +0 -246
- package/es/components/form-table/src/components/table-tree-select.js +0 -285
- package/es/components/form-table/src/components/table-tree-select.vue.d.ts +0 -349
- package/es/components/form-table/src/components/text-over-tooltip.js +0 -64
- package/es/components/form-table/src/components/text-over-tooltip.vue.d.ts +0 -70
- package/es/components/form-table/src/configs/index.d.ts +0 -35
- package/es/components/form-table/src/configs/index.js +0 -1
- package/es/components/form-table/src/configs/index2.js +0 -67
- package/es/components/form-table/src/hooks/index.d.ts +0 -5
- package/es/components/form-table/src/hooks/index.js +0 -5
- package/es/components/form-table/src/hooks/useBoundDate.d.ts +0 -21
- package/es/components/form-table/src/hooks/useBoundDate.js +0 -1
- package/es/components/form-table/src/hooks/useBoundDate2.js +0 -414
- package/es/components/form-table/src/hooks/useDateType.d.ts +0 -17
- package/es/components/form-table/src/hooks/useDateType.js +0 -1
- package/es/components/form-table/src/hooks/useDateType2.js +0 -160
- package/es/components/form-table/src/hooks/useFormCommon.d.ts +0 -14
- package/es/components/form-table/src/hooks/useFormCommon.js +0 -1
- package/es/components/form-table/src/hooks/useFormCommon2.js +0 -101
- package/es/components/form-table/src/hooks/useFormEvent.d.ts +0 -9
- package/es/components/form-table/src/hooks/useFormEvent.js +0 -1
- package/es/components/form-table/src/hooks/useFormEvent2.js +0 -68
- package/es/components/form-table/src/hooks/useItemDefault.d.ts +0 -53
- package/es/components/form-table/src/hooks/useItemDefault.js +0 -1
- package/es/components/form-table/src/hooks/useItemDefault2.js +0 -218
- package/es/components/form-table/src/hooks/useSearch.d.ts +0 -165
- package/es/components/form-table/src/hooks/useSearch.js +0 -1
- package/es/components/form-table/src/hooks/useSearch2.js +0 -1154
- package/es/components/form-table/src/hooks/useValidate.d.ts +0 -24
- package/es/components/form-table/src/hooks/useValidate.js +0 -1
- package/es/components/form-table/src/hooks/useValidate2.js +0 -480
- package/es/components/form-table/src/types/index.d.ts +0 -11
- package/es/components/form-table/src/types/index.js +0 -1
- package/es/components/form-table/style/index.css +0 -1
- package/es/shared/utils/tapable/index.d.ts +0 -139
|
@@ -1,234 +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
|
-
isMultiple: import("vue").ComputedRef<boolean>;
|
|
164
|
-
NSelect: any;
|
|
165
|
-
}, 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<{
|
|
166
|
-
mainForm: {
|
|
167
|
-
type: PropObject;
|
|
168
|
-
default: () => {};
|
|
169
|
-
};
|
|
170
|
-
userInfo: {
|
|
171
|
-
type: PropObject;
|
|
172
|
-
default: () => {};
|
|
173
|
-
};
|
|
174
|
-
styleSetting: {
|
|
175
|
-
type: PropObject;
|
|
176
|
-
default: () => {};
|
|
177
|
-
};
|
|
178
|
-
defaultValue: {
|
|
179
|
-
type: PropObject;
|
|
180
|
-
default: () => {};
|
|
181
|
-
};
|
|
182
|
-
dbParams: {
|
|
183
|
-
type: PropType<AnyObject>;
|
|
184
|
-
};
|
|
185
|
-
row: {
|
|
186
|
-
type: PropObject;
|
|
187
|
-
default: () => {};
|
|
188
|
-
};
|
|
189
|
-
item: {
|
|
190
|
-
type: PropObject;
|
|
191
|
-
default: () => {
|
|
192
|
-
_own: {};
|
|
193
|
-
};
|
|
194
|
-
};
|
|
195
|
-
defaultFieldList: {
|
|
196
|
-
type: PropType<any[]>;
|
|
197
|
-
default: () => never[];
|
|
198
|
-
};
|
|
199
|
-
cacheUniqueKey: {
|
|
200
|
-
type: PropObject;
|
|
201
|
-
default: () => {
|
|
202
|
-
_own: {};
|
|
203
|
-
};
|
|
204
|
-
};
|
|
205
|
-
params_formId: (NumberConstructor | StringConstructor)[];
|
|
206
|
-
formType: {
|
|
207
|
-
type: PropObject;
|
|
208
|
-
default: () => {
|
|
209
|
-
_own: {};
|
|
210
|
-
};
|
|
211
|
-
};
|
|
212
|
-
isDetail: {
|
|
213
|
-
type: BooleanConstructor;
|
|
214
|
-
default: boolean;
|
|
215
|
-
};
|
|
216
|
-
handleFormTableValue: PropType<Func<any[], any>>;
|
|
217
|
-
}>> & {
|
|
218
|
-
onTableBlur?: ((...args: any[]) => any) | undefined;
|
|
219
|
-
onValueOnChange?: ((...args: any[]) => any) | undefined;
|
|
220
|
-
onHandlerAddOptions?: ((...args: any[]) => any) | undefined;
|
|
221
|
-
onOpentableSelect?: ((...args: any[]) => any) | undefined;
|
|
222
|
-
}, {
|
|
223
|
-
styleSetting: AnyObject;
|
|
224
|
-
userInfo: AnyObject;
|
|
225
|
-
row: AnyObject;
|
|
226
|
-
cacheUniqueKey: AnyObject;
|
|
227
|
-
formType: AnyObject;
|
|
228
|
-
isDetail: boolean;
|
|
229
|
-
item: AnyObject;
|
|
230
|
-
defaultValue: AnyObject;
|
|
231
|
-
mainForm: AnyObject;
|
|
232
|
-
defaultFieldList: any[];
|
|
233
|
-
}>;
|
|
234
|
-
export default _default;
|
|
@@ -1,157 +0,0 @@
|
|
|
1
|
-
import { defineComponent, computed, openBlock, createBlock, unref, normalizeClass, createElementBlock, createVNode } from 'vue';
|
|
2
|
-
import { useMessage, NInput } from 'naive-ui';
|
|
3
|
-
import 'moment';
|
|
4
|
-
import { useItemDefault } from '../hooks/useItemDefault2.js';
|
|
5
|
-
import 'xe-utils';
|
|
6
|
-
import script from '../../../../shared/components/TextOverTooltip/TextOverTooltip.js';
|
|
7
|
-
import _export_sfc from '../../../../_virtual/plugin-vue_export-helper.js';
|
|
8
|
-
|
|
9
|
-
const _hoisted_1 = { key: 1 };
|
|
10
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
11
|
-
__name: "table-textarea",
|
|
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 {
|
|
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
|
-
const maxLength = computed(() => {
|
|
120
|
-
return props.item.validate && props.item.validate.max_length ? +props.item.validate.max_length : 500;
|
|
121
|
-
});
|
|
122
|
-
function handlerFormatTextarea(value) {
|
|
123
|
-
let defVal = handleSysParams(value);
|
|
124
|
-
if (!defVal) {
|
|
125
|
-
return "";
|
|
126
|
-
} else if (defVal instanceof Object) {
|
|
127
|
-
return JSON.stringify(defVal);
|
|
128
|
-
}
|
|
129
|
-
return defVal;
|
|
130
|
-
}
|
|
131
|
-
return (_ctx, _cache) => {
|
|
132
|
-
return !__props.isDetail ? (openBlock(), createBlock(unref(NInput), {
|
|
133
|
-
key: 0,
|
|
134
|
-
type: "textarea",
|
|
135
|
-
value: __props.row[__props.item.val_key],
|
|
136
|
-
"onUpdate:value": _cache[0] || (_cache[0] = ($event) => __props.row[__props.item.val_key] = $event),
|
|
137
|
-
ref: `a-textarea-${__props.item.val_key}`,
|
|
138
|
-
clearable: +__props.item.is_empty === 0,
|
|
139
|
-
placeholder: __props.item.placeholder || "",
|
|
140
|
-
rows: __props.item.initialize_high || 3,
|
|
141
|
-
disabled: +__props.item.is_edit === 0 || __props.isDetail,
|
|
142
|
-
maxLength: unref(maxLength),
|
|
143
|
-
class: normalizeClass(["form-control table-textarea-com", { "table-error-textarea": unref(hasErr) }]),
|
|
144
|
-
autoSize: false,
|
|
145
|
-
onBlur: unref(handleTableBlur)
|
|
146
|
-
}, null, 8, ["value", "clearable", "placeholder", "rows", "disabled", "maxLength", "class", "onBlur"])) : (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
147
|
-
createVNode(unref(script), {
|
|
148
|
-
refName: `table-tooltip-${__props.item.val_key}`,
|
|
149
|
-
content: handlerFormatTextarea(__props.row[__props.item.val_key])
|
|
150
|
-
}, null, 8, ["refName", "content"])
|
|
151
|
-
]));
|
|
152
|
-
};
|
|
153
|
-
}
|
|
154
|
-
});
|
|
155
|
-
var tableTextarea = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "table-textarea.vue"]]);
|
|
156
|
-
|
|
157
|
-
export { tableTextarea as default };
|
|
@@ -1,320 +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
|
-
maxLength: import("vue").ComputedRef<number>;
|
|
163
|
-
handlerFormatTextarea: (value: any) => any;
|
|
164
|
-
NInput: any;
|
|
165
|
-
TextOverTooltip: import("vue").DefineComponent<{
|
|
166
|
-
content: {
|
|
167
|
-
type: (NumberConstructor | StringConstructor)[];
|
|
168
|
-
required: false;
|
|
169
|
-
};
|
|
170
|
-
className: {
|
|
171
|
-
type: StringConstructor;
|
|
172
|
-
required: false;
|
|
173
|
-
};
|
|
174
|
-
refName: {
|
|
175
|
-
type: StringConstructor;
|
|
176
|
-
required: false;
|
|
177
|
-
};
|
|
178
|
-
effect: {
|
|
179
|
-
type: StringConstructor;
|
|
180
|
-
required: false;
|
|
181
|
-
default: string;
|
|
182
|
-
};
|
|
183
|
-
placement: {
|
|
184
|
-
type: StringConstructor;
|
|
185
|
-
required: false;
|
|
186
|
-
default: string;
|
|
187
|
-
};
|
|
188
|
-
tooltipTitle: {
|
|
189
|
-
type: (NumberConstructor | StringConstructor)[];
|
|
190
|
-
required: false;
|
|
191
|
-
default: string;
|
|
192
|
-
};
|
|
193
|
-
isAlias: {
|
|
194
|
-
type: BooleanConstructor;
|
|
195
|
-
required: false;
|
|
196
|
-
};
|
|
197
|
-
}, {
|
|
198
|
-
props: {
|
|
199
|
-
content?: string | number | undefined;
|
|
200
|
-
className?: string | undefined;
|
|
201
|
-
refName?: string | undefined;
|
|
202
|
-
effect: string;
|
|
203
|
-
placement: "left" | "right" | "top" | "bottom" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end";
|
|
204
|
-
tooltipTitle: string | number;
|
|
205
|
-
isAlias?: boolean | undefined;
|
|
206
|
-
};
|
|
207
|
-
isDisabledTooltip: import("vue").Ref<boolean>;
|
|
208
|
-
curContent: import("vue").ComputedRef<string>;
|
|
209
|
-
$refName: any;
|
|
210
|
-
onMouseOver: (str: any) => void;
|
|
211
|
-
onMouseOut: () => void;
|
|
212
|
-
NTooltip: any;
|
|
213
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
214
|
-
content: {
|
|
215
|
-
type: (NumberConstructor | StringConstructor)[];
|
|
216
|
-
required: false;
|
|
217
|
-
};
|
|
218
|
-
className: {
|
|
219
|
-
type: StringConstructor;
|
|
220
|
-
required: false;
|
|
221
|
-
};
|
|
222
|
-
refName: {
|
|
223
|
-
type: StringConstructor;
|
|
224
|
-
required: false;
|
|
225
|
-
};
|
|
226
|
-
effect: {
|
|
227
|
-
type: StringConstructor;
|
|
228
|
-
required: false;
|
|
229
|
-
default: string;
|
|
230
|
-
};
|
|
231
|
-
placement: {
|
|
232
|
-
type: StringConstructor;
|
|
233
|
-
required: false;
|
|
234
|
-
default: string;
|
|
235
|
-
};
|
|
236
|
-
tooltipTitle: {
|
|
237
|
-
type: (NumberConstructor | StringConstructor)[];
|
|
238
|
-
required: false;
|
|
239
|
-
default: string;
|
|
240
|
-
};
|
|
241
|
-
isAlias: {
|
|
242
|
-
type: BooleanConstructor;
|
|
243
|
-
required: false;
|
|
244
|
-
};
|
|
245
|
-
}>>, {
|
|
246
|
-
placement: string;
|
|
247
|
-
tooltipTitle: string | number;
|
|
248
|
-
isAlias: boolean;
|
|
249
|
-
effect: string;
|
|
250
|
-
}>;
|
|
251
|
-
}, 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<{
|
|
252
|
-
mainForm: {
|
|
253
|
-
type: PropObject;
|
|
254
|
-
default: () => {};
|
|
255
|
-
};
|
|
256
|
-
userInfo: {
|
|
257
|
-
type: PropObject;
|
|
258
|
-
default: () => {};
|
|
259
|
-
};
|
|
260
|
-
styleSetting: {
|
|
261
|
-
type: PropObject;
|
|
262
|
-
default: () => {};
|
|
263
|
-
};
|
|
264
|
-
defaultValue: {
|
|
265
|
-
type: PropObject;
|
|
266
|
-
default: () => {};
|
|
267
|
-
};
|
|
268
|
-
dbParams: {
|
|
269
|
-
type: PropType<AnyObject>;
|
|
270
|
-
};
|
|
271
|
-
row: {
|
|
272
|
-
type: PropObject;
|
|
273
|
-
default: () => {};
|
|
274
|
-
};
|
|
275
|
-
item: {
|
|
276
|
-
type: PropObject;
|
|
277
|
-
default: () => {
|
|
278
|
-
_own: {};
|
|
279
|
-
};
|
|
280
|
-
};
|
|
281
|
-
defaultFieldList: {
|
|
282
|
-
type: PropType<any[]>;
|
|
283
|
-
default: () => never[];
|
|
284
|
-
};
|
|
285
|
-
cacheUniqueKey: {
|
|
286
|
-
type: PropObject;
|
|
287
|
-
default: () => {
|
|
288
|
-
_own: {};
|
|
289
|
-
};
|
|
290
|
-
};
|
|
291
|
-
params_formId: (NumberConstructor | StringConstructor)[];
|
|
292
|
-
formType: {
|
|
293
|
-
type: PropObject;
|
|
294
|
-
default: () => {
|
|
295
|
-
_own: {};
|
|
296
|
-
};
|
|
297
|
-
};
|
|
298
|
-
isDetail: {
|
|
299
|
-
type: BooleanConstructor;
|
|
300
|
-
default: boolean;
|
|
301
|
-
};
|
|
302
|
-
handleFormTableValue: PropType<Func<any[], any>>;
|
|
303
|
-
}>> & {
|
|
304
|
-
onTableBlur?: ((...args: any[]) => any) | undefined;
|
|
305
|
-
onValueOnChange?: ((...args: any[]) => any) | undefined;
|
|
306
|
-
onHandlerAddOptions?: ((...args: any[]) => any) | undefined;
|
|
307
|
-
onOpentableSelect?: ((...args: any[]) => any) | undefined;
|
|
308
|
-
}, {
|
|
309
|
-
styleSetting: AnyObject;
|
|
310
|
-
userInfo: AnyObject;
|
|
311
|
-
row: AnyObject;
|
|
312
|
-
cacheUniqueKey: AnyObject;
|
|
313
|
-
formType: AnyObject;
|
|
314
|
-
isDetail: boolean;
|
|
315
|
-
item: AnyObject;
|
|
316
|
-
defaultValue: AnyObject;
|
|
317
|
-
mainForm: AnyObject;
|
|
318
|
-
defaultFieldList: any[];
|
|
319
|
-
}>;
|
|
320
|
-
export default _default;
|