vft 0.0.162 → 0.0.164

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 (50) hide show
  1. package/dist/index.css +1 -1
  2. package/es/components/button/use-button.js +3 -3
  3. package/es/components/carousel/carousel.vue.d.ts +1 -1
  4. package/es/components/carousel/carousel.vue2.js +22 -26
  5. package/es/components/carousel/index.d.ts +11 -11
  6. package/es/components/checkbox/index.d.ts +12 -12
  7. package/es/components/header-layout/header-layout.vue2.js +14 -14
  8. package/es/components/index.js +113 -113
  9. package/es/components/link/index.d.ts +4 -4
  10. package/es/components/popper/composables/use-content.d.ts +2 -2
  11. package/es/components/select/option-item.vue.d.ts +1 -1
  12. package/es/components/table/index.d.ts +114 -114
  13. package/es/components/table/table.vue.d.ts +13 -13
  14. package/es/components/time-select/time-select.vue.d.ts +1 -1
  15. package/es/components/tree/index.d.ts +42 -42
  16. package/es/components/tree/tree.vue.d.ts +7 -7
  17. package/es/components/upload/index.d.ts +19 -19
  18. package/es/components/upload/upload-content.vue.d.ts +1 -1
  19. package/es/components/upload/upload.vue.d.ts +1 -1
  20. package/es/hooks/use-popper/index.d.ts +2 -2
  21. package/es/index.js +113 -113
  22. package/es/package.json.d.ts +1 -1
  23. package/es/package.json.js +1 -1
  24. package/lib/components/button/use-button.cjs +1 -1
  25. package/lib/components/carousel/carousel.vue.d.ts +1 -1
  26. package/lib/components/carousel/carousel.vue2.cjs +1 -1
  27. package/lib/components/carousel/index.d.ts +11 -11
  28. package/lib/components/checkbox/index.d.ts +12 -12
  29. package/lib/components/header-layout/header-layout.vue2.cjs +1 -1
  30. package/lib/components/index.cjs +1 -1
  31. package/lib/components/link/index.d.ts +4 -4
  32. package/lib/components/popper/composables/use-content.d.ts +2 -2
  33. package/lib/components/select/option-item.vue.d.ts +1 -1
  34. package/lib/components/table/index.d.ts +114 -114
  35. package/lib/components/table/table.vue.d.ts +13 -13
  36. package/lib/components/time-select/time-select.vue.d.ts +1 -1
  37. package/lib/components/tree/index.d.ts +42 -42
  38. package/lib/components/tree/tree.vue.d.ts +7 -7
  39. package/lib/components/upload/index.d.ts +19 -19
  40. package/lib/components/upload/upload-content.vue.d.ts +1 -1
  41. package/lib/components/upload/upload.vue.d.ts +1 -1
  42. package/lib/hooks/use-popper/index.d.ts +2 -2
  43. package/lib/index.cjs +1 -1
  44. package/lib/package.json.cjs +1 -1
  45. package/lib/package.json.d.ts +1 -1
  46. package/package.json +6 -6
  47. package/theme-style/index.css +1 -1
  48. package/theme-style/src/header-layout.scss +4 -0
  49. package/theme-style/vft-header-layout.css +1 -1
  50. package/web-types.json +1 -1
@@ -3,11 +3,11 @@ import "../form/index.js";
3
3
  import { useThrottleFn as T } from "@vueuse/core";
4
4
  import { inject as _, computed as i, ref as k, useSlots as p, Text as I } from "vue";
5
5
  import { buttonGroupContextKey as S } from "./constants.js";
6
- import { useGlobalConfig as z } from "../config-provider/hooks/use-global-config.js";
7
- import { useFormItem as C } from "../form/hooks/use-form-item.js";
6
+ import { useFormItem as z } from "../form/hooks/use-form-item.js";
7
+ import { useGlobalConfig as C } from "../config-provider/hooks/use-global-config.js";
8
8
  import { useFormSize as D, useFormDisabled as j } from "../form/hooks/use-form-common-props.js";
