vft 0.0.66 → 0.0.67

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.
Files changed (61) hide show
  1. package/attributes.json +1 -1
  2. package/dist/index.css +1 -1
  3. package/es/components/alert/style/css.js +1 -0
  4. package/es/components/alert/style/index.js +1 -0
  5. package/es/components/avatar/style/css.js +1 -0
  6. package/es/components/avatar/style/index.js +1 -0
  7. package/es/components/button/style/css.js +1 -0
  8. package/es/components/button/style/index.js +1 -0
  9. package/es/components/button-group/style/css.js +1 -0
  10. package/es/components/button-group/style/index.js +1 -0
  11. package/es/components/color-picker/style/css.js +1 -0
  12. package/es/components/color-picker/style/index.js +1 -0
  13. package/es/components/full-screen/full-screen.vue.d.ts +3 -0
  14. package/es/components/full-screen/full-screen.vue2.js +23 -23
  15. package/es/components/icon/icon.vue.d.ts +8 -8
  16. package/es/components/icon/icon.vue2.js +30 -29
  17. package/es/components/icon/index.d.ts +6 -6
  18. package/es/components/icon-text/icon-text.vue.d.ts +28 -0
  19. package/es/components/icon-text/icon-text.vue2.js +29 -22
  20. package/es/components/icon-text/index.d.ts +17 -0
  21. package/es/components/loading/index.d.ts +2 -2
  22. package/es/components/loading/loading.d.ts +2 -2
  23. package/es/package.json.js +1 -1
  24. package/lib/components/alert/style/css.cjs +1 -1
  25. package/lib/components/alert/style/index.cjs +1 -1
  26. package/lib/components/avatar/style/css.cjs +1 -1
  27. package/lib/components/avatar/style/index.cjs +1 -1
  28. package/lib/components/button/style/css.cjs +1 -1
  29. package/lib/components/button/style/index.cjs +1 -1
  30. package/lib/components/button-group/style/css.cjs +1 -1
  31. package/lib/components/button-group/style/index.cjs +1 -1
  32. package/lib/components/color-picker/style/css.cjs +1 -1
  33. package/lib/components/color-picker/style/index.cjs +1 -1
  34. package/lib/components/full-screen/full-screen.vue.d.ts +3 -0
  35. package/lib/components/full-screen/full-screen.vue2.cjs +1 -1
  36. package/lib/components/icon/icon.vue.d.ts +8 -8
  37. package/lib/components/icon/icon.vue2.cjs +1 -1
  38. package/lib/components/icon/index.d.ts +6 -6
  39. package/lib/components/icon-text/icon-text.vue.d.ts +28 -0
  40. package/lib/components/icon-text/icon-text.vue2.cjs +1 -1
  41. package/lib/components/icon-text/index.d.ts +17 -0
  42. package/lib/components/loading/index.d.ts +2 -2
  43. package/lib/components/loading/loading.d.ts +2 -2
  44. package/lib/package.json.cjs +1 -1
  45. package/package.json +5 -5
  46. package/tags.json +1 -1
  47. package/theme-style/index.css +1 -1
  48. package/theme-style/src/common/var.scss +5 -2
  49. package/theme-style/src/full-screen.scss +3 -6
  50. package/theme-style/src/icon-text.scss +2 -5
  51. package/theme-style/src/icon.scss +7 -10
  52. package/theme-style/src/md/api.scss +8 -0
  53. package/theme-style/src/menu.scss +2 -2
  54. package/theme-style/src/page-wrapper.scss +1 -1
  55. package/theme-style/vft-full-screen.css +1 -1
  56. package/theme-style/vft-icon-text.css +1 -1
  57. package/theme-style/vft-icon.css +1 -1
  58. package/theme-style/vft-md-container.css +1 -1
  59. package/theme-style/vft-menu.css +1 -1
  60. package/theme-style/vft-page-wrapper.css +1 -1
  61. package/web-types.json +1 -1
@@ -1,2 +1,3 @@
1
1
  import "vft/theme-style/base.css";
2
+ import "vft/theme-style/vft-icon.css";
2
3
  import "vft/theme-style/wfly-alert.css";
@@ -1,2 +1,3 @@
1
1
  import "vft/theme-style/src/base.scss";
2
+ import "vft/theme-style/src/icon.scss";
2
3
  import "vft/theme-style/src/alert.scss";
@@ -1,4 +1,5 @@
1
1
  import "vft/theme-style/base.css";
2
2
  import "vft/theme-style/vft-image-viewer.css";
3
3
  import "vft/theme-style/vft-image.css";
