vft 0.0.154 → 0.0.156
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/attributes.json +1 -1
- package/dist/index.css +1 -1
- package/es/app-components/button/button-custom.d.ts +1 -1
- package/es/app-components/form/hooks/use-form-common-props.d.ts +5 -4
- package/es/app-components/hooks/use-id.d.ts +2 -1
- package/es/component.js +135 -133
- package/es/components/affix/affix.d.ts +2 -2
- package/es/components/affix/affix.vue.d.ts +1 -1
- package/es/components/affix/index.d.ts +3 -3
- package/es/components/autocomplete/autocomplete.vue.d.ts +18 -18
- package/es/components/autocomplete/index.d.ts +54 -54
- package/es/components/backtop/backtop.vue2.js +3 -2
- package/es/components/button/button-custom.d.ts +1 -1
- package/es/components/button/button.vue.d.ts +1 -1
- package/es/components/button/index.d.ts +3 -3
- package/es/components/button/use-button.d.ts +3 -3
- package/es/components/button/use-button.js +3 -3
- package/es/components/carousel/carousel.vue.d.ts +1 -1
- package/es/components/carousel/index.d.ts +19 -19
- package/es/components/carousel/use-carousel.d.ts +2 -2
- package/es/components/checkbox/composables/use-checkbox-disabled.d.ts +1 -1
- package/es/components/checkbox/composables/use-checkbox.d.ts +1 -1
- package/es/components/checkbox/index.d.ts +48 -48
- package/es/components/clamp/clamp.vue.d.ts +4 -15
- package/es/components/clamp/clamp.vue2.js +28 -25
- package/es/components/clamp/index.d.ts +10 -3
- package/es/components/clamp/types.d.ts +14 -0
- package/es/components/clamp/types.js +1 -0
- package/es/components/clamp-tooltip/clamp-tooltip.vue.d.ts +12 -0
- package/es/components/clamp-tooltip/clamp-tooltip.vue.js +4 -0
- package/es/components/clamp-tooltip/clamp-tooltip.vue2.js +47 -0
- package/es/components/clamp-tooltip/index.d.ts +61 -0
- package/es/components/clamp-tooltip/index.js +12 -0
- package/es/components/clamp-tooltip/style/css.d.ts +0 -0
- package/es/components/clamp-tooltip/style/css.js +2 -0
- package/es/components/clamp-tooltip/style/index.d.ts +0 -0
- package/es/components/clamp-tooltip/style/index.js +2 -0
- package/es/components/clamp-tooltip/types.d.ts +6 -0
- package/es/components/clamp-tooltip/types.js +1 -0
- package/es/components/config-provider/hooks/use-global-config.d.ts +3 -2
- package/es/components/container/main.vue2.js +6 -5
- package/es/components/context-menu/context-menu.vue2.js +3 -2
- package/es/components/date-picker/composables/use-range-picker.d.ts +1 -1
- package/es/components/date-picker/date-picker.d.ts +4 -20
- package/es/components/date-picker/index.d.ts +8 -40
- package/es/components/date-picker/props/date-picker.d.ts +1 -9
- package/es/components/date-picker/props/shared.d.ts +1 -1
- package/es/components/date-picker/utils.d.ts +1 -1
- package/es/components/dialog/dialog.vue.d.ts +2 -2
- package/es/components/dialog/index.d.ts +6 -6
- package/es/components/drawer/drawer.vue.d.ts +2 -2
- package/es/components/drawer/index.d.ts +6 -6
- package/es/components/dropdown/dropdown.vue.d.ts +3 -3
- package/es/components/dropdown/index.d.ts +45 -45
- package/es/components/footer-layout/footer-layout.vue2.js +3 -2
- package/es/components/form/hooks/use-form-common-props.d.ts +6 -4
- package/es/components/full-screen/full-screen.vue2.js +13 -10
- package/es/components/full-screen/index.d.ts +18 -0
- package/es/components/header-layout/header-layout.vue2.js +3 -2
- package/es/components/icon/icon.vue2.js +21 -20
- package/es/components/icon-text/icon-text.vue.d.ts +5 -0
- package/es/components/icon-text/icon-text.vue2.js +36 -27
- package/es/components/icon-text/index.d.ts +18 -0
- package/es/components/index.d.ts +1 -0
- package/es/components/index.js +335 -333
- package/es/components/loading/index.d.ts +17 -9
- package/es/components/loading/loading.d.ts +17 -9
- package/es/components/md-container/md-container.vue2.js +3 -2
- package/es/components/menu/menu-item.vue2.js +3 -2
- package/es/components/menu/sub-menu.vue2.js +24 -23
- package/es/components/modal/index.d.ts +11 -11
- package/es/components/modal/modal-footer-action.vue2.js +3 -2
- package/es/components/modal/modal.vue.d.ts +1 -1
- package/es/components/multiple-tabs/multiple-tabs.vue2.js +4 -3
- package/es/components/popconfirm/index.d.ts +11 -11
- package/es/components/popconfirm/popconfirm.vue.d.ts +1 -1
- package/es/components/popover/index.d.ts +8 -8
- package/es/components/popper/composables/use-content-dom.d.ts +3 -1
- package/es/components/popper/composables/use-content.d.ts +70 -6
- package/es/components/popper/index.d.ts +3 -3
- package/es/components/popper/popper.vue.d.ts +2 -1
- package/es/components/popper/utils.d.ts +45 -2
- package/es/components/progress/index.d.ts +4 -4
- package/es/components/radio/index.d.ts +24 -24
- package/es/components/radio/use-radio.d.ts +1 -1
- package/es/components/result/result.vue2.js +3 -2
- package/es/components/router-view-content/index.d.ts +12 -0
- package/es/components/router-view-content/router-view-content.vue.d.ts +2 -0
- package/es/components/router-view-content/router-view-content.vue2.js +48 -33
- package/es/components/select/defaults.d.ts +4 -3
- package/es/components/select/index.d.ts +60 -60
- package/es/components/select/select.vue.d.ts +30 -30
- package/es/components/select/useSelect.d.ts +19 -19
- package/es/components/side-menu/index.d.ts +8 -4
- package/es/components/side-menu/side-menu.vue.d.ts +2 -2
- package/es/components/side-menu/side-menu.vue2.js +6 -3
- package/es/components/slider/composables/use-slide.d.ts +6 -6
- package/es/components/slider/index.d.ts +2 -2
- package/es/components/slider/slider.d.ts +3 -3
- package/es/components/space/index.d.ts +5 -2
- package/es/components/space/space.d.ts +5 -2
- package/es/components/super-form/component-map.js +13 -12
- package/es/components/super-form/index.d.ts +3 -3
- package/es/components/super-form/super-form-action.vue2.js +3 -2
- package/es/components/super-form/super-form-item.vue2.js +3 -2
- package/es/components/super-form/super-form.vue.d.ts +1 -1
- package/es/components/super-form/super-form.vue2.js +3 -2
- package/es/components/table/field.js +19 -18
- package/es/components/table/index.d.ts +32 -32
- package/es/components/table/use/use-columns.d.ts +801 -3
- package/es/components/tabs/index.d.ts +6 -0
- package/es/components/tabs/tab-nav.vue.d.ts +2 -0
- package/es/components/tabs/tab-nav.vue2.js +95 -87
- package/es/components/tabs/tabs.vue.d.ts +2 -0
- package/es/components/tabs/tabs.vue2.js +42 -36
- package/es/components/time-picker/common/picker.vue.d.ts +6 -21
- package/es/components/time-picker/common/props.d.ts +2 -9
- package/es/components/time-picker/composables/use-time-picker.d.ts +2 -2
- package/es/components/time-picker/index.d.ts +8 -40
- package/es/components/time-picker/time-picker.d.ts +4 -20
- package/es/components/time-picker/utils.d.ts +1 -1
- package/es/components/time-select/time-select.vue.d.ts +1 -1
- package/es/components/tooltip/index.d.ts +16 -16
- package/es/components/tooltip/utils.d.ts +1 -1
- package/es/components/tree/index.d.ts +16 -16
- package/es/components/upload/index.d.ts +1 -1
- package/es/components/upload/upload.vue.d.ts +1 -1
- package/es/components/upload/use-handlers.d.ts +21 -1
- package/es/components/virtual-list/hooks/use-cache.d.ts +1 -1
- package/es/hooks/use-id/index.d.ts +2 -1
- package/es/hooks/use-model-toggle/index.d.ts +2 -2
- package/es/hooks/use-popper/index.d.ts +70 -7
- package/es/hooks/use-same-target/index.d.ts +3 -3
- package/es/hooks/use-z-index/index.d.ts +1 -1
- package/es/index.js +456 -454
- package/es/package.json.d.ts +1 -1
- package/es/package.json.js +1 -1
- package/lib/app-components/button/button-custom.d.ts +1 -1
- package/lib/app-components/form/hooks/use-form-common-props.d.ts +5 -4
- package/lib/app-components/hooks/use-id.d.ts +2 -1
- package/lib/component.cjs +1 -1
- package/lib/components/affix/affix.d.ts +2 -2
- package/lib/components/affix/affix.vue.d.ts +1 -1
- package/lib/components/affix/index.d.ts +3 -3
- package/lib/components/autocomplete/autocomplete.vue.d.ts +18 -18
- package/lib/components/autocomplete/index.d.ts +54 -54
- package/lib/components/backtop/backtop.vue2.cjs +1 -1
- package/lib/components/button/button-custom.d.ts +1 -1
- package/lib/components/button/button.vue.d.ts +1 -1
- package/lib/components/button/index.d.ts +3 -3
- package/lib/components/button/use-button.cjs +1 -1
- package/lib/components/button/use-button.d.ts +3 -3
- package/lib/components/carousel/carousel.vue.d.ts +1 -1
- package/lib/components/carousel/index.d.ts +19 -19
- package/lib/components/carousel/use-carousel.d.ts +2 -2
- package/lib/components/checkbox/composables/use-checkbox-disabled.d.ts +1 -1
- package/lib/components/checkbox/composables/use-checkbox.d.ts +1 -1
- package/lib/components/checkbox/index.d.ts +48 -48
- package/lib/components/clamp/clamp.vue.d.ts +4 -15
- package/lib/components/clamp/clamp.vue2.cjs +1 -1
- package/lib/components/clamp/index.d.ts +10 -3
- package/lib/components/clamp/types.cjs +1 -0
- package/lib/components/clamp/types.d.ts +14 -0
- package/lib/components/clamp-tooltip/clamp-tooltip.vue.cjs +1 -0
- package/lib/components/clamp-tooltip/clamp-tooltip.vue.d.ts +12 -0
- package/lib/components/clamp-tooltip/clamp-tooltip.vue2.cjs +1 -0
- package/lib/components/clamp-tooltip/index.cjs +1 -0
- package/lib/components/clamp-tooltip/index.d.ts +61 -0
- package/lib/components/clamp-tooltip/style/css.cjs +1 -0
- package/lib/components/clamp-tooltip/style/css.d.ts +0 -0
- package/lib/components/clamp-tooltip/style/index.cjs +1 -0
- package/lib/components/clamp-tooltip/style/index.d.ts +0 -0
- package/lib/components/clamp-tooltip/types.cjs +1 -0
- package/lib/components/clamp-tooltip/types.d.ts +6 -0
- package/lib/components/config-provider/hooks/use-global-config.d.ts +3 -2
- package/lib/components/container/main.vue2.cjs +1 -1
- package/lib/components/context-menu/context-menu.vue2.cjs +1 -1
- package/lib/components/date-picker/composables/use-range-picker.d.ts +1 -1
- package/lib/components/date-picker/date-picker.d.ts +4 -20
- package/lib/components/date-picker/index.d.ts +8 -40
- package/lib/components/date-picker/props/date-picker.d.ts +1 -9
- package/lib/components/date-picker/props/shared.d.ts +1 -1
- package/lib/components/date-picker/utils.d.ts +1 -1
- package/lib/components/dialog/dialog.vue.d.ts +2 -2
- package/lib/components/dialog/index.d.ts +6 -6
- package/lib/components/drawer/drawer.vue.d.ts +2 -2
- package/lib/components/drawer/index.d.ts +6 -6
- package/lib/components/dropdown/dropdown.vue.d.ts +3 -3
- package/lib/components/dropdown/index.d.ts +45 -45
- package/lib/components/footer-layout/footer-layout.vue2.cjs +1 -1
- package/lib/components/form/hooks/use-form-common-props.d.ts +6 -4
- package/lib/components/full-screen/full-screen.vue2.cjs +1 -1
- package/lib/components/full-screen/index.d.ts +18 -0
- package/lib/components/header-layout/header-layout.vue2.cjs +1 -1
- package/lib/components/icon/icon.vue2.cjs +1 -1
- package/lib/components/icon-text/icon-text.vue.d.ts +5 -0
- package/lib/components/icon-text/icon-text.vue2.cjs +1 -1
- package/lib/components/icon-text/index.d.ts +18 -0
- package/lib/components/index.cjs +1 -1
- package/lib/components/index.d.ts +1 -0
- package/lib/components/loading/index.d.ts +17 -9
- package/lib/components/loading/loading.d.ts +17 -9
- package/lib/components/md-container/md-container.vue2.cjs +1 -1
- package/lib/components/menu/menu-item.vue2.cjs +1 -1
- package/lib/components/menu/sub-menu.vue2.cjs +1 -1
- package/lib/components/modal/index.d.ts +11 -11
- package/lib/components/modal/modal-footer-action.vue2.cjs +1 -1
- package/lib/components/modal/modal.vue.d.ts +1 -1
- package/lib/components/multiple-tabs/multiple-tabs.vue2.cjs +1 -1
- package/lib/components/popconfirm/index.d.ts +11 -11
- package/lib/components/popconfirm/popconfirm.vue.d.ts +1 -1
- package/lib/components/popover/index.d.ts +8 -8
- package/lib/components/popper/composables/use-content-dom.d.ts +3 -1
- package/lib/components/popper/composables/use-content.d.ts +70 -6
- package/lib/components/popper/index.d.ts +3 -3
- package/lib/components/popper/popper.vue.d.ts +2 -1
- package/lib/components/popper/utils.d.ts +45 -2
- package/lib/components/progress/index.d.ts +4 -4
- package/lib/components/radio/index.d.ts +24 -24
- package/lib/components/radio/use-radio.d.ts +1 -1
- package/lib/components/result/result.vue2.cjs +1 -1
- package/lib/components/router-view-content/index.d.ts +12 -0
- package/lib/components/router-view-content/router-view-content.vue.d.ts +2 -0
- package/lib/components/router-view-content/router-view-content.vue2.cjs +1 -1
- package/lib/components/select/defaults.d.ts +4 -3
- package/lib/components/select/index.d.ts +60 -60
- package/lib/components/select/select.vue.d.ts +30 -30
- package/lib/components/select/useSelect.d.ts +19 -19
- package/lib/components/side-menu/index.d.ts +8 -4
- package/lib/components/side-menu/side-menu.vue.d.ts +2 -2
- package/lib/components/side-menu/side-menu.vue2.cjs +1 -1
- package/lib/components/slider/composables/use-slide.d.ts +6 -6
- package/lib/components/slider/index.d.ts +2 -2
- package/lib/components/slider/slider.d.ts +3 -3
- package/lib/components/space/index.d.ts +5 -2
- package/lib/components/space/space.d.ts +5 -2
- package/lib/components/super-form/component-map.cjs +1 -1
- package/lib/components/super-form/index.d.ts +3 -3
- package/lib/components/super-form/super-form-action.vue2.cjs +1 -1
- package/lib/components/super-form/super-form-item.vue2.cjs +1 -1
- package/lib/components/super-form/super-form.vue.d.ts +1 -1
- package/lib/components/super-form/super-form.vue2.cjs +1 -1
- package/lib/components/table/field.cjs +1 -1
- package/lib/components/table/index.d.ts +32 -32
- package/lib/components/table/use/use-columns.d.ts +801 -3
- package/lib/components/tabs/index.d.ts +6 -0
- package/lib/components/tabs/tab-nav.vue.d.ts +2 -0
- package/lib/components/tabs/tab-nav.vue2.cjs +1 -1
- package/lib/components/tabs/tabs.vue.d.ts +2 -0
- package/lib/components/tabs/tabs.vue2.cjs +1 -1
- package/lib/components/time-picker/common/picker.vue.d.ts +6 -21
- package/lib/components/time-picker/common/props.d.ts +2 -9
- package/lib/components/time-picker/composables/use-time-picker.d.ts +2 -2
- package/lib/components/time-picker/index.d.ts +8 -40
- package/lib/components/time-picker/time-picker.d.ts +4 -20
- package/lib/components/time-picker/utils.d.ts +1 -1
- package/lib/components/time-select/time-select.vue.d.ts +1 -1
- package/lib/components/tooltip/index.d.ts +16 -16
- package/lib/components/tooltip/utils.d.ts +1 -1
- package/lib/components/tree/index.d.ts +16 -16
- package/lib/components/upload/index.d.ts +1 -1
- package/lib/components/upload/upload.vue.d.ts +1 -1
- package/lib/components/upload/use-handlers.d.ts +21 -1
- package/lib/components/virtual-list/hooks/use-cache.d.ts +1 -1
- package/lib/hooks/use-id/index.d.ts +2 -1
- package/lib/hooks/use-model-toggle/index.d.ts +2 -2
- package/lib/hooks/use-popper/index.d.ts +70 -7
- package/lib/hooks/use-same-target/index.d.ts +3 -3
- package/lib/hooks/use-z-index/index.d.ts +1 -1
- 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/tags.json +1 -1
- package/theme-style/index.css +1 -1
- package/theme-style/src/clamp-tooltip.scss +0 -0
- package/theme-style/src/icon-text.scss +8 -0
- package/theme-style/src/switch.scss +56 -52
- package/theme-style/src/tabs.scss +11 -2
- package/theme-style/vft-clamp-tooltip.css +0 -0
- package/theme-style/vft-icon-text.css +1 -1
- package/theme-style/vft-switch.css +1 -1
- package/theme-style/vft-tabs.css +1 -1
- package/web-types.json +1 -1
|
@@ -3,18 +3,18 @@ import { useFullscreen as a } from "@vft/use";
|
|
|
3
3
|
import { delObjAttrNotExist as u } from "@vft/utils";
|
|
4
4
|
import { VftIconText as f } from "../icon-text/index.js";
|
|
5
5
|
import "@vueuse/core";
|
|
6
|
-
import { primaryColor as
|
|
6
|
+
import { primaryColor as x } from "../../utils/ns-cover.js";
|
|
7
7
|
import "lodash";
|
|
8
|
-
import { useNamespace as
|
|
8
|
+
import { useNamespace as _ } from "../../hooks/use-namespace/index.js";
|
|
9
9
|
import "@popperjs/core";
|
|
10
10
|
import "../../hooks/use-z-index/index.js";
|
|
11
11
|
const t = (
|
|
12
12
|
/* hoist-static*/
|
|
13
|
-
|
|
14
|
-
),
|
|
13
|
+
_("full-screen")
|
|
14
|
+
), d = r({
|
|
15
15
|
name: t.b()
|
|
16
|
-
}),
|
|
17
|
-
...
|
|
16
|
+
}), O = /* @__PURE__ */ r({
|
|
17
|
+
...d,
|
|
18
18
|
props: {
|
|
19
19
|
text: {},
|
|
20
20
|
icon: {},
|
|
@@ -25,11 +25,14 @@ const t = (
|
|
|
25
25
|
size: {},
|
|
26
26
|
direction: {},
|
|
27
27
|
pointer: { type: Boolean },
|
|
28
|
-
adjustOrigin: { type: Boolean }
|
|
28
|
+
adjustOrigin: { type: Boolean },
|
|
29
|
+
maxLines: {},
|
|
30
|
+
showTooltip: { type: Boolean },
|
|
31
|
+
clampTooltipCfg: {}
|
|
29
32
|
},
|
|
30
33
|
setup(n) {
|
|
31
|
-
const c = n, { toggle: i, isFullscreen: e } = a(), l =
|
|
32
|
-
return (C,
|
|
34
|
+
const c = n, { toggle: i, isFullscreen: e } = a(), l = x().value;
|
|
35
|
+
return (C, y) => (s(), p(o(f), m({
|
|
33
36
|
class: o(t).b(),
|
|
34
37
|
distance: 2,
|
|
35
38
|
"hover-color": o(l),
|
|
@@ -40,5 +43,5 @@ const t = (
|
|
|
40
43
|
}
|
|
41
44
|
});
|
|
42
45
|
export {
|
|
43
|
-
|
|
46
|
+
O as default
|
|
44
47
|
};
|
|
@@ -29,6 +29,15 @@ export declare const VftFullScreen: import("vft/es/utils").SFCWithInstall<import
|
|
|
29
29
|
adjustOrigin: {
|
|
30
30
|
type: globalThis.PropType<boolean>;
|
|
31
31
|
};
|
|
32
|
+
maxLines: {
|
|
33
|
+
type: globalThis.PropType<number>;
|
|
34
|
+
};
|
|
35
|
+
showTooltip: {
|
|
36
|
+
type: globalThis.PropType<boolean>;
|
|
37
|
+
};
|
|
38
|
+
clampTooltipCfg: {
|
|
39
|
+
type: globalThis.PropType<import("..").ClampTooltipProps>;
|
|
40
|
+
};
|
|
32
41
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
33
42
|
text: {
|
|
34
43
|
type: globalThis.PropType<string>;
|
|
@@ -60,5 +69,14 @@ export declare const VftFullScreen: import("vft/es/utils").SFCWithInstall<import
|
|
|
60
69
|
adjustOrigin: {
|
|
61
70
|
type: globalThis.PropType<boolean>;
|
|
62
71
|
};
|
|
72
|
+
maxLines: {
|
|
73
|
+
type: globalThis.PropType<number>;
|
|
74
|
+
};
|
|
75
|
+
showTooltip: {
|
|
76
|
+
type: globalThis.PropType<boolean>;
|
|
77
|
+
};
|
|
78
|
+
clampTooltipCfg: {
|
|
79
|
+
type: globalThis.PropType<import("..").ClampTooltipProps>;
|
|
80
|
+
};
|
|
63
81
|
}>>, {}, {}>> & Record<string, any>;
|
|
64
82
|
export default VftFullScreen;
|
|
@@ -8,6 +8,7 @@ import "../check-tag/index.js";
|
|
|
8
8
|
import "../checkbox/index.js";
|
|
9
9
|
import "../clamp/index.js";
|
|
10
10
|
import "../clamp-toggle/index.js";
|
|
11
|
+
import "../clamp-tooltip/index.js";
|
|
11
12
|
import "../col/index.js";
|
|
12
13
|
import "../collapse-transition/index.js";
|
|
13
14
|
import "../color-picker/index.js";
|
|
@@ -104,7 +105,7 @@ const $ = { class: "content" }, y = {
|
|
|
104
105
|
k("header-layout")
|
|
105
106
|
), N = f({
|
|
106
107
|
name: p.b()
|
|
107
|
-
}),
|
|
108
|
+
}), _t = /* @__PURE__ */ f({
|
|
108
109
|
...N,
|
|
109
110
|
props: {
|
|
110
111
|
logoCfg: {}
|
|
@@ -150,5 +151,5 @@ const $ = { class: "content" }, y = {
|
|
|
150
151
|
}
|
|
151
152
|
});
|
|
152
153
|
export {
|
|
153
|
-
|
|
154
|
+
_t as default
|
|
154
155
|
};
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { defineComponent as u, computed as
|
|
2
|
-
import { addUnit as
|
|
1
|
+
import { defineComponent as u, computed as a, openBlock as c, createElementBlock as l, normalizeClass as m, unref as i, normalizeStyle as f } from "vue";
|
|
2
|
+
import { addUnit as y } from "@vft/utils";
|
|
3
3
|
import "../config-provider/index.js";
|
|
4
4
|
import "@vueuse/core";
|
|
5
5
|
import { generateCssVars as C } from "../../utils/ns-cover.js";
|
|
6
6
|
import "lodash";
|
|
7
|
-
import { useNamespace as
|
|
7
|
+
import { useNamespace as g } from "../../hooks/use-namespace/index.js";
|
|
8
8
|
import "@popperjs/core";
|
|
9
9
|
import "../../hooks/use-z-index/index.js";
|
|
10
|
-
import { useGlobalConfig as
|
|
11
|
-
const
|
|
10
|
+
import { useGlobalConfig as h } from "../config-provider/hooks/use-global-config.js";
|
|
11
|
+
const z = ["src"], n = (
|
|
12
12
|
/* hoist-static*/
|
|
13
|
-
|
|
14
|
-
),
|
|
13
|
+
g("icon")
|
|
14
|
+
), I = u({
|
|
15
15
|
name: n.b()
|
|
16
|
-
}),
|
|
17
|
-
...
|
|
16
|
+
}), W = /* @__PURE__ */ u({
|
|
17
|
+
...I,
|
|
18
18
|
props: {
|
|
19
19
|
icon: {},
|
|
20
20
|
size: {},
|
|
@@ -25,31 +25,32 @@ const h = ["src"], n = (
|
|
|
25
25
|
hoverColor: {}
|
|
26
26
|
},
|
|
27
27
|
setup(o) {
|
|
28
|
-
|
|
28
|
+
var r;
|
|
29
|
+
const t = h(), s = a(
|
|
29
30
|
() => C(
|
|
30
31
|
{
|
|
31
|
-
size:
|
|
32
|
+
size: y(o.size),
|
|
32
33
|
color: o.color,
|
|
33
34
|
hoverColor: o.hoverColor,
|
|
34
35
|
cursor: o.pointer ? "pointer" : void 0,
|
|
35
|
-
animation: o.rotate ? `${
|
|
36
|
+
animation: o.rotate ? `${t.value.namespace}-rotate ${o.rotateSpeed}s linear 0s infinite` : void 0
|
|
36
37
|
},
|
|
37
38
|
"icon"
|
|
38
39
|
)
|
|
39
|
-
),
|
|
40
|
-
return (e,
|
|
40
|
+
), d = (e) => e == null ? void 0 : e.includes("/"), p = a(() => d(o.icon)), v = o.icon.startsWith((r = t.value) == null ? void 0 : r.iconifyPrefixClass) ? "" : t.value.iconfontClass;
|
|
41
|
+
return (e, B) => p.value ? (c(), l("img", {
|
|
41
42
|
key: 0,
|
|
42
|
-
class:
|
|
43
|
+
class: m(i(n).e("image")),
|
|
43
44
|
src: e.icon,
|
|
44
45
|
alt: "",
|
|
45
|
-
style:
|
|
46
|
-
}, null, 14,
|
|
46
|
+
style: f(s.value)
|
|
47
|
+
}, null, 14, z)) : (c(), l("i", {
|
|
47
48
|
key: 1,
|
|
48
|
-
class:
|
|
49
|
-
style:
|
|
49
|
+
class: m([i(n).b(), e.icon, i(v)]),
|
|
50
|
+
style: f(s.value)
|
|
50
51
|
}, null, 6));
|
|
51
52
|
}
|
|
52
53
|
});
|
|
53
54
|
export {
|
|
54
|
-
|
|
55
|
+
W as default
|
|
55
56
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type IconProps } from 'vft/es/components/icon';
|
|
2
|
+
import { type ClampTooltipProps } from 'vft/es/components/clamp-tooltip';
|
|
2
3
|
export interface IconTextProps {
|
|
3
4
|
text: string;
|
|
4
5
|
icon?: IconProps | string;
|
|
@@ -10,6 +11,10 @@ export interface IconTextProps {
|
|
|
10
11
|
direction?: 'col' | 'row';
|
|
11
12
|
pointer?: boolean;
|
|
12
13
|
adjustOrigin?: boolean;
|
|
14
|
+
/** 最多几行 */
|
|
15
|
+
maxLines?: number;
|
|
16
|
+
showTooltip?: boolean;
|
|
17
|
+
clampTooltipCfg?: ClampTooltipProps;
|
|
13
18
|
}
|
|
14
19
|
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<IconTextProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_TypePropsToRuntimeProps<IconTextProps>>>, {}, {}>;
|
|
15
20
|
export default _default;
|
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { singleAttrToObj as
|
|
3
|
-
import { VftIcon as
|
|
1
|
+
import { defineComponent as h, computed as t, openBlock as a, createElementBlock as S, normalizeClass as k, unref as r, normalizeStyle as V, createBlock as f, mergeProps as d, createCommentVNode as g, createVNode as w, normalizeProps as L, guardReactiveProps as O } from "vue";
|
|
2
|
+
import { singleAttrToObj as b, addUnit as y, removeUnit as j } from "@vft/utils";
|
|
3
|
+
import { VftIcon as C } from "../icon/index.js";
|
|
4
|
+
import { VftClampTooltip as N } from "../clamp-tooltip/index.js";
|
|
4
5
|
import "@vueuse/core";
|
|
5
|
-
import { generateCssVars as
|
|
6
|
+
import { generateCssVars as P } from "../../utils/ns-cover.js";
|
|
6
7
|
import "lodash";
|
|
7
|
-
import { useNamespace as
|
|
8
|
+
import { useNamespace as R } from "../../hooks/use-namespace/index.js";
|
|
8
9
|
import "@popperjs/core";
|
|
9
10
|
import "../../hooks/use-z-index/index.js";
|
|
10
11
|
const c = (
|
|
11
12
|
/* hoist-static*/
|
|
12
|
-
|
|
13
|
-
), U =
|
|
13
|
+
R("icon-text")
|
|
14
|
+
), U = h({
|
|
14
15
|
name: c.b()
|
|
15
|
-
}),
|
|
16
|
+
}), K = /* @__PURE__ */ h({
|
|
16
17
|
...U,
|
|
17
18
|
props: {
|
|
18
19
|
text: {},
|
|
@@ -24,41 +25,49 @@ const c = (
|
|
|
24
25
|
size: {},
|
|
25
26
|
direction: { default: "row" },
|
|
26
27
|
pointer: { type: Boolean },
|
|
27
|
-
adjustOrigin: { type: Boolean, default: !0 }
|
|
28
|
+
adjustOrigin: { type: Boolean, default: !0 },
|
|
29
|
+
maxLines: {},
|
|
30
|
+
showTooltip: { type: Boolean },
|
|
31
|
+
clampTooltipCfg: {}
|
|
28
32
|
},
|
|
29
33
|
setup(e) {
|
|
30
|
-
const
|
|
31
|
-
const
|
|
32
|
-
return s.value ? e.reverse ? { marginTop:
|
|
33
|
-
}), l =
|
|
34
|
-
const
|
|
34
|
+
const x = t(() => e.hoverColor ? e.hoverColor : e.color), n = t(() => b(e.icon, "icon", { size: e.size, color: e.color })), s = t(() => e.direction === "col"), u = t(() => {
|
|
35
|
+
const o = y(e.distance);
|
|
36
|
+
return s.value ? e.reverse ? { marginTop: o } : { marginBottom: o } : e.reverse ? { marginLeft: o } : { marginRight: o };
|
|
37
|
+
}), l = t(() => j(e.size)), i = t(() => l.value < 12), z = t(() => l.value && i.value ? { transform: `scale(${l.value / 12})` } : {}), T = t(() => {
|
|
38
|
+
const o = P(
|
|
35
39
|
{
|
|
36
40
|
cursor: e.pointer ? "pointer" : void 0,
|
|
37
41
|
color: e.color,
|
|
38
|
-
"hover-color":
|
|
39
|
-
fontSize: i.value ? "12px" :
|
|
42
|
+
"hover-color": x.value,
|
|
43
|
+
fontSize: i.value ? "12px" : y(e.size)
|
|
40
44
|
},
|
|
41
45
|
"icon-text"
|
|
42
46
|
);
|
|
43
47
|
return {
|
|
44
48
|
...i.value && e.adjustOrigin ? { transformOrigin: "left top" } : {},
|
|
45
|
-
...
|
|
46
|
-
...
|
|
49
|
+
...o,
|
|
50
|
+
...z.value
|
|
47
51
|
};
|
|
48
|
-
})
|
|
49
|
-
|
|
52
|
+
}), B = t(() => ({
|
|
53
|
+
text: e.text,
|
|
54
|
+
maxLines: e.maxLines,
|
|
55
|
+
showTooltip: e.showTooltip,
|
|
56
|
+
...e.clampTooltipCfg
|
|
57
|
+
}));
|
|
58
|
+
return (o, p) => {
|
|
50
59
|
var m, v;
|
|
51
|
-
return a(),
|
|
52
|
-
class:
|
|
53
|
-
style: V(
|
|
60
|
+
return a(), S("span", {
|
|
61
|
+
class: k([r(c).b(), r(c).is("col", s.value)]),
|
|
62
|
+
style: V(T.value)
|
|
54
63
|
}, [
|
|
55
|
-
!
|
|
56
|
-
|
|
57
|
-
|
|
64
|
+
!o.reverse && ((m = n.value) != null && m.icon) ? (a(), f(r(C), d({ key: 0 }, n.value, { style: u.value }), null, 16, ["style"])) : g("", !0),
|
|
65
|
+
w(r(N), L(O(B.value)), null, 16),
|
|
66
|
+
o.reverse && ((v = n.value) != null && v.icon) ? (a(), f(r(C), d({ key: 1 }, n.value, { style: u.value }), null, 16, ["style"])) : g("", !0)
|
|
58
67
|
], 6);
|
|
59
68
|
};
|
|
60
69
|
}
|
|
61
70
|
});
|
|
62
71
|
export {
|
|
63
|
-
|
|
72
|
+
K as default
|
|
64
73
|
};
|
|
@@ -30,6 +30,15 @@ export declare const VftIconText: import("vft/es/utils").SFCWithInstall<import("
|
|
|
30
30
|
adjustOrigin: {
|
|
31
31
|
type: globalThis.PropType<boolean>;
|
|
32
32
|
};
|
|
33
|
+
maxLines: {
|
|
34
|
+
type: globalThis.PropType<number>;
|
|
35
|
+
};
|
|
36
|
+
showTooltip: {
|
|
37
|
+
type: globalThis.PropType<boolean>;
|
|
38
|
+
};
|
|
39
|
+
clampTooltipCfg: {
|
|
40
|
+
type: globalThis.PropType<import("..").ClampTooltipProps>;
|
|
41
|
+
};
|
|
33
42
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
34
43
|
text: {
|
|
35
44
|
type: globalThis.PropType<string>;
|
|
@@ -62,6 +71,15 @@ export declare const VftIconText: import("vft/es/utils").SFCWithInstall<import("
|
|
|
62
71
|
adjustOrigin: {
|
|
63
72
|
type: globalThis.PropType<boolean>;
|
|
64
73
|
};
|
|
74
|
+
maxLines: {
|
|
75
|
+
type: globalThis.PropType<number>;
|
|
76
|
+
};
|
|
77
|
+
showTooltip: {
|
|
78
|
+
type: globalThis.PropType<boolean>;
|
|
79
|
+
};
|
|
80
|
+
clampTooltipCfg: {
|
|
81
|
+
type: globalThis.PropType<import("..").ClampTooltipProps>;
|
|
82
|
+
};
|
|
65
83
|
}>>, {}, {}>> & Record<string, any>;
|
|
66
84
|
export default VftIconText;
|
|
67
85
|
export { type IconTextProps } from './icon-text.vue';
|
package/es/components/index.d.ts
CHANGED