vft 0.0.136 → 0.0.138

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 (280) hide show
  1. package/attributes.json +1 -1
  2. package/dist/index.css +1 -1
  3. package/es/comp-resolver.js +1 -3
  4. package/es/component.js +29 -25
  5. package/es/components/alert/alert.vue2.js +1 -4
  6. package/es/components/autocomplete/autocomplete.vue2.js +2 -8
  7. package/es/components/backtop/backtop.vue2.js +3 -2
  8. package/es/components/backtop/use-backtop.js +9 -5
  9. package/es/components/button/constants.js +1 -3
  10. package/es/components/button/use-button.js +4 -6
  11. package/es/components/carousel/carousel.vue2.js +3 -13
  12. package/es/components/carousel/use-carousel-item.js +2 -10
  13. package/es/components/carousel/use-carousel.js +2 -9
  14. package/es/components/checkbox/checkbox-button.vue2.js +1 -8
  15. package/es/components/checkbox/checkbox-group.vue2.js +1 -9
  16. package/es/components/checkbox/composables/use-checkbox-disabled.js +1 -3
  17. package/es/components/checkbox/composables/use-checkbox-event.js +2 -8
  18. package/es/components/checkbox/composables/use-checkbox.js +3 -7
  19. package/es/components/clamp/clamp.vue2.js +1 -4
  20. package/es/components/col/col.vue2.js +1 -3
  21. package/es/components/collection/collection.js +2 -6
  22. package/es/components/color-picker/color-picker.vue2.js +1 -5
  23. package/es/components/color-picker/components/hue-slider.vue2.js +4 -12
  24. package/es/components/color-picker/components/predefine.vue.js +1 -5
  25. package/es/components/color-picker/composables/use-alpha-slider.js +5 -17
  26. package/es/components/color-picker/contants.js +1 -3
  27. package/es/components/color-picker/utils/color.js +9 -29
  28. package/es/components/config-provider/hooks/use-global-config.js +5 -10
  29. package/es/components/container/footer.vue2.js +1 -3
  30. package/es/components/context-menu/context-menu.vue2.js +30 -15
  31. package/es/components/date-picker/composables/use-shortcut.js +1 -4
  32. package/es/components/date-picker/date-picker-com/basic-date-table.vue2.js +2 -6
  33. package/es/components/date-picker/date-picker-com/basic-month-table.vue2.js +3 -11
  34. package/es/components/date-picker/date-picker-com/panel-date-pick.vue2.js +6 -20
  35. package/es/components/date-picker/date-picker-com/panel-month-range.vue2.js +2 -14
  36. package/es/components/descriptions/description.vue2.js +4 -6
  37. package/es/components/descriptions/descriptions-cell.js +1 -3
  38. package/es/components/dialog/dialog.vue.d.ts +1 -1
  39. package/es/components/drawer/drawer.vue2.js +1 -3
  40. package/es/components/dropdown/dropdown-item-impl.vue2.js +2 -9
  41. package/es/components/dropdown/dropdown-item.vue2.js +1 -4
  42. package/es/components/dropdown/dropdown-menu.vue2.js +5 -25
  43. package/es/components/dropdown/dropdown.vue2.js +2 -14
  44. package/es/components/dropdown/types.js +1 -10
  45. package/es/components/dropdown/useDropdown.js +1 -3
  46. package/es/components/exception/exception.vue2.js +6 -3
  47. package/es/components/focus-trap/focus-trap.vue2.js +4 -19
  48. package/es/components/footer-layout/footer-layout.vue2.js +3 -2
  49. package/es/components/form/form-item.vue2.js +7 -15
  50. package/es/components/form/hooks/use-form-common-props.js +1 -3
  51. package/es/components/form/types.d.ts +1 -1
  52. package/es/components/form/types.js +1 -6
  53. package/es/components/header-layout/header-layout.vue2.js +3 -2
  54. package/es/components/icon/icon.vue2.js +12 -7
  55. package/es/components/icon-text/icon-text.vue2.js +9 -6
  56. package/es/components/image/image.vue2.js +2 -10
  57. package/es/components/image/index.d.ts +49 -0
  58. package/es/components/image/index.js +3 -1
  59. package/es/components/image/p-image.vue.d.ts +51 -0
  60. package/es/components/image/p-image.vue.js +4 -0
  61. package/es/components/image/p-image.vue2.js +57 -0
  62. package/es/components/image/types.d.ts +1 -0
  63. package/es/components/image-viewer/image-viewer.vue2.js +4 -16
  64. package/es/components/index.d.ts +1 -0
  65. package/es/components/index.js +277 -274
  66. package/es/components/infinite-scroll/infinite-scroll.js +1 -3
  67. package/es/components/input/input.vue2.js +17 -9
  68. package/es/components/input-number/directives.js +1 -3
  69. package/es/components/input-number/input-number.vue2.js +2 -9
  70. package/es/components/link/link.vue2.js +1 -6
  71. package/es/components/list-cell/list-cell.vue2.js +7 -4
  72. package/es/components/loading/directive.js +1 -3
  73. package/es/components/md-code-demo/code-demo/code.js +14 -7
  74. package/es/components/md-code-demo/md-code-demo.js +97 -85
  75. package/es/components/md-code-tabs/md-code-tabs.js +3 -1
  76. package/es/components/md-container/md-container.vue2.js +3 -2
  77. package/es/components/md-container/toc.js +6 -1
  78. package/es/components/md-container/use/useActiveHeaderLinks.js +1 -7
  79. package/es/components/md-tabs/md-tabs.js +3 -1
  80. package/es/components/menu/menu-item.vue2.js +7 -3
  81. package/es/components/menu/menu.vue2.js +6 -14
  82. package/es/components/menu/sub-menu.vue2.js +3 -2
  83. package/es/components/message/message.vue2.js +1 -3
  84. package/es/components/message/method.js +5 -1
  85. package/es/components/modal/modal-footer-action.vue2.js +3 -2
  86. package/es/components/multiple-tabs/multiple-tabs.vue2.js +45 -36
  87. package/es/components/overlay/overlay.vue2.js +1 -5
  88. package/es/components/p-image/style/css.d.ts +0 -0
  89. package/es/components/p-image/style/css.js +2 -0
  90. package/es/components/p-image/style/index.d.ts +0 -0
  91. package/es/components/p-image/style/index.js +2 -0
  92. package/es/components/pagination/components/next.vue2.js +1 -3
  93. package/es/components/pagination/components/pager.vue2.js +5 -24
  94. package/es/components/pagination/components/prev.vue2.js +1 -3
  95. package/es/components/popconfirm/popconfirm.vue2.js +1 -5
  96. package/es/components/popper/arrow.vue2.js +1 -4
  97. package/es/components/popper/composables/use-content-dom.js +3 -16
  98. package/es/components/popper/composables/use-content.js +7 -11
  99. package/es/components/popper/content.vue.d.ts +2 -4
  100. package/es/components/popper/content.vue2.js +8 -12
  101. package/es/components/popper/trigger.vue2.js +6 -29
  102. package/es/components/progress/progress.vue2.js +1 -6
  103. package/es/components/progress-i/index.d.ts +2 -0
  104. package/es/components/progress-i/index.js +12 -0
  105. package/es/components/progress-i/progress-i.vue.d.ts +2 -0
  106. package/es/components/progress-i/progress-i.vue.js +4 -0
  107. package/es/components/progress-i/progress-i.vue2.js +10 -0
  108. package/es/components/progress-i/style/css.d.ts +0 -0
  109. package/es/components/progress-i/style/css.js +2 -0
  110. package/es/components/progress-i/style/index.d.ts +0 -0
  111. package/es/components/progress-i/style/index.js +2 -0
  112. package/es/components/qrcode/drawLogo.js +8 -1
  113. package/es/components/qrcode/qrcode.vue2.js +7 -3
  114. package/es/components/radio/radio.vue2.js +2 -9
  115. package/es/components/result/result.vue2.js +10 -5
  116. package/es/components/roving-focus-group/roving-focus-group-impl.vue2.js +2 -11
  117. package/es/components/roving-focus-group/roving-focus-item.vue2.js +2 -10
  118. package/es/components/roving-focus-group/types.js +1 -6
  119. package/es/components/scrollbar/constants.js +1 -3
  120. package/es/components/scrollbar/scrollbar.vue2.js +2 -9
  121. package/es/components/scrollbar/thumb.vue2.js +2 -12
  122. package/es/components/search/index.d.ts +2 -0
  123. package/es/components/search/search.vue.d.ts +1 -1
  124. package/es/components/select/select.vue.js +5 -20
  125. package/es/components/select/select.vue2.js +1 -9
  126. package/es/components/select/token.js +1 -3
  127. package/es/components/select/useAllowCreate.js +1 -3
  128. package/es/components/select/useSelect.js +10 -48
  129. package/es/components/side-menu/side-menu.vue2.js +19 -18
  130. package/es/components/skeleton/skeleton.vue2.js +5 -5
  131. package/es/components/slider/composables/use-lifecycle.js +1 -4
  132. package/es/components/slider/composables/use-slide.js +1 -4
  133. package/es/components/slider/composables/use-slider-button.js +5 -1
  134. package/es/components/slider/composables/use-stops.js +2 -6
  135. package/es/components/slider/composables/use-watch.js +1 -3
  136. package/es/components/slider/marker.js +1 -3
  137. package/es/components/slider/slider.vue2.js +2 -8
  138. package/es/components/space/space.js +25 -39
  139. package/es/components/super-form/component-map.js +13 -10
  140. package/es/components/super-form/index.d.ts +10 -7
  141. package/es/components/super-form/super-form-action.vue2.js +4 -6
  142. package/es/components/super-form/super-form-item.vue.d.ts +1 -1
  143. package/es/components/super-form/super-form-item.vue2.js +26 -25
  144. package/es/components/super-form/super-form.vue.d.ts +4 -3
  145. package/es/components/super-form/super-form.vue2.js +5 -3
  146. package/es/components/super-form/use/use-auto-focus.js +1 -6
  147. package/es/components/super-form/use/use-form-events.js +2 -6
  148. package/es/components/super-form/use/use-form-values.js +1 -6
  149. package/es/components/switch/switch.vue2.js +3 -17
  150. package/es/components/table/field.js +21 -20
  151. package/es/components/table/index.d.ts +357 -82
  152. package/es/components/table/table.vue.d.ts +91 -30
  153. package/es/components/table/table.vue2.js +128 -113
  154. package/es/components/table/types.d.ts +2 -2
  155. package/es/components/table/use/use-data-source.js +91 -92
  156. package/es/components/table/use/use-table.d.ts +1 -4
  157. package/es/components/table/use/use-table.js +3 -1
  158. package/es/components/tabs/tab-nav.vue2.js +18 -17
  159. package/es/components/time-picker/common/picker.vue2.js +8 -26
  160. package/es/components/time-picker/composables/use-time-panel.js +3 -14
  161. package/es/components/time-picker/composables/use-time-picker.js +2 -8
  162. package/es/components/time-picker/constants.d.ts +1 -1
  163. package/es/components/time-picker/time-picker-com/basic-time-spinner.vue2.js +2 -9
  164. package/es/components/time-picker/time-picker-com/panel-time-pick.vue2.js +6 -10
  165. package/es/components/time-picker/time-picker-com/panel-time-range.vue2.js +3 -14
  166. package/es/components/time-picker/utils.js +1 -5
  167. package/es/components/tooltip/content.vue2.js +4 -12
  168. package/es/components/tooltip/trigger.vue2.js +7 -25
  169. package/es/components/tooltip/utils.js +1 -3
  170. package/es/components/tree/model/node.js +2 -8
  171. package/es/components/tree/model/useDragNode.js +2 -12
  172. package/es/components/tree/model/useKeydown.js +5 -17
  173. package/es/components/tree/tree-node.vue2.js +2 -12
  174. package/es/components/tree/tree.vue2.js +2 -10
  175. package/es/components/upload/upload-content.vue2.js +2 -6
  176. package/es/components/upload/upload-dragger.vue2.js +1 -4
  177. package/es/components/upload/upload-list.vue2.js +2 -10
  178. package/es/components/upload/use-handlers.js +1 -3
  179. package/es/components/virtual-list/builders/build-grid.js +14 -77
  180. package/es/components/virtual-list/builders/build-list.js +9 -46
  181. package/es/components/virtual-list/components/dynamic-size-grid.js +4 -29
  182. package/es/components/virtual-list/components/dynamic-size-list.js +2 -11
  183. package/es/components/virtual-list/components/fixed-size-grid.js +9 -40
  184. package/es/components/virtual-list/components/fixed-size-list.js +1 -3
  185. package/es/components/virtual-list/components/scrollbar.js +3 -14
  186. package/es/components/virtual-list/props.js +1 -4
  187. package/es/constants/date.d.ts +1 -1
  188. package/es/constants/date.js +1 -9
  189. package/es/constants/size.d.ts +1 -1
  190. package/es/hooks/use-draggable/index.js +2 -10
  191. package/es/hooks/use-lockscreen/index.js +1 -4
  192. package/es/hooks/use-model-toggle/index.js +1 -3
  193. package/es/hooks/use-ordered-children/index.js +1 -3
  194. package/es/hooks/use-popper/index.js +5 -18
  195. package/es/index.js +408 -405
  196. package/es/package.json.d.ts +77 -0
  197. package/es/package.json.js +1 -1
  198. package/es/plugin.js +1 -5
  199. package/es/utils/ns-cover.js +16 -7
  200. package/es/utils/vue/install.d.ts +3 -0
  201. package/es/utils/vue/props/runtime.js +2 -9
  202. package/lib/component.cjs +1 -1
  203. package/lib/components/backtop/backtop.vue2.cjs +1 -1
  204. package/lib/components/context-menu/context-menu.vue2.cjs +1 -1
  205. package/lib/components/dialog/dialog.vue.d.ts +1 -1
  206. package/lib/components/footer-layout/footer-layout.vue2.cjs +1 -1
  207. package/lib/components/form/types.d.ts +1 -1
  208. package/lib/components/header-layout/header-layout.vue2.cjs +1 -1
  209. package/lib/components/image/index.cjs +1 -1
  210. package/lib/components/image/index.d.ts +49 -0
  211. package/lib/components/image/p-image.vue.cjs +1 -0
  212. package/lib/components/image/p-image.vue.d.ts +51 -0
  213. package/lib/components/image/p-image.vue2.cjs +1 -0
  214. package/lib/components/image/types.d.ts +1 -0
  215. package/lib/components/index.cjs +1 -1
  216. package/lib/components/index.d.ts +1 -0
  217. package/lib/components/md-container/md-container.vue2.cjs +1 -1
  218. package/lib/components/menu/menu-item.vue2.cjs +1 -1
  219. package/lib/components/menu/sub-menu.vue2.cjs +1 -1
  220. package/lib/components/modal/modal-footer-action.vue2.cjs +1 -1
  221. package/lib/components/multiple-tabs/multiple-tabs.vue2.cjs +1 -1
  222. package/lib/components/p-image/style/css.cjs +1 -0
  223. package/lib/components/p-image/style/css.d.ts +0 -0
  224. package/lib/components/p-image/style/index.cjs +1 -0
  225. package/lib/components/p-image/style/index.d.ts +0 -0
  226. package/lib/components/popper/content.vue.d.ts +2 -4
  227. package/lib/components/progress-i/index.cjs +1 -0
  228. package/lib/components/progress-i/index.d.ts +2 -0
  229. package/lib/components/progress-i/progress-i.vue.cjs +1 -0
  230. package/lib/components/progress-i/progress-i.vue.d.ts +2 -0
  231. package/lib/components/progress-i/progress-i.vue2.cjs +1 -0
  232. package/lib/components/progress-i/style/css.cjs +1 -0
  233. package/lib/components/progress-i/style/css.d.ts +0 -0
  234. package/lib/components/progress-i/style/index.cjs +1 -0
  235. package/lib/components/progress-i/style/index.d.ts +0 -0
  236. package/lib/components/result/result.vue2.cjs +1 -1
  237. package/lib/components/search/index.d.ts +2 -0
  238. package/lib/components/search/search.vue.d.ts +1 -1
  239. package/lib/components/side-menu/side-menu.vue2.cjs +1 -1
  240. package/lib/components/super-form/component-map.cjs +1 -1
  241. package/lib/components/super-form/index.d.ts +10 -7
  242. package/lib/components/super-form/super-form-action.vue2.cjs +1 -1
  243. package/lib/components/super-form/super-form-item.vue.d.ts +1 -1
  244. package/lib/components/super-form/super-form-item.vue2.cjs +1 -1
  245. package/lib/components/super-form/super-form.vue.d.ts +4 -3
  246. package/lib/components/super-form/super-form.vue2.cjs +1 -1
  247. package/lib/components/table/field.cjs +1 -1
  248. package/lib/components/table/index.d.ts +357 -82
  249. package/lib/components/table/table.vue.d.ts +91 -30
  250. package/lib/components/table/table.vue2.cjs +1 -1
  251. package/lib/components/table/types.d.ts +2 -2
  252. package/lib/components/table/use/use-data-source.cjs +1 -1
  253. package/lib/components/table/use/use-table.d.ts +1 -4
  254. package/lib/components/tabs/tab-nav.vue2.cjs +1 -1
  255. package/lib/components/time-picker/constants.d.ts +1 -1
  256. package/lib/constants/date.d.ts +1 -1
  257. package/lib/constants/size.d.ts +1 -1
  258. package/lib/index.cjs +1 -1
  259. package/lib/package.json.cjs +1 -1
  260. package/lib/package.json.d.ts +77 -0
  261. package/lib/utils/vue/install.d.ts +3 -0
  262. package/package.json +4 -4
  263. package/tags.json +1 -1
  264. package/theme-style/index.css +1 -1
  265. package/theme-style/src/index.scss +4 -0
  266. package/theme-style/src/input.scss +1 -0
  267. package/theme-style/src/p-image.scss +18 -0
  268. package/theme-style/src/progress-i.scss +0 -0
  269. package/theme-style/src/table.scss +7 -0
  270. package/theme-style/src/tabs.scss +120 -3
  271. package/theme-style/vft-input.css +1 -1
  272. package/theme-style/vft-md-comment.css +1 -1
  273. package/theme-style/vft-md-container.css +1 -1
  274. package/theme-style/vft-md-vue-playground.css +1 -1
  275. package/theme-style/vft-p-image.css +1 -0
  276. package/theme-style/vft-progress-i.css +0 -0
  277. package/theme-style/vft-select.css +1 -1
  278. package/theme-style/vft-table.css +1 -1
  279. package/theme-style/vft-tabs.css +1 -1
  280. package/web-types.json +1 -1
