vft 0.0.283 → 0.0.288
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/index.css +1 -1
- package/es/component.js +112 -100
- package/es/components/breadcrumb/breadcrumb-item.vue.d.ts +21 -0
- package/es/components/breadcrumb/breadcrumb-item.vue.js +4 -0
- package/es/components/breadcrumb/breadcrumb-item.vue2.js +48 -0
- package/es/components/breadcrumb/breadcrumb.vue.d.ts +21 -0
- package/es/components/breadcrumb/breadcrumb.vue.js +4 -0
- package/es/components/breadcrumb/breadcrumb.vue2.js +36 -0
- package/es/components/breadcrumb/constants.d.ts +3 -0
- package/es/components/breadcrumb/constants.js +4 -0
- package/es/components/breadcrumb/index.d.ts +10 -0
- package/es/components/breadcrumb/index.js +19 -0
- package/es/components/breadcrumb/instances.d.ts +4 -0
- package/es/components/breadcrumb/instances.js +1 -0
- package/es/components/breadcrumb/style/css.d.ts +2 -0
- package/es/components/breadcrumb/style/css.js +3 -0
- package/es/components/breadcrumb/style/index.d.ts +2 -0
- package/es/components/breadcrumb/style/index.js +3 -0
- package/es/components/breadcrumb/types.d.ts +10 -0
- package/es/components/breadcrumb/types.js +1 -0
- package/es/components/breadcrumb-item/style/css.d.ts +1 -0
- package/es/components/breadcrumb-item/style/css.js +2 -0
- package/es/components/breadcrumb-item/style/index.d.ts +1 -0
- package/es/components/breadcrumb-item/style/index.js +2 -0
- package/es/components/cascader/style/css.d.ts +1 -0
- package/es/components/cascader/style/css.js +2 -0
- package/es/components/cascader/style/index.d.ts +1 -0
- package/es/components/cascader/style/index.js +2 -0
- package/es/components/cascader-panel/style/css.d.ts +1 -0
- package/es/components/cascader-panel/style/css.js +2 -0
- package/es/components/cascader-panel/style/index.d.ts +1 -0
- package/es/components/cascader-panel/style/index.js +2 -0
- package/es/components/collapse/collapse-item.d.ts +10 -0
- package/es/components/collapse/collapse-item.js +35 -0
- package/es/components/collapse/collapse-item.vue.d.ts +35 -0
- package/es/components/collapse/collapse-item.vue.js +4 -0
- package/es/components/collapse/collapse-item.vue2.js +93 -0
- package/es/components/collapse/collapse.d.ts +24 -0
- package/es/components/collapse/collapse.js +43 -0
- package/es/components/collapse/collapse.vue.d.ts +46 -0
- package/es/components/collapse/collapse.vue.js +4 -0
- package/es/components/collapse/collapse.vue2.js +26 -0
- package/es/components/collapse/constants.d.ts +7 -0
- package/es/components/collapse/constants.js +4 -0
- package/es/components/collapse/index.d.ts +12 -0
- package/es/components/collapse/index.js +24 -0
- package/es/components/collapse/instance.d.ts +4 -0
- package/es/components/collapse/instance.js +1 -0
- package/es/components/collapse/style/css.d.ts +1 -0
- package/es/components/collapse/style/css.js +2 -0
- package/es/components/collapse/style/index.d.ts +1 -0
- package/es/components/collapse/style/index.js +2 -0
- package/es/components/collapse/use-collapse-item.d.ts +21 -0
- package/es/components/collapse/use-collapse-item.js +59 -0
- package/es/components/collapse/use-collapse.d.ts +9 -0
- package/es/components/collapse/use-collapse.js +67 -0
- package/es/components/collapse-item/style/css.d.ts +1 -0
- package/es/components/collapse-item/style/css.js +2 -0
- package/es/components/collapse-item/style/index.d.ts +1 -0
- package/es/components/collapse-item/style/index.js +2 -0
- package/es/components/collapse-transition/{src/collapse-transition.vue2.js → collapse-transition.vue2.js} +4 -4
- package/es/components/collapse-transition/index.d.ts +1 -1
- package/es/components/collapse-transition/index.js +1 -1
- package/es/components/countdown/countdown.d.ts +24 -0
- package/es/components/countdown/countdown.js +47 -0
- package/es/components/countdown/countdown.vue.d.ts +47 -0
- package/es/components/countdown/countdown.vue.js +4 -0
- package/es/components/countdown/countdown.vue2.js +65 -0
- package/es/components/countdown/index.d.ts +5 -0
- package/es/components/countdown/index.js +15 -0
- package/es/components/countdown/style/css.d.ts +1 -0
- package/es/components/countdown/style/css.js +2 -0
- package/es/components/countdown/style/index.d.ts +1 -0
- package/es/components/countdown/style/index.js +2 -0
- package/es/components/countdown/utils.d.ts +3 -0
- package/es/components/countdown/utils.js +35 -0
- package/es/components/index.d.ts +5 -0
- package/es/components/index.js +280 -252
- package/es/components/input-tag/composables/index.d.ts +4 -0
- package/es/components/input-tag/composables/index.js +10 -0
- package/es/components/input-tag/composables/use-drag-tag.d.ts +15 -0
- package/es/components/input-tag/composables/use-drag-tag.js +63 -0
- package/es/components/input-tag/composables/use-hovering.d.ts +5 -0
- package/es/components/input-tag/composables/use-hovering.js +16 -0
- package/es/components/input-tag/composables/use-input-tag-dom.d.ts +58 -0
- package/es/components/input-tag/composables/use-input-tag-dom.js +49 -0
- package/es/components/input-tag/composables/use-input-tag.d.ts +32 -0
- package/es/components/input-tag/composables/use-input-tag.js +110 -0
- package/es/components/input-tag/index.d.ts +6 -0
- package/es/components/input-tag/index.js +15 -0
- package/es/components/input-tag/input-tag.d.ts +63 -0
- package/es/components/input-tag/input-tag.js +138 -0
- package/es/components/input-tag/input-tag.vue.d.ts +145 -0
- package/es/components/input-tag/input-tag.vue.js +4 -0
- package/es/components/input-tag/input-tag.vue2.js +201 -0
- package/es/components/input-tag/instance.d.ts +2 -0
- package/es/components/input-tag/instance.js +1 -0
- package/es/components/input-tag/style/css.d.ts +4 -0
- package/es/components/input-tag/style/css.js +5 -0
- package/es/components/input-tag/style/index.d.ts +4 -0
- package/es/components/input-tag/style/index.js +5 -0
- package/es/components/message-box/style/css.d.ts +1 -0
- package/es/components/message-box/style/css.js +2 -0
- package/es/components/message-box/style/index.d.ts +1 -0
- package/es/components/message-box/style/index.js +2 -0
- package/es/components/notification/style/css.d.ts +1 -0
- package/es/components/notification/style/css.js +2 -0
- package/es/components/notification/style/index.d.ts +1 -0
- package/es/components/notification/style/index.js +2 -0
- package/es/components/rate/style/css.d.ts +1 -0
- package/es/components/rate/style/css.js +2 -0
- package/es/components/rate/style/index.d.ts +1 -0
- package/es/components/rate/style/index.js +2 -0
- package/es/components/segmented/style/css.d.ts +1 -0
- package/es/components/segmented/style/css.js +2 -0
- package/es/components/segmented/style/index.d.ts +1 -0
- package/es/components/segmented/style/index.js +2 -0
- package/es/components/statistic/index.d.ts +4 -0
- package/es/components/statistic/index.js +12 -0
- package/es/components/statistic/statistic.d.ts +22 -0
- package/es/components/statistic/statistic.js +60 -0
- package/es/components/statistic/statistic.vue.d.ts +53 -0
- package/es/components/statistic/statistic.vue.js +4 -0
- package/es/components/statistic/statistic.vue2.js +69 -0
- package/es/components/statistic/style/css.d.ts +1 -0
- package/es/components/statistic/style/css.js +2 -0
- package/es/components/statistic/style/index.d.ts +1 -0
- package/es/components/statistic/style/index.js +2 -0
- package/es/components/table/index.d.ts +6 -0
- package/es/components/table/table.vue.d.ts +3 -0
- package/es/components/table/table.vue2.js +3 -2
- package/es/components/transfer/style/css.d.ts +1 -0
- package/es/components/transfer/style/css.js +2 -0
- package/es/components/transfer/style/index.d.ts +1 -0
- package/es/components/transfer/style/index.js +2 -0
- package/es/components/tree-select/style/css.d.ts +1 -0
- package/es/components/tree-select/style/css.js +2 -0
- package/es/components/tree-select/style/index.d.ts +1 -0
- package/es/components/tree-select/style/index.js +2 -0
- package/es/components/watermark/style/css.d.ts +1 -0
- package/es/components/watermark/style/css.js +2 -0
- package/es/components/watermark/style/index.d.ts +1 -0
- package/es/components/watermark/style/index.js +2 -0
- package/es/index.js +394 -366
- package/es/package.json.d.ts +1 -1
- package/es/package.json.js +1 -1
- package/lib/component.cjs +1 -1
- package/lib/components/breadcrumb/breadcrumb-item.vue.cjs +1 -0
- package/lib/components/breadcrumb/breadcrumb-item.vue.d.ts +21 -0
- package/lib/components/breadcrumb/breadcrumb-item.vue2.cjs +1 -0
- package/lib/components/breadcrumb/breadcrumb.vue.cjs +1 -0
- package/lib/components/breadcrumb/breadcrumb.vue.d.ts +21 -0
- package/lib/components/breadcrumb/breadcrumb.vue2.cjs +1 -0
- package/lib/components/breadcrumb/constants.cjs +1 -0
- package/lib/components/breadcrumb/constants.d.ts +3 -0
- package/lib/components/breadcrumb/index.cjs +1 -0
- package/lib/components/breadcrumb/index.d.ts +10 -0
- package/lib/components/breadcrumb/instances.cjs +1 -0
- package/lib/components/breadcrumb/instances.d.ts +4 -0
- package/lib/components/breadcrumb/style/css.cjs +1 -0
- package/lib/components/breadcrumb/style/css.d.ts +2 -0
- package/lib/components/breadcrumb/style/index.cjs +1 -0
- package/lib/components/breadcrumb/style/index.d.ts +2 -0
- package/lib/components/breadcrumb/types.cjs +1 -0
- package/lib/components/breadcrumb/types.d.ts +10 -0
- package/lib/components/breadcrumb-item/style/css.cjs +1 -0
- package/lib/components/breadcrumb-item/style/css.d.ts +1 -0
- package/lib/components/breadcrumb-item/style/index.cjs +1 -0
- package/lib/components/breadcrumb-item/style/index.d.ts +1 -0
- package/lib/components/cascader/style/css.cjs +1 -0
- package/lib/components/cascader/style/css.d.ts +1 -0
- package/lib/components/cascader/style/index.cjs +1 -0
- package/lib/components/cascader/style/index.d.ts +1 -0
- package/lib/components/cascader-panel/style/css.cjs +1 -0
- package/lib/components/cascader-panel/style/css.d.ts +1 -0
- package/lib/components/cascader-panel/style/index.cjs +1 -0
- package/lib/components/cascader-panel/style/index.d.ts +1 -0
- package/lib/components/collapse/collapse-item.cjs +1 -0
- package/lib/components/collapse/collapse-item.d.ts +10 -0
- package/lib/components/collapse/collapse-item.vue.cjs +1 -0
- package/lib/components/collapse/collapse-item.vue.d.ts +35 -0
- package/lib/components/collapse/collapse-item.vue2.cjs +1 -0
- package/lib/components/collapse/collapse.cjs +1 -0
- package/lib/components/collapse/collapse.d.ts +24 -0
- package/lib/components/collapse/collapse.vue.cjs +1 -0
- package/lib/components/collapse/collapse.vue.d.ts +46 -0
- package/lib/components/collapse/collapse.vue2.cjs +1 -0
- package/lib/components/collapse/constants.cjs +1 -0
- package/lib/components/collapse/constants.d.ts +7 -0
- package/lib/components/collapse/index.cjs +1 -0
- package/lib/components/collapse/index.d.ts +12 -0
- package/lib/components/collapse/instance.cjs +1 -0
- package/lib/components/collapse/instance.d.ts +4 -0
- package/lib/components/collapse/style/css.cjs +1 -0
- package/lib/components/collapse/style/css.d.ts +1 -0
- package/lib/components/collapse/style/index.cjs +1 -0
- package/lib/components/collapse/style/index.d.ts +1 -0
- package/lib/components/collapse/use-collapse-item.cjs +1 -0
- package/lib/components/collapse/use-collapse-item.d.ts +21 -0
- package/lib/components/collapse/use-collapse.cjs +1 -0
- package/lib/components/collapse/use-collapse.d.ts +9 -0
- package/lib/components/collapse-item/style/css.cjs +1 -0
- package/lib/components/collapse-item/style/css.d.ts +1 -0
- package/lib/components/collapse-item/style/index.cjs +1 -0
- package/lib/components/collapse-item/style/index.d.ts +1 -0
- package/lib/components/collapse-transition/collapse-transition.vue2.cjs +1 -0
- package/lib/components/collapse-transition/index.cjs +1 -1
- package/lib/components/collapse-transition/index.d.ts +1 -1
- package/lib/components/countdown/countdown.cjs +1 -0
- package/lib/components/countdown/countdown.d.ts +24 -0
- package/lib/components/countdown/countdown.vue.cjs +1 -0
- package/lib/components/countdown/countdown.vue.d.ts +47 -0
- package/lib/components/countdown/countdown.vue2.cjs +1 -0
- package/lib/components/countdown/index.cjs +1 -0
- package/lib/components/countdown/index.d.ts +5 -0
- package/lib/components/countdown/style/css.cjs +1 -0
- package/lib/components/countdown/style/css.d.ts +1 -0
- package/lib/components/countdown/style/index.cjs +1 -0
- package/lib/components/countdown/style/index.d.ts +1 -0
- package/lib/components/countdown/utils.cjs +1 -0
- package/lib/components/countdown/utils.d.ts +3 -0
- package/lib/components/index.cjs +1 -1
- package/lib/components/index.d.ts +5 -0
- package/lib/components/input-tag/composables/index.cjs +1 -0
- package/lib/components/input-tag/composables/index.d.ts +4 -0
- package/lib/components/input-tag/composables/use-drag-tag.cjs +1 -0
- package/lib/components/input-tag/composables/use-drag-tag.d.ts +15 -0
- package/lib/components/input-tag/composables/use-hovering.cjs +1 -0
- package/lib/components/input-tag/composables/use-hovering.d.ts +5 -0
- package/lib/components/input-tag/composables/use-input-tag-dom.cjs +1 -0
- package/lib/components/input-tag/composables/use-input-tag-dom.d.ts +58 -0
- package/lib/components/input-tag/composables/use-input-tag.cjs +1 -0
- package/lib/components/input-tag/composables/use-input-tag.d.ts +32 -0
- package/lib/components/input-tag/index.cjs +1 -0
- package/lib/components/input-tag/index.d.ts +6 -0
- package/lib/components/input-tag/input-tag.cjs +1 -0
- package/lib/components/input-tag/input-tag.d.ts +63 -0
- package/lib/components/input-tag/input-tag.vue.cjs +1 -0
- package/lib/components/input-tag/input-tag.vue.d.ts +145 -0
- package/lib/components/input-tag/input-tag.vue2.cjs +1 -0
- package/lib/components/input-tag/instance.cjs +1 -0
- package/lib/components/input-tag/instance.d.ts +2 -0
- package/lib/components/input-tag/style/css.cjs +1 -0
- package/lib/components/input-tag/style/css.d.ts +4 -0
- package/lib/components/input-tag/style/index.cjs +1 -0
- package/lib/components/input-tag/style/index.d.ts +4 -0
- package/lib/components/message-box/style/css.cjs +1 -0
- package/lib/components/message-box/style/css.d.ts +1 -0
- package/lib/components/message-box/style/index.cjs +1 -0
- package/lib/components/message-box/style/index.d.ts +1 -0
- package/lib/components/notification/style/css.cjs +1 -0
- package/lib/components/notification/style/css.d.ts +1 -0
- package/lib/components/notification/style/index.cjs +1 -0
- package/lib/components/notification/style/index.d.ts +1 -0
- package/lib/components/rate/style/css.cjs +1 -0
- package/lib/components/rate/style/css.d.ts +1 -0
- package/lib/components/rate/style/index.cjs +1 -0
- package/lib/components/rate/style/index.d.ts +1 -0
- package/lib/components/segmented/style/css.cjs +1 -0
- package/lib/components/segmented/style/css.d.ts +1 -0
- package/lib/components/segmented/style/index.cjs +1 -0
- package/lib/components/segmented/style/index.d.ts +1 -0
- package/lib/components/statistic/index.cjs +1 -0
- package/lib/components/statistic/index.d.ts +4 -0
- package/lib/components/statistic/statistic.cjs +1 -0
- package/lib/components/statistic/statistic.d.ts +22 -0
- package/lib/components/statistic/statistic.vue.cjs +1 -0
- package/lib/components/statistic/statistic.vue.d.ts +53 -0
- package/lib/components/statistic/statistic.vue2.cjs +1 -0
- package/lib/components/statistic/style/css.cjs +1 -0
- package/lib/components/statistic/style/css.d.ts +1 -0
- package/lib/components/statistic/style/index.cjs +1 -0
- package/lib/components/statistic/style/index.d.ts +1 -0
- package/lib/components/table/index.d.ts +6 -0
- package/lib/components/table/table.vue.d.ts +3 -0
- package/lib/components/table/table.vue2.cjs +1 -1
- package/lib/components/transfer/style/css.cjs +1 -0
- package/lib/components/transfer/style/css.d.ts +1 -0
- package/lib/components/transfer/style/index.cjs +1 -0
- package/lib/components/transfer/style/index.d.ts +1 -0
- package/lib/components/tree-select/style/css.cjs +1 -0
- package/lib/components/tree-select/style/css.d.ts +1 -0
- package/lib/components/tree-select/style/index.cjs +1 -0
- package/lib/components/tree-select/style/index.d.ts +1 -0
- package/lib/components/watermark/style/css.cjs +1 -0
- package/lib/components/watermark/style/css.d.ts +1 -0
- package/lib/components/watermark/style/index.cjs +1 -0
- package/lib/components/watermark/style/index.d.ts +1 -0
- package/lib/index.cjs +1 -1
- package/lib/package.json.cjs +1 -1
- package/lib/package.json.d.ts +1 -1
- package/package.json +6 -6
- package/theme-style/index.css +1 -1
- package/theme-style/src/breadcrumb.scss +5 -6
- package/theme-style/src/cascader-panel.scss +28 -28
- package/theme-style/src/cascader.scss +101 -60
- package/theme-style/src/collapse.scss +31 -8
- package/theme-style/src/common/var.scss +115 -0
- package/theme-style/src/countdown.scss +0 -0
- package/theme-style/src/index.scss +3 -0
- package/theme-style/src/input-tag.scss +218 -0
- package/theme-style/src/message-box.scss +61 -103
- package/theme-style/src/notification.scss +43 -39
- package/theme-style/src/rate.scss +45 -34
- package/theme-style/src/segmented.scss +185 -0
- package/theme-style/src/statistic.scss +7 -7
- package/theme-style/src/table.scss +9 -0
- package/theme-style/src/transfer.scss +37 -55
- package/theme-style/src/tree-select.scss +9 -4
- package/theme-style/vft-breadcrumb.css +1 -1
- package/theme-style/vft-cascader-panel.css +1 -1
- package/theme-style/vft-cascader.css +1 -1
- package/theme-style/vft-collapse.css +1 -1
- package/theme-style/vft-countdown.css +0 -0
- package/theme-style/vft-input-tag.css +1 -0
- package/theme-style/vft-message-box.css +1 -1
- package/theme-style/vft-notification.css +1 -1
- package/theme-style/vft-rate.css +1 -1
- package/theme-style/vft-segmented.css +1 -0
- package/theme-style/vft-statistic.css +1 -1
- package/theme-style/vft-table.css +1 -1
- package/theme-style/vft-transfer.css +1 -1
- package/theme-style/vft-tree-select.css +1 -1
- package/web-types.json +1 -1
- package/lib/components/collapse-transition/src/collapse-transition.vue2.cjs +0 -1
- /package/es/components/collapse-transition/{src/collapse-transition.vue.d.ts → collapse-transition.vue.d.ts} +0 -0
- /package/es/components/collapse-transition/{src/collapse-transition.vue.js → collapse-transition.vue.js} +0 -0
- /package/lib/components/collapse-transition/{src/collapse-transition.vue.cjs → collapse-transition.vue.cjs} +0 -0
- /package/lib/components/collapse-transition/{src/collapse-transition.vue.d.ts → collapse-transition.vue.d.ts} +0 -0
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
prefix?(_: {}): any;
|
|
3
|
+
tag?(_: {
|
|
4
|
+
value: string;
|
|
5
|
+
index: number;
|
|
6
|
+
}): any;
|
|
7
|
+
suffix?(_: {}): any;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
10
|
+
readonly modelValue: {
|
|
11
|
+
readonly type: import("vue").PropType<string[]>;
|
|
12
|
+
readonly required: false;
|
|
13
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
14
|
+
__epPropKey: true;
|
|
15
|
+
};
|
|
16
|
+
readonly max: NumberConstructor;
|
|
17
|
+
readonly tagType: import("vft/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "info", boolean>;
|
|
18
|
+
readonly tagEffect: {
|
|
19
|
+
readonly type: import("vue").PropType<string>;
|
|
20
|
+
readonly required: false;
|
|
21
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
22
|
+
__epPropKey: true;
|
|
23
|
+
};
|
|
24
|
+
readonly trigger: import("vft/es/utils").EpPropFinalized<(new (...args: any[]) => "Enter" | "Space") | (() => "Enter" | "Space") | (((new (...args: any[]) => "Enter" | "Space") | (() => "Enter" | "Space")) | null)[], unknown, unknown, string, boolean>;
|
|
25
|
+
readonly draggable: BooleanConstructor;
|
|
26
|
+
readonly delimiter: import("vft/es/utils").EpPropFinalized<readonly [StringConstructor, RegExpConstructor], unknown, unknown, "", boolean>;
|
|
27
|
+
readonly size: {
|
|
28
|
+
readonly type: import("vue").PropType<import("vft/es/utils").EpPropMergeType<(new (...args: any[]) => "" | "default" | "small" | "large") | (() => import("vft/es/constants").ComponentSize) | (((new (...args: any[]) => "" | "default" | "small" | "large") | (() => import("vft/es/constants").ComponentSize)) | null)[], unknown, unknown>>;
|
|
29
|
+
readonly required: false;
|
|
30
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
31
|
+
__epPropKey: true;
|
|
32
|
+
};
|
|
33
|
+
readonly clearable: BooleanConstructor;
|
|
34
|
+
readonly disabled: import("vft/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
35
|
+
readonly validateEvent: import("vft/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
36
|
+
readonly readonly: BooleanConstructor;
|
|
37
|
+
readonly autofocus: BooleanConstructor;
|
|
38
|
+
readonly id: import("vft/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, undefined, boolean>;
|
|
39
|
+
readonly tabindex: import("vft/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, 0, boolean>;
|
|
40
|
+
readonly maxlength: {
|
|
41
|
+
readonly type: import("vue").PropType<import("vft/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>>;
|
|
42
|
+
readonly required: false;
|
|
43
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
44
|
+
__epPropKey: true;
|
|
45
|
+
};
|
|
46
|
+
readonly minlength: {
|
|
47
|
+
readonly type: import("vue").PropType<import("vft/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>>;
|
|
48
|
+
readonly required: false;
|
|
49
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
50
|
+
__epPropKey: true;
|
|
51
|
+
};
|
|
52
|
+
readonly placeholder: StringConstructor;
|
|
53
|
+
readonly autocomplete: import("vft/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "off", boolean>;
|
|
54
|
+
readonly saveOnBlur: import("vft/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
55
|
+
readonly ariaLabel: StringConstructor;
|
|
56
|
+
}>, {
|
|
57
|
+
focus: () => void;
|
|
58
|
+
blur: () => void;
|
|
59
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
60
|
+
clear: () => void;
|
|
61
|
+
blur: (evt: FocusEvent) => void;
|
|
62
|
+
focus: (evt: FocusEvent) => void;
|
|
63
|
+
"update:modelValue": (value?: string[] | undefined) => void;
|
|
64
|
+
change: (value?: string[] | undefined) => void;
|
|
65
|
+
input: (value: string) => void;
|
|
66
|
+
"remove-tag": (value: string) => void;
|
|
67
|
+
"add-tag": (value: string | string[]) => void;
|
|
68
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
69
|
+
readonly modelValue: {
|
|
70
|
+
readonly type: import("vue").PropType<string[]>;
|
|
71
|
+
readonly required: false;
|
|
72
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
73
|
+
__epPropKey: true;
|
|
74
|
+
};
|
|
75
|
+
readonly max: NumberConstructor;
|
|
76
|
+
readonly tagType: import("vft/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "info", boolean>;
|
|
77
|
+
readonly tagEffect: {
|
|
78
|
+
readonly type: import("vue").PropType<string>;
|
|
79
|
+
readonly required: false;
|
|
80
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
81
|
+
__epPropKey: true;
|
|
82
|
+
};
|
|
83
|
+
readonly trigger: import("vft/es/utils").EpPropFinalized<(new (...args: any[]) => "Enter" | "Space") | (() => "Enter" | "Space") | (((new (...args: any[]) => "Enter" | "Space") | (() => "Enter" | "Space")) | null)[], unknown, unknown, string, boolean>;
|
|
84
|
+
readonly draggable: BooleanConstructor;
|
|
85
|
+
readonly delimiter: import("vft/es/utils").EpPropFinalized<readonly [StringConstructor, RegExpConstructor], unknown, unknown, "", boolean>;
|
|
86
|
+
readonly size: {
|
|
87
|
+
readonly type: import("vue").PropType<import("vft/es/utils").EpPropMergeType<(new (...args: any[]) => "" | "default" | "small" | "large") | (() => import("vft/es/constants").ComponentSize) | (((new (...args: any[]) => "" | "default" | "small" | "large") | (() => import("vft/es/constants").ComponentSize)) | null)[], unknown, unknown>>;
|
|
88
|
+
readonly required: false;
|
|
89
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
90
|
+
__epPropKey: true;
|
|
91
|
+
};
|
|
92
|
+
readonly clearable: BooleanConstructor;
|
|
93
|
+
readonly disabled: import("vft/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
94
|
+
readonly validateEvent: import("vft/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
95
|
+
readonly readonly: BooleanConstructor;
|
|
96
|
+
readonly autofocus: BooleanConstructor;
|
|
97
|
+
readonly id: import("vft/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, undefined, boolean>;
|
|
98
|
+
readonly tabindex: import("vft/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, 0, boolean>;
|
|
99
|
+
readonly maxlength: {
|
|
100
|
+
readonly type: import("vue").PropType<import("vft/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>>;
|
|
101
|
+
readonly required: false;
|
|
102
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
103
|
+
__epPropKey: true;
|
|
104
|
+
};
|
|
105
|
+
readonly minlength: {
|
|
106
|
+
readonly type: import("vue").PropType<import("vft/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>>;
|
|
107
|
+
readonly required: false;
|
|
108
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
109
|
+
__epPropKey: true;
|
|
110
|
+
};
|
|
111
|
+
readonly placeholder: StringConstructor;
|
|
112
|
+
readonly autocomplete: import("vft/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "off", boolean>;
|
|
113
|
+
readonly saveOnBlur: import("vft/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
114
|
+
readonly ariaLabel: StringConstructor;
|
|
115
|
+
}>> & Readonly<{
|
|
116
|
+
onInput?: ((value: string) => any) | undefined;
|
|
117
|
+
onClear?: (() => any) | undefined;
|
|
118
|
+
onBlur?: ((evt: FocusEvent) => any) | undefined;
|
|
119
|
+
onChange?: ((value?: string[] | undefined) => any) | undefined;
|
|
120
|
+
onFocus?: ((evt: FocusEvent) => any) | undefined;
|
|
121
|
+
"onUpdate:modelValue"?: ((value?: string[] | undefined) => any) | undefined;
|
|
122
|
+
"onRemove-tag"?: ((value: string) => any) | undefined;
|
|
123
|
+
"onAdd-tag"?: ((value: string | string[]) => any) | undefined;
|
|
124
|
+
}>, {
|
|
125
|
+
readonly draggable: boolean;
|
|
126
|
+
readonly id: string;
|
|
127
|
+
readonly autofocus: boolean;
|
|
128
|
+
readonly disabled: import("vft/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
129
|
+
readonly tabindex: import("vft/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
130
|
+
readonly trigger: import("vft/es/utils").EpPropMergeType<(new (...args: any[]) => "Enter" | "Space") | (() => "Enter" | "Space") | (((new (...args: any[]) => "Enter" | "Space") | (() => "Enter" | "Space")) | null)[], unknown, unknown>;
|
|
131
|
+
readonly readonly: boolean;
|
|
132
|
+
readonly validateEvent: import("vft/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
133
|
+
readonly autocomplete: string;
|
|
134
|
+
readonly clearable: boolean;
|
|
135
|
+
readonly tagType: string;
|
|
136
|
+
readonly delimiter: import("vft/es/utils").EpPropMergeType<readonly [StringConstructor, RegExpConstructor], unknown, unknown>;
|
|
137
|
+
readonly saveOnBlur: import("vft/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
138
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
139
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
140
|
+
export default _default;
|
|
141
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
142
|
+
new (): {
|
|
143
|
+
$slots: S;
|
|
144
|
+
};
|
|
145
|
+
};
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
import { defineComponent as B, useSlots as ge, computed as y, createElementBlock as m, openBlock as l, unref as e, normalizeStyle as ve, normalizeClass as a, createCommentVNode as f, createElementVNode as p, renderSlot as I, withDirectives as x, Fragment as ye, renderList as Ie, createBlock as C, withModifiers as F, withCtx as Ce, createTextVNode as he, toDisplayString as K, mergeProps as be, isRef as De, vModelText as ke, vShow as we } from "vue";
|
|
2
|
+
import { useAttrs as Se } from "../../hooks/use-attrs/index.js";
|
|
3
|
+
import { noop as Te } from "@vft/utils";
|
|
4
|
+
import "@vueuse/core";
|
|
5
|
+
import "../../utils/ns-cover.js";
|
|
6
|
+
import "lodash-es";
|
|
7
|
+
import "../../hooks/use-model-toggle/index.js";
|
|
8
|
+
import "@popperjs/core";
|
|
9
|
+
import "../../hooks/use-z-index/index.js";
|
|
10
|
+
import { useCalcInputWidth as Re } from "../../hooks/use-calc-input-width/index.js";
|
|
11
|
+
import { VftIcon as $ } from "../icon/index.js";
|
|
12
|
+
import { VftTag as Me } from "../tag/index.js";
|
|
13
|
+
import "../form/index.js";
|
|
14
|
+
import { inputTagEmits as Ve, inputTagProps as Ee } from "./input-tag.js";
|
|
15
|
+
import { useDragTag as ze } from "./composables/use-drag-tag.js";
|
|
16
|
+
import { useHovering as Le } from "./composables/use-hovering.js";
|
|
17
|
+
import { useInputTag as xe } from "./composables/use-input-tag.js";
|
|
18
|
+
import { useInputTagDom as Fe } from "./composables/use-input-tag-dom.js";
|
|
19
|
+
import { useFormItem as Ke, useFormItemInputId as $e } from "../form/hooks/use-form-item.js";
|
|
20
|
+
const Be = ["id", "minlength", "maxlength", "disabled", "readonly", "autocomplete", "tabindex", "placeholder", "autofocus", "ariaLabel"], Ne = ["textContent"], Ae = B({
|
|
21
|
+
name: "ElInputTag",
|
|
22
|
+
inheritAttrs: !1
|
|
23
|
+
}), ro = /* @__PURE__ */ B({
|
|
24
|
+
...Ae,
|
|
25
|
+
props: Ee,
|
|
26
|
+
emits: Ve,
|
|
27
|
+
setup(N, { expose: A, emit: P }) {
|
|
28
|
+
const c = N, U = P, H = Se(), O = ge(), { form: W, formItem: g } = Ke(), { inputId: j } = $e(c, { formItemContext: g }), h = y(() => W?.statusIcon ?? !1), s = y(() => g?.validateState || ""), q = {
|
|
29
|
+
validating: "icon-loading",
|
|
30
|
+
success: "icon-circle-check",
|
|
31
|
+
error: "icon-circle-close"
|
|
32
|
+
}, b = y(() => s.value && q[s.value]), {
|
|
33
|
+
inputRef: G,
|
|
34
|
+
wrapperRef: D,
|
|
35
|
+
isFocused: J,
|
|
36
|
+
inputValue: i,
|
|
37
|
+
size: Q,
|
|
38
|
+
tagSize: X,
|
|
39
|
+
placeholder: Y,
|
|
40
|
+
closable: k,
|
|
41
|
+
disabled: w,
|
|
42
|
+
handleDragged: Z,
|
|
43
|
+
handleInput: S,
|
|
44
|
+
handleKeydown: T,
|
|
45
|
+
handleRemoveTag: _,
|
|
46
|
+
handleClear: ee,
|
|
47
|
+
handleCompositionStart: R,
|
|
48
|
+
handleCompositionUpdate: M,
|
|
49
|
+
handleCompositionEnd: V,
|
|
50
|
+
focus: E,
|
|
51
|
+
blur: oe
|
|
52
|
+
} = xe({ props: c, emit: U, formItem: g }), { hovering: te, handleMouseEnter: z, handleMouseLeave: L } = Le(), { calculatorRef: ne, inputStyle: ae } = Re(), {
|
|
53
|
+
dropIndicatorRef: re,
|
|
54
|
+
showDropIndicator: le,
|
|
55
|
+
handleDragStart: se,
|
|
56
|
+
handleDragOver: ie,
|
|
57
|
+
handleDragEnd: de
|
|
58
|
+
} = ze({ wrapperRef: D, handleDragged: Z, afterDragged: E }), {
|
|
59
|
+
ns: r,
|
|
60
|
+
nsInput: v,
|
|
61
|
+
containerKls: pe,
|
|
62
|
+
containerStyle: ue,
|
|
63
|
+
innerKls: me,
|
|
64
|
+
showClear: fe,
|
|
65
|
+
showSuffix: ce
|
|
66
|
+
} = Fe({
|
|
67
|
+
props: c,
|
|
68
|
+
hovering: te,
|
|
69
|
+
isFocused: J,
|
|
70
|
+
inputValue: i,
|
|
71
|
+
disabled: w,
|
|
72
|
+
size: Q,
|
|
73
|
+
validateState: s,
|
|
74
|
+
validateIcon: b,
|
|
75
|
+
needStatusIcon: h
|
|
76
|
+
});
|
|
77
|
+
return A({
|
|
78
|
+
focus: E,
|
|
79
|
+
blur: oe
|
|
80
|
+
}), (n, o) => (l(), m("div", {
|
|
81
|
+
ref_key: "wrapperRef",
|
|
82
|
+
ref: D,
|
|
83
|
+
class: a(e(pe)),
|
|
84
|
+
style: ve(e(ue)),
|
|
85
|
+
onMouseenter: o[7] || (o[7] = //@ts-ignore
|
|
86
|
+
(...t) => e(z) && e(z)(...t)),
|
|
87
|
+
onMouseleave: o[8] || (o[8] = //@ts-ignore
|
|
88
|
+
(...t) => e(L) && e(L)(...t))
|
|
89
|
+
}, [
|
|
90
|
+
e(O).prefix ? (l(), m("div", {
|
|
91
|
+
key: 0,
|
|
92
|
+
class: a(e(r).e("prefix"))
|
|
93
|
+
}, [
|
|
94
|
+
I(n.$slots, "prefix")
|
|
95
|
+
], 2)) : f("", !0),
|
|
96
|
+
p("div", {
|
|
97
|
+
class: a(e(me))
|
|
98
|
+
}, [
|
|
99
|
+
(l(!0), m(ye, null, Ie(n.modelValue, (t, d) => (l(), C(e(Me), {
|
|
100
|
+
key: d,
|
|
101
|
+
size: e(X),
|
|
102
|
+
closable: e(k),
|
|
103
|
+
type: n.tagType,
|
|
104
|
+
effect: n.tagEffect,
|
|
105
|
+
draggable: e(k) && n.draggable,
|
|
106
|
+
"disable-transitions": "",
|
|
107
|
+
onClose: (u) => e(_)(d),
|
|
108
|
+
onDragstart: (u) => e(se)(u, d),
|
|
109
|
+
onDragover: (u) => e(ie)(u, d),
|
|
110
|
+
onDragend: e(de),
|
|
111
|
+
onDrop: o[0] || (o[0] = F(() => {
|
|
112
|
+
}, ["stop"]))
|
|
113
|
+
}, {
|
|
114
|
+
default: Ce(() => [
|
|
115
|
+
I(n.$slots, "tag", {
|
|
116
|
+
value: t,
|
|
117
|
+
index: d
|
|
118
|
+
}, () => [
|
|
119
|
+
he(K(t), 1)
|
|
120
|
+
])
|
|
121
|
+
]),
|
|
122
|
+
_: 2
|
|
123
|
+
}, 1032, ["size", "closable", "type", "effect", "draggable", "onClose", "onDragstart", "onDragover", "onDragend"]))), 128)),
|
|
124
|
+
p("div", {
|
|
125
|
+
class: a(e(r).e("input-wrapper"))
|
|
126
|
+
}, [
|
|
127
|
+
x(p("input", be({
|
|
128
|
+
id: e(j),
|
|
129
|
+
ref_key: "inputRef",
|
|
130
|
+
ref: G,
|
|
131
|
+
"onUpdate:modelValue": o[1] || (o[1] = (t) => De(i) ? i.value = t : null)
|
|
132
|
+
}, e(H), {
|
|
133
|
+
type: "text",
|
|
134
|
+
minlength: n.minlength,
|
|
135
|
+
maxlength: n.maxlength,
|
|
136
|
+
disabled: e(w),
|
|
137
|
+
readonly: n.readonly,
|
|
138
|
+
autocomplete: n.autocomplete,
|
|
139
|
+
tabindex: n.tabindex,
|
|
140
|
+
placeholder: e(Y),
|
|
141
|
+
autofocus: n.autofocus,
|
|
142
|
+
ariaLabel: n.ariaLabel,
|
|
143
|
+
class: e(r).e("input"),
|
|
144
|
+
style: e(ae),
|
|
145
|
+
onCompositionstart: o[2] || (o[2] = //@ts-ignore
|
|
146
|
+
(...t) => e(R) && e(R)(...t)),
|
|
147
|
+
onCompositionupdate: o[3] || (o[3] = //@ts-ignore
|
|
148
|
+
(...t) => e(M) && e(M)(...t)),
|
|
149
|
+
onCompositionend: o[4] || (o[4] = //@ts-ignore
|
|
150
|
+
(...t) => e(V) && e(V)(...t)),
|
|
151
|
+
onInput: o[5] || (o[5] = //@ts-ignore
|
|
152
|
+
(...t) => e(S) && e(S)(...t)),
|
|
153
|
+
onKeydown: o[6] || (o[6] = //@ts-ignore
|
|
154
|
+
(...t) => e(T) && e(T)(...t))
|
|
155
|
+
}), null, 16, Be), [
|
|
156
|
+
[ke, e(i)]
|
|
157
|
+
]),
|
|
158
|
+
p("span", {
|
|
159
|
+
ref_key: "calculatorRef",
|
|
160
|
+
ref: ne,
|
|
161
|
+
"aria-hidden": "true",
|
|
162
|
+
class: a(e(r).e("input-calculator")),
|
|
163
|
+
textContent: K(e(i))
|
|
164
|
+
}, null, 10, Ne)
|
|
165
|
+
], 2),
|
|
166
|
+
x(p("div", {
|
|
167
|
+
ref_key: "dropIndicatorRef",
|
|
168
|
+
ref: re,
|
|
169
|
+
class: a(e(r).e("drop-indicator"))
|
|
170
|
+
}, null, 2), [
|
|
171
|
+
[we, e(le)]
|
|
172
|
+
])
|
|
173
|
+
], 2),
|
|
174
|
+
e(ce) ? (l(), m("div", {
|
|
175
|
+
key: 1,
|
|
176
|
+
class: a(e(r).e("suffix"))
|
|
177
|
+
}, [
|
|
178
|
+
I(n.$slots, "suffix"),
|
|
179
|
+
e(fe) ? (l(), C(e($), {
|
|
180
|
+
key: 0,
|
|
181
|
+
class: a([e(r).e("icon"), e(r).e("clear")]),
|
|
182
|
+
onMousedown: F(e(Te), ["prevent"]),
|
|
183
|
+
onClick: e(ee),
|
|
184
|
+
icon: "icon-circle-close"
|
|
185
|
+
}, null, 8, ["class", "onMousedown", "onClick"])) : f("", !0),
|
|
186
|
+
s.value && b.value && h.value ? (l(), C(e($), {
|
|
187
|
+
key: 1,
|
|
188
|
+
class: a([
|
|
189
|
+
e(v).e("icon"),
|
|
190
|
+
e(v).e("validateIcon"),
|
|
191
|
+
e(v).is("loading", s.value === "validating")
|
|
192
|
+
]),
|
|
193
|
+
icon: "validateIcon"
|
|
194
|
+
}, null, 8, ["class"])) : f("", !0)
|
|
195
|
+
], 2)) : f("", !0)
|
|
196
|
+
], 38));
|
|
197
|
+
}
|
|
198
|
+
});
|
|
199
|
+
export {
|
|
200
|
+
ro as default
|
|
201
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import 'vft/theme-style/vft-message-box.css';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import 'vft/theme-style/src/message-box.scss';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import 'vft/theme-style/vft-notification.css';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import 'vft/theme-style/src/notification.scss';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import 'vft/theme-style/vft-rate.css';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import 'vft/theme-style/src/rate.scss';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import 'vft/theme-style/vft-segmented.css';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import 'vft/theme-style/src/segmented.scss';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import "@vueuse/core";
|
|
2
|
+
import "@vft/utils";
|
|
3
|
+
import "../../utils/ns-cover.js";
|
|
4
|
+
import { withInstall as t } from "../../utils/vue/install.js";
|
|
5
|
+
import "lodash-es";
|
|
6
|
+
import "vue";
|
|
7
|
+
import i from "./statistic.vue2.js";
|
|
8
|
+
const c = t(i);
|
|
9
|
+
export {
|
|
10
|
+
c as VftStatistic,
|
|
11
|
+
c as default
|
|
12
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { ExtractPropTypes, StyleValue, __ExtractPublicPropTypes } from 'vue';
|
|
2
|
+
import type { Dayjs } from 'dayjs';
|
|
3
|
+
import type Statistic from './statistic.vue';
|
|
4
|
+
export declare const statisticProps: {
|
|
5
|
+
readonly decimalSeparator: import("vft/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, ".", boolean>;
|
|
6
|
+
readonly groupSeparator: import("vft/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, ",", boolean>;
|
|
7
|
+
readonly precision: import("vft/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
|
|
8
|
+
readonly formatter: FunctionConstructor;
|
|
9
|
+
readonly value: import("vft/es/utils").EpPropFinalized<(new (...args: any[]) => number | Dayjs) | (() => number | Dayjs) | (((new (...args: any[]) => number | Dayjs) | (() => number | Dayjs)) | null)[], unknown, unknown, 0, boolean>;
|
|
10
|
+
readonly prefix: StringConstructor;
|
|
11
|
+
readonly suffix: StringConstructor;
|
|
12
|
+
readonly title: StringConstructor;
|
|
13
|
+
readonly valueStyle: {
|
|
14
|
+
readonly type: import("vue").PropType<import("vft/es/utils").EpPropMergeType<(new (...args: any[]) => string | false | import("vue").CSSProperties | StyleValue[]) | (() => StyleValue) | (((new (...args: any[]) => string | false | import("vue").CSSProperties | StyleValue[]) | (() => StyleValue)) | null)[], unknown, unknown>>;
|
|
15
|
+
readonly required: false;
|
|
16
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
17
|
+
__epPropKey: true;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export type StatisticProps = ExtractPropTypes<typeof statisticProps>;
|
|
21
|
+
export type StatisticPropsPublic = __ExtractPublicPropTypes<typeof statisticProps>;
|
|
22
|
+
export type StatisticInstance = InstanceType<typeof Statistic> & unknown;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import "@vueuse/core";
|
|
2
|
+
import "@vft/utils";
|
|
3
|
+
import "../../utils/ns-cover.js";
|
|
4
|
+
import { buildProps as r, definePropType as t } from "../../utils/vue/props/runtime.js";
|
|
5
|
+
import "vue";
|
|
6
|
+
const u = r({
|
|
7
|
+
/**
|
|
8
|
+
* @description Setting the decimal point
|
|
9
|
+
*/
|
|
10
|
+
decimalSeparator: {
|
|
11
|
+
type: String,
|
|
12
|
+
default: "."
|
|
13
|
+
},
|
|
14
|
+
/**
|
|
15
|
+
* @description Sets the thousandth identifier
|
|
16
|
+
*/
|
|
17
|
+
groupSeparator: {
|
|
18
|
+
type: String,
|
|
19
|
+
default: ","
|
|
20
|
+
},
|
|
21
|
+
/**
|
|
22
|
+
* @description numerical precision
|
|
23
|
+
*/
|
|
24
|
+
precision: {
|
|
25
|
+
type: Number,
|
|
26
|
+
default: 0
|
|
27
|
+
},
|
|
28
|
+
/**
|
|
29
|
+
* @description Custom numerical presentation
|
|
30
|
+
*/
|
|
31
|
+
formatter: Function,
|
|
32
|
+
/**
|
|
33
|
+
* @description Numerical content
|
|
34
|
+
*/
|
|
35
|
+
value: {
|
|
36
|
+
type: t([Number, Object]),
|
|
37
|
+
default: 0
|
|
38
|
+
},
|
|
39
|
+
/**
|
|
40
|
+
* @description Sets the prefix of a number
|
|
41
|
+
*/
|
|
42
|
+
prefix: String,
|
|
43
|
+
/**
|
|
44
|
+
* @description Sets the suffix of a number
|
|
45
|
+
*/
|
|
46
|
+
suffix: String,
|
|
47
|
+
/**
|
|
48
|
+
* @description Numeric titles
|
|
49
|
+
*/
|
|
50
|
+
title: String,
|
|
51
|
+
/**
|
|
52
|
+
* @description Styles numeric values
|
|
53
|
+
*/
|
|
54
|
+
valueStyle: {
|
|
55
|
+
type: t([String, Object, Array])
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
export {
|
|
59
|
+
u as statisticProps
|
|
60
|
+
};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
title?(_: {}): any;
|
|
3
|
+
prefix?(_: {}): any;
|
|
4
|
+
suffix?(_: {}): any;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
7
|
+
readonly decimalSeparator: import("vft/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, ".", boolean>;
|
|
8
|
+
readonly groupSeparator: import("vft/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, ",", boolean>;
|
|
9
|
+
readonly precision: import("vft/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
|
|
10
|
+
readonly formatter: FunctionConstructor;
|
|
11
|
+
readonly value: import("vft/es/utils").EpPropFinalized<(new (...args: any[]) => number | import("dayjs").Dayjs) | (() => number | import("dayjs").Dayjs) | (((new (...args: any[]) => number | import("dayjs").Dayjs) | (() => number | import("dayjs").Dayjs)) | null)[], unknown, unknown, 0, boolean>;
|
|
12
|
+
readonly prefix: StringConstructor;
|
|
13
|
+
readonly suffix: StringConstructor;
|
|
14
|
+
readonly title: StringConstructor;
|
|
15
|
+
readonly valueStyle: {
|
|
16
|
+
readonly type: import("vue").PropType<import("vft/es/utils").EpPropMergeType<(new (...args: any[]) => string | false | import("vue").CSSProperties | import("vue").StyleValue[]) | (() => import("vue").StyleValue) | (((new (...args: any[]) => string | false | import("vue").CSSProperties | import("vue").StyleValue[]) | (() => import("vue").StyleValue)) | null)[], unknown, unknown>>;
|
|
17
|
+
readonly required: false;
|
|
18
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
19
|
+
__epPropKey: true;
|
|
20
|
+
};
|
|
21
|
+
}>, {
|
|
22
|
+
/**
|
|
23
|
+
* @description current display value
|
|
24
|
+
*/
|
|
25
|
+
displayValue: import("vue").ComputedRef<any>;
|
|
26
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
27
|
+
readonly decimalSeparator: import("vft/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, ".", boolean>;
|
|
28
|
+
readonly groupSeparator: import("vft/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, ",", boolean>;
|
|
29
|
+
readonly precision: import("vft/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
|
|
30
|
+
readonly formatter: FunctionConstructor;
|
|
31
|
+
readonly value: import("vft/es/utils").EpPropFinalized<(new (...args: any[]) => number | import("dayjs").Dayjs) | (() => number | import("dayjs").Dayjs) | (((new (...args: any[]) => number | import("dayjs").Dayjs) | (() => number | import("dayjs").Dayjs)) | null)[], unknown, unknown, 0, boolean>;
|
|
32
|
+
readonly prefix: StringConstructor;
|
|
33
|
+
readonly suffix: StringConstructor;
|
|
34
|
+
readonly title: StringConstructor;
|
|
35
|
+
readonly valueStyle: {
|
|
36
|
+
readonly type: import("vue").PropType<import("vft/es/utils").EpPropMergeType<(new (...args: any[]) => string | false | import("vue").CSSProperties | import("vue").StyleValue[]) | (() => import("vue").StyleValue) | (((new (...args: any[]) => string | false | import("vue").CSSProperties | import("vue").StyleValue[]) | (() => import("vue").StyleValue)) | null)[], unknown, unknown>>;
|
|
37
|
+
readonly required: false;
|
|
38
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
39
|
+
__epPropKey: true;
|
|
40
|
+
};
|
|
41
|
+
}>> & Readonly<{}>, {
|
|
42
|
+
readonly value: import("vft/es/utils").EpPropMergeType<(new (...args: any[]) => number | import("dayjs").Dayjs) | (() => number | import("dayjs").Dayjs) | (((new (...args: any[]) => number | import("dayjs").Dayjs) | (() => number | import("dayjs").Dayjs)) | null)[], unknown, unknown>;
|
|
43
|
+
readonly precision: number;
|
|
44
|
+
readonly decimalSeparator: string;
|
|
45
|
+
readonly groupSeparator: string;
|
|
46
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
47
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
48
|
+
export default _default;
|
|
49
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
50
|
+
new (): {
|
|
51
|
+
$slots: S;
|
|
52
|
+
};
|
|
53
|
+
};
|