4
+ import "vft/theme-style/vft-icon.css";
4
5
  import "vft/theme-style/vft-avatar.css";
@@ -1,4 +1,5 @@
1
1
  import "vft/theme-style/src/base.scss";
2
2
  import "vft/theme-style/src/image-viewer.scss";
3
3
  import "vft/theme-style/src/image.scss";
4
+ import "vft/theme-style/src/icon.scss";
4
5
  import "vft/theme-style/src/avatar.scss";
@@ -1,2 +1,3 @@
1
1
  import "vft/theme-style/base.css";
2
+ import "vft/theme-style/vft-icon.css";
2
3
  import "vft/theme-style/vft-button.css";
@@ -1,2 +1,3 @@
1
1
  import "vft/theme-style/src/base.scss";
2
+ import "vft/theme-style/src/icon.scss";
2
3
  import "vft/theme-style/src/button.scss";
@@ -1,2 +1,3 @@
1
1
  import "vft/theme-style/base.css";
2
+ import "vft/theme-style/vft-icon.css";
2
3
  import "vft/theme-style/vft-button-group.css";
@@ -1,2 +1,3 @@
1
1
  import "vft/theme-style/src/base.scss";
2
+ import "vft/theme-style/src/icon.scss";
2
3
  import "vft/theme-style/src/button-group.scss";
@@ -1,4 +1,5 @@
1
1
  import "vft/theme-style/base.css";
2
2
  import "vft/theme-style/vft-color-picker.css";
3
3
  import "vft/theme-style/vft-input.css";
4
+ import "vft/theme-style/vft-icon.css";
4
5
  import "vft/theme-style/vft-button.css";
@@ -1,4 +1,5 @@
1
1
  import "vft/theme-style/src/base.scss";
2
2
  import "vft/theme-style/src/color-picker.scss";
3
3
  import "vft/theme-style/src/input.scss";
4
+ import "vft/theme-style/src/icon.scss";
4
5
  import "vft/theme-style/src/button.scss";
@@ -1,2 +1,5 @@
1
+ import { type IconTextProps } from 'vft/es/components/icon-text';
2
+ export interface FullScreenProps extends Partial<IconTextProps> {
3
+ }
1
4
  declare const _sfc_main: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
2
5
  export default _sfc_main;
@@ -1,36 +1,36 @@
1
- import { defineComponent as n, openBlock as l, createElementBlock as c, normalizeClass as m, unref as e, createVNode as p, createElementVNode as a, toDisplayString as u } from "vue";
2
- import { useFullscreen as f } from "@vft/use";
3
- import { VftIcon as d } from "../icon/index.js";
4
- import { useNamespace as _ } from "../../hooks/use-namespace/index.js";
1
+ import { defineComponent as e, openBlock as l, createBlock as p, unref as o, mergeProps as m } from "vue";
2
+ import { useFullscreen as a } from "@vft/use";
3
+ import { VftIconText as u } from "../icon-text/index.js";
4
+ import { useNamespace as f } from "../../hooks/use-namespace/index.js";
5
5
  import "@popperjs/core";
6
6
  import "lodash";
7
7
  import "../../hooks/use-z-index/index.js";
8
8
  import "@vueuse/core";
9
9
  import "@vft/utils";
10
- import "../../utils/ns-cover.js";
10
+ import { primaryColor as _ } from "../../utils/ns-cover.js";
11
11
  import "@vue/reactivity";
12
12
  import "@vue/shared";
