vft 0.0.397 → 0.0.399

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 (54) hide show
  1. package/dist/index.css +1 -1
  2. package/es/component.js +83 -81
  3. package/es/components/carousel/use-carousel.js +1 -1
  4. package/es/components/client-only/client-only.vue.d.ts +12 -0
  5. package/es/components/client-only/client-only.vue.js +4 -0
  6. package/es/components/client-only/client-only.vue2.js +13 -0
  7. package/es/components/client-only/index.d.ts +19 -0
  8. package/es/components/client-only/index.js +13 -0
  9. package/es/components/client-only/style/css.d.ts +1 -0
  10. package/es/components/client-only/style/css.js +2 -0
  11. package/es/components/client-only/style/index.d.ts +1 -0
  12. package/es/components/client-only/style/index.js +2 -0
  13. package/es/components/config-provider/hooks/use-global-config.js +3 -3
  14. package/es/components/index.d.ts +1 -0
  15. package/es/components/index.js +391 -389
  16. package/es/components/input/input.vue2.js +4 -4
  17. package/es/components/input-tag/composables/use-input-tag.js +1 -1
  18. package/es/components/side-menu/side-menu.vue2.js +87 -88
  19. package/es/components/skeleton/skeleton.vue.d.ts +0 -1
  20. package/es/components/skeleton/skeleton.vue2.js +0 -1
  21. package/es/components/super-form/super-form-item.vue2.js +4 -3
  22. package/es/components/table/table.vue2.js +123 -118
  23. package/es/index.js +1 -0
  24. package/es/package.json.d.ts +1 -1
  25. package/es/package.json.js +1 -1
  26. package/es/utils/vue/vnode.js +1 -1
  27. package/lib/component.cjs +1 -1
  28. package/lib/components/client-only/client-only.vue.cjs +1 -0
  29. package/lib/components/client-only/client-only.vue.d.ts +12 -0
  30. package/lib/components/client-only/client-only.vue2.cjs +1 -0
  31. package/lib/components/client-only/index.cjs +1 -0
  32. package/lib/components/client-only/index.d.ts +19 -0
  33. package/lib/components/client-only/style/css.cjs +1 -0
  34. package/lib/components/client-only/style/css.d.ts +1 -0
  35. package/lib/components/client-only/style/index.cjs +1 -0
  36. package/lib/components/client-only/style/index.d.ts +1 -0
  37. package/lib/components/index.cjs +1 -1
  38. package/lib/components/index.d.ts +1 -0
  39. package/lib/components/input/input.vue2.cjs +1 -1
  40. package/lib/components/side-menu/side-menu.vue2.cjs +1 -1
  41. package/lib/components/skeleton/skeleton.vue.d.ts +0 -1
  42. package/lib/components/super-form/super-form-item.vue2.cjs +1 -1
  43. package/lib/components/table/table.vue2.cjs +1 -1
  44. package/lib/index.cjs +1 -1
  45. package/lib/package.json.cjs +1 -1
  46. package/lib/package.json.d.ts +1 -1
  47. package/package.json +5 -5
  48. package/theme-style/index.css +1 -1
  49. package/theme-style/src/client-only.scss +0 -0
  50. package/theme-style/src/index.scss +1 -0
  51. package/theme-style/src/tabs.scss +0 -5
  52. package/theme-style/vft-client-only.css +0 -0
  53. package/theme-style/vft-tabs.css +1 -1
  54. package/web-types.json +1 -1
package/es/component.js CHANGED
@@ -26,10 +26,10 @@ import { VftDivider as L } from "./components/divider/index.js";
26
26
  import { VftDrawer as R } from "./components/drawer/index.js";
27
27
  import { VftDropdownItem as x, VftDropdownMenu as A, VftDropdown as G } from "./components/dropdown/index.js";
28
28
  import { VftEmpty as H } from "./components/empty/index.js";