9
9
  const H = (t, u) => {
10
- const o = _(S, void 0), m = z("button"), { form: s } = C(), d = D(i(() => o == null ? void 0 : o.size)), c = j(), f = k(), r = p(), h = i(() => t.type || (o == null ? void 0 : o.type) || ""), g = i(
10
+ const o = _(S, void 0), m = C("button"), { form: s } = z(), d = D(i(() => o == null ? void 0 : o.size)), c = j(), f = k(), r = p(), h = i(() => t.type || (o == null ? void 0 : o.type) || ""), g = i(
11
11
  () => {
12
12
  var e;
13
13
  return t.autoInsertSpace ?? ((e = m.value) == null ? void 0 : e.autoInsertSpace) ?? !1;
@@ -53,8 +53,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
53
53
  arrow: "always" | "never" | "hover";
54
54
  loop: boolean;
55
55
  trigger: "click" | "hover";
56
- initialIndex: number;
57
56
  interval: number;
57
+ initialIndex: number;
58
58
  autoplay: boolean;
59
59
  indicatorPosition: "" | "none" | "outside";
60
60
  pauseOnHover: boolean;
@@ -30,36 +30,32 @@ const te = ["onMouseenter", "onClick"], oe = { key: 0 }, t = (
30
30
  },
31
31
  emits: ["change"],
32
32
  setup(z, { expose: D, emit: P }) {
33
- const a = z, T = P, {
34
- root: A,
33
+ const a = z, A = P, {
34
+ root: H,
35
35
  activeIndex: l,
36
- arrowDisplay: y,
37
- hasLabel: w,
38
- hover: h,
39
- isCardType: H,
40
- items: v,
36
+ arrowDisplay: v,
37
+ hasLabel: y,
38
+ hover: w,
39
+ isCardType: T,
40
+ items: h,
41
41
  isVertical: F,
42
42
  containerStyle: O,
43
43
  handleButtonEnter: k,
44
44
  handleButtonLeave: p,
45
45
  handleIndicatorClick: j,
46
46
  handleMouseEnter: C,
47
- handleMouseLeave: g,
47
+ handleMouseLeave: b,
48
48
  setActiveItem: q,
49
49
  prev: G,
50
50
  next: J,
51
- throttledArrowClick: b,
51
+ throttledArrowClick: g,
52
52
  throttledIndicatorHover: K
53
- } = ee(a, T, t.b());
54
- setTimeout(() => {
55
- console.log(v, "0000");
56
- }, 1500);
57
- const Q = M(() => {
53
+ } = ee(a, A, t.b()), Q = M(() => {
58
54
  const r = [t.b(), t.m(a.direction)];
59
- return e(H) && r.push(t.m("card")), r;
55
+ return e(T) && r.push(t.m("card")), r;
60
56
  }), R = M(() => {
61
57
  const r = [t.e("indicators"), t.em("indicators", a.direction)];
62
- return e(w) && r.push(t.em("indicators", "labels")), a.indicatorPosition === "outside" && r.push(t.em("indicators", "outside")), e(F) && r.push(t.em("indicators", "right")), r;
58
+ return e(y) && r.push(t.em("indicators", "labels")), a.indicatorPosition === "outside" && r.push(t.em("indicators", "outside")), e(F) && r.push(t.em("indicators", "right")), r;
63
59
  });
64
60
  return D({
65
61
  /** @description manually switch slide */
@@ -70,7 +66,7 @@ const te = ["onMouseenter", "onClick"], oe = { key: 0 }, t = (
70
66
  next: J
71
67
  }), (r, o) => (s(), u("div", {
72
68
  ref_key: "root",
73
- ref: A,
69
+ ref: H,
74
70
  class: i(Q.value),
75
71
  onMouseenter: o[6] || (o[6] = d(
76
72
  //@ts-ignore
@@ -79,7 +75,7 @@ const te = ["onMouseenter", "onClick"], oe = { key: 0 }, t = (
79
75
  )),
80
76
  onMouseleave: o[7] || (o[7] = d(
81
77
  //@ts-ignore
82
- (...n) => e(g) && e(g)(...n),
78
+ (...n) => e(b) && e(b)(...n),
83
79
  ["stop"]
84
80
  ))
85
81
  }, [
@@ -87,7 +83,7 @@ const te = ["onMouseenter", "onClick"], oe = { key: 0 }, t = (
87
83
  class: i(e(t).e("container")),
88
84
  style: W(e(O))
89
85
  }, [
90
- e(y) ? (s(), B($, {
86
+ e(v) ? (s(), B($, {
91
87
  key: 0,
92
88
  name: "carousel-arrow-left"
93
89
  }, {
@@ -98,19 +94,19 @@ const te = ["onMouseenter", "onClick"], oe = { key: 0 }, t = (
98
94
  onMouseenter: o[0] || (o[0] = (n) => e(k)("left")),
99
95
  onMouseleave: o[1] || (o[1] = //@ts-ignore
100
96
  (...n) => e(p) && e(p)(...n)),
101
- onClick: o[2] || (o[2] = d((n) => e(b)(e(l) - 1), ["stop"]))
97
+ onClick: o[2] || (o[2] = d((n) => e(g)(e(l) - 1), ["stop"]))
102
98
  }, [
103
99
  V(e(L), { icon: "ico-ep:arrow-left" })
104
100
  ], 34), [
105
101
  [
106
102
  E,
107
- (r.arrow === "always" || e(h)) && (a.loop || e(l) > 0)
103
+ (r.arrow === "always" || e(w)) && (a.loop || e(l) > 0)
108
104
  ]
109
105
  ])
110
106
  ]),
111
107
  _: 1
112
108
  })) : f("", !0),
113
- e(y) ? (s(), B($, {
109
+ e(v) ? (s(), B($, {
114
110
  key: 1,
115
111
  name: "carousel-arrow-right"
116
112
  }, {
@@ -121,13 +117,13 @@ const te = ["onMouseenter", "onClick"], oe = { key: 0 }, t = (
121
117
  onMouseenter: o[3] || (o[3] = (n) => e(k)("right")),
122
118
  onMouseleave: o[4] || (o[4] = //@ts-ignore
123
119
  (...n) => e(p) && e(p)(...n)),
124
- onClick: o[5] || (o[5] = d((n) => e(b)(e(l) + 1), ["stop"]))
120
+ onClick: o[5] || (o[5] = d((n) => e(g)(e(l) + 1), ["stop"]))
125
121
  }, [
126
122
  V(e(L), { icon: "ico-ep:arrow-right" })
127
123
  ], 34), [
128
124
  [
129
125
  E,
130
- (r.arrow === "always" || e(h)) && (a.loop || e(l) < e(v).length - 1)
126
+ (r.arrow === "always" || e(w)) && (a.loop || e(l) < e(h).length - 1)
131
127
  ]
132
128
  ])
133
129
  ]),
@@ -139,7 +135,7 @@ const te = ["onMouseenter", "onClick"], oe = { key: 0 }, t = (
139
135
  key: 0,
140
136
  class: i(R.value)
141
137
  }, [
142
- (s(!0), u(Y, null, Z(e(v), (n, m) => (s(), u("li", {
138
+ (s(!0), u(Y, null, Z(e(h), (n, m) => (s(), u("li", {
143
139
  key: m,
144
140
  class: i([
145
141
  e(t).e("indicator"),
@@ -152,7 +148,7 @@ const te = ["onMouseenter", "onClick"], oe = { key: 0 }, t = (
152
148
  c("button", {
153
149
  class: i(e(t).e("button"))
154
150
  }, [
155
- e(w) ? (s(), u("span", oe, x(n.props.label), 1)) : f("", !0)
151
+ e(y) ? (s(), u("span", oe, x(n.props.label), 1)) : f("", !0)
156
152
  ], 2)
157
153
  ], 42, te))), 128))
158
154
  ], 2)) : f("", !0)
@@ -24,11 +24,11 @@ export declare const VftCarousel: import("vft/es/utils").SFCWithInstall<{
24
24
  type: globalThis.PropType<"click" | "hover">;
25
25
  default: string;
26
26
  };
27
- initialIndex: {
27
+ interval: {
28
28
  type: globalThis.PropType<number>;
29
29
  default: number;
30
30
  };
31
- interval: {
31
+ initialIndex: {
32
32
  type: globalThis.PropType<number>;
33
33
  default: number;
34
34
  };
@@ -77,11 +77,11 @@ export declare const VftCarousel: import("vft/es/utils").SFCWithInstall<{
77
77
  type: globalThis.PropType<"click" | "hover">;
78
78
  default: string;
79
79
  };
80
- initialIndex: {
80
+ interval: {
81
81
  type: globalThis.PropType<number>;
82
82
  default: number;
83
83
  };
84
- interval: {
84
+ initialIndex: {
85
85
  type: globalThis.PropType<number>;
86
86
  default: number;
87
87
  };
@@ -106,8 +106,8 @@ export declare const VftCarousel: import("vft/es/utils").SFCWithInstall<{
106
106
  arrow: "always" | "never" | "hover";
107
107
  loop: boolean;
108
108
  trigger: "click" | "hover";
109
- initialIndex: number;
110
109
  interval: number;
110
+ initialIndex: number;
111
111
  autoplay: boolean;
112
112
  indicatorPosition: "" | "none" | "outside";
113
113
  pauseOnHover: boolean;
@@ -143,11 +143,11 @@ export declare const VftCarousel: import("vft/es/utils").SFCWithInstall<{
143
143
  type: globalThis.PropType<"click" | "hover">;
144
144
  default: string;
145
145
  };
146
- initialIndex: {
146
+ interval: {
147
147
  type: globalThis.PropType<number>;
148
148
  default: number;
149
149
  };
150
- interval: {
150
+ initialIndex: {
151
151
  type: globalThis.PropType<number>;
152
152
  default: number;
153
153
  };
@@ -176,8 +176,8 @@ export declare const VftCarousel: import("vft/es/utils").SFCWithInstall<{
176
176
  arrow: "always" | "never" | "hover";
177
177
  loop: boolean;
178
178
  trigger: "click" | "hover";
179
- initialIndex: number;
180
179
  interval: number;
180
+ initialIndex: number;
181
181
  autoplay: boolean;
182
182
  indicatorPosition: "" | "none" | "outside";
183
183
  pauseOnHover: boolean;
@@ -210,11 +210,11 @@ export declare const VftCarousel: import("vft/es/utils").SFCWithInstall<{
210
210
  type: globalThis.PropType<"click" | "hover">;
211
211
  default: string;
212
212
  };
213
- initialIndex: {
213
+ interval: {
214
214
  type: globalThis.PropType<number>;
215
215
  default: number;
216
216
  };
217
- interval: {
217
+ initialIndex: {
218
218
  type: globalThis.PropType<number>;
219
219
  default: number;
220
220
  };
@@ -245,8 +245,8 @@ export declare const VftCarousel: import("vft/es/utils").SFCWithInstall<{
245
245
  arrow: "always" | "never" | "hover";
246
246
  loop: boolean;
247
247
  trigger: "click" | "hover";
248
- initialIndex: number;
249
248
  interval: number;
249
+ initialIndex: number;
250
250
  autoplay: boolean;
251
251
  indicatorPosition: "" | "none" | "outside";
252
252
  pauseOnHover: boolean;
@@ -31,6 +31,9 @@ export declare const VftCheckbox: import("vft/es/utils").SFCWithInstall<{
31
31
  type: globalThis.PropType<boolean>;
32
32
  default: boolean;
33
33
  };
34
+ controls: {
35
+ type: globalThis.PropType<string>;
36
+ };
34
37
  checked: {
35
38
  type: globalThis.PropType<boolean>;
36
39
  };
@@ -43,9 +46,6 @@ export declare const VftCheckbox: import("vft/es/utils").SFCWithInstall<{
43
46
  falseValue: {
44
47
  type: globalThis.PropType<string | number>;
45
48
  };
46
- controls: {
47
- type: globalThis.PropType<string>;
48
- };
49
49
  }>> & {
50
50
  onChange?: ((...args: any[]) => any) | undefined;
51
51
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
@@ -84,6 +84,9 @@ export declare const VftCheckbox: import("vft/es/utils").SFCWithInstall<{
84
84
  type: globalThis.PropType<boolean>;
85
85
  default: boolean;
86
86
  };
87
+ controls: {
88
+ type: globalThis.PropType<string>;
89
+ };
87
90
  checked: {
88
91
  type: globalThis.PropType<boolean>;
89
92
  };
@@ -96,9 +99,6 @@ export declare const VftCheckbox: import("vft/es/utils").SFCWithInstall<{
96
99
  falseValue: {
97
100
  type: globalThis.PropType<string | number>;
98
101
  };
99
- controls: {
100
- type: globalThis.PropType<string>;
101
- };
102
102
  }>> & {
103
103
  onChange?: ((...args: any[]) => any) | undefined;
104
104
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
@@ -143,6 +143,9 @@ export declare const VftCheckbox: import("vft/es/utils").SFCWithInstall<{
143
143
  type: globalThis.PropType<boolean>;
144
144
  default: boolean;
145
145
  };
146
+ controls: {
147
+ type: globalThis.PropType<string>;
148
+ };
146
149
  checked: {
147
150
  type: globalThis.PropType<boolean>;
148
151
  };
@@ -155,9 +158,6 @@ export declare const VftCheckbox: import("vft/es/utils").SFCWithInstall<{
155
158
  falseValue: {
156
159
  type: globalThis.PropType<string | number>;
157
160
  };
158
- controls: {
159
- type: globalThis.PropType<string>;
160
- };
161
161
  }>> & {
162
162
  onChange?: ((...args: any[]) => any) | undefined;
163
163
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
@@ -199,6 +199,9 @@ export declare const VftCheckbox: import("vft/es/utils").SFCWithInstall<{
199
199
  type: globalThis.PropType<boolean>;
200
200
  default: boolean;
201
201
  };
202
+ controls: {
203
+ type: globalThis.PropType<string>;
204
+ };
202
205
  checked: {
203
206
  type: globalThis.PropType<boolean>;
204
207
  };
@@ -211,9 +214,6 @@ export declare const VftCheckbox: import("vft/es/utils").SFCWithInstall<{
211
214
  falseValue: {
212
215
  type: globalThis.PropType<string | number>;
213
216
  };
214
- controls: {
215
- type: globalThis.PropType<string>;
216
- };
217
217
  }>> & {
218
218
  onChange?: ((...args: any[]) => any) | undefined;
219
219
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
@@ -1,4 +1,4 @@
1
- import { defineComponent as f, openBlock as r, createBlock as e, unref as t, normalizeClass as s, withCtx as i, createVNode as a, createElementVNode as c, createElementBlock as n, normalizeProps as d, mergeProps as u, createCommentVNode as m, renderSlot as l } from "vue";
1
+ import { defineComponent as f, openBlock as r, createBlock as e, unref as t, normalizeClass as s, withCtx as i, createVNode as a, createElementVNode as c, createElementBlock as n, normalizeProps as d, mergeProps as u, createCommentVNode as p, renderSlot as l } from "vue";
2
2
  import "../alert/index.js";
3
3
  import "../avatar/index.js";
4
4
  import "../backtop/index.js";
@@ -94,17 +94,17 @@ import "../../hooks/use-z-index/index.js";
94
94
  import "../message/index.js";
95
95
  import "../infinite-scroll/index.js";
96
96
  import "../progress-i/index.js";
97
- const $ = { class: "content" }, y = {
97
+ const $ = { class: "content" }, b = {
98
98
  key: 0,
99
99
  class: "left"
100
- }, b = {
100
+ }, y = {
101
101
  key: 1,
102
102
  class: "right"
103
- }, p = (
103
+ }, m = (
104
104
  /* hoist-static*/
105
105
  k("header-layout")
106
106
  ), N = f({
107
- name: p.b()
107
+ name: m.b()
108
108
  }), _t = /* @__PURE__ */ f({
109
109
  ...N,
110
110
  props: {
@@ -112,36 +112,36 @@ const $ = { class: "content" }, y = {
112
112
  },
113
113
  setup(v) {
114
114
  return (o, B) => (r(), e(t(g), {
115
- class: s(t(p).b())
115
+ class: s(t(m).b())
116
116
  }, {
117
117
  default: i(() => [
118
118
  a(t(_), null, {
119
119
  default: i(() => [
120
120
  a(t(h), {
121
- class: s(t(p).e("top-container"))
121
+ class: s([t(m).e("top-container"), t(m).is("no-bottom", !o.$slots.bottom)])
122
122
  }, {
123
123
  default: i(() => [
124
124
  c("div", $, [
125
- o.logoCfg || o.$slots.left ? (r(), n("div", y, [
126
- o.logoCfg ? (r(), e(t(V), d(u({ key: 0 }, o.logoCfg)), null, 16)) : m("", !0),
125
+ o.logoCfg || o.$slots.left ? (r(), n("div", b, [
126
+ o.logoCfg ? (r(), e(t(V), d(u({ key: 0 }, o.logoCfg)), null, 16)) : p("", !0),
127
127
  l(o.$slots, "left")
128
- ])) : m("", !0),
129
- o.$slots.right ? (r(), n("div", b, [
128
+ ])) : p("", !0),
129
+ o.$slots.right ? (r(), n("div", y, [
130
130
  l(o.$slots, "right")
131
- ])) : m("", !0)
131
+ ])) : p("", !0)
132
132
  ])
133
133
  ]),
134
134
  _: 3
135
135
  }, 8, ["class"]),
136
136
  o.$slots.bottom ? (r(), e(t(C), {
137
137
  key: 0,
138
- class: s(t(p).e("footer"))
138
+ class: s(t(m).e("footer"))
139
139
  }, {
140
140
  default: i(() => [
141
141
  l(o.$slots, "bottom")
142
142
  ]),
143
143
  _: 3
144
- }, 8, ["class"])) : m("", !0)
144
+ }, 8, ["class"])) : p("", !0)
145
145
  ]),
146
146
  _: 3
147
147
  })