@@ -1,4 +1,4 @@
1
- import { defineComponent as P, getCurrentInstance as W, ref as b, computed as v, watchEffect as z, unref as r, openBlock as h, createElementBlock as S, normalizeClass as D, normalizeStyle as H, createVNode as C, withCtx as R, Fragment as K, renderList as $, createBlock as F } from "vue";
1
+ import { defineComponent as P, getCurrentInstance as W, ref as b, computed as y, watchEffect as z, unref as r, openBlock as h, createElementBlock as C, normalizeClass as D, normalizeStyle as H, createVNode as S, withCtx as R, Fragment as K, renderList as $, createBlock as F } from "vue";
2
2
  import { useRouterHelper as U, getRouterKeyPath as f, listenerRouteChange as j } from "@vft/router";
3
3
  import { useMultipleTabStore as q, useTabs as G } from "@vft/store";
4
4
  import { useRefs as J } from "@vft/use";
@@ -95,6 +95,7 @@ import "@popperjs/core";
95
95
  import "../../hooks/use-z-index/index.js";
96
96
  import "../message/index.js";
97
97
  import "../infinite-scroll/index.js";
98
+ import "../progress-i/index.js";
98
99
  import X from "hotkeys-js";
99
100
  import { onBeforeRouteLeave as Y } from "vue-router";