29
- import { VftFooterLayout as W } from "./components/footer-layout/index.js";
30
- import { VftForm as z, VftFormItem as E } from "./components/form/index.js";
31
- import { VftFullScreen as N } from "./components/full-screen/index.js";
32
- import { VftHeaderLayout as O } from "./components/header-layout/index.js";
29
+ import { VftFooterLayout as O } from "./components/footer-layout/index.js";
30
+ import { VftForm as W, VftFormItem as z } from "./components/form/index.js";
31
+ import { VftFullScreen as E } from "./components/full-screen/index.js";
32
+ import { VftHeaderLayout as N } from "./components/header-layout/index.js";
33
33
  import { VftHorizontalMenu as Q } from "./components/horizontal-menu/index.js";
34
34
  import { VftIcon as U } from "./components/icon/index.js";
35
35
  import { VftIconText as j } from "./components/icon-text/index.js";
@@ -46,80 +46,81 @@ import { VftMdCodeTabs as ot } from "./components/md-code-tabs/index.js";
46
46
  import { VftCarousel as rt, VftCarouselItem as mt } from "./components/carousel/index.js";
47
47
  import { VftStep as ft, VftSteps as it } from "./components/steps/index.js";
48
48
  import { VftTimeline as pt, VftTimelineItem as Vt } from "./components/timeline/index.js";
49
- import { VftBreadcrumb as et, VftBreadcrumbItem as at } from "./components/breadcrumb/index.js";
50
- import { VftCollapse as nt, VftCollapseItem as lt } from "./components/collapse/index.js";
51
- import { VftStatistic as ut } from "./components/statistic/index.js";
52
- import { VftCountdown as dt } from "./components/countdown/index.js";
53
- import { VftInputTag as ct } from "./components/input-tag/index.js";
54
- import { VftCascader as st } from "./components/cascader/index.js";
55
- import { VftCascaderPanel as Ct } from "./components/cascader-panel/index.js";
56
- import { VftMdComment as Tt } from "./components/md-comment/index.js";
57
- import { VftMdContainer as It } from "./components/md-container/index.js";
58
- import { VftMdTabs as St } from "./components/md-tabs/index.js";
59
- import { VftMdVuePlayground as gt } from "./components/md-vue-playground/index.js";
60
- import { VftMenu as Mt, VftMenuItem as bt, VftMenuItemGroup as Pt, VftSubMenu as kt } from "./components/menu/index.js";
61
- import { VftModal as Dt } from "./components/modal/index.js";
62
- import { VftMultipleTabs as wt } from "./components/multiple-tabs/index.js";
63
- import { VftOverlay as yt } from "./components/overlay/index.js";
64
- import { VftPageWrapper as Bt } from "./components/page-wrapper/index.js";
65
- import { VftPagination as ht } from "./components/pagination/index.js";
66
- import { VftPopconfirm as vt } from "./components/popconfirm/index.js";
67
- import { VftPopover as Ft } from "./components/popover/index.js";
68
- import { VftPopper as Lt } from "./components/popper/index.js";
69
- import { VftProgress as Rt } from "./components/progress/index.js";
70
- import { VftQrcode as xt } from "./components/qrcode/index.js";
71
- import { VftRadioButton as At, VftRadio as Gt, VftRadioGroup as Ht } from "./components/radio/index.js";
49
+ import { VftClientOnly as et } from "./components/client-only/index.js";
50
+ import { VftBreadcrumb as at, VftBreadcrumbItem as nt } from "./components/breadcrumb/index.js";
51
+ import { VftCollapse as lt, VftCollapseItem as ut } from "./components/collapse/index.js";
52
+ import { VftStatistic as dt } from "./components/statistic/index.js";
53
+ import { VftCountdown as ct } from "./components/countdown/index.js";
54
+ import { VftInputTag as st } from "./components/input-tag/index.js";
55
+ import { VftCascader as Ct } from "./components/cascader/index.js";
56
+ import { VftCascaderPanel as Tt } from "./components/cascader-panel/index.js";
57
+ import { VftMdComment as It } from "./components/md-comment/index.js";
58
+ import { VftMdContainer as St } from "./components/md-container/index.js";
59
+ import { VftMdTabs as gt } from "./components/md-tabs/index.js";
60
+ import { VftMdVuePlayground as Mt } from "./components/md-vue-playground/index.js";
61
+ import { VftMenu as bt, VftMenuItem as Pt, VftMenuItemGroup as kt, VftSubMenu as Dt } from "./components/menu/index.js";
62
+ import { VftModal as wt } from "./components/modal/index.js";
63
+ import { VftMultipleTabs as yt } from "./components/multiple-tabs/index.js";
64
+ import { VftOverlay as Bt } from "./components/overlay/index.js";
65
+ import { VftPageWrapper as ht } from "./components/page-wrapper/index.js";
66
+ import { VftPagination as vt } from "./components/pagination/index.js";
67
+ import { VftPopconfirm as Ft } from "./components/popconfirm/index.js";
68
+ import { VftPopover as Lt } from "./components/popover/index.js";
69
+ import { VftPopper as Rt } from "./components/popper/index.js";
70
+ import { VftProgress as xt } from "./components/progress/index.js";
71
+ import { VftQrcode as At } from "./components/qrcode/index.js";
72
+ import { VftRadioButton as Gt, VftRadio as Ht, VftRadioGroup as Ot } from "./components/radio/index.js";
72
73
  import { VftResult as Wt } from "./components/result/index.js";
