cnhis-design-vue 3.1.21-beta.0 → 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.
- package/es/components/big-table/index.d.ts +13 -11
- package/es/components/big-table/src/BigTable.vue.d.ts +13 -11
- package/es/components/big-table/src/BigTable.vue_vue_type_script_setup_true_lang.js +24 -16
- package/es/components/big-table/src/bigTableProps.d.ts +1 -1
- package/es/components/big-table/src/components/edit-form/edit-input.js +15 -7
- package/es/components/big-table/src/hooks/useEdit.d.ts +2 -1
- package/es/components/big-table/src/hooks/useEdit2.js +3 -2
- package/es/components/big-table/src/hooks/useFormat.d.ts +3 -1
- package/es/components/big-table/src/hooks/useFormat2.js +11 -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/fabric-chart/src/components/PopupMenu.js +9 -2
- package/es/components/fabric-chart/src/hooks/useCenter2.js +21 -20
- package/es/components/fabric-chart/src/hooks/useLeft2.js +4 -3
- package/es/components/form-config/index.d.ts +3 -2
- package/es/components/form-config/src/FormConfig.vue.d.ts +3 -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 +2 -1
- package/es/components/form-render/index.d.ts +1 -1
- package/es/components/form-render/index2.js +4 -5
- package/es/components/form-render/src/FormRender.js +3 -3
- package/es/components/form-render/src/FormRender.vue.d.ts +1 -1
- package/es/components/form-render/src/components/renderer/cascader.js +3 -4
- package/es/components/form-render/src/components/renderer/checkbox.js +2 -5
- package/es/components/form-render/src/components/renderer/combination.js +2 -4
- package/es/components/form-render/src/components/renderer/complex.js +1 -4
- package/es/components/form-render/src/components/renderer/date.js +12 -3
- package/es/components/form-render/src/components/renderer/formItem.js +1 -4
- package/es/components/form-render/src/components/renderer/inputGroup.d.ts +1 -1
- package/es/components/form-render/src/components/renderer/radio.js +1 -3
- package/es/components/form-render/src/components/renderer/search.js +11 -17
- package/es/components/form-render/src/components/renderer/select.js +13 -19
- package/es/components/form-render/src/components/renderer/switch.js +2 -5
- package/es/components/form-render/src/components/renderer/textarea.js +2 -5
- package/es/components/form-render/src/hooks/useAnchor2.js +1 -3
- package/es/components/form-render/src/hooks/useBusinessBinding.d.ts +1 -0
- package/es/components/form-render/src/hooks/useBusinessBinding2.js +13 -4
- package/es/components/form-render/src/hooks/useChangeContext.d.ts +3 -5
- package/es/components/form-render/src/hooks/useChangeContext2.js +2 -2
- package/es/components/form-render/src/hooks/useFormItemDeps2.js +1 -4
- 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/form-render/src/hooks/usePresetScope2.js +1 -4
- package/es/components/form-render/src/types/fieldItem.d.ts +1 -0
- package/es/components/form-render/src/utils/index.d.ts +4 -1
- package/es/components/form-render/src/utils/index.js +27 -1
- 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 +32 -9
- 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.js +9 -10
- package/es/components/info-header/src/InfoHeader.vue.d.ts +33 -9
- 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 +2 -1
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +2 -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/big-table/src/components/edit-form/useCommon.d.ts +0 -4
- 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
|
@@ -1,261 +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
|
-
hasErr: import("vue").ComputedRef<any>;
|
|
118
|
-
handleTableBlur: (e?: AnyObject | undefined, config?: AnyObject) => void;
|
|
119
|
-
prefixStr: any;
|
|
120
|
-
suffixStr: any;
|
|
121
|
-
detailStr: import("vue").ComputedRef<string>;
|
|
122
|
-
NInputNumber: any;
|
|
123
|
-
TextOverTooltip: import("vue").DefineComponent<{
|
|
124
|
-
content: {
|
|
125
|
-
type: (NumberConstructor | StringConstructor | FunctionConstructor)[];
|
|
126
|
-
};
|
|
127
|
-
className: StringConstructor;
|
|
128
|
-
refName: {
|
|
129
|
-
type: StringConstructor;
|
|
130
|
-
default: string;
|
|
131
|
-
};
|
|
132
|
-
placement: {
|
|
133
|
-
type: StringConstructor;
|
|
134
|
-
default: string;
|
|
135
|
-
};
|
|
136
|
-
tooltipTitle: {
|
|
137
|
-
type: (NumberConstructor | StringConstructor)[];
|
|
138
|
-
default: string;
|
|
139
|
-
};
|
|
140
|
-
isAlias: BooleanConstructor;
|
|
141
|
-
textColor: StringConstructor;
|
|
142
|
-
}, {
|
|
143
|
-
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
144
|
-
content: {
|
|
145
|
-
type: (NumberConstructor | StringConstructor | FunctionConstructor)[];
|
|
146
|
-
};
|
|
147
|
-
className: StringConstructor;
|
|
148
|
-
refName: {
|
|
149
|
-
type: StringConstructor;
|
|
150
|
-
default: string;
|
|
151
|
-
};
|
|
152
|
-
placement: {
|
|
153
|
-
type: StringConstructor;
|
|
154
|
-
default: string;
|
|
155
|
-
};
|
|
156
|
-
tooltipTitle: {
|
|
157
|
-
type: (NumberConstructor | StringConstructor)[];
|
|
158
|
-
default: string;
|
|
159
|
-
};
|
|
160
|
-
isAlias: BooleanConstructor;
|
|
161
|
-
textColor: StringConstructor;
|
|
162
|
-
}>> & {
|
|
163
|
-
[x: `on${string}`]: ((...args: any[]) => any) | ((...args: unknown[]) => any) | undefined;
|
|
164
|
-
}>>;
|
|
165
|
-
curContent: import("vue").ComputedRef<string | Function>;
|
|
166
|
-
NTooltip: any;
|
|
167
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
168
|
-
content: {
|
|
169
|
-
type: (NumberConstructor | StringConstructor | FunctionConstructor)[];
|
|
170
|
-
};
|
|
171
|
-
className: StringConstructor;
|
|
172
|
-
refName: {
|
|
173
|
-
type: StringConstructor;
|
|
174
|
-
default: string;
|
|
175
|
-
};
|
|
176
|
-
placement: {
|
|
177
|
-
type: StringConstructor;
|
|
178
|
-
default: string;
|
|
179
|
-
};
|
|
180
|
-
tooltipTitle: {
|
|
181
|
-
type: (NumberConstructor | StringConstructor)[];
|
|
182
|
-
default: string;
|
|
183
|
-
};
|
|
184
|
-
isAlias: BooleanConstructor;
|
|
185
|
-
textColor: StringConstructor;
|
|
186
|
-
}>>, {
|
|
187
|
-
refName: string;
|
|
188
|
-
placement: string;
|
|
189
|
-
tooltipTitle: string | number;
|
|
190
|
-
isAlias: boolean;
|
|
191
|
-
}>;
|
|
192
|
-
}, 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<{
|
|
193
|
-
mainForm: {
|
|
194
|
-
type: PropObject;
|
|
195
|
-
default: () => {};
|
|
196
|
-
};
|
|
197
|
-
userInfo: {
|
|
198
|
-
type: PropObject;
|
|
199
|
-
default: () => {};
|
|
200
|
-
};
|
|
201
|
-
styleSetting: {
|
|
202
|
-
type: PropObject;
|
|
203
|
-
default: () => {};
|
|
204
|
-
};
|
|
205
|
-
defaultValue: {
|
|
206
|
-
type: PropObject;
|
|
207
|
-
default: () => {};
|
|
208
|
-
};
|
|
209
|
-
dbParams: {
|
|
210
|
-
type: PropType<AnyObject>;
|
|
211
|
-
};
|
|
212
|
-
row: {
|
|
213
|
-
type: PropObject;
|
|
214
|
-
default: () => {};
|
|
215
|
-
};
|
|
216
|
-
item: {
|
|
217
|
-
type: PropObject;
|
|
218
|
-
default: () => {
|
|
219
|
-
_own: {};
|
|
220
|
-
};
|
|
221
|
-
};
|
|
222
|
-
defaultFieldList: {
|
|
223
|
-
type: PropType<any[]>;
|
|
224
|
-
default: () => never[];
|
|
225
|
-
};
|
|
226
|
-
cacheUniqueKey: {
|
|
227
|
-
type: PropObject;
|
|
228
|
-
default: () => {
|
|
229
|
-
_own: {};
|
|
230
|
-
};
|
|
231
|
-
};
|
|
232
|
-
params_formId: (NumberConstructor | StringConstructor)[];
|
|
233
|
-
formType: {
|
|
234
|
-
type: PropObject;
|
|
235
|
-
default: () => {
|
|
236
|
-
_own: {};
|
|
237
|
-
};
|
|
238
|
-
};
|
|
239
|
-
isDetail: {
|
|
240
|
-
type: BooleanConstructor;
|
|
241
|
-
default: boolean;
|
|
242
|
-
};
|
|
243
|
-
handleFormTableValue: PropType<Func<any[], any>>;
|
|
244
|
-
}>> & {
|
|
245
|
-
onTableBlur?: ((...args: any[]) => any) | undefined;
|
|
246
|
-
onValueOnChange?: ((...args: any[]) => any) | undefined;
|
|
247
|
-
onHandlerAddOptions?: ((...args: any[]) => any) | undefined;
|
|
248
|
-
onOpentableSelect?: ((...args: any[]) => any) | undefined;
|
|
249
|
-
}, {
|
|
250
|
-
styleSetting: AnyObject;
|
|
251
|
-
userInfo: AnyObject;
|
|
252
|
-
row: AnyObject;
|
|
253
|
-
cacheUniqueKey: AnyObject;
|
|
254
|
-
formType: AnyObject;
|
|
255
|
-
isDetail: boolean;
|
|
256
|
-
item: AnyObject;
|
|
257
|
-
defaultValue: AnyObject;
|
|
258
|
-
mainForm: AnyObject;
|
|
259
|
-
defaultFieldList: any[];
|
|
260
|
-
}>;
|
|
261
|
-
export default _default;
|
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
import { defineComponent, ref, onMounted, openBlock, createElementBlock, normalizeClass, createVNode, unref, withCtx, createBlock, createCommentVNode, createElementVNode, normalizeStyle, toDisplayString } from 'vue';
|
|
2
|
-
import { useMessage, NInput } from 'naive-ui';
|
|
3
|
-
import script from '../../../../shared/components/SvgIcon/SvgIcon.js';
|
|
4
|
-
import 'moment';
|
|
5
|
-
import { useItemDefault } from '../hooks/useItemDefault2.js';
|
|
6
|
-
import 'xe-utils';
|
|
7
|
-
import textOverTooltip from './text-over-tooltip.js';
|
|
8
|
-
import _export_sfc from '../../../../_virtual/plugin-vue_export-helper.js';
|
|
9
|
-
|
|
10
|
-
const _hoisted_1 = { slot: "suffix" };
|
|
11
|
-
const _hoisted_2 = { key: 1 };
|
|
12
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
13
|
-
__name: "table-input-password",
|
|
14
|
-
props: {
|
|
15
|
-
mainForm: {
|
|
16
|
-
type: Object,
|
|
17
|
-
default: () => ({})
|
|
18
|
-
},
|
|
19
|
-
userInfo: {
|
|
20
|
-
type: Object,
|
|
21
|
-
default: () => ({})
|
|
22
|
-
},
|
|
23
|
-
styleSetting: {
|
|
24
|
-
type: Object,
|
|
25
|
-
default: () => ({})
|
|
26
|
-
},
|
|
27
|
-
defaultValue: {
|
|
28
|
-
type: Object,
|
|
29
|
-
default: () => ({})
|
|
30
|
-
},
|
|
31
|
-
dbParams: {
|
|
32
|
-
type: Object
|
|
33
|
-
},
|
|
34
|
-
row: {
|
|
35
|
-
type: Object,
|
|
36
|
-
default: () => {
|
|
37
|
-
return {};
|
|
38
|
-
}
|
|
39
|
-
},
|
|
40
|
-
item: {
|
|
41
|
-
type: Object,
|
|
42
|
-
default: () => {
|
|
43
|
-
return {
|
|
44
|
-
_own: {}
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
|
-
},
|
|
48
|
-
defaultFieldList: {
|
|
49
|
-
type: Array,
|
|
50
|
-
default: () => {
|
|
51
|
-
return [];
|
|
52
|
-
}
|
|
53
|
-
},
|
|
54
|
-
cacheUniqueKey: {
|
|
55
|
-
type: Object,
|
|
56
|
-
default: () => {
|
|
57
|
-
return {
|
|
58
|
-
_own: {}
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
},
|
|
62
|
-
params_formId: [String, Number],
|
|
63
|
-
formType: {
|
|
64
|
-
type: Object,
|
|
65
|
-
default: () => {
|
|
66
|
-
return {
|
|
67
|
-
_own: {}
|
|
68
|
-
};
|
|
69
|
-
}
|
|
70
|
-
},
|
|
71
|
-
isDetail: {
|
|
72
|
-
type: Boolean,
|
|
73
|
-
default: false
|
|
74
|
-
},
|
|
75
|
-
handleFormTableValue: Function
|
|
76
|
-
},
|
|
77
|
-
emits: ["tableBlur", "valueOnChange", "handlerAddOptions", "opentableSelect"],
|
|
78
|
-
setup(__props, { emit }) {
|
|
79
|
-
var _a, _b;
|
|
80
|
-
const props = __props;
|
|
81
|
-
const $message = useMessage();
|
|
82
|
-
const { hasErr } = useItemDefault({ message: $message, props, emit });
|
|
83
|
-
const inputType = ref("text");
|
|
84
|
-
const isReadOnly = ref(false);
|
|
85
|
-
const prefixStr = ref((_a = props.item) == null ? void 0 : _a.prefix);
|
|
86
|
-
const suffixStr = ref((_b = props.item) == null ? void 0 : _b.suffix);
|
|
87
|
-
function handleTogglePsw() {
|
|
88
|
-
isReadOnly.value = !isReadOnly.value;
|
|
89
|
-
}
|
|
90
|
-
onMounted(() => {
|
|
91
|
-
});
|
|
92
|
-
return (_ctx, _cache) => {
|
|
93
|
-
return !__props.isDetail ? (openBlock(), createElementBlock("div", {
|
|
94
|
-
key: 0,
|
|
95
|
-
class: normalizeClass({
|
|
96
|
-
"is-show-psw": !isReadOnly.value
|
|
97
|
-
})
|
|
98
|
-
}, [
|
|
99
|
-
createVNode(unref(NInput), {
|
|
100
|
-
ref: `input-password-${__props.item.val_key}`,
|
|
101
|
-
type: inputType.value,
|
|
102
|
-
value: __props.row[__props.item.val_key],
|
|
103
|
-
"onUpdate:value": _cache[0] || (_cache[0] = ($event) => __props.row[__props.item.val_key] = $event),
|
|
104
|
-
autocomplete: "off",
|
|
105
|
-
autocorrect: "off",
|
|
106
|
-
autocapitalize: "off",
|
|
107
|
-
spellcheck: "false",
|
|
108
|
-
disabled: +__props.item.is_edit === 0,
|
|
109
|
-
clearable: +__props.item.is_empty === 0,
|
|
110
|
-
placeholder: __props.item.placeholder || "",
|
|
111
|
-
maxLength: __props.item.validate && __props.item.validate.max_length ? +__props.item.validate.max_length : 300,
|
|
112
|
-
class: normalizeClass([{ "table-input-password-error": unref(hasErr) }, "table-input-password-com"])
|
|
113
|
-
}, {
|
|
114
|
-
default: withCtx(() => [
|
|
115
|
-
prefixStr.value ? (openBlock(), createBlock(textOverTooltip, {
|
|
116
|
-
key: 0,
|
|
117
|
-
refName: `table-tooltip-${__props.item.val_key}-prefix`,
|
|
118
|
-
content: prefixStr.value
|
|
119
|
-
}, null, 8, ["refName", "content"])) : createCommentVNode("v-if", true),
|
|
120
|
-
suffixStr.value ? (openBlock(), createBlock(textOverTooltip, {
|
|
121
|
-
key: 1,
|
|
122
|
-
refName: `table-tooltip-${__props.item.val_key}-suffix`,
|
|
123
|
-
content: suffixStr.value
|
|
124
|
-
}, null, 8, ["refName", "content"])) : createCommentVNode("v-if", true),
|
|
125
|
-
createElementVNode("template", _hoisted_1, [
|
|
126
|
-
createVNode(unref(script), {
|
|
127
|
-
onClick: handleTogglePsw,
|
|
128
|
-
"icon-class": isReadOnly.value ? "chakan" : "anniuyincang",
|
|
129
|
-
style: normalizeStyle([{ "font-size": "1em" }, { color: isReadOnly.value ? __props.styleSetting.themeColor : void 0 }])
|
|
130
|
-
}, null, 8, ["icon-class", "style"])
|
|
131
|
-
])
|
|
132
|
-
]),
|
|
133
|
-
_: 1
|
|
134
|
-
}, 8, ["type", "value", "disabled", "clearable", "placeholder", "maxLength", "class"])
|
|
135
|
-
], 2)) : (openBlock(), createElementBlock("div", _hoisted_2, toDisplayString(prefixStr.value ? " " + prefixStr.value : "") + " " + toDisplayString(__props.row[__props.item.val_key]) + " " + toDisplayString(suffixStr.value ? " " + suffixStr.value : ""), 1));
|
|
136
|
-
};
|
|
137
|
-
}
|
|
138
|
-
});
|
|
139
|
-
var tableInputPassword = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "table-input-password.vue"]]);
|
|
140
|
-
|
|
141
|
-
export { tableInputPassword as default };
|
|
@@ -1,304 +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
|
-
hasErr: import("vue").ComputedRef<any>;
|
|
118
|
-
inputType: import("vue").Ref<string>;
|
|
119
|
-
isReadOnly: import("vue").Ref<boolean>;
|
|
120
|
-
prefixStr: any;
|
|
121
|
-
suffixStr: any;
|
|
122
|
-
handleTogglePsw: () => void;
|
|
123
|
-
NInput: any;
|
|
124
|
-
SvgIcon: import("vue").DefineComponent<{
|
|
125
|
-
iconClass: {
|
|
126
|
-
type: StringConstructor;
|
|
127
|
-
required: true;
|
|
128
|
-
default: string;
|
|
129
|
-
};
|
|
130
|
-
title: {
|
|
131
|
-
type: StringConstructor;
|
|
132
|
-
required: false;
|
|
133
|
-
default: string;
|
|
134
|
-
};
|
|
135
|
-
className: {
|
|
136
|
-
type: StringConstructor;
|
|
137
|
-
required: false;
|
|
138
|
-
};
|
|
139
|
-
}, {
|
|
140
|
-
props: {
|
|
141
|
-
iconClass: string;
|
|
142
|
-
title: string;
|
|
143
|
-
className?: string | undefined;
|
|
144
|
-
};
|
|
145
|
-
iconName: import("vue").ComputedRef<string>;
|
|
146
|
-
svgClass: import("vue").ComputedRef<string>;
|
|
147
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
148
|
-
iconClass: {
|
|
149
|
-
type: StringConstructor;
|
|
150
|
-
required: true;
|
|
151
|
-
default: string;
|
|
152
|
-
};
|
|
153
|
-
title: {
|
|
154
|
-
type: StringConstructor;
|
|
155
|
-
required: false;
|
|
156
|
-
default: string;
|
|
157
|
-
};
|
|
158
|
-
className: {
|
|
159
|
-
type: StringConstructor;
|
|
160
|
-
required: false;
|
|
161
|
-
};
|
|
162
|
-
}>>, {
|
|
163
|
-
title: string;
|
|
164
|
-
iconClass: string;
|
|
165
|
-
}>;
|
|
166
|
-
TextOverTooltip: import("vue").DefineComponent<{
|
|
167
|
-
content: {
|
|
168
|
-
type: (NumberConstructor | StringConstructor | FunctionConstructor)[];
|
|
169
|
-
};
|
|
170
|
-
className: StringConstructor;
|
|
171
|
-
refName: {
|
|
172
|
-
type: StringConstructor;
|
|
173
|
-
default: string;
|
|
174
|
-
};
|
|
175
|
-
placement: {
|
|
176
|
-
type: StringConstructor;
|
|
177
|
-
default: string;
|
|
178
|
-
};
|
|
179
|
-
tooltipTitle: {
|
|
180
|
-
type: (NumberConstructor | StringConstructor)[];
|
|
181
|
-
default: string;
|
|
182
|
-
};
|
|
183
|
-
isAlias: BooleanConstructor;
|
|
184
|
-
textColor: StringConstructor;
|
|
185
|
-
}, {
|
|
186
|
-
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
187
|
-
content: {
|
|
188
|
-
type: (NumberConstructor | StringConstructor | FunctionConstructor)[];
|
|
189
|
-
};
|
|
190
|
-
className: StringConstructor;
|
|
191
|
-
refName: {
|
|
192
|
-
type: StringConstructor;
|
|
193
|
-
default: string;
|
|
194
|
-
};
|
|
195
|
-
placement: {
|
|
196
|
-
type: StringConstructor;
|
|
197
|
-
default: string;
|
|
198
|
-
};
|
|
199
|
-
tooltipTitle: {
|
|
200
|
-
type: (NumberConstructor | StringConstructor)[];
|
|
201
|
-
default: string;
|
|
202
|
-
};
|
|
203
|
-
isAlias: BooleanConstructor;
|
|
204
|
-
textColor: StringConstructor;
|
|
205
|
-
}>> & {
|
|
206
|
-
[x: `on${string}`]: ((...args: any[]) => any) | ((...args: unknown[]) => any) | undefined;
|
|
207
|
-
}>>;
|
|
208
|
-
curContent: import("vue").ComputedRef<string | Function>;
|
|
209
|
-
NTooltip: any;
|
|
210
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
211
|
-
content: {
|
|
212
|
-
type: (NumberConstructor | StringConstructor | FunctionConstructor)[];
|
|
213
|
-
};
|
|
214
|
-
className: StringConstructor;
|
|
215
|
-
refName: {
|
|
216
|
-
type: StringConstructor;
|
|
217
|
-
default: string;
|
|
218
|
-
};
|
|
219
|
-
placement: {
|
|
220
|
-
type: StringConstructor;
|
|
221
|
-
default: string;
|
|
222
|
-
};
|
|
223
|
-
tooltipTitle: {
|
|
224
|
-
type: (NumberConstructor | StringConstructor)[];
|
|
225
|
-
default: string;
|
|
226
|
-
};
|
|
227
|
-
isAlias: BooleanConstructor;
|
|
228
|
-
textColor: StringConstructor;
|
|
229
|
-
}>>, {
|
|
230
|
-
refName: string;
|
|
231
|
-
placement: string;
|
|
232
|
-
tooltipTitle: string | number;
|
|
233
|
-
isAlias: boolean;
|
|
234
|
-
}>;
|
|
235
|
-
}, 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<{
|
|
236
|
-
mainForm: {
|
|
237
|
-
type: PropObject;
|
|
238
|
-
default: () => {};
|
|
239
|
-
};
|
|
240
|
-
userInfo: {
|
|
241
|
-
type: PropObject;
|
|
242
|
-
default: () => {};
|
|
243
|
-
};
|
|
244
|
-
styleSetting: {
|
|
245
|
-
type: PropObject;
|
|
246
|
-
default: () => {};
|
|
247
|
-
};
|
|
248
|
-
defaultValue: {
|
|
249
|
-
type: PropObject;
|
|
250
|
-
default: () => {};
|
|
251
|
-
};
|
|
252
|
-
dbParams: {
|
|
253
|
-
type: PropType<AnyObject>;
|
|
254
|
-
};
|
|
255
|
-
row: {
|
|
256
|
-
type: PropObject;
|
|
257
|
-
default: () => {};
|
|
258
|
-
};
|
|
259
|
-
item: {
|
|
260
|
-
type: PropObject;
|
|
261
|
-
default: () => {
|
|
262
|
-
_own: {};
|
|
263
|
-
};
|
|
264
|
-
};
|
|
265
|
-
defaultFieldList: {
|
|
266
|
-
type: PropType<any[]>;
|
|
267
|
-
default: () => never[];
|
|
268
|
-
};
|
|
269
|
-
cacheUniqueKey: {
|
|
270
|
-
type: PropObject;
|
|
271
|
-
default: () => {
|
|
272
|
-
_own: {};
|
|
273
|
-
};
|
|
274
|
-
};
|
|
275
|
-
params_formId: (NumberConstructor | StringConstructor)[];
|
|
276
|
-
formType: {
|
|
277
|
-
type: PropObject;
|
|
278
|
-
default: () => {
|
|
279
|
-
_own: {};
|
|
280
|
-
};
|
|
281
|
-
};
|
|
282
|
-
isDetail: {
|
|
283
|
-
type: BooleanConstructor;
|
|
284
|
-
default: boolean;
|
|
285
|
-
};
|
|
286
|
-
handleFormTableValue: PropType<Func<any[], any>>;
|
|
287
|
-
}>> & {
|
|
288
|
-
onTableBlur?: ((...args: any[]) => any) | undefined;
|
|
289
|
-
onValueOnChange?: ((...args: any[]) => any) | undefined;
|
|
290
|
-
onHandlerAddOptions?: ((...args: any[]) => any) | undefined;
|
|
291
|
-
onOpentableSelect?: ((...args: any[]) => any) | undefined;
|
|
292
|
-
}, {
|
|
293
|
-
styleSetting: AnyObject;
|
|
294
|
-
userInfo: AnyObject;
|
|
295
|
-
row: AnyObject;
|
|
296
|
-
cacheUniqueKey: AnyObject;
|
|
297
|
-
formType: AnyObject;
|
|
298
|
-
isDetail: boolean;
|
|
299
|
-
item: AnyObject;
|
|
300
|
-
defaultValue: AnyObject;
|
|
301
|
-
mainForm: AnyObject;
|
|
302
|
-
defaultFieldList: any[];
|
|
303
|
-
}>;
|
|
304
|
-
export default _default;
|