@dazhicheng/ui 1.6.41 → 1.6.43
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/dist/assets/svg/download.svg.js +1 -1
- package/dist/components/tt-api-component/index.vue2.js +73 -73
- package/dist/components/tt-area/TtArea.vue.js +1 -1
- package/dist/components/tt-button/index.d.ts +91 -105
- package/dist/components/tt-button/index.vue.d.ts +52 -60
- package/dist/components/tt-button/index.vue2.js +1 -1
- package/dist/components/tt-drawer/index.d.ts +352 -326
- package/dist/components/tt-drawer/src/RenderDrawer.vue.d.ts +196 -184
- package/dist/components/tt-drawer/src/RenderDrawer.vue.js +1 -1
- package/dist/components/tt-drawer/src/components/DrawerFooter.vue.js +1 -1
- package/dist/components/tt-drawer/src/components/DrawerHeader.vue.js +2 -2
- package/dist/components/tt-empty/index.d.ts +4 -4
- package/dist/components/tt-empty/index.js +1 -1
- package/dist/components/tt-form/index.js +1 -1
- package/dist/components/tt-form/src/components/FormActions.vue2.js +1 -1
- package/dist/components/tt-form/src/components/FormElInput.vue.d.ts +106 -110
- package/dist/components/tt-form/src/form/FormMessageToolTip.vue.js +12 -12
- package/dist/components/tt-form/src/form-render/FormField.vue2.js +164 -164
- package/dist/components/tt-form/src/form-render/FormLabel.vue2.js +34 -34
- package/dist/components/tt-form/src/form-render/expandable.js +20 -25
- package/dist/components/tt-form/src/form-render/form.vue2.js +1 -1
- package/dist/components/tt-form/src/group-form/GroupForm.vue2.js +1 -1
- package/dist/components/tt-form/src/group-form/GroupSection.vue2.js +124 -124
- package/dist/components/tt-form/src/group-form/LazyFormField.vue.js +99 -99
- package/dist/components/tt-form/src/index.vue.d.ts +8 -12
- package/dist/components/tt-form/src/index.vue2.js +1 -1
- package/dist/components/tt-form-item-error-tooltip/index.d.ts +30 -126
- package/dist/components/tt-form-item-error-tooltip/index.vue.d.ts +15 -63
- package/dist/components/tt-icon/components/AddIcon.vue.js +6 -6
- package/dist/components/tt-icon/components/SubIcon.vue.js +6 -6
- package/dist/components/tt-icon/index.d.ts +4 -4
- package/dist/components/tt-icon/index.vue.js +2 -2
- package/dist/components/tt-icon/index.vue2.js +28 -28
- package/dist/components/tt-image/index.d.ts +29 -29
- package/dist/components/tt-image/src/components/ImageViewer.d.ts +20 -20
- package/dist/components/tt-image/tt-image.d.ts +29 -29
- package/dist/components/tt-input-textarea/index.vue.d.ts +424 -440
- package/dist/components/tt-input-textarea/index.vue.js +153 -153
- package/dist/components/tt-keep-alive/core/Suspense.d.ts +3 -0
- package/dist/components/tt-keep-alive/core/Suspense.js +10 -0
- package/dist/components/tt-keep-alive/core/apiAsyncComponent.d.ts +2 -0
- package/dist/components/tt-keep-alive/core/apiAsyncComponent.js +6 -0
- package/dist/components/tt-keep-alive/core/component.d.ts +2 -0
- package/dist/components/tt-keep-alive/core/component.js +7 -0
- package/dist/components/tt-keep-alive/core/componentPublicInstance.d.ts +5 -0
- package/dist/components/tt-keep-alive/core/devtools.d.ts +2 -0
- package/dist/components/tt-keep-alive/core/errorHandling.d.ts +17 -0
- package/dist/components/tt-keep-alive/core/errorHandling.js +4 -0
- package/dist/components/tt-keep-alive/core/renderer.d.ts +32 -0
- package/dist/components/tt-keep-alive/core/renderer.js +8 -0
- package/dist/components/tt-keep-alive/core/shapeFlags.d.ts +13 -0
- package/dist/components/tt-keep-alive/core/vnode.d.ts +6 -0
- package/dist/components/tt-keep-alive/core/vnode.js +8 -0
- package/dist/components/tt-keep-alive/index.d.ts +26 -0
- package/dist/components/tt-keep-alive/index.js +139 -0
- package/dist/components/tt-loading/src/loading.vue.js +2 -2
- package/dist/components/tt-loading/src/loading.vue2.js +22 -22
- package/dist/components/tt-log/index.vue.js +1 -1
- package/dist/components/tt-modal/index.d.ts +182 -162
- package/dist/components/tt-modal/src/RenderModal.vue.d.ts +54 -54
- package/dist/components/tt-modal/src/RenderModal.vue.js +236 -228
- package/dist/components/tt-modal/src/components/ModalWrapper.vue.js +1 -1
- package/dist/components/tt-modal/src/hooks/useModalRender.d.ts +26 -22
- package/dist/components/tt-modal/src/utils/resolve-modal-target.js +57 -53
- package/dist/components/tt-nav-anchor/src/TtNavAnchor.vue.js +123 -123
- package/dist/components/tt-panel-select/src/components/PanelLeft.vue.js +24 -24
- package/dist/components/tt-panel-select/src/components/PanelMiddle.vue.d.ts +63 -67
- package/dist/components/tt-panel-select/src/components/PanelMiddle.vue.js +145 -145
- package/dist/components/tt-panel-select/src/components/PanelRight.vue.d.ts +10 -12
- package/dist/components/tt-panel-select/src/components/PanelRight.vue.js +48 -48
- package/dist/components/tt-panel-select/src/index.vue.d.ts +63 -67
- package/dist/components/tt-panel-select/src/index.vue.js +137 -137
- package/dist/components/tt-radio-group/index.vue.js +1 -1
- package/dist/components/tt-select/src/Select.vue.d.ts +8 -12
- package/dist/components/tt-select/src/Select.vue.js +1 -1
- package/dist/components/tt-select/src/components/SelectTable.vue.js +1 -1
- package/dist/components/tt-select/src/components/Table.vue.js +1 -1
- package/dist/components/tt-table/index.d.ts +20 -24
- package/dist/components/tt-table/index.js +1 -1
- package/dist/components/tt-table/src/Table.vue.d.ts +40 -48
- package/dist/components/tt-table/src/Table.vue.js +1 -1
- package/dist/components/tt-table/src/TableForm.vue.d.ts +8 -12
- package/dist/components/tt-table/src/TableForm.vue.js +1 -1
- package/dist/components/tt-table/src/components/TableColumnModal.vue2.js +1 -1
- package/dist/components/tt-table/src/hooks/useSideSlot.d.ts +40 -48
- package/dist/components/tt-text/index.vue2.js +22 -22
- package/dist/components/tt-upload/index.d.ts +60 -60
- package/dist/components/tt-upload/src/TtUpload.vue.d.ts +37 -37
- package/dist/components/tt-upload/src/TtUpload.vue.js +1 -1
- package/dist/components/tt-upload/src/typing.d.ts +17 -17
- package/dist/hooks/useScreenshotOss.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +80 -78
- package/dist/node_modules/.pnpm/@vue_shared@3.5.34/node_modules/@vue/shared/dist/shared.esm-bundler.js +17 -0
- package/dist/packages/hooks/src/propTypes.js +1 -1
- package/dist/plugins/vxeTable/switchStatus.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +3 -2
- /package/dist/node_modules/.pnpm/{vue-types@5.1.3_vue@3.5.21_typescript@5.9.3_ → vue-types@5.1.3_vue@3.5.34_typescript@5.9.3_}/node_modules/vue-types/shim/index.modern.js +0 -0
|
@@ -42,8 +42,8 @@ export declare function useSideSlot(propsRef: ComputedRef<TtTableProps>, grid: R
|
|
|
42
42
|
readonly maxHeight?: number | string | undefined;
|
|
43
43
|
readonly native?: boolean | undefined;
|
|
44
44
|
readonly wrapStyle?: import('vue').StyleValue;
|
|
45
|
-
readonly wrapClass?:
|
|
46
|
-
readonly viewClass?:
|
|
45
|
+
readonly wrapClass?: import('element-plus/es/utils/typescript.mjs').ClassValue;
|
|
46
|
+
readonly viewClass?: import('element-plus/es/utils/typescript.mjs').ClassValue;
|
|
47
47
|
readonly viewStyle?: import('vue').StyleValue;
|
|
48
48
|
readonly noresize?: boolean | undefined;
|
|
49
49
|
readonly tag?: (keyof HTMLElementTagNameMap | (string & {})) | undefined;
|
|
@@ -60,9 +60,7 @@ export declare function useSideSlot(propsRef: ComputedRef<TtTableProps>, grid: R
|
|
|
60
60
|
}) => any) | undefined | undefined;
|
|
61
61
|
readonly "onEnd-reached"?: ((direction: import('element-plus').ScrollbarDirection) => any) | undefined | undefined;
|
|
62
62
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
63
|
-
$attrs:
|
|
64
|
-
[x: string]: unknown;
|
|
65
|
-
};
|
|
63
|
+
$attrs: import('vue').Attrs;
|
|
66
64
|
$refs: {
|
|
67
65
|
[x: string]: unknown;
|
|
68
66
|
};
|
|
@@ -106,8 +104,8 @@ export declare function useSideSlot(propsRef: ComputedRef<TtTableProps>, grid: R
|
|
|
106
104
|
tag: keyof HTMLElementTagNameMap | (string & {});
|
|
107
105
|
distance: number;
|
|
108
106
|
wrapStyle: string | false | import('vue').CSSProperties | import('vue').StyleValue[] | null;
|
|
109
|
-
wrapClass: string | string[];
|
|
110
|
-
viewClass: string | string[];
|
|
107
|
+
wrapClass: string | false | Record<string, any> | import('element-plus/es/utils/typescript.mjs').ClassValue[] | null;
|
|
108
|
+
viewClass: string | false | Record<string, any> | import('element-plus/es/utils/typescript.mjs').ClassValue[] | null;
|
|
111
109
|
viewStyle: string | false | import('vue').CSSProperties | import('vue').StyleValue[] | null;
|
|
112
110
|
minSize: number;
|
|
113
111
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
@@ -137,8 +135,8 @@ export declare function useSideSlot(propsRef: ComputedRef<TtTableProps>, grid: R
|
|
|
137
135
|
tag: keyof HTMLElementTagNameMap | (string & {});
|
|
138
136
|
distance: number;
|
|
139
137
|
wrapStyle: string | false | import('vue').CSSProperties | import('vue').StyleValue[] | null;
|
|
140
|
-
wrapClass: string | string[];
|
|
141
|
-
viewClass: string | string[];
|
|
138
|
+
wrapClass: string | false | Record<string, any> | import('element-plus/es/utils/typescript.mjs').ClassValue[] | null;
|
|
139
|
+
viewClass: string | false | Record<string, any> | import('element-plus/es/utils/typescript.mjs').ClassValue[] | null;
|
|
142
140
|
viewStyle: string | false | import('vue').CSSProperties | import('vue').StyleValue[] | null;
|
|
143
141
|
minSize: number;
|
|
144
142
|
}> & Omit<Readonly<import('element-plus').ScrollbarProps> & Readonly<{
|
|
@@ -147,8 +145,8 @@ export declare function useSideSlot(propsRef: ComputedRef<TtTableProps>, grid: R
|
|
|
147
145
|
scrollLeft: number;
|
|
148
146
|
}) => any) | undefined;
|
|
149
147
|
"onEnd-reached"?: ((direction: import('element-plus').ScrollbarDirection) => any) | undefined;
|
|
150
|
-
}>, "height" | "tabindex" | "tag" | "handleScroll" | "maxHeight" | "scrollTo" | "update" | "distance" | "wrapStyle" | "wrapClass" | "viewClass" | "viewStyle" | "minSize" | "wrapRef" | "setScrollTop" | "setScrollLeft"> &
|
|
151
|
-
wrapRef:
|
|
148
|
+
}>, "height" | "tabindex" | "tag" | "handleScroll" | "maxHeight" | "scrollTo" | "update" | "distance" | "wrapStyle" | "wrapClass" | "viewClass" | "viewStyle" | "minSize" | "wrapRef" | "setScrollTop" | "setScrollLeft"> & {
|
|
149
|
+
wrapRef: HTMLDivElement | undefined;
|
|
152
150
|
update: () => void;
|
|
153
151
|
scrollTo: {
|
|
154
152
|
(xCord: number, yCord?: number): void;
|
|
@@ -157,7 +155,7 @@ export declare function useSideSlot(propsRef: ComputedRef<TtTableProps>, grid: R
|
|
|
157
155
|
setScrollTop: (value: number) => void;
|
|
158
156
|
setScrollLeft: (value: number) => void;
|
|
159
157
|
handleScroll: () => void;
|
|
160
|
-
}
|
|
158
|
+
} & {} & import('vue').ComponentCustomProperties & {} & {
|
|
161
159
|
$slots: {
|
|
162
160
|
default?: (props: {}) => any;
|
|
163
161
|
};
|
|
@@ -170,8 +168,8 @@ export declare function useSideSlot(propsRef: ComputedRef<TtTableProps>, grid: R
|
|
|
170
168
|
readonly maxHeight?: number | string | undefined;
|
|
171
169
|
readonly native?: boolean | undefined;
|
|
172
170
|
readonly wrapStyle?: import('vue').StyleValue;
|
|
173
|
-
readonly wrapClass?:
|
|
174
|
-
readonly viewClass?:
|
|
171
|
+
readonly wrapClass?: import('element-plus/es/utils/typescript.mjs').ClassValue;
|
|
172
|
+
readonly viewClass?: import('element-plus/es/utils/typescript.mjs').ClassValue;
|
|
175
173
|
readonly viewStyle?: import('vue').StyleValue;
|
|
176
174
|
readonly noresize?: boolean | undefined;
|
|
177
175
|
readonly tag?: (keyof HTMLElementTagNameMap | (string & {})) | undefined;
|
|
@@ -188,9 +186,7 @@ export declare function useSideSlot(propsRef: ComputedRef<TtTableProps>, grid: R
|
|
|
188
186
|
}) => any) | undefined | undefined;
|
|
189
187
|
readonly "onEnd-reached"?: ((direction: import('element-plus').ScrollbarDirection) => any) | undefined | undefined;
|
|
190
188
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
191
|
-
$attrs:
|
|
192
|
-
[x: string]: unknown;
|
|
193
|
-
};
|
|
189
|
+
$attrs: import('vue').Attrs;
|
|
194
190
|
$refs: {
|
|
195
191
|
[x: string]: unknown;
|
|
196
192
|
};
|
|
@@ -234,8 +230,8 @@ export declare function useSideSlot(propsRef: ComputedRef<TtTableProps>, grid: R
|
|
|
234
230
|
tag: keyof HTMLElementTagNameMap | (string & {});
|
|
235
231
|
distance: number;
|
|
236
232
|
wrapStyle: string | false | import('vue').CSSProperties | import('vue').StyleValue[] | null;
|
|
237
|
-
wrapClass: string | string[];
|
|
238
|
-
viewClass: string | string[];
|
|
233
|
+
wrapClass: string | false | Record<string, any> | import('element-plus/es/utils/typescript.mjs').ClassValue[] | null;
|
|
234
|
+
viewClass: string | false | Record<string, any> | import('element-plus/es/utils/typescript.mjs').ClassValue[] | null;
|
|
239
235
|
viewStyle: string | false | import('vue').CSSProperties | import('vue').StyleValue[] | null;
|
|
240
236
|
minSize: number;
|
|
241
237
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
@@ -265,8 +261,8 @@ export declare function useSideSlot(propsRef: ComputedRef<TtTableProps>, grid: R
|
|
|
265
261
|
tag: keyof HTMLElementTagNameMap | (string & {});
|
|
266
262
|
distance: number;
|
|
267
263
|
wrapStyle: string | false | import('vue').CSSProperties | import('vue').StyleValue[] | null;
|
|
268
|
-
wrapClass: string | string[];
|
|
269
|
-
viewClass: string | string[];
|
|
264
|
+
wrapClass: string | false | Record<string, any> | import('element-plus/es/utils/typescript.mjs').ClassValue[] | null;
|
|
265
|
+
viewClass: string | false | Record<string, any> | import('element-plus/es/utils/typescript.mjs').ClassValue[] | null;
|
|
270
266
|
viewStyle: string | false | import('vue').CSSProperties | import('vue').StyleValue[] | null;
|
|
271
267
|
minSize: number;
|
|
272
268
|
}> & Omit<Readonly<import('element-plus').ScrollbarProps> & Readonly<{
|
|
@@ -275,8 +271,8 @@ export declare function useSideSlot(propsRef: ComputedRef<TtTableProps>, grid: R
|
|
|
275
271
|
scrollLeft: number;
|
|
276
272
|
}) => any) | undefined;
|
|
277
273
|
"onEnd-reached"?: ((direction: import('element-plus').ScrollbarDirection) => any) | undefined;
|
|
278
|
-
}>, "height" | "tabindex" | "tag" | "handleScroll" | "maxHeight" | "scrollTo" | "update" | "distance" | "wrapStyle" | "wrapClass" | "viewClass" | "viewStyle" | "minSize" | "wrapRef" | "setScrollTop" | "setScrollLeft"> &
|
|
279
|
-
wrapRef:
|
|
274
|
+
}>, "height" | "tabindex" | "tag" | "handleScroll" | "maxHeight" | "scrollTo" | "update" | "distance" | "wrapStyle" | "wrapClass" | "viewClass" | "viewStyle" | "minSize" | "wrapRef" | "setScrollTop" | "setScrollLeft"> & {
|
|
275
|
+
wrapRef: HTMLDivElement | undefined;
|
|
280
276
|
update: () => void;
|
|
281
277
|
scrollTo: {
|
|
282
278
|
(xCord: number, yCord?: number): void;
|
|
@@ -285,7 +281,7 @@ export declare function useSideSlot(propsRef: ComputedRef<TtTableProps>, grid: R
|
|
|
285
281
|
setScrollTop: (value: number) => void;
|
|
286
282
|
setScrollLeft: (value: number) => void;
|
|
287
283
|
handleScroll: () => void;
|
|
288
|
-
}
|
|
284
|
+
} & {} & import('vue').ComponentCustomProperties & {} & {
|
|
289
285
|
$slots: {
|
|
290
286
|
default?: (props: {}) => any;
|
|
291
287
|
};
|
|
@@ -299,8 +295,8 @@ export declare function useSideSlot(propsRef: ComputedRef<TtTableProps>, grid: R
|
|
|
299
295
|
readonly maxHeight?: number | string | undefined;
|
|
300
296
|
readonly native?: boolean | undefined;
|
|
301
297
|
readonly wrapStyle?: import('vue').StyleValue;
|
|
302
|
-
readonly wrapClass?:
|
|
303
|
-
readonly viewClass?:
|
|
298
|
+
readonly wrapClass?: import('element-plus/es/utils/typescript.mjs').ClassValue;
|
|
299
|
+
readonly viewClass?: import('element-plus/es/utils/typescript.mjs').ClassValue;
|
|
304
300
|
readonly viewStyle?: import('vue').StyleValue;
|
|
305
301
|
readonly noresize?: boolean | undefined;
|
|
306
302
|
readonly tag?: (keyof HTMLElementTagNameMap | (string & {})) | undefined;
|
|
@@ -317,9 +313,7 @@ export declare function useSideSlot(propsRef: ComputedRef<TtTableProps>, grid: R
|
|
|
317
313
|
}) => any) | undefined | undefined;
|
|
318
314
|
readonly "onEnd-reached"?: ((direction: import('element-plus').ScrollbarDirection) => any) | undefined | undefined;
|
|
319
315
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
320
|
-
$attrs:
|
|
321
|
-
[x: string]: unknown;
|
|
322
|
-
};
|
|
316
|
+
$attrs: import('vue').Attrs;
|
|
323
317
|
$refs: {
|
|
324
318
|
[x: string]: unknown;
|
|
325
319
|
};
|
|
@@ -363,8 +357,8 @@ export declare function useSideSlot(propsRef: ComputedRef<TtTableProps>, grid: R
|
|
|
363
357
|
tag: keyof HTMLElementTagNameMap | (string & {});
|
|
364
358
|
distance: number;
|
|
365
359
|
wrapStyle: string | false | import('vue').CSSProperties | import('vue').StyleValue[] | null;
|
|
366
|
-
wrapClass: string | string[];
|
|
367
|
-
viewClass: string | string[];
|
|
360
|
+
wrapClass: string | false | Record<string, any> | import('element-plus/es/utils/typescript.mjs').ClassValue[] | null;
|
|
361
|
+
viewClass: string | false | Record<string, any> | import('element-plus/es/utils/typescript.mjs').ClassValue[] | null;
|
|
368
362
|
viewStyle: string | false | import('vue').CSSProperties | import('vue').StyleValue[] | null;
|
|
369
363
|
minSize: number;
|
|
370
364
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
@@ -394,8 +388,8 @@ export declare function useSideSlot(propsRef: ComputedRef<TtTableProps>, grid: R
|
|
|
394
388
|
tag: keyof HTMLElementTagNameMap | (string & {});
|
|
395
389
|
distance: number;
|
|
396
390
|
wrapStyle: string | false | import('vue').CSSProperties | import('vue').StyleValue[] | null;
|
|
397
|
-
wrapClass: string | string[];
|
|
398
|
-
viewClass: string | string[];
|
|
391
|
+
wrapClass: string | false | Record<string, any> | import('element-plus/es/utils/typescript.mjs').ClassValue[] | null;
|
|
392
|
+
viewClass: string | false | Record<string, any> | import('element-plus/es/utils/typescript.mjs').ClassValue[] | null;
|
|
399
393
|
viewStyle: string | false | import('vue').CSSProperties | import('vue').StyleValue[] | null;
|
|
400
394
|
minSize: number;
|
|
401
395
|
}> & Omit<Readonly<import('element-plus').ScrollbarProps> & Readonly<{
|
|
@@ -404,8 +398,8 @@ export declare function useSideSlot(propsRef: ComputedRef<TtTableProps>, grid: R
|
|
|
404
398
|
scrollLeft: number;
|
|
405
399
|
}) => any) | undefined;
|
|
406
400
|
"onEnd-reached"?: ((direction: import('element-plus').ScrollbarDirection) => any) | undefined;
|
|
407
|
-
}>, "height" | "tabindex" | "tag" | "handleScroll" | "maxHeight" | "scrollTo" | "update" | "distance" | "wrapStyle" | "wrapClass" | "viewClass" | "viewStyle" | "minSize" | "wrapRef" | "setScrollTop" | "setScrollLeft"> &
|
|
408
|
-
wrapRef:
|
|
401
|
+
}>, "height" | "tabindex" | "tag" | "handleScroll" | "maxHeight" | "scrollTo" | "update" | "distance" | "wrapStyle" | "wrapClass" | "viewClass" | "viewStyle" | "minSize" | "wrapRef" | "setScrollTop" | "setScrollLeft"> & {
|
|
402
|
+
wrapRef: HTMLDivElement | undefined;
|
|
409
403
|
update: () => void;
|
|
410
404
|
scrollTo: {
|
|
411
405
|
(xCord: number, yCord?: number): void;
|
|
@@ -414,7 +408,7 @@ export declare function useSideSlot(propsRef: ComputedRef<TtTableProps>, grid: R
|
|
|
414
408
|
setScrollTop: (value: number) => void;
|
|
415
409
|
setScrollLeft: (value: number) => void;
|
|
416
410
|
handleScroll: () => void;
|
|
417
|
-
}
|
|
411
|
+
} & {} & import('vue').ComponentCustomProperties & {} & {
|
|
418
412
|
$slots: {
|
|
419
413
|
default?: (props: {}) => any;
|
|
420
414
|
};
|
|
@@ -427,8 +421,8 @@ export declare function useSideSlot(propsRef: ComputedRef<TtTableProps>, grid: R
|
|
|
427
421
|
readonly maxHeight?: number | string | undefined;
|
|
428
422
|
readonly native?: boolean | undefined;
|
|
429
423
|
readonly wrapStyle?: import('vue').StyleValue;
|
|
430
|
-
readonly wrapClass?:
|
|
431
|
-
readonly viewClass?:
|
|
424
|
+
readonly wrapClass?: import('element-plus/es/utils/typescript.mjs').ClassValue;
|
|
425
|
+
readonly viewClass?: import('element-plus/es/utils/typescript.mjs').ClassValue;
|
|
432
426
|
readonly viewStyle?: import('vue').StyleValue;
|
|
433
427
|
readonly noresize?: boolean | undefined;
|
|
434
428
|
readonly tag?: (keyof HTMLElementTagNameMap | (string & {})) | undefined;
|
|
@@ -445,9 +439,7 @@ export declare function useSideSlot(propsRef: ComputedRef<TtTableProps>, grid: R
|
|
|
445
439
|
}) => any) | undefined | undefined;
|
|
446
440
|
readonly "onEnd-reached"?: ((direction: import('element-plus').ScrollbarDirection) => any) | undefined | undefined;
|
|
447
441
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
448
|
-
$attrs:
|
|
449
|
-
[x: string]: unknown;
|
|
450
|
-
};
|
|
442
|
+
$attrs: import('vue').Attrs;
|
|
451
443
|
$refs: {
|
|
452
444
|
[x: string]: unknown;
|
|
453
445
|
};
|
|
@@ -491,8 +483,8 @@ export declare function useSideSlot(propsRef: ComputedRef<TtTableProps>, grid: R
|
|
|
491
483
|
tag: keyof HTMLElementTagNameMap | (string & {});
|
|
492
484
|
distance: number;
|
|
493
485
|
wrapStyle: string | false | import('vue').CSSProperties | import('vue').StyleValue[] | null;
|
|
494
|
-
wrapClass: string | string[];
|
|
495
|
-
viewClass: string | string[];
|
|
486
|
+
wrapClass: string | false | Record<string, any> | import('element-plus/es/utils/typescript.mjs').ClassValue[] | null;
|
|
487
|
+
viewClass: string | false | Record<string, any> | import('element-plus/es/utils/typescript.mjs').ClassValue[] | null;
|
|
496
488
|
viewStyle: string | false | import('vue').CSSProperties | import('vue').StyleValue[] | null;
|
|
497
489
|
minSize: number;
|
|
498
490
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
@@ -522,8 +514,8 @@ export declare function useSideSlot(propsRef: ComputedRef<TtTableProps>, grid: R
|
|
|
522
514
|
tag: keyof HTMLElementTagNameMap | (string & {});
|
|
523
515
|
distance: number;
|
|
524
516
|
wrapStyle: string | false | import('vue').CSSProperties | import('vue').StyleValue[] | null;
|
|
525
|
-
wrapClass: string | string[];
|
|
526
|
-
viewClass: string | string[];
|
|
517
|
+
wrapClass: string | false | Record<string, any> | import('element-plus/es/utils/typescript.mjs').ClassValue[] | null;
|
|
518
|
+
viewClass: string | false | Record<string, any> | import('element-plus/es/utils/typescript.mjs').ClassValue[] | null;
|
|
527
519
|
viewStyle: string | false | import('vue').CSSProperties | import('vue').StyleValue[] | null;
|
|
528
520
|
minSize: number;
|
|
529
521
|
}> & Omit<Readonly<import('element-plus').ScrollbarProps> & Readonly<{
|
|
@@ -532,8 +524,8 @@ export declare function useSideSlot(propsRef: ComputedRef<TtTableProps>, grid: R
|
|
|
532
524
|
scrollLeft: number;
|
|
533
525
|
}) => any) | undefined;
|
|
534
526
|
"onEnd-reached"?: ((direction: import('element-plus').ScrollbarDirection) => any) | undefined;
|
|
535
|
-
}>, "height" | "tabindex" | "tag" | "handleScroll" | "maxHeight" | "scrollTo" | "update" | "distance" | "wrapStyle" | "wrapClass" | "viewClass" | "viewStyle" | "minSize" | "wrapRef" | "setScrollTop" | "setScrollLeft"> &
|
|
536
|
-
wrapRef:
|
|
527
|
+
}>, "height" | "tabindex" | "tag" | "handleScroll" | "maxHeight" | "scrollTo" | "update" | "distance" | "wrapStyle" | "wrapClass" | "viewClass" | "viewStyle" | "minSize" | "wrapRef" | "setScrollTop" | "setScrollLeft"> & {
|
|
528
|
+
wrapRef: HTMLDivElement | undefined;
|
|
537
529
|
update: () => void;
|
|
538
530
|
scrollTo: {
|
|
539
531
|
(xCord: number, yCord?: number): void;
|
|
@@ -542,7 +534,7 @@ export declare function useSideSlot(propsRef: ComputedRef<TtTableProps>, grid: R
|
|
|
542
534
|
setScrollTop: (value: number) => void;
|
|
543
535
|
setScrollLeft: (value: number) => void;
|
|
544
536
|
handleScroll: () => void;
|
|
545
|
-
}
|
|
537
|
+
} & {} & import('vue').ComponentCustomProperties & {} & {
|
|
546
538
|
$slots: {
|
|
547
539
|
default?: (props: {}) => any;
|
|
548
540
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
1
|
+
import { defineComponent as u, computed as p, withDirectives as d, createCommentVNode as m, createElementBlock as s, openBlock as f, normalizeStyle as y, renderSlot as T, createTextVNode as x, toDisplayString as h, unref as b } from "vue";
|
|
2
|
+
import k from "../../directives/auto-tip/index.js";
|
|
3
3
|
import { ElMessage as C } from "element-plus";
|
|
4
|
-
const V = /* @__PURE__ */
|
|
4
|
+
const V = /* @__PURE__ */ u({
|
|
5
5
|
name: "TtText",
|
|
6
6
|
__name: "index",
|
|
7
7
|
props: {
|
|
@@ -15,35 +15,35 @@ const V = /* @__PURE__ */ c({
|
|
|
15
15
|
visible: { type: Boolean, default: !0 },
|
|
16
16
|
copy: { type: Boolean, default: !1 }
|
|
17
17
|
},
|
|
18
|
-
setup(
|
|
19
|
-
const
|
|
20
|
-
let
|
|
18
|
+
setup(e) {
|
|
19
|
+
const a = e, c = p(() => a.visible);
|
|
20
|
+
let l = 0, i = null;
|
|
21
21
|
function r() {
|
|
22
|
-
if (
|
|
23
|
-
if (
|
|
24
|
-
const
|
|
25
|
-
navigator.clipboard ? navigator.clipboard.writeText(
|
|
22
|
+
if (a.copy)
|
|
23
|
+
if (l++, i && clearTimeout(i), l === 3) {
|
|
24
|
+
const t = a.modelValue || "--";
|
|
25
|
+
navigator.clipboard ? navigator.clipboard.writeText(t).then(() => {
|
|
26
26
|
C({
|
|
27
27
|
message: "复制成功",
|
|
28
28
|
type: "success",
|
|
29
29
|
plain: !0
|
|
30
30
|
});
|
|
31
31
|
}).catch(() => {
|
|
32
|
-
|
|
33
|
-
}) :
|
|
32
|
+
n(t);
|
|
33
|
+
}) : n(t), l = 0;
|
|
34
34
|
} else
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
i = setTimeout(() => {
|
|
36
|
+
l = 0, i = null;
|
|
37
37
|
}, 300);
|
|
38
38
|
}
|
|
39
|
-
function
|
|
39
|
+
function n(t) {
|
|
40
40
|
try {
|
|
41
|
-
const
|
|
42
|
-
|
|
41
|
+
const o = document.createElement("textarea");
|
|
42
|
+
o.value = t, o.style.position = "fixed", o.style.opacity = "0", document.body.appendChild(o), o.select(), document.execCommand("copy"), document.body.removeChild(o);
|
|
43
43
|
} catch {
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
|
-
return (
|
|
46
|
+
return (t, o) => c.value ? d((f(), s("span", {
|
|
47
47
|
key: 0,
|
|
48
48
|
class: "tool-tip-text",
|
|
49
49
|
style: y({
|
|
@@ -53,19 +53,19 @@ const V = /* @__PURE__ */ c({
|
|
|
53
53
|
}),
|
|
54
54
|
onClick: r
|
|
55
55
|
}, [
|
|
56
|
-
T(
|
|
57
|
-
h(
|
|
56
|
+
T(t.$slots, "default", {}, () => [
|
|
57
|
+
x(h(e.modelValue || "--"), 1)
|
|
58
58
|
], !0)
|
|
59
59
|
], 4)), [
|
|
60
60
|
[
|
|
61
|
-
k
|
|
61
|
+
b(k),
|
|
62
62
|
e.toolTip ? {
|
|
63
63
|
placement: e.placement,
|
|
64
64
|
toolTipMaxWidth: e.toolTipMaxWidth,
|
|
65
65
|
toolTipMaxHeight: e.toolTipMaxHeight
|
|
66
66
|
} : !1
|
|
67
67
|
]
|
|
68
|
-
]) :
|
|
68
|
+
]) : m("", !0);
|
|
69
69
|
}
|
|
70
70
|
});
|
|
71
71
|
export {
|