73
74
  import { VftRouterViewContent as zt } from "./components/router-view-content/index.js";
74
75
  import { VftRow as Et } from "./components/row/index.js";
75
76
  import { VftScrollbar as Nt } from "./components/scrollbar/index.js";
76
- import { VftSearch as Ot } from "./components/search/index.js";
77
- import { VftSelect as Qt } from "./components/select/index.js";
78
- import { VftSideMenu as Ut } from "./components/side-menu/index.js";
79
- import { VftSkeleton as jt, VftSkeletonItem as qt } from "./components/skeleton/index.js";
80
- import { VftSlider as Jt } from "./components/slider/index.js";
81
- import { VftSpace as Kt } from "./components/space/index.js";
82
- import { VftSwitch as Xt } from "./components/switch/index.js";
83
- import { VftTable as Yt } from "./components/table/index.js";
84
- import { VftTabs as Zt, VftTabPane as _t } from "./components/tabs/index.js";
85
- import { VftTag as $t } from "./components/tag/index.js";
86
- import { VftTimePicker as to } from "./components/time-picker/index.js";
87
- import { VftTooltip as oo } from "./components/tooltip/index.js";
88
- import { VftTree as ro } from "./components/tree/index.js";
89
- import { VftUpload as mo } from "./components/upload/index.js";
90
- import { VftVerifyCode as fo } from "./components/verify-code/index.js";
91
- import { VftSuperForm as io } from "./components/super-form/index.js";
92
- import { VftProgressI as po } from "./components/progress-i/index.js";
93
- const qr = [
77
+ import { VftSearch as Qt } from "./components/search/index.js";
78
+ import { VftSelect as Ut } from "./components/select/index.js";
79
+ import { VftSideMenu as jt } from "./components/side-menu/index.js";
80
+ import { VftSkeleton as qt, VftSkeletonItem as Jt } from "./components/skeleton/index.js";
81
+ import { VftSlider as Kt } from "./components/slider/index.js";
82
+ import { VftSpace as Xt } from "./components/space/index.js";
83
+ import { VftSwitch as Yt } from "./components/switch/index.js";
84
+ import { VftTable as Zt } from "./components/table/index.js";
85
+ import { VftTabs as _t, VftTabPane as $t } from "./components/tabs/index.js";
86
+ import { VftTag as to } from "./components/tag/index.js";
87
+ import { VftTimePicker as oo } from "./components/time-picker/index.js";
88
+ import { VftTooltip as ro } from "./components/tooltip/index.js";
89
+ import { VftTree as mo } from "./components/tree/index.js";
90
+ import { VftUpload as fo } from "./components/upload/index.js";
91
+ import { VftVerifyCode as io } from "./components/verify-code/index.js";
92
+ import { VftSuperForm as po } from "./components/super-form/index.js";
93
+ import { VftProgressI as Vo } from "./components/progress-i/index.js";
94
+ const Kr = [
94
95
  // phone
95
- po,
96
+ Vo,
96
97
  //
97
98
  rt,
98
99
  mt,
99
- mo,
100
- Rt,
100
+ fo,
101
+ xt,
101
102
  Y,
102
103
  o,
103
- Jt,
104
- Dt,
104
+ Kt,
105
+ wt,
105
106
  // VftRate,
106
107
  R,
107
108
  t,
108
- Qt,
109
- vt,
109
+ Ut,
110
+ Ft,
110
111
  V,
111
- Kt,
112
- jt,
112
+ Xt,
113
113
  qt,
114
- ro,
114
+ Jt,
115
+ mo,
115
116
  e,
116
- It,
117
+ St,
117
118
  ot,
118
119
  tt,
120
+ Mt,
119
121
  gt,
120
- St,
121
122
  w,
122
- Tt,
123
+ It,
123
124
  M,
124
125
  b,
125
126
  P,
@@ -127,59 +128,59 @@ const qr = [
127
128
  D,
128
129
  Q,
129
130
  T,
130
- to,
131
+ oo,
131
132
  Et,
132
133
  F,
133
134
  B,
134
135
  _,
135
136
  K,
136
- Yt,
137
- fo,
137
+ Zt,
138
+ io,
138
139
  x,
139
140
  A,
140
141
  G,
141
142
  Nt,
142
143
  S,
143
- Xt,
144
- At,
144
+ Yt,
145
145
  Gt,
146
146
  Ht,
147
+ Ot,
147
148
  l,
148
149
  u,
149
150
  d,
150
151
  i,
151
152
  p,
153
+ W,
152
154
  z,
153
- E,
154
- Ot,
155
- Bt,
155
+ Qt,
156
+ ht,
156
157
  c,
157
158
  s,
158
159
  C,
159
- xt,
160
- yt,
161
- $t,
162
- Ut,
163
- ht,
160
+ At,
161
+ Bt,
162
+ to,
163
+ jt,
164
+ vt,
164
165
  Z,
165
166
  X,
166
167
  J,
167
168
  j,
168
- N,
169
+ E,
169
170
  h,
170
171
  v,
171
172
  g,
172
173
  f,
173
174
  zt,
174
175
  q,
175
- W,
176
176
  O,
177
+ N,
177
178
  $,
178
- wt,
179
- Mt,
179
+ yt,
180
180
  bt,
181
181
  Pt,
182
182
  kt,
183
+ Dt,
183
184
  I,
184
185
  L,
185
186
  U,
@@ -187,16 +188,15 @@ const qr = [
187
188
  m,
188
189
  H,
189
190
  Wt,
190
- Zt,
191
191
  _t,
192
- oo,
193
- Ft,
192
+ $t,
193
+ ro,
194
194
  Lt,
195
+ Rt,
195
196
  pt,
196
197
  Vt,
197
198
  ft,
198
199
  it,
199
- et,
200
200
  at,
201
201
  nt,
202
202
  lt,
@@ -205,11 +205,13 @@ const qr = [
205
205
  ct,
206
206
  st,
207
207
  Ct,
208
+ Tt,
208
209
  y,
209
210
  a,
210
211
  n,
211
- io
212
+ po,
213
+ et
212
214
  ];
213
215
  export {
214
- qr as default
216
+ Kr as default
215
217
  };
@@ -11,7 +11,7 @@ import "../../hooks/use-model-toggle/index.js";
11
11
  import { useOrderedChildren as ge } from "../../hooks/use-ordered-children/index.js";
12
12
  import "@popperjs/core";
13
13
  import "../../hooks/use-z-index/index.js";
14
- import { CAROUSEL_ITEM_NAME as H, carouselContextKey as Se } from "./constants.js";
14
+ import { carouselContextKey as Se, CAROUSEL_ITEM_NAME as H } from "./constants.js";
15
15
  const L = 300, ze = (t, O, M) => {
16
16
  const {
17
17
  children: o,
@@ -0,0 +1,12 @@
1
+ declare function __VLS_template(): {
2
+ default?(_: {}): any;
3
+ fallback?(_: {}): any;
4
+ };
5
+ declare const __VLS_component: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
6
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
7
+ export default _default;
8
+ type __VLS_WithTemplateSlots<T, S> = T & {
9
+ new (): {
10
+ $slots: S;
11
+ };
12
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./client-only.vue2.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,13 @@
1
+ import { defineComponent as o, ref as l, onMounted as r, renderSlot as n } from "vue";
2
+ const f = /* @__PURE__ */ o({
3
+ __name: "client-only",
4
+ setup(a) {
5
+ const e = l(!1);
6
+ return r(() => {
7
+ e.value = !0;
8
+ }), (t, s) => e.value ? n(t.$slots, "default", { key: 0 }) : n(t.$slots, "fallback", { key: 1 });
9
+ }
10
+ });
11
+ export {
12
+ f as default
13
+ };
@@ -0,0 +1,19 @@
1
+ export declare const VftClientOnly: import("vft/es/utils").SFCWithInstall<{
2
+ new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
3
+ P: {};
4
+ B: {};
5
+ D: {};
6
+ C: {};
7
+ M: {};
8
+ Defaults: {};
9
+ }, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, {}>;
10
+ __isFragment?: never;
11
+ __isTeleport?: never;
12
+ __isSuspense?: never;
13
+ } & import("vue").ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
14
+ $slots: {
15
+ default?(_: {}): any;
16
+ fallback?(_: {}): any;
17
+ };
18
+ })> & Record<string, any>;
19
+ export default VftClientOnly;
@@ -0,0 +1,13 @@
1
+ import "@vueuse/core";
2
+ import "@vft/utils";
3
+ import "../config-provider/hooks/use-global-config.js";
4
+ import "vue";
5
+ import { withInstall as t } from "../../utils/vue/install.js";
6
+ import "lodash-es";
7
+ import "../form/index.js";
8
+ import o from "./client-only.vue2.js";
9
+ const s = t(o);
10
+ export {
11
+ s as VftClientOnly,
12
+ s as default
13
+ };
@@ -0,0 +1 @@
1
+ import 'vft/theme-style/vft-client-only.css';
@@ -0,0 +1,2 @@
1
+ import "vft/theme-style/base.css";
2
+ import "vft/theme-style/vft-client-only.css";
@@ -0,0 +1 @@
1
+ import 'vft/theme-style/src/client-only.scss';
@@ -0,0 +1,2 @@
1
+ import "vft/theme-style/src/base.scss";
2
+ import "vft/theme-style/src/client-only.scss";
@@ -1,7 +1,7 @@
1
1
  import { keysOf as f } from "@vft/utils";
2
2
  import "@vueuse/core";
3
3
  import { debugWarn as v } from "../../../utils/error.js";
4
- import { ref as g, getCurrentInstance as l, computed as i, unref as p, provide as C, inject as x } from "vue";
4
+ import { getCurrentInstance as l, computed as i, unref as p, provide as g, ref as C, inject as x } from "vue";
5
5
  import "lodash-es";
6
6
  import "../../form/index.js";
7
7
  import { namespaceContextKey as I, useNamespace as b, defaultNamespace as y } from "../../../hooks/use-namespace/index.js";
@@ -9,7 +9,7 @@ import "../../../hooks/use-model-toggle/index.js";
9
9
  import "@popperjs/core";
10
10
  import { zIndexContextKey as G, useZIndex as z, defaultInitialZIndex as K } from "../../../hooks/use-z-index/index.js";
11
11
  import { configProviderContextKey as m } from "../constants.js";
12
- const a = g();
12
+ const a = C();
13
13
  function d(o, e = void 0) {
14
14
  const n = l() ? x(m, a) : a;
15
15
  return o ? i(() => n?.value?.[o] ?? e) : n;
@@ -27,7 +27,7 @@ function B(o) {
27
27
  };
28
28
  }
29
29
  const S = (o, e, n = !1) => {
30
- const t = !!l(), r = t ? d() : void 0, u = e?.provide ?? (t ? C : void 0);
30
+ const t = !!l(), r = t ? d() : void 0, u = e?.provide ?? (t ? g : void 0);
31
31
  if (!u) {
32
32
  v(
33
33
  "provideGlobalConfig",
@@ -9,6 +9,7 @@ export * from './cascader-panel';
9
9
  export * from './check-tag';
10
10
  export * from './checkbox';
11
11
  export * from './clamp';
12
+ export * from './client-only';
12
13
  export * from './clamp-toggle';
13
14
  export * from './clamp-tooltip';
14
15
  export * from './col';