13
- const i = (
13
+ const t = (
14
14
  /* hoist-static*/
15
- _("full-screen")
16
- ), x = n({
17
- name: i.b()
18
- }), S = /* @__PURE__ */ n({
15
+ f("full-screen")
16
+ ), x = e({
17
+ name: t.b()
18
+ }), V = /* @__PURE__ */ e({
19
19
  ...x,
20
- setup(g) {
21
- const { toggle: o, isFullscreen: r } = f();
22
- return (k, t) => (l(), c("div", {
23
- class: m([e(i).b(), "cursor-pointer"]),
24
- onClick: t[0] || (t[0] = //@ts-ignore
25
- (...s) => e(o) && e(o)(...s))
26
- }, [
27
- p(e(d), {
28
- icon: e(r) ? "ico-radix-icons:exit-full-screen" : "ico-radix-icons:enter-full-screen"
29
- }, null, 8, ["icon"]),
30
- a("span", null, u(e(r) ? "退出全屏" : "全屏"), 1)
31
- ], 2));
20
+ props: {},
21
+ setup(c) {
22
+ const n = c, { toggle: i, isFullscreen: r } = a(), s = _().value;
23
+ return (d, C) => (l(), p(o(u), m({
24
+ class: o(t).b(),
25
+ distance: 2,
26
+ pointer: "",
27
+ "hover-color": o(s),
28
+ onClick: o(i),
29
+ icon: o(r) ? "ico-radix-icons:exit-full-screen" : "ico-radix-icons:enter-full-screen",
30
+ text: o(r) ? "退出全屏" : "全屏"
31
+ }, n), null, 16, ["class", "hover-color", "onClick", "icon", "text"]));
32
32
  }
33
33
  });
34
34
  export {
35
- S as default
35
+ V as default
36
36
  };
@@ -8,8 +8,8 @@ export interface IconProps {
8
8
  color?: string;
9
9
  rotate?: boolean;
10
10
  rotateSpeed?: number;
11
- cursor?: boolean;
12
- scale?: number;
11
+ pointer?: boolean;
12
+ hoverColor?: string;
13
13
  }
14
14
  declare const _sfc_main: import("vue").DefineComponent<{
15
15
  icon: {
@@ -32,12 +32,12 @@ declare const _sfc_main: import("vue").DefineComponent<{
32
32
  type: __PropType<number | undefined>;
33
33
  required: false;
34
34
  };
35
- cursor: {
35
+ pointer: {
36
36
  type: __PropType<boolean | undefined>;
37
37
  required: false;
38
38
  };
39
- scale: {
40
- type: __PropType<number | undefined>;
39
+ hoverColor: {
40
+ type: __PropType<string | undefined>;
41
41
  required: false;
42
42
  };
43
43
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
@@ -61,12 +61,12 @@ declare const _sfc_main: import("vue").DefineComponent<{
61
61
  type: __PropType<number | undefined>;
62
62
  required: false;
63
63
  };
64
- cursor: {
64
+ pointer: {
65
65
  type: __PropType<boolean | undefined>;
66
66
  required: false;
67
67
  };
68
- scale: {
69
- type: __PropType<number | undefined>;
68
+ hoverColor: {
69
+ type: __PropType<string | undefined>;
70
70
  required: false;
71
71
  };
72
72
  }>>, {}>;
@@ -1,48 +1,49 @@
1
- import { defineComponent as r, computed as i, unref as t, openBlock as n, createElementBlock as l, normalizeClass as c, normalizeStyle as d } from "vue";
2
- import { addUnit as y } from "@vft/utils";
3
- import { useNamespace as p } from "../../hooks/use-namespace/index.js";
1
+ import { defineComponent as m, computed as r, unref as e, openBlock as l, createElementBlock as c, normalizeClass as s, normalizeStyle as a } from "vue";
2
+ import { addUnit as p } from "@vft/utils";
3
+ import { useNamespace as y } from "../../hooks/use-namespace/index.js";
4
4
  import "@popperjs/core";
5
5
  import "lodash";
6
6
  import "../../hooks/use-z-index/index.js";
7
7
  import "@vueuse/core";
8
- import "../../utils/ns-cover.js";
8
+ import { generateCssVars as g } from "../../utils/ns-cover.js";
9
9
  import "@vue/reactivity";
10
10
  import "@vue/shared";
11
11
  import "../config-provider/index.js";
12
- import { useGlobalConfig as g } from "../config-provider/hooks/use-global-config.js";
13
- const z = ["src"], s = (
12
+ import { useGlobalConfig as C } from "../config-provider/hooks/use-global-config.js";
13
+ const v = ["src"], i = (
14
14
  /* hoist-static*/
15
- p("icon")
16
- ), k = r({
17
- name: s.b()
18
- }), j = /* @__PURE__ */ r({
19
- ...k,
15
+ y("icon")
16
+ ), h = m({
17
+ name: i.b()
18
+ }), j = /* @__PURE__ */ m({
19
+ ...h,
20
20
  props: {
21
21
  icon: null,
22
- size: { default: 14 },
22
+ size: null,
23
23
  color: null,
24
24
  rotate: { type: Boolean },
25
25
  rotateSpeed: { default: 2 },
26
- cursor: { type: Boolean },
27
- scale: null
26
+ pointer: { type: Boolean },
27
+ hoverColor: null
28
28
  },
29
- setup(e) {
30
- const a = g(), m = i(() => ({
31
- color: e.color,
32
- fontSize: e.size ? y(e.size) : "14px",
33
- animation: e.rotate ? `${a.value.namespace}-rotate ${e.rotateSpeed}s linear 0s infinite` : void 0,
34
- cursor: e.cursor ? "pointer" : void 0,
35
- transform: e.scale ? `scale(${e.scale})` : void 0
36
- })), u = (o) => o == null ? void 0 : o.includes("/"), f = i(() => u(e.icon));
37
- return (o, v) => t(f) ? (n(), l("img", {
29
+ setup(o) {
30
+ const u = C(), n = r(() => g({
31
+ size: p(o.size),
32
+ color: o.color,
33
+ hoverColor: o.hoverColor,
34
+ cursor: o.pointer ? "pointer" : void 0,
35
+ animation: o.rotate ? `${u.value.namespace}-rotate ${o.rotateSpeed}s linear 0s infinite` : void 0
36
+ }, "icon")), f = (t) => t == null ? void 0 : t.includes("/"), d = r(() => f(o.icon));
37
+ return (t, z) => e(d) ? (l(), c("img", {
38
38
  key: 0,
39
- class: c(t(s).e("image")),
40
- src: e.icon,
41
- alt: ""
42
- }, null, 10, z)) : (n(), l("i", {
39
+ class: s(e(i).e("image")),
40
+ src: o.icon,
41
+ alt: "",
42
+ style: a(e(n))
43
+ }, null, 14, v)) : (l(), c("i", {
43
44
  key: 1,
44
- class: c([e.icon]),
45
- style: d(t(m))
45
+ class: s([e(i).b(), o.icon]),
46
+ style: a(e(n))
46
47
  }, null, 6));
47
48
  }
48
49
  });
@@ -21,12 +21,12 @@ export declare const VftIcon: import("vft/es/utils").SFCWithInstall<import("vue"
21
21
  type: import("vue").PropType<number | undefined>;
22
22
  required: false;
23
23
  };
24
- cursor: {
24
+ pointer: {
25
25
  type: import("vue").PropType<boolean | undefined>;
26
26
  required: false;
27
27
  };
28
- scale: {
29
- type: import("vue").PropType<number | undefined>;
28
+ hoverColor: {
29
+ type: import("vue").PropType<string | undefined>;
30
30
  required: false;
31
31
  };
32
32
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
@@ -50,12 +50,12 @@ export declare const VftIcon: import("vft/es/utils").SFCWithInstall<import("vue"
50
50
  type: import("vue").PropType<number | undefined>;
51
51
  required: false;
52
52
  };
53
- cursor: {
53
+ pointer: {
54
54
  type: import("vue").PropType<boolean | undefined>;
55
55
  required: false;
56
56
  };
57
- scale: {
58
- type: import("vue").PropType<number | undefined>;
57
+ hoverColor: {
58
+ type: import("vue").PropType<string | undefined>;
59
59
  required: false;
60
60
  };
61
61
  }>>, {}>> & Record<string, any>;
@@ -1,5 +1,17 @@
1
1
  import type { PropType as __PropType } from 'vue';
2
2
  import { type IconProps } from 'vft/es/components/icon';
3
+ export interface IconTextProps {
4
+ text: string;
5
+ icon: IconProps | string;
6
+ color?: string;
7
+ hoverColor?: string;
8
+ distance?: string | number;
9
+ reverse?: boolean;
10
+ size?: string | number;
11
+ direction?: 'col' | 'row';
12
+ pointer?: boolean;
13
+ adjustOrigin?: boolean;
14
+ }
3
15
  declare const _sfc_main: import("vue").DefineComponent<{
4
16
  text: {
5
17
  type: __PropType<string>;
@@ -33,6 +45,14 @@ declare const _sfc_main: import("vue").DefineComponent<{
33
45
  type: __PropType<"row" | "col" | undefined>;
34
46
  required: false;
35
47
  };
48
+ pointer: {
49
+ type: __PropType<boolean | undefined>;
50
+ required: false;
51
+ };
52
+ adjustOrigin: {
53
+ type: __PropType<boolean | undefined>;
54
+ required: false;
55
+ };
36
56
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
37
57
  text: {
38
58
  type: __PropType<string>;
@@ -66,5 +86,13 @@ declare const _sfc_main: import("vue").DefineComponent<{
66
86
  type: __PropType<"row" | "col" | undefined>;
67
87
  required: false;
68
88
  };
89
+ pointer: {
90
+ type: __PropType<boolean | undefined>;
91
+ required: false;
92
+ };
93
+ adjustOrigin: {
94
+ type: __PropType<boolean | undefined>;
95
+ required: false;
96
+ };
69
97
  }>>, {}>;
70
98
  export default _sfc_main;
@@ -1,11 +1,11 @@
1
- import { defineComponent as y, computed as o, openBlock as l, createElementBlock as h, normalizeClass as k, unref as t, normalizeStyle as B, createBlock as s, mergeProps as m, createCommentVNode as u, createElementVNode as S, toDisplayString as V } from "vue";
2
- import { VftIcon as v } from "../icon/index.js";
1
+ import { defineComponent as y, computed as o, openBlock as i, createElementBlock as S, normalizeClass as B, unref as t, normalizeStyle as k, createBlock as u, mergeProps as m, createCommentVNode as v, createElementVNode as O, toDisplayString as V } from "vue";
2
+ import { VftIcon as d } from "../icon/index.js";
3
3
  import { useNamespace as b } from "../../hooks/use-namespace/index.js";
4
4
  import "@popperjs/core";
5
5
  import "lodash";
6
6
  import "../../hooks/use-z-index/index.js";
7
7
  import "@vueuse/core";
8
- import { singleAttrToObj as N, addUnit as f, removeUnit as d } from "@vft/utils";
8
+ import { singleAttrToObj as j, addUnit as f, removeUnit as N } from "@vft/utils";
9
9
  import { generateCssVars as E } from "../../utils/ns-cover.js";
10
10
  import "@vue/reactivity";
11
11
  import "@vue/shared";
@@ -14,7 +14,7 @@ const g = (
14
14
  b("icon-text")
15
15
  ), T = y({
16
16
  name: g.b()
17
- }), F = /* @__PURE__ */ y({
17
+ }), G = /* @__PURE__ */ y({
18
18
  ...T,
19
19
  props: {
20
20
  text: null,
@@ -24,30 +24,37 @@ const g = (
24
24
  distance: null,
25
25
  reverse: { type: Boolean },
26
26
  size: null,
27
- direction: { default: "row" }
27
+ direction: { default: "row" },
28
+ pointer: { type: Boolean },
29
+ adjustOrigin: { type: Boolean, default: !0 }
28
30
  },
29
31
  setup(e) {
30
- const x = o(() => e.hoverColor ? e.hoverColor : e.color), c = o(() => N(e.icon, "icon", { size: e.size, color: e.color })), i = o(() => e.direction === "col"), a = o(() => {
31
- const r = f(e.distance);
32
- return i.value ? e.reverse ? { marginTop: r } : { marginBottom: r } : e.reverse ? { marginLeft: r } : { marginRight: r };
33
- }), n = o(() => d(e.size)), z = o(() => n.value && d(n.value) < 12 ? { transform: `scale(${n.value / 12})` } : {}), C = o(() => ({
34
- ...E({
32
+ const h = o(() => e.hoverColor ? e.hoverColor : e.color), c = o(() => j(e.icon, "icon", { size: e.size, color: e.color })), a = o(() => e.direction === "col"), s = o(() => {
33
+ const n = f(e.distance);
34
+ return a.value ? e.reverse ? { marginTop: n } : { marginBottom: n } : e.reverse ? { marginLeft: n } : { marginRight: n };
35
+ }), r = o(() => N(e.size)), l = o(() => r.value < 12), x = o(() => r.value && l.value ? { transform: `scale(${r.value / 12})` } : {}), z = o(() => {
36
+ const n = E({
37
+ cursor: e.pointer ? "pointer" : void 0,
35
38
  color: e.color,
36
- "hover-color": x.value,
37
- fontSize: n.value < 12 ? "12px" : f(e.size)
38
- }, "icon-text"),
39
- ...z.value
40
- }));
41
- return (r, U) => (l(), h("span", {
42
- class: k([t(g).b(), { "flex-col": t(i) }]),
43
- style: B(t(C))
39
+ "hover-color": h.value,
40
+ fontSize: l.value ? "12px" : f(e.size)
41
+ }, "icon-text");
42
+ return {
43
+ ...l.value && e.adjustOrigin ? { transformOrigin: "left top" } : {},
44
+ ...n,
45
+ ...x.value
46
+ };
47
+ });
48
+ return (n, C) => (i(), S("span", {
49
+ class: B([t(g).b(), { "flex-col": t(a) }]),
50
+ style: k(t(z))
44
51
  }, [
45
- e.reverse ? u("", !0) : (l(), s(t(v), m({ key: 0 }, t(c), { style: t(a) }), null, 16, ["style"])),
46
- S("span", null, V(e.text), 1),
47
- e.reverse ? (l(), s(t(v), m({ key: 1 }, t(c), { style: t(a) }), null, 16, ["style"])) : u("", !0)
52
+ e.reverse ? v("", !0) : (i(), u(t(d), m({ key: 0 }, t(c), { style: t(s) }), null, 16, ["style"])),
53
+ O("span", null, V(e.text), 1),
54
+ e.reverse ? (i(), u(t(d), m({ key: 1 }, t(c), { style: t(s) }), null, 16, ["style"])) : v("", !0)
48
55
  ], 6));
49
56
  }
50
57
  });
51
58
  export {
52
- F as default
59
+ G as default
53
60
  };
@@ -31,6 +31,14 @@ export declare const VftIconText: import("vft/es/utils").SFCWithInstall<import("
31
31
  type: import("vue").PropType<"row" | "col" | undefined>;
32
32
  required: false;
33
33
  };
34
+ pointer: {
35
+ type: import("vue").PropType<boolean | undefined>;
36
+ required: false;
37
+ };
38
+ adjustOrigin: {
39
+ type: import("vue").PropType<boolean | undefined>;
40
+ required: false;
41
+ };
34
42
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
35
43
  text: {
36
44
  type: import("vue").PropType<string>;
@@ -64,5 +72,14 @@ export declare const VftIconText: import("vft/es/utils").SFCWithInstall<import("
64
72
  type: import("vue").PropType<"row" | "col" | undefined>;
65
73
  required: false;
66
74
  };
75
+ pointer: {
76
+ type: import("vue").PropType<boolean | undefined>;
77
+ required: false;
78
+ };
79
+ adjustOrigin: {
80
+ type: import("vue").PropType<boolean | undefined>;
81
+ required: false;
82
+ };
67
83
  }>>, {}>> & Record<string, any>;
68
84
  export default VftIconText;
85
+ export { type IconTextProps } from './icon-text.vue';
@@ -29,8 +29,8 @@ export declare const VftLoading: {
29
29
  color?: string | undefined;
30
30
  rotate?: boolean | undefined;
31
31
  rotateSpeed?: number | undefined;
32
- cursor?: boolean | undefined;
33
- scale?: number | undefined;
32
+ pointer?: boolean | undefined;
33
+ hoverColor?: string | undefined;
34
34
  }>;
35
35
  text: import("vue").Ref<string>;
36
36
  fullscreen: import("vue").Ref<boolean>;
@@ -21,8 +21,8 @@ export declare function createLoadingComponent(options: LoadingOptionsResolved):
21
21
  color?: string | undefined;
22
22
  rotate?: boolean | undefined;
23
23
  rotateSpeed?: number | undefined;
24
- cursor?: boolean | undefined;
25
- scale?: number | undefined;
24
+ pointer?: boolean | undefined;
25
+ hoverColor?: string | undefined;
26
26
  }>;
27
27
  text: import("vue").Ref<string>;
28
28
  fullscreen: import("vue").Ref<boolean>;
@@ -1,4 +1,4 @@
1
- const o = "0.0.66";
1
+ const o = "0.0.67";
2
2
  export {
3
3
  o as version
4
4
  };
@@ -1 +1 @@
1
- "use strict";require("vft/theme-style/base.css");require("vft/theme-style/wfly-alert.css");
1
+ "use strict";require("vft/theme-style/base.css");require("vft/theme-style/vft-icon.css");require("vft/theme-style/wfly-alert.css");
@@ -1 +1 @@
1
- "use strict";require("vft/theme-style/src/base.scss");require("vft/theme-style/src/alert.scss");
1
+ "use strict";require("vft/theme-style/src/base.scss");require("vft/theme-style/src/icon.scss");require("vft/theme-style/src/alert.scss");
@@ -1 +1 @@
1
- "use strict";require("vft/theme-style/base.css");require("vft/theme-style/vft-image-viewer.css");require("vft/theme-style/vft-image.css");require("vft/theme-style/vft-avatar.css");
1
+ "use strict";require("vft/theme-style/base.css");require("vft/theme-style/vft-image-viewer.css");require("vft/theme-style/vft-image.css");require("vft/theme-style/vft-icon.css");require("vft/theme-style/vft-avatar.css");
@@ -1 +1 @@
1
- "use strict";require("vft/theme-style/src/base.scss");require("vft/theme-style/src/image-viewer.scss");require("vft/theme-style/src/image.scss");require("vft/theme-style/src/avatar.scss");
1
+ "use strict";require("vft/theme-style/src/base.scss");require("vft/theme-style/src/image-viewer.scss");require("vft/theme-style/src/image.scss");require("vft/theme-style/src/icon.scss");require("vft/theme-style/src/avatar.scss");
@@ -1 +1 @@
1
- "use strict";require("vft/theme-style/base.css");require("vft/theme-style/vft-button.css");
1
+ "use strict";require("vft/theme-style/base.css");require("vft/theme-style/vft-icon.css");require("vft/theme-style/vft-button.css");
@@ -1 +1 @@
1
- "use strict";require("vft/theme-style/src/base.scss");require("vft/theme-style/src/button.scss");
1
+ "use strict";require("vft/theme-style/src/base.scss");require("vft/theme-style/src/icon.scss");require("vft/theme-style/src/button.scss");
@@ -1 +1 @@
1
- "use strict";require("vft/theme-style/base.css");require("vft/theme-style/vft-button-group.css");
1
+ "use strict";require("vft/theme-style/base.css");require("vft/theme-style/vft-icon.css");require("vft/theme-style/vft-button-group.css");
@@ -1 +1 @@
1
- "use strict";require("vft/theme-style/src/base.scss");require("vft/theme-style/src/button-group.scss");
1
+ "use strict";require("vft/theme-style/src/base.scss");require("vft/theme-style/src/icon.scss");require("vft/theme-style/src/button-group.scss");
@@ -1 +1 @@
1
- "use strict";require("vft/theme-style/base.css");require("vft/theme-style/vft-color-picker.css");require("vft/theme-style/vft-input.css");require("vft/theme-style/vft-button.css");
1
+ "use strict";require("vft/theme-style/base.css");require("vft/theme-style/vft-color-picker.css");require("vft/theme-style/vft-input.css");require("vft/theme-style/vft-icon.css");require("vft/theme-style/vft-button.css");
@@ -1 +1 @@
1
- "use strict";require("vft/theme-style/src/base.scss");require("vft/theme-style/src/color-picker.scss");require("vft/theme-style/src/input.scss");require("vft/theme-style/src/button.scss");
1
+ "use strict";require("vft/theme-style/src/base.scss");require("vft/theme-style/src/color-picker.scss");require("vft/theme-style/src/input.scss");require("vft/theme-style/src/icon.scss");require("vft/theme-style/src/button.scss");
@@ -1,2 +1,5 @@
1
+ import { type IconTextProps } from 'vft/es/components/icon-text';
2
+ export interface FullScreenProps extends Partial<IconTextProps> {
3
+ }
1
4
  declare const _sfc_main: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
2
5
  export default _sfc_main;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),s=require("@vft/use"),t=require("../icon/index.cjs"),c=require("../../hooks/use-namespace/index.cjs");require("@popperjs/core");require("lodash");require("../../hooks/use-z-index/index.cjs");require("@vueuse/core");require("@vft/utils");require("../../utils/ns-cover.cjs");require("@vue/reactivity");require("@vue/shared");const i=c.useNamespace("full-screen"),l=e.defineComponent({name:i.b()}),a=e.defineComponent({...l,setup(f){const{toggle:r,isFullscreen:n}=s.useFullscreen();return(d,u)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(i).b(),"cursor-pointer"]),onClick:u[0]||(u[0]=(...o)=>e.unref(r)&&e.unref(r)(...o))},[e.createVNode(e.unref(t.VftIcon),{icon:e.unref(n)?"ico-radix-icons:exit-full-screen":"ico-radix-icons:enter-full-screen"},null,8,["icon"]),e.createElementVNode("span",null,e.toDisplayString(e.unref(n)?"退出全屏":"全屏"),1)],2))}});exports.default=a;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),t=require("@vft/use"),i=require("../icon-text/index.cjs"),l=require("../../hooks/use-namespace/index.cjs");require("@popperjs/core");require("lodash");require("../../hooks/use-z-index/index.cjs");require("@vueuse/core");require("@vft/utils");const a=require("../../utils/ns-cover.cjs");require("@vue/reactivity");require("@vue/shared");const n=l.useNamespace("full-screen"),f=e.defineComponent({name:n.b()}),p=e.defineComponent({...f,props:{},setup(o){const c=o,{toggle:u,isFullscreen:r}=t.useFullscreen(),s=a.primaryColor().value;return(d,q)=>(e.openBlock(),e.createBlock(e.unref(i.VftIconText),e.mergeProps({class:e.unref(n).b(),distance:2,pointer:"","hover-color":e.unref(s),onClick:e.unref(u),icon:e.unref(r)?"ico-radix-icons:exit-full-screen":"ico-radix-icons:enter-full-screen",text:e.unref(r)?"退出全屏":"全屏"},c),null,16,["class","hover-color","onClick","icon","text"]))}});exports.default=p;
@@ -8,8 +8,8 @@ export interface IconProps {
8
8
  color?: string;
9
9
  rotate?: boolean;
10
10
  rotateSpeed?: number;
11
- cursor?: boolean;
12
- scale?: number;
11
+ pointer?: boolean;
12
+ hoverColor?: string;
13
13
  }
14
14
  declare const _sfc_main: import("vue").DefineComponent<{
15
15
  icon: {
@@ -32,12 +32,12 @@ declare const _sfc_main: import("vue").DefineComponent<{
32
32
  type: __PropType<number | undefined>;
33
33
  required: false;
34
34
  };
35
- cursor: {
35
+ pointer: {
36
36
  type: __PropType<boolean | undefined>;
37
37
  required: false;
38
38
  };
39
- scale: {
40
- type: __PropType<number | undefined>;
39
+ hoverColor: {
40
+ type: __PropType<string | undefined>;
41
41
  required: false;
42
42
  };
43
43
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
@@ -61,12 +61,12 @@ declare const _sfc_main: import("vue").DefineComponent<{
61
61
  type: __PropType<number | undefined>;
62
62
  required: false;
63
63
  };
64
- cursor: {
64
+ pointer: {
65
65
  type: __PropType<boolean | undefined>;
66
66
  required: false;
67
67
  };
68
- scale: {
69
- type: __PropType<number | undefined>;
68
+ hoverColor: {
69
+ type: __PropType<string | undefined>;
70
70
  required: false;
71
71
  };
72
72
  }>>, {}>;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),s=require("@vft/utils"),u=require("../../hooks/use-namespace/index.cjs");require("@popperjs/core");require("lodash");require("../../hooks/use-z-index/index.cjs");require("@vueuse/core");require("../../utils/ns-cover.cjs");require("@vue/reactivity");require("@vue/shared");require("../config-provider/index.cjs");const a=require("../config-provider/hooks/use-global-config.cjs"),d=["src"],o=u.useNamespace("icon"),f=e.defineComponent({name:o.b()}),m=e.defineComponent({...f,props:{icon:null,size:{default:14},color:null,rotate:{type:Boolean},rotateSpeed:{default:2},cursor:{type:Boolean},scale:null},setup(t){const l=a.useGlobalConfig(),i=e.computed(()=>({color:t.color,fontSize:t.size?s.addUnit(t.size):"14px",animation:t.rotate?`${l.value.namespace}-rotate ${t.rotateSpeed}s linear 0s infinite`:void 0,cursor:t.cursor?"pointer":void 0,transform:t.scale?`scale(${t.scale})`:void 0})),r=n=>n==null?void 0:n.includes("/"),c=e.computed(()=>r(t.icon));return(n,q)=>e.unref(c)?(e.openBlock(),e.createElementBlock("img",{key:0,class:e.normalizeClass(e.unref(o).e("image")),src:t.icon,alt:""},null,10,d)):(e.openBlock(),e.createElementBlock("i",{key:1,class:e.normalizeClass([t.icon]),style:e.normalizeStyle(e.unref(i))},null,6))}});exports.default=m;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),s=require("@vft/utils"),u=require("../../hooks/use-namespace/index.cjs");require("@popperjs/core");require("lodash");require("../../hooks/use-z-index/index.cjs");require("@vueuse/core");const a=require("../../utils/ns-cover.cjs");require("@vue/reactivity");require("@vue/shared");require("../config-provider/index.cjs");const d=require("../config-provider/hooks/use-global-config.cjs"),f=["src"],r=u.useNamespace("icon"),m=e.defineComponent({name:r.b()}),q=e.defineComponent({...m,props:{icon:null,size:null,color:null,rotate:{type:Boolean},rotateSpeed:{default:2},pointer:{type:Boolean},hoverColor:null},setup(o){const i=d.useGlobalConfig(),t=e.computed(()=>a.generateCssVars({size:s.addUnit(o.size),color:o.color,hoverColor:o.hoverColor,cursor:o.pointer?"pointer":void 0,animation:o.rotate?`${i.value.namespace}-rotate ${o.rotateSpeed}s linear 0s infinite`:void 0},"icon")),l=n=>n==null?void 0:n.includes("/"),c=e.computed(()=>l(o.icon));return(n,C)=>e.unref(c)?(e.openBlock(),e.createElementBlock("img",{key:0,class:e.normalizeClass(e.unref(r).e("image")),src:o.icon,alt:"",style:e.normalizeStyle(e.unref(t))},null,14,f)):(e.openBlock(),e.createElementBlock("i",{key:1,class:e.normalizeClass([e.unref(r).b(),o.icon]),style:e.normalizeStyle(e.unref(t))},null,6))}});exports.default=q;