100
101
  import Z from "./tab-content.vue2.js";
@@ -104,7 +105,7 @@ const ot = (
104
105
  Q("multiple-tabs")
105
106
  ), rt = P({
106
107
  name: "vft-multiple-tabs"
107
- }), Ye = /* @__PURE__ */ P({
108
+ }), Ze = /* @__PURE__ */ P({
108
109
  ...rt,
109
110
  props: {
110
111
  tabsStyle: {},
@@ -116,7 +117,7 @@ const ot = (
116
117
  setup(d) {
117
118
  const l = W().appContext.config.globalProperties.$router, i = tt(l);
118
119
  d.canDrag && et(i);
119
- const s = q(), m = b(""), a = b(0), x = b(), { go: g } = U(l), c = v(() => s.getTabList.filter((t) => {
120
+ const s = q(), m = b(""), n = b(0), x = b(), { go: v } = U(l), c = y(() => s.getTabList.filter((t) => {
120
121
  var e;
121
122
  return !((e = t.meta) != null && e.hideTab);
122
123
  }));
@@ -124,39 +125,44 @@ const ot = (
124
125
  var t;
125
126
  if (m.value) {
126
127
  const e = c.value.findIndex((o) => f(o) === m.value);
127
- e === -1 ? a.value = ((t = c.value) == null ? void 0 : t.length) - 1 : a.value = e, a.value = a.value < (i == null ? void 0 : i.length) ? (i == null ? void 0 : i.length) - 1 : a.value;
128
+ e === -1 ? n.value = ((t = c.value) == null ? void 0 : t.length) - 1 : n.value = e, n.value = n.value < (i == null ? void 0 : i.length) ? (i == null ? void 0 : i.length) - 1 : n.value;
128
129
  }
129
130
  }), Y(() => {
130
131
  x.value = r(l.currentRoute);
131
132
  }), j((t) => {
132
- var T;
133
- if (!t || (T = t.meta) != null && T.hasTokenToRoot)
133
+ var g;
134
+ if (!t || (g = t.meta) != null && g.hasTokenToRoot)
134
135
  return;
135
- const { meta: e = {} } = t, { currentActivePath: o, hideTab: n } = e, p = n ? o : null, u = f(t);
136
+ const { meta: e = {} } = t, { currentActivePath: o, hideTab: a } = e, p = a ? o : null, u = f(t);
136
137
  if (m.value !== u && (m.value = u), p) {
137
- let y = l.getRoutes().find((A) => A.path === o);
138
- y && s.addTab(y, r(x), a.value, t);
138
+ let T = l.getRoutes().find((A) => A.path === o);
139
+ T && s.addTab(
140
+ T,
141
+ r(x),
142
+ n.value,
143
+ t
144
+ );
139
145
  } else
140
- s.addTab(r(t), r(x), a.value);
146
+ s.addTab(r(t), r(x), n.value);
141
147
  });
142
- function M(t) {
143
- var n, p;
148
+ function k(t) {
149
+ var a, p;
144
150
  if (m.value === t.paneName)
145
151
  return;
146
152
  const e = c.value[t.attrs.index];
147
153
  m.value = t.paneName;
148
- const o = (p = (n = e == null ? void 0 : e.meta) == null ? void 0 : n.hideActiveRoute) == null ? void 0 : p.fullPath;
149
- g(o || e.fullPath || e.path);
154
+ const o = (p = (a = e == null ? void 0 : e.meta) == null ? void 0 : a.hideActiveRoute) == null ? void 0 : p.fullPath;
155
+ v(o || e.fullPath || e.path);
150
156
  }
151
- function k(t) {
157
+ function B(t) {
152
158
  s.closeTabByKey(t, l);
153
159
  }
154
- const [B, E] = J();
160
+ const [M, E] = J();
155
161
  function I(t) {
156
162
  const e = t.pane.attrs.index, o = t.event;
157
- B.value[e].handleContext(o);
163
+ M.value[e].handleContext(o);
158
164
  }
159
- const N = v(() => ({ ..._({
165
+ const N = y(() => ({ ..._({
160
166
  padding: "4px 0 0",
161
167
  "border-bottom": "none",
162
168
  "header-height": "26px",
@@ -173,46 +179,49 @@ const ot = (
173
179
  X("command+e, ctrl+e", function() {
174
180
  return w(), !1;
175
181
  });
176
- const V = v(() => ({
177
- ..._({
178
- "sub-item-height": "40px",
179
- "item-min-width": "150px"
180
- }, "menu"),
182
+ const V = {
183
+ ..._(
184
+ {
185
+ "sub-item-height": "40px",
186
+ "item-min-width": "150px"
187
+ },
188
+ "menu"
189
+ ),
181
190
  ...d.contextMenuStyle
182
- }));
183
- return (t, e) => (h(), S("div", {
191
+ };
192
+ return (t, e) => (h(), C("div", {
184
193
  class: D(r(ot).b()),
185
194
  style: H(N.value)
186
195
  }, [
187
- C(r(L), {
196
+ S(r(L), {
188
197
  showBar: !1,
189
198
  fixTabCount: t.fixTabCount,
190
199
  fixExtraScrollWidth: t.fixExtraScrollWidth,
191
200
  "model-value": m.value,
192
201
  "onUpdate:modelValue": e[0] || (e[0] = (o) => m.value = o),
193
- onTabClick: M,
194
- onTabRemove: k,
202
+ onTabClick: k,
203
+ onTabRemove: B,
195
204
  onTabContextMenu: I
196
205
  }, {
197
206
  default: R(() => [
198
- (h(!0), S(K, null, $(c.value, (o, n) => {
207
+ (h(!0), C(K, null, $(c.value, (o, a) => {
199
208
  var p;
200
209
  return h(), F(r(O), {
201
- key: r(f)(o) + n,
210
+ key: r(f)(o) + a,
202
211
  closable: !((p = o.meta) != null && p.affix),
203
- index: n,
212
+ index: a,
204
213
  name: r(f)(o)
205
214
  }, {
206
215
  label: R(() => {
207
216
  var u;
208
217
  return [
209
- C(Z, {
210
- contextMenuStyle: V.value,
218
+ S(Z, {
219
+ contextMenuStyle: V,
211
220
  affixNum: (u = r(i)) == null ? void 0 : u.length,
212
221
  ref_for: !0,
213
- ref: r(E)(n),
222
+ ref: r(E)(a),
214
223
  tabItem: o
215
- }, null, 8, ["contextMenuStyle", "affixNum", "tabItem"])
224
+ }, null, 8, ["affixNum", "tabItem"])
216
225
  ];
217
226
  }),
218
227
  _: 2
@@ -225,5 +234,5 @@ const ot = (
225
234
  }
226
235
  });
227
236
  export {
228
- Ye as default
237
+ Ze as default
229
238
  };
@@ -50,11 +50,7 @@ const x = (
50
50
  [l(n, "default")],
51
51
  14,
52
52
  ["onClick", "onMouseup", "onMousedown"]
53
- ) : o.onlyNode ? r(
54
- "div",
55
- {},
56
- [l(n, "default")]
57
- ) : r(
53
+ ) : o.onlyNode ? r("div", {}, [l(n, "default")]) : r(
58
54
  "div",
59
55
  {
60
56
  class: o.overlayClass,
File without changes
@@ -0,0 +1,2 @@
1
+ import "vft/theme-style/base.css";
2
+ import "vft/theme-style/vft-p-image.css";
File without changes
@@ -0,0 +1,2 @@
1
+ import "vft/theme-style/src/base.scss";
2
+ import "vft/theme-style/src/p-image.scss";
@@ -10,9 +10,7 @@ const p = ["disabled", "aria-disabled"], f = { key: 0 }, k = /* @__PURE__ */ d({
10
10
  },
11
11
  emits: ["click"],
12
12
  setup(e) {
13
- const n = l(
14
- () => e.disabled || e.currentPage === e.pageCount || e.pageCount === 0
15
- );
13
+ const n = l(() => e.disabled || e.currentPage === e.pageCount || e.pageCount === 0);
16
14
  return (t, a) => (o(), i("button", {
17
15
  type: "button",
18
16
  class: "btn-next",
@@ -71,21 +71,13 @@ const D = ["onKeyup"], O = ["aria-current", "tabindex"], S = ["tabindex"], j = [
71
71
  }, [
72
72
  e.pageCount > 0 ? (i(), f("li", {
73
73
  key: 0,
74
- class: d([[
75
- u(o).is("active", e.currentPage === 1),
76
- u(o).is("disabled", e.disabled)
77
- ], "number"]),
74
+ class: d([[u(o).is("active", e.currentPage === 1), u(o).is("disabled", e.disabled)], "number"]),
78
75
  "aria-current": e.currentPage === 1,
79
76
  tabindex: g.value
80
77
  }, " 1 ", 10, O)) : v("", !0),
81
78
  C.value ? (i(), f("li", {
82
79
  key: 1,
83
- class: d([
84
- "more",
85
- "btn-quickprev",
86
- u(h).b(),
87
- u(o).is("disabled", e.disabled)
88
- ]),
80
+ class: d(["more", "btn-quickprev", u(h).b(), u(o).is("disabled", e.disabled)]),
89
81
  tabindex: g.value,
90
82
  onMouseenter: t[0] || (t[0] = (a) => q(!0)),
91
83
  onMouseleave: t[1] || (t[1] = (a) => k.value = !1),
@@ -102,21 +94,13 @@ const D = ["onKeyup"], O = ["aria-current", "tabindex"], S = ["tabindex"], j = [
102
94
  ], 42, S)) : v("", !0),
103
95
  (i(!0), f(V, null, z(x.value, (a) => (i(), f("li", {
104
96
  key: a,
105
- class: d([[
106
- u(o).is("active", e.currentPage === a),
107
- u(o).is("disabled", e.disabled)
108
- ], "number"]),
97
+ class: d([[u(o).is("active", e.currentPage === a), u(o).is("disabled", e.disabled)], "number"]),
109
98
  "aria-current": e.currentPage === a,
110
99
  tabindex: g.value
111
100
  }, L(a), 11, j))), 128)),
112
101
  P.value ? (i(), f("li", {
113
102
  key: 2,
114
- class: d([
115
- "more",
116
- "btn-quicknext",
117
- u(h).b(),
118
- u(o).is("disabled", e.disabled)
119
- ]),
103
+ class: d(["more", "btn-quicknext", u(h).b(), u(o).is("disabled", e.disabled)]),
120
104
  tabindex: g.value,
121
105
  onMouseenter: t[4] || (t[4] = (a) => q()),
122
106
  onMouseleave: t[5] || (t[5] = (a) => y.value = !1),
@@ -133,10 +117,7 @@ const D = ["onKeyup"], O = ["aria-current", "tabindex"], S = ["tabindex"], j = [
133
117
  ], 42, G)) : v("", !0),
134
118
  e.pageCount > 1 ? (i(), f("li", {
135
119
  key: 3,
136
- class: d([[
137
- u(o).is("active", e.currentPage === e.pageCount),
138
- u(o).is("disabled", e.disabled)
139
- ], "number"]),
120
+ class: d([[u(o).is("active", e.currentPage === e.pageCount), u(o).is("disabled", e.disabled)], "number"]),
140
121
  "aria-current": e.currentPage === e.pageCount,
141
122
  tabindex: g.value
142
123
  }, L(e.pageCount), 11, J)) : v("", !0)
@@ -9,9 +9,7 @@ const f = ["disabled", "aria-disabled"], v = { key: 0 }, _ = /* @__PURE__ */ s({
9
9
  },
10
10
  emits: ["click"],
11
11
  setup(e, { emit: i }) {
12
- const t = d(
13
- () => e.disabled || e.currentPage <= 1
14
- );
12
+ const t = d(() => e.disabled || e.currentPage <= 1);
15
13
  return (o, n) => (r(), a("button", {
16
14
  type: "button",
17
15
  class: "btn-prev",
@@ -38,11 +38,7 @@ const q = C({
38
38
  f("confirm", e), u();
39
39
  }, g = (e) => {
40
40
  f("cancel", e), u();
41
- }, z = p(
42
- () => l.confirmButtonText || "确认"
43
- ), N = p(
44
- () => l.cancelButtonText || "取消"
45
- );
41
+ }, z = p(() => l.confirmButtonText || "确认"), N = p(() => l.cancelButtonText || "取消");
46
42
  return (e, i) => (d(), y(t(A), $({
47
43
  ref_key: "tooltipRef",
48
44
  ref: m,
@@ -16,10 +16,7 @@ const E = t({
16
16
  arrowOffset: { default: 5 }
17
17
  },
18
18
  setup(a, { expose: p }) {
19
- const f = d("popper"), { arrowOffset: n, arrowRef: r, arrowStyle: s } = m(
20
- O,
21
- void 0
22
- );
19
+ const f = d("popper"), { arrowOffset: n, arrowRef: r, arrowStyle: s } = m(O, void 0);
23
20
  return i(
24
21
  () => a.arrowOffset,
25
22
  (e) => {
@@ -6,25 +6,12 @@ import "lodash";
6
6
  import { useNamespace as f } from "../../../hooks/use-namespace/index.js";
7
7
  import "@popperjs/core";
8
8
  import { useZIndex as I } from "../../../hooks/use-z-index/index.js";
9
- const g = (e, {
10
- attributes: s,
11
- styles: p,
12
- role: a
13
- }) => {
14
- const { nextZIndex: c } = I(), n = f("popper"), d = t(() => o(s).popper), r = l(e.zIndex || c()), i = t(() => [
15
- n.b(),
16
- n.is("pure", e.pure),
17
- n.is(e.effect),
18
- e.popperClass
19
- ]), m = t(() => [
9
+ const g = (e, { attributes: s, styles: p, role: a }) => {
10
+ const { nextZIndex: c } = I(), n = f("popper"), d = t(() => o(s).popper), r = l(e.zIndex || c()), i = t(() => [n.b(), n.is("pure", e.pure), n.is(e.effect), e.popperClass]), m = t(() => [
20
11
  { zIndex: o(r) },
21
12
  e.popperStyle || {},
22
13
  o(p).popper
23
- ]), u = t(
24
- () => a.value === "dialog" ? "false" : void 0
25
- ), x = t(
26
- () => o(p).arrow || {}
27
- );
14
+ ]), u = t(() => a.value === "dialog" ? "false" : void 0), x = t(() => o(p).arrow || {});
28
15
  return {
29
16
  ariaModal: u,
30
17
  arrowStyle: x,
@@ -9,10 +9,7 @@ import "../../../hooks/use-z-index/index.js";
9
9
  import { POPPER_INJECTION_KEY as C } from "../constants.js";
10
10
  import { buildPopperOptions as I, unwrapMeasurableEl as L } from "../utils.js";
11
11
  const T = 0, S = (r) => {
12
- const { popperInstanceRef: m, contentRef: i, triggerRef: d, role: u } = F(
13
- C,
14
- void 0
15
- ), s = a(), l = a(), R = o(() => ({
12
+ const { popperInstanceRef: m, contentRef: i, triggerRef: d, role: u } = F(C, void 0), s = a(), l = a(), R = o(() => ({
16
13
  name: "eventListeners",
17
14
  enabled: !!r.visible
18
15
  })), E = o(() => {
@@ -30,13 +27,12 @@ const T = 0, S = (r) => {
30
27
  n();
31
28
  },
32
29
  // @ts-ignore
33
- ...I(r, [
34
- t(E),
35
- t(R)
36
- ])
37
- })), p = o(
38
- () => L(r.referenceEl) || t(d)
39
- ), { attributes: b, state: O, styles: P, update: n, forceUpdate: g, instanceRef: c } = _(p, i, w);
30
+ ...I(r, [t(E), t(R)])
31
+ })), p = o(() => L(r.referenceEl) || t(d)), { attributes: b, state: O, styles: P, update: n, forceUpdate: g, instanceRef: c } = _(
32
+ p,
33
+ i,
34
+ w
35
+ );
40
36
  return f(c, (e) => m.value = e), M(() => {
41
37
  f(
42
38
  () => {
@@ -80,12 +80,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
80
80
  popperContentRef: import("vue").Ref<HTMLElement | undefined>;
81
81
  /**
82
82
  * @description popperjs instance
83
- */
84
- popperInstanceRef: import("vue").ComputedRef<import("@popperjs/core").Instance | undefined>;
83
+ */ popperInstanceRef: import("vue").ComputedRef<import("@popperjs/core").Instance | undefined>;
85
84
  /**
86
85
  * @description method for updating popper
87
- */
88
- updatePopper: (shouldUpdateZIndex?: boolean) => void;
86
+ */ updatePopper: (shouldUpdateZIndex?: boolean) => void;
89
87
  /**
90
88
  * @description content style
91
89
  */
@@ -47,18 +47,14 @@ const oe = P({
47
47
  onFocusInTrap: A,
48
48
  onFocusoutPrevented: T,
49
49
  onReleaseRequested: g
50
- } = ee(u.props, F), { attributes: O, arrowRef: I, contentRef: s, styles: N, instanceRef: w, role: d, update: M } = W(u.props), {
51
- ariaModal: k,
52
- arrowStyle: S,
53
- contentAttrs: q,
54
- contentClass: x,
55
- contentStyle: c,
56
- updateZIndex: V
57
- } = _(u.props, {
58
- styles: N,
59
- attributes: O,
60
- role: d
61
- }), $ = D();
50
+ } = ee(u.props, F), { attributes: O, arrowRef: I, contentRef: s, styles: N, instanceRef: w, role: d, update: M } = W(u.props), { ariaModal: k, arrowStyle: S, contentAttrs: q, contentClass: x, contentStyle: c, updateZIndex: V } = _(
51
+ u.props,
52
+ {
53
+ styles: N,
54
+ attributes: O,
55
+ role: d
56
+ }
57
+ ), $ = D();
62
58
  J(te, {
63
59
  arrowStyle: S,
64
60
  arrowRef: I,
@@ -50,44 +50,21 @@ const V = b({
50
50
  ), c(
51
51
  d,
52
52
  (e, r) => {
53
- o == null || o(), o = void 0, v(e) && ([
54
- "onMouseenter",
55
- "onMouseleave",
56
- "onClick",
57
- "onKeydown",
58
- "onFocus",
59
- "onBlur",
60
- "onContextmenu"
61
- ].forEach((t) => {
53
+ o == null || o(), o = void 0, v(e) && (["onMouseenter", "onMouseleave", "onClick", "onKeydown", "onFocus", "onBlur", "onContextmenu"].forEach((t) => {
62
54
  var u;
63
55
  const i = y.props[t];
64
- i && (e.addEventListener(
65
- t.slice(2).toLowerCase(),
66
- i
67
- ), (u = r == null ? void 0 : r.removeEventListener) == null || u.call(
68
- r,
69
- t.slice(2).toLowerCase(),
70
- i
71
- ));
56
+ i && (e.addEventListener(t.slice(2).toLowerCase(), i), (u = r == null ? void 0 : r.removeEventListener) == null || u.call(r, t.slice(2).toLowerCase(), i));
72
57
  }), o = c(
73
58
  [f, l, s, p],
74
59
  (t) => {
75
- [
76
- "aria-controls",
77
- "aria-describedby",
78
- "aria-haspopup",
79
- "aria-expanded"
80
- ].forEach((i, u) => {
60
+ ["aria-controls", "aria-describedby", "aria-haspopup", "aria-expanded"].forEach((i, u) => {
81
61
  O(t[u]) ? e.removeAttribute(i) : e.setAttribute(i, t[u]);
82
62
  });
83
63
  },
84
64
  { immediate: !0 }
85
- )), v(r) && [
86
- "aria-controls",
87
- "aria-describedby",
88
- "aria-haspopup",
89
- "aria-expanded"
90
- ].forEach((t) => r.removeAttribute(t));
65
+ )), v(r) && ["aria-controls", "aria-describedby", "aria-haspopup", "aria-expanded"].forEach(
66
+ (t) => r.removeAttribute(t)
67
+ );
91
68
  },
92
69
  {
93
70
  immediate: !0
@@ -40,12 +40,7 @@ const R = ["aria-valuenow"], U = { viewBox: "0 0 100 100" }, j = ["d", "stroke",
40
40
  width: `${t.percentage}%`,
41
41
  animationDuration: `${t.duration}s`,
42
42
  backgroundColor: B(t.percentage)
43
- })), m = s(
44
- () => (t.strokeWidth / t.width * 100).toFixed(1)
45
- ), g = s(() => ["circle", "dashboard"].includes(t.type) ? Number.parseInt(
46
- `${50 - Number.parseFloat(m.value) / 2}`,
47
- 10
48
- ) : 0), $ = s(() => {
43
+ })), m = s(() => (t.strokeWidth / t.width * 100).toFixed(1)), g = s(() => ["circle", "dashboard"].includes(t.type) ? Number.parseInt(`${50 - Number.parseFloat(m.value) / 2}`, 10) : 0), $ = s(() => {
49
44
  const e = g.value, o = t.type === "dashboard";
50
45
  return `
51
46
  M 50 50
@@ -0,0 +1,2 @@
1
+ export declare const VftProgressI: import("vft/es/utils").SFCWithInstall<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>> & Record<string, any>;
2
+ export default VftProgressI;
@@ -0,0 +1,12 @@
1
+ import "@vueuse/core";
2
+ import "@vft/utils";
3
+ import "../../utils/ns-cover.js";
4
+ import "lodash";
5
+ import { withInstall as t } from "../../utils/vue/install.js";
6
+ import "vue";
7
+ import o from "./progress-i.vue2.js";
8
+ const e = t(o);
9
+ export {
10
+ e as VftProgressI,
11
+ e as default
12
+ };
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
2
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import f from "./progress-i.vue2.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,10 @@
1
+ import { defineComponent as e, openBlock as o, createElementBlock as n } from "vue";
2
+ const p = /* @__PURE__ */ e({
3
+ __name: "progress-i",
4
+ setup(r) {
5
+ return console.log(1), (t, c) => (o(), n("div", null, "1"));
6
+ }
7
+ });
8
+ export {
9
+ p as default
10
+ };
File without changes
@@ -0,0 +1,2 @@
1
+ import "vft/theme-style/base.css";
2
+ import "vft/theme-style/vft-progress-i.css";
File without changes
@@ -0,0 +1,2 @@
1
+ import "vft/theme-style/src/base.scss";
2
+ import "vft/theme-style/src/progress-i.scss";
@@ -4,7 +4,14 @@ const W = ({ canvas: e, logo: o }) => {
4
4
  return new Promise((g) => {
5
5
  g(e.toDataURL());
6
6
  });
7
- const t = e.width, { logoSize: i = 0.15, bgColor: c = "#fff", borderSize: r = 0.05, crossOrigin: l, borderRadius: b = 8, logoRadius: m = 0 } = o, C = P(o) ? o : o.src, a = t * i, s = t * (1 - i) / 2, u = t * (i + r), h = t * (1 - i - r) / 2, n = e.getContext("2d");
7
+ const t = e.width, {
8
+ logoSize: i = 0.15,
9
+ bgColor: c = "#fff",
10
+ borderSize: r = 0.05,
11
+ crossOrigin: l,
12
+ borderRadius: b = 8,
13
+ logoRadius: m = 0
14
+ } = o, C = P(o) ? o : o.src, a = t * i, s = t * (1 - i) / 2, u = t * (i + r), h = t * (1 - i - r) / 2, n = e.getContext("2d");
8
15
  if (!n)
9
16
  return;
10
17
  R(n)(h, h, u, u, b), n.fillStyle = c, n.fill();
@@ -54,9 +54,13 @@ const k = f({
54
54
  }
55
55
  w(l);
56
56
  const d = g();
57
- return v(d.props, () => {
58
- l();
59
- }, { deep: !0 }), s({
57
+ return v(
58
+ d.props,
59
+ () => {
60
+ l();
61
+ },
62
+ { deep: !0 }
63
+ ), s({
60
64
  download: u
61
65
  }), (o, e) => (i(), p("div", null, [
62
66
  (i(), h(C(o.tag), {
@@ -26,10 +26,7 @@ const A = ["value", "name", "disabled"], o = (
26
26
  },
27
27
  emits: [z, M],
28
28
  setup(v, { emit: u }) {
29
- const y = v, { radioRef: E, radioGroup: N, focus: i, size: c, disabled: t, modelValue: n } = h(
30
- y,
31
- u
32
- );
29
+ const y = v, { radioRef: E, radioGroup: N, focus: i, size: c, disabled: t, modelValue: n } = h(y, u);
33
30
  function V() {
34
31
  w(() => u("change", n.value));
35
32
  }
@@ -46,11 +43,7 @@ const A = ["value", "name", "disabled"], o = (
46
43
  ])
47
44
  }, [
48
45
  r("span", {
49
- class: s([
50
- e(o).e("input"),
51
- e(o).is("disabled", e(t)),
52
- e(o).is("checked", e(n) === a.value)
53
- ])
46
+ class: s([e(o).e("input"), e(o).is("disabled", e(t)), e(o).is("checked", e(n) === a.value)])
54
47
  }, [
55
48
  B(r("input", {
56
49
  ref_key: "radioRef",
@@ -92,12 +92,13 @@ import "@popperjs/core";
92
92
  import "../../hooks/use-z-index/index.js";
93
93
  import "../message/index.js";
94
94
  import "../infinite-scroll/index.js";
95
+ import "../progress-i/index.js";
95
96
  const i = (
96
97
  /* hoist-static*/
97
98
  C("result")
98
99
  ), I = c({
99
100
  name: "vft-result"
100
- }), no = /* @__PURE__ */ c({
101
+ }), so = /* @__PURE__ */ c({
101
102
  ...I,
102
103
  props: {
103
104
  title: {},
@@ -106,9 +107,13 @@ const i = (
106
107
  },
107
108
  setup(u) {
108
109
  var e, n;
109
- const l = d(), t = f(), m = v(() => _(u.icon, "icon")), a = (e = m.value) != null && e.icon ? o("div", {
110
- class: i.e("icon")
111
- }, [o(x, { ...m.value })]) : (n = t.default) == null ? void 0 : n.call(t), p = (r) => {
110
+ const l = d(), t = f(), m = v(() => _(u.icon, "icon")), a = (e = m.value) != null && e.icon ? o(
111
+ "div",
112
+ {
113
+ class: i.e("icon")
114
+ },
115
+ [o(x, { ...m.value })]
116
+ ) : (n = t.default) == null ? void 0 : n.call(t), p = (r) => {
112
117
  const s = b(l, r);
113
118
  return s ? o(
114
119
  "div",
@@ -136,5 +141,5 @@ const i = (
136
141
  }
137
142
  });
138
143
  export {
139
- no as default
144
+ so as default
140
145
  };