vft 0.0.511 → 0.0.513

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 (149) hide show
  1. package/dist/index.css +1 -1
  2. package/es/components/autocomplete/autocomplete.vue.d.ts +2 -2
  3. package/es/components/autocomplete/index.d.ts +6 -6
  4. package/es/components/button/index.d.ts +9 -9
  5. package/es/components/cascader/cascader.vue2.js +202 -203
  6. package/es/components/cascader-panel/menu.vue2.js +49 -50
  7. package/es/components/clamp-toggle/clamp-toggle.vue2.js +18 -19
  8. package/es/components/color-picker/color-picker.vue2.js +133 -134
  9. package/es/components/config-provider/config-provider.vue.d.ts +0 -2
  10. package/es/components/config-provider/config-provider.vue2.js +4 -5
  11. package/es/components/config-provider/constants.d.ts +0 -1
  12. package/es/components/config-provider/constants.js +2 -3
  13. package/es/components/config-provider/hooks/use-global-config.js +30 -33
  14. package/es/components/config-provider/index.d.ts +0 -9
  15. package/es/components/config-provider/index.js +5 -6
  16. package/es/components/date-picker/composables/use-basic-date-table.js +82 -83
  17. package/es/components/date-picker/composables/use-month-range-header.js +14 -15
  18. package/es/components/date-picker/composables/use-panel-date-range.js +23 -24
  19. package/es/components/date-picker/date-picker-com/basic-month-table.vue2.js +38 -39
  20. package/es/components/date-picker/date-picker-com/basic-year-table.vue2.js +38 -39
  21. package/es/components/date-picker/date-picker-com/panel-date-pick.vue2.js +183 -184
  22. package/es/components/date-picker/date-picker-com/panel-date-range.vue2.js +224 -225
  23. package/es/components/date-time-select/date-time-select.vue2.js +36 -39
  24. package/es/components/dropdown/dropdown-item-impl.vue.d.ts +1 -1
  25. package/es/components/dropdown/dropdown-item.vue.d.ts +1 -1
  26. package/es/components/dropdown/dropdown.vue.d.ts +1 -1
  27. package/es/components/dropdown/dropdown.vue2.js +67 -68
  28. package/es/components/dropdown/index.d.ts +33 -33
  29. package/es/components/empty/empty.vue2.js +38 -39
  30. package/es/components/full-screen/full-screen.vue2.js +17 -18
  31. package/es/components/image/image.vue2.js +59 -60
  32. package/es/components/image-viewer/image-viewer.vue2.js +44 -45
  33. package/es/components/index.js +97 -98
  34. package/es/components/md-container/md-container.vue2.js +74 -75
  35. package/es/components/md-container/toc.js +36 -37
  36. package/es/components/message-box/message-box.vue2.js +3 -3
  37. package/es/components/message-box/method.js +47 -48
  38. package/es/components/modal/modal-footer-action.vue2.js +24 -25
  39. package/es/components/multiple-tabs/multiple-tabs.vue2.js +15 -16
  40. package/es/components/multiple-tabs/use/use-tab-dropdown.js +53 -54
  41. package/es/components/popconfirm/index.d.ts +15 -15
  42. package/es/components/popconfirm/popconfirm.vue.d.ts +1 -1
  43. package/es/components/popconfirm/popconfirm.vue2.js +39 -40
  44. package/es/components/search/search.vue2.js +50 -51
  45. package/es/components/select/index.d.ts +4 -4
  46. package/es/components/select/select.vue.d.ts +4 -4
  47. package/es/components/select/useSelect.d.ts +4 -4
  48. package/es/components/select/useSelect.js +231 -232
  49. package/es/components/time-picker/time-picker-com/panel-time-pick.vue2.js +65 -66
  50. package/es/components/time-picker/time-picker-com/panel-time-range.vue2.js +133 -134
  51. package/es/components/transfer/transfer-panel.vue2.js +56 -57
  52. package/es/components/transfer/transfer.vue2.js +69 -70
  53. package/es/components/tree/tree.vue2.js +59 -60
  54. package/es/components/upload/upload-content.vue2.js +49 -50
  55. package/es/components/upload/upload-list.vue2.js +45 -46
  56. package/es/components/upload/upload.vue2.js +99 -100
  57. package/es/hooks/use-z-index/index.js +3 -3
  58. package/es/index.d.ts +0 -1
  59. package/es/index.js +1 -5
  60. package/es/package.json.d.ts +1 -1
  61. package/es/package.json.js +1 -1
  62. package/lib/components/autocomplete/autocomplete.vue.d.ts +2 -2
  63. package/lib/components/autocomplete/index.d.ts +6 -6
  64. package/lib/components/button/index.d.ts +9 -9
  65. package/lib/components/cascader/cascader.vue2.cjs +1 -1
  66. package/lib/components/cascader-panel/menu.vue2.cjs +4 -4
  67. package/lib/components/clamp-toggle/clamp-toggle.vue2.cjs +1 -1
  68. package/lib/components/color-picker/color-picker.vue2.cjs +1 -1
  69. package/lib/components/config-provider/config-provider.vue.d.ts +0 -2
  70. package/lib/components/config-provider/config-provider.vue2.cjs +1 -1
  71. package/lib/components/config-provider/constants.cjs +1 -1
  72. package/lib/components/config-provider/constants.d.ts +0 -1
  73. package/lib/components/config-provider/hooks/use-global-config.cjs +1 -1
  74. package/lib/components/config-provider/index.cjs +1 -1
  75. package/lib/components/config-provider/index.d.ts +0 -9
  76. package/lib/components/date-picker/composables/use-basic-date-table.cjs +1 -1
  77. package/lib/components/date-picker/composables/use-month-range-header.cjs +1 -1
  78. package/lib/components/date-picker/composables/use-panel-date-range.cjs +1 -1
  79. package/lib/components/date-picker/date-picker-com/basic-month-table.vue2.cjs +1 -1
  80. package/lib/components/date-picker/date-picker-com/basic-year-table.vue2.cjs +1 -1
  81. package/lib/components/date-picker/date-picker-com/panel-date-pick.vue2.cjs +1 -1
  82. package/lib/components/date-picker/date-picker-com/panel-date-range.vue2.cjs +1 -1
  83. package/lib/components/date-time-select/date-time-select.vue2.cjs +1 -1
  84. package/lib/components/dropdown/dropdown-item-impl.vue.d.ts +1 -1
  85. package/lib/components/dropdown/dropdown-item.vue.d.ts +1 -1
  86. package/lib/components/dropdown/dropdown.vue.d.ts +1 -1
  87. package/lib/components/dropdown/dropdown.vue2.cjs +1 -1
  88. package/lib/components/dropdown/index.d.ts +33 -33
  89. package/lib/components/empty/empty.vue2.cjs +1 -1
  90. package/lib/components/full-screen/full-screen.vue2.cjs +1 -1
  91. package/lib/components/image/image.vue2.cjs +1 -1
  92. package/lib/components/image-viewer/image-viewer.vue2.cjs +1 -1
  93. package/lib/components/index.cjs +1 -1
  94. package/lib/components/md-container/md-container.vue2.cjs +1 -1
  95. package/lib/components/md-container/toc.cjs +1 -1
  96. package/lib/components/message-box/message-box.vue2.cjs +1 -1
  97. package/lib/components/message-box/method.cjs +1 -1
  98. package/lib/components/modal/modal-footer-action.vue2.cjs +1 -1
  99. package/lib/components/multiple-tabs/multiple-tabs.vue2.cjs +1 -1
  100. package/lib/components/multiple-tabs/use/use-tab-dropdown.cjs +1 -1
  101. package/lib/components/popconfirm/index.d.ts +15 -15
  102. package/lib/components/popconfirm/popconfirm.vue.d.ts +1 -1
  103. package/lib/components/popconfirm/popconfirm.vue2.cjs +1 -1
  104. package/lib/components/search/search.vue2.cjs +1 -1
  105. package/lib/components/select/index.d.ts +4 -4
  106. package/lib/components/select/select.vue.d.ts +4 -4
  107. package/lib/components/select/useSelect.cjs +1 -1
  108. package/lib/components/select/useSelect.d.ts +4 -4
  109. package/lib/components/time-picker/time-picker-com/panel-time-pick.vue2.cjs +1 -1
  110. package/lib/components/time-picker/time-picker-com/panel-time-range.vue2.cjs +1 -1
  111. package/lib/components/transfer/transfer-panel.vue2.cjs +1 -1
  112. package/lib/components/transfer/transfer.vue2.cjs +1 -1
  113. package/lib/components/tree/tree.vue2.cjs +1 -1
  114. package/lib/components/upload/upload-content.vue2.cjs +1 -1
  115. package/lib/components/upload/upload-list.vue2.cjs +1 -1
  116. package/lib/components/upload/upload.vue2.cjs +1 -1
  117. package/lib/index.cjs +1 -1
  118. package/lib/index.d.ts +0 -1
  119. package/lib/package.json.cjs +1 -1
  120. package/lib/package.json.d.ts +1 -1
  121. package/package.json +2 -2
  122. package/theme-style/index.css +1 -1
  123. package/theme-style/src/message-box.scss +2 -2
  124. package/theme-style/src/table.scss +2 -0
  125. package/theme-style/vft-message-box.css +1 -1
  126. package/theme-style/vft-table.css +1 -1
  127. package/web-types.json +1 -1
  128. package/es/locale/index.d.js +0 -1
  129. package/es/locale/index.d.ts +0 -26
  130. package/es/locale/index.js +0 -10
  131. package/es/locale/lang/en.d.ts +0 -183
  132. package/es/locale/lang/en.js +0 -241
  133. package/es/locale/lang/zh-cn.d.ts +0 -183
  134. package/es/locale/lang/zh-cn.js +0 -241
  135. package/es/locale/lang/zh-tw.d.ts +0 -183
  136. package/es/locale/lang/zh-tw.js +0 -241
  137. package/es/locale/use-locale.d.ts +0 -17
  138. package/es/locale/use-locale.js +0 -56
  139. package/lib/locale/index.cjs +0 -1
  140. package/lib/locale/index.d.cjs +0 -1
  141. package/lib/locale/index.d.ts +0 -26
  142. package/lib/locale/lang/en.cjs +0 -1
  143. package/lib/locale/lang/en.d.ts +0 -183
  144. package/lib/locale/lang/zh-cn.cjs +0 -1
  145. package/lib/locale/lang/zh-cn.d.ts +0 -183
  146. package/lib/locale/lang/zh-tw.cjs +0 -1
  147. package/lib/locale/lang/zh-tw.d.ts +0 -183
  148. package/lib/locale/use-locale.cjs +0 -1
  149. package/lib/locale/use-locale.d.ts +0 -17
@@ -9,7 +9,7 @@ import { VftCascaderPanel as T } from "./cascader-panel/index.js";
9
9
  import { VftCheckTag as g } from "./check-tag/index.js";
10
10
  import { VftCheckbox as I, VftCheckboxButton as D, VftCheckboxGroup as S } from "./checkbox/index.js";
11
11
  import { VftClamp as y } from "./clamp/index.js";
12
- import { VftClientOnly as K } from "./client-only/index.js";
12
+ import { VftClientOnly as A } from "./client-only/index.js";
13
13
  import { VftClampToggle as b } from "./clamp-toggle/index.js";
14
14
  import { VftClampTooltip as F } from "./clamp-tooltip/index.js";
15
15
  import { VftCol as O } from "./col/index.js";
@@ -32,7 +32,7 @@ import { VftEmpty as Po } from "./empty/index.js";
32
32
  import { VftFooterLayout as Eo } from "./footer-layout/index.js";
33
33
  import { VftForm as Do, VftFormItem as So } from "./form/index.js";
34
34
  import { VftFullScreen as yo } from "./full-screen/index.js";
35
- import { VftHeaderLayout as Ko } from "./header-layout/index.js";
35
+ import { VftHeaderLayout as Ao } from "./header-layout/index.js";
36
36
  import { VftHorizontalMenu as bo } from "./horizontal-menu/index.js";
37
37
  import { VftIconText as Fo } from "./icon-text/index.js";
38
38
  import { VftIframeLayout as Oo } from "./iframe-layout/index.js";
@@ -57,7 +57,7 @@ import { VftRadio as Pr, VftRadioButton as gr, VftRadioGroup as Er } from "./rad
57
57
  import { VftResult as Dr } from "./result/index.js";
58
58
  import { VftRouterViewContent as _r } from "./router-view-content/index.js";
59
59
  import { VftRow as Mr } from "./row/index.js";
60
- import { VftScrollbar as Ar } from "./scrollbar/index.js";
60
+ import { VftScrollbar as Kr } from "./scrollbar/index.js";
61
61
  import { VftSearch as Rr } from "./search/index.js";
62
62
  import { VftSelect as Lr } from "./select/index.js";
63
63
  import { VftSideMenu as Nr } from "./side-menu/index.js";
@@ -80,7 +80,7 @@ import { default as ce } from "./virtual-list/components/fixed-size-grid.js";
80
80
  import { default as Te } from "./virtual-list/components/dynamic-size-grid.js";
81
81
  import { virtualizedGridProps as ge, virtualizedListProps as Ee, virtualizedProps as Ie, virtualizedScrollbarProps as De } from "./virtual-list/props.js";
82
82
  import { VftAutocomplete as _e } from "./autocomplete/index.js";
83
- import { VftBreadcrumb as Me, VftBreadcrumbItem as Ke } from "./breadcrumb/index.js";
83
+ import { VftBreadcrumb as Me, VftBreadcrumbItem as Ae } from "./breadcrumb/index.js";
84
84
  import { VftCarousel as be, VftCarouselItem as Re } from "./carousel/index.js";
85
85
  import { VftCollapse as Le, VftCollapseItem as Oe } from "./collapse/index.js";
86
86
  import { VftCountdown as ke } from "./countdown/index.js";
@@ -105,7 +105,7 @@ import { Message as Pt, Message as gt } from "./message/index.js";
105
105
  import { MessageBox as It, MessageBox as Dt } from "./message-box/index.js";
106
106
  import { VftProgressI as _t } from "./progress-i/index.js";
107
107
  import { VftSuperForm as Mt } from "./super-form/index.js";
108
- import { default as At } from "./time-picker/common/picker.vue2.js";
108
+ import { default as Kt } from "./time-picker/common/picker.vue2.js";
109
109
  import { default as Rt } from "./time-picker/time-picker-com/panel-time-pick.vue2.js";
110
110
  import { default as Lt } from "./popper/arrow.vue2.js";
111
111
  import { default as Nt } from "./popper/content.vue2.js";
@@ -122,7 +122,7 @@ import { LEFT_CHECK_CHANGE_EVENT as df, RIGHT_CHECK_CHANGE_EVENT as cf, transfer
122
122
  import { MenuTypeEnum as Ef } from "./horizontal-menu/constants.js";
123
123
  import { ROOT_PICKER_INJECTION_KEY as Df, ROOT_PICKER_IS_DEFAULT_FORMAT_INJECTION_KEY as Sf } from "./date-picker/constants.js";
124
124
  import { TOOLTIP_INJECTION_KEY as yf } from "./tooltip/constants.js";
125
- import { TabsRootContextKey as Kf } from "./tabs/types.js";
125
+ import { TabsRootContextKey as Af } from "./tabs/types.js";
126
126
  import { vLoading as bf, createLoadingDirective as Rf, vLoading as Ff } from "./loading/directive.js";
127
127
  import { Loading as Of } from "./loading/service.js";
128
128
  import { addRequire as kf, removeRequire as vf, selectMapping as Gf } from "./table/utils.js";
@@ -134,42 +134,42 @@ import { checkboxGroupContextKey as fp } from "./checkbox/constants.js";
134
134
  import { collapseContextKey as mp } from "./collapse/constants.js";
135
135
  import { collapseEmits as xp, collapseProps as ip, emitChangeFn as sp } from "./collapse/collapse.js";
136
136
  import { collapseItemProps as Vp } from "./collapse/collapse-item.js";
137
- import { configProviderContextKey as up, localeContextKey as dp, messageConfig as cp } from "./config-provider/constants.js";
138
- import { countdownEmits as Tp, countdownProps as Pp } from "./countdown/countdown.js";
139
- import { datePickerProps as Ep } from "./date-picker/props/date-picker.js";
140
- import { defaultProps as Dp, segmentedEmits as Sp, segmentedProps as _p } from "./segmented/segmented.js";
141
- import { dragEventsKey as Mp, useDragNodeHandler as Kp } from "./tree/model/useDragNode.js";
142
- import { formContextKey as bp, formItemContextKey as Rp } from "./form/constants.js";
143
- import { genFileId as Lp, uploadContextKey as Op } from "./upload/constants.js";
144
- import { getChildState as kp } from "./tree/model/node.js";
145
- import { getDynamicProps as Gp, useForm as wp } from "./super-form/use/use-form.js";
146
- import { initAffixTabs as Bp, useTabsDrag as zp } from "./multiple-tabs/use/use-multiple-tabs.js";
147
- import { inputTagEmits as Up, inputTagProps as Jp } from "./input-tag/input-tag.js";
148
- import { isDatePicker as qp, isInput as Wp, isRangePicker as jp } from "./super-form/component-map.js";
149
- import { messageDefaults as Xp, messageTypes as Zp } from "./message/types.js";
150
- import { notificationEmits as om, notificationProps as rm, notificationTypes as em } from "./notification/notification.js";
151
- import { provideGlobalConfig as fm, useGlobalComponentSettings as pm, useGlobalConfig as mm } from "./config-provider/hooks/use-global-config.js";
152
- import { radioGroupKey as xm } from "./radio/constants.js";
153
- import { rowContextKey as sm } from "./row/constants.js";
154
- import { scrollbarContextKey as Vm } from "./scrollbar/constants.js";
155
- import { selectV2InjectionKey as um } from "./select/token.js";
156
- import { sliderContextKey as cm } from "./slider/constants.js";
157
- import { sliderEmits as Tm } from "./slider/slider.js";
158
- import { spaceProps as gm } from "./space/space.js";
159
- import { timePickerDefaultProps as Im, timePickerRangeTriggerProps as Dm, timePickerRngeTriggerProps as Sm } from "./time-picker/common/props.js";
160
- import { useDialog as ym } from "./dialog/use-dialog.js";
161
- import { useDisabled as Km, useFormDisabled as Am, useFormSize as bm, useSize as Rm } from "./form/hooks/use-form-common-props.js";
162
- import { useFormItem as Lm, useFormItemInputId as Om } from "./form/hooks/use-form-item.js";
163
- import { useModal as km, useModalInner as vm } from "./modal/use/use-modal.js";
164
- import { usePagination as wm, vftPaginationKey as hm } from "./pagination/usePagination.js";
165
- import { useSpace as zm } from "./space/use-space.js";
166
- import { useTabDropdown as Um } from "./multiple-tabs/use/use-tab-dropdown.js";
167
- import { watermarkProps as Ym } from "./watermark/watermark.js";
137
+ import { configProviderContextKey as up, messageConfig as dp } from "./config-provider/constants.js";
138
+ import { countdownEmits as Cp, countdownProps as Tp } from "./countdown/countdown.js";
139
+ import { datePickerProps as gp } from "./date-picker/props/date-picker.js";
140
+ import { defaultProps as Ip, segmentedEmits as Dp, segmentedProps as Sp } from "./segmented/segmented.js";
141
+ import { dragEventsKey as yp, useDragNodeHandler as Mp } from "./tree/model/useDragNode.js";
142
+ import { formContextKey as Kp, formItemContextKey as bp } from "./form/constants.js";
143
+ import { genFileId as Fp, uploadContextKey as Lp } from "./upload/constants.js";
144
+ import { getChildState as Np } from "./tree/model/node.js";
145
+ import { getDynamicProps as vp, useForm as Gp } from "./super-form/use/use-form.js";
146
+ import { initAffixTabs as hp, useTabsDrag as Bp } from "./multiple-tabs/use/use-multiple-tabs.js";
147
+ import { inputTagEmits as Hp, inputTagProps as Up } from "./input-tag/input-tag.js";
148
+ import { isDatePicker as Yp, isInput as qp, isRangePicker as Wp } from "./super-form/component-map.js";
149
+ import { messageDefaults as Qp, messageTypes as Xp } from "./message/types.js";
150
+ import { notificationEmits as $p, notificationProps as om, notificationTypes as rm } from "./notification/notification.js";
151
+ import { provideGlobalConfig as tm, useGlobalComponentSettings as fm, useGlobalConfig as pm } from "./config-provider/hooks/use-global-config.js";
152
+ import { radioGroupKey as am } from "./radio/constants.js";
153
+ import { rowContextKey as im } from "./row/constants.js";
154
+ import { scrollbarContextKey as nm } from "./scrollbar/constants.js";
155
+ import { selectV2InjectionKey as lm } from "./select/token.js";
156
+ import { sliderContextKey as dm } from "./slider/constants.js";
157
+ import { sliderEmits as Cm } from "./slider/slider.js";
158
+ import { spaceProps as Pm } from "./space/space.js";
159
+ import { timePickerDefaultProps as Em, timePickerRangeTriggerProps as Im, timePickerRngeTriggerProps as Dm } from "./time-picker/common/props.js";
160
+ import { useDialog as _m } from "./dialog/use-dialog.js";
161
+ import { useDisabled as Mm, useFormDisabled as Am, useFormSize as Km, useSize as bm } from "./form/hooks/use-form-common-props.js";
162
+ import { useFormItem as Fm, useFormItemInputId as Lm } from "./form/hooks/use-form-item.js";
163
+ import { useModal as Nm, useModalInner as km } from "./modal/use/use-modal.js";
164
+ import { usePagination as Gm, vftPaginationKey as wm } from "./pagination/usePagination.js";
165
+ import { useSpace as Bm } from "./space/use-space.js";
166
+ import { useTabDropdown as Hm } from "./multiple-tabs/use/use-tab-dropdown.js";
167
+ import { watermarkProps as Jm } from "./watermark/watermark.js";
168
168
  export {
169
169
  wt as BAR_MAP,
170
170
  Ht as CAROUSEL_ITEM_NAME,
171
171
  Yt as CASCADER_PANEL_INJECTION_KEY,
172
- At as CommonPicker,
172
+ Kt as CommonPicker,
173
173
  Wt as CommonProps,
174
174
  of as DEFAULT_DIALOG_TRANSITION,
175
175
  tf as DEFAULT_FORMATS_DATE,
@@ -193,7 +193,7 @@ export {
193
193
  Df as ROOT_PICKER_INJECTION_KEY,
194
194
  Sf as ROOT_PICKER_IS_DEFAULT_FORMAT_INJECTION_KEY,
195
195
  yf as TOOLTIP_INJECTION_KEY,
196
- Kf as TabsRootContextKey,
196
+ Af as TabsRootContextKey,
197
197
  Rt as TimePickPanel,
198
198
  t as VftAlert,
199
199
  z as VftAside,
@@ -202,7 +202,7 @@ export {
202
202
  a as VftAvatarStack,
203
203
  i as VftBacktop,
204
204
  Me as VftBreadcrumb,
205
- Ke as VftBreadcrumbItem,
205
+ Ae as VftBreadcrumbItem,
206
206
  n as VftButton,
207
207
  V as VftButtonGroup,
208
208
  u as VftCard,
@@ -217,7 +217,7 @@ export {
217
217
  y as VftClamp,
218
218
  b as VftClampToggle,
219
219
  F as VftClampTooltip,
220
- K as VftClientOnly,
220
+ A as VftClientOnly,
221
221
  O as VftCol,
222
222
  Le as VftCollapse,
223
223
  Oe as VftCollapseItem,
@@ -243,7 +243,7 @@ export {
243
243
  So as VftFormItem,
244
244
  yo as VftFullScreen,
245
245
  J as VftHeader,
246
- Ko as VftHeaderLayout,
246
+ Ao as VftHeaderLayout,
247
247
  bo as VftHorizontalMenu,
248
248
  X as VftIcon,
249
249
  Fo as VftIconText,
@@ -293,7 +293,7 @@ export {
293
293
  Dr as VftResult,
294
294
  _r as VftRouterViewContent,
295
295
  Mr as VftRow,
296
- Ar as VftScrollbar,
296
+ Kr as VftScrollbar,
297
297
  Rr as VftSearch,
298
298
  Ue as VftSegmented,
299
299
  Lr as VftSelect,
@@ -337,88 +337,87 @@ export {
337
337
  Vp as collapseItemProps,
338
338
  ip as collapseProps,
339
339
  up as configProviderContextKey,
340
- Tp as countdownEmits,
341
- Pp as countdownProps,
340
+ Cp as countdownEmits,
341
+ Tp as countdownProps,
342
342
  W as createContextMenu,
343
343
  Rf as createLoadingDirective,
344
344
  Hf as dateEquals,
345
- Ep as datePickerProps,
345
+ gp as datePickerProps,
346
346
  Uf as dayOrDaysToDate,
347
- Dp as defaultProps,
347
+ Ip as defaultProps,
348
348
  j as destroyContextMenu,
349
349
  rf as dialogInjectionKey,
350
- Mp as dragEventsKey,
350
+ yp as dragEventsKey,
351
351
  sp as emitChangeFn,
352
352
  Jf as extractDateFormat,
353
353
  Yf as extractTimeFormat,
354
- bp as formContextKey,
355
- Rp as formItemContextKey,
354
+ Kp as formContextKey,
355
+ bp as formItemContextKey,
356
356
  qf as formatter,
357
- Lp as genFileId,
358
- kp as getChildState,
359
- Gp as getDynamicProps,
360
- Bp as initAffixTabs,
361
- Up as inputTagEmits,
362
- Jp as inputTagProps,
363
- qp as isDatePicker,
364
- Wp as isInput,
365
- jp as isRangePicker,
366
- dp as localeContextKey,
357
+ Fp as genFileId,
358
+ Np as getChildState,
359
+ vp as getDynamicProps,
360
+ hp as initAffixTabs,
361
+ Hp as inputTagEmits,
362
+ Up as inputTagProps,
363
+ Yp as isDatePicker,
364
+ qp as isInput,
365
+ Wp as isRangePicker,
367
366
  Wf as makeList,
368
- cp as messageConfig,
369
- Xp as messageDefaults,
370
- Zp as messageTypes,
371
- om as notificationEmits,
372
- rm as notificationProps,
373
- em as notificationTypes,
367
+ dp as messageConfig,
368
+ Qp as messageDefaults,
369
+ Xp as messageTypes,
370
+ $p as notificationEmits,
371
+ om as notificationProps,
372
+ rm as notificationTypes,
374
373
  jf as parseDate,
375
- fm as provideGlobalConfig,
376
- xm as radioGroupKey,
374
+ tm as provideGlobalConfig,
375
+ am as radioGroupKey,
377
376
  Qf as rangeArr,
378
377
  vf as removeRequire,
379
378
  Bt as renderThumbStyle,
380
- sm as rowContextKey,
381
- Vm as scrollbarContextKey,
382
- Sp as segmentedEmits,
383
- _p as segmentedProps,
379
+ im as rowContextKey,
380
+ nm as scrollbarContextKey,
381
+ Dp as segmentedEmits,
382
+ Sp as segmentedProps,
384
383
  Gf as selectMapping,
385
- um as selectV2InjectionKey,
386
- cm as sliderContextKey,
387
- Tm as sliderEmits,
388
- gm as spaceProps,
389
- Im as timePickerDefaultProps,
390
- Dm as timePickerRangeTriggerProps,
391
- Sm as timePickerRngeTriggerProps,
384
+ lm as selectV2InjectionKey,
385
+ dm as sliderContextKey,
386
+ Cm as sliderEmits,
387
+ Pm as spaceProps,
388
+ Em as timePickerDefaultProps,
389
+ Im as timePickerRangeTriggerProps,
390
+ Dm as timePickerRngeTriggerProps,
392
391
  xf as timeUnits,
393
392
  Cf as transferCheckedChangeFn,
394
393
  Tf as transferEmits,
395
394
  Pf as transferProps,
396
- Op as uploadContextKey,
395
+ Lp as uploadContextKey,
397
396
  Zt as useCascaderConfig,
398
397
  $ as useContextMenu,
399
- ym as useDialog,
400
- Km as useDisabled,
401
- Kp as useDragNodeHandler,
402
- wp as useForm,
398
+ _m as useDialog,
399
+ Mm as useDisabled,
400
+ Mp as useDragNodeHandler,
401
+ Gp as useForm,
403
402
  Am as useFormDisabled,
404
- Lm as useFormItem,
405
- Om as useFormItemInputId,
406
- bm as useFormSize,
407
- pm as useGlobalComponentSettings,
408
- mm as useGlobalConfig,
409
- km as useModal,
410
- vm as useModalInner,
411
- wm as usePagination,
412
- Rm as useSize,
413
- zm as useSpace,
414
- Um as useTabDropdown,
415
- zp as useTabsDrag,
403
+ Fm as useFormItem,
404
+ Lm as useFormItemInputId,
405
+ Km as useFormSize,
406
+ fm as useGlobalComponentSettings,
407
+ pm as useGlobalConfig,
408
+ Nm as useModal,
409
+ km as useModalInner,
410
+ Gm as usePagination,
411
+ bm as useSize,
412
+ Bm as useSpace,
413
+ Hm as useTabDropdown,
414
+ Bp as useTabsDrag,
416
415
  Ff as vLoading,
417
416
  Xf as valueEquals,
418
- hm as vftPaginationKey,
417
+ wm as vftPaginationKey,
419
418
  ge as virtualizedGridProps,
420
419
  Ee as virtualizedListProps,
421
420
  Ie as virtualizedProps,
422
421
  De as virtualizedScrollbarProps,
423
- Ym as watermarkProps
422
+ Jm as watermarkProps
424
423
  };
@@ -1,86 +1,88 @@
1
- import { defineComponent as S, getCurrentInstance as N, ref as A, computed as k, onMounted as P, nextTick as q, onDeactivated as z, onBeforeMount as B, openBlock as s, createElementBlock as u, normalizeClass as c, unref as e, createBlock as f, createCommentVNode as p, createElementVNode as l, toDisplayString as b, createVNode as h, Fragment as I, renderList as O, withCtx as F, createTextVNode as H, renderSlot as J } from "vue";
2
- import { VftIcon as T } from "../icon/index.js";
3
- import { VftIconText as j } from "../icon-text/index.js";
4
- import { VftMdComment as U } from "../md-comment/index.js";
5
- import { VftSideMenu as Y } from "../side-menu/index.js";
6
- import { VftTag as G } from "../tag/index.js";
1
+ import { defineComponent as S, getCurrentInstance as $, ref as N, computed as x, onMounted as A, nextTick as P, onDeactivated as q, onBeforeMount as z, openBlock as r, createElementBlock as u, normalizeClass as c, unref as e, createBlock as f, createCommentVNode as p, createElementVNode as l, toDisplayString as k, createVNode as g, Fragment as B, renderList as I, withCtx as O, createTextVNode as F, renderSlot as H } from "vue";
2
+ import { VftIcon as b } from "../icon/index.js";
3
+ import { VftIconText as J } from "../icon-text/index.js";
4
+ import { VftMdComment as j } from "../md-comment/index.js";
5
+ import { VftSideMenu as U } from "../side-menu/index.js";
6
+ import { VftTag as Y } from "../tag/index.js";
7
7
  import "@vueuse/core";
8
- import { handleScrollPosition as K, getAdaptiveOffset as Q, jumpElement as D, getRandomElementForArr as W, isClient as X } from "@vft/utils";
8
+ import { handleScrollPosition as G, getAdaptiveOffset as K, jumpElement as D, getRandomElementForArr as Q, isClient as W } from "@vft/utils";
9
9
  import "../config-provider/hooks/use-global-config.js";
10
- import { primaryColor as Z } from "../../utils/ns-cover.js";
11
- import { debounce as ee } from "lodash-es";
10
+ import { primaryColor as X } from "../../utils/ns-cover.js";
11
+ import { debounce as Z } from "lodash-es";
12
12
  import "../form/index.js";
13
- import { useNamespace as te } from "../../hooks/use-namespace/index.js";
13
+ import { useNamespace as ee } from "../../hooks/use-namespace/index.js";
14
14
  import "../../hooks/use-model-toggle/index.js";
15
15
  import "@popperjs/core";
16
16
  import "../../hooks/use-z-index/index.js";
17
- import oe from "../../locale/use-locale.js";
18
- import { useRouterHelper as ne } from "@vft/router";
19
- import { useEventListener as ie } from "@vft/use";
20
- import { usePhotoSwipe as le } from "@vft/use/photoswipe";
21
- import { formatToDateTime as ae, getDayTimestamp as re } from "@vft/utils/date";
22
- import { useCopyCode as se } from "./use/useCopyCode.js";
23
- import { COMP_TYPE as ce } from "./utils.js";
24
- const me = { class: "info-container" }, de = {
17
+ import { useRouterHelper as te } from "@vft/router";
18
+ import { useEventListener as oe } from "@vft/use";
19
+ import { usePhotoSwipe as ne } from "@vft/use/photoswipe";
20
+ import { formatToDateTime as ie, getDayTimestamp as le } from "@vft/utils/date";
21
+ import { useCopyCode as ae } from "./use/useCopyCode.js";
22
+ import { COMP_TYPE as se } from "./utils.js";
23
+ const re = { class: "info-container" }, ce = {
25
24
  key: 0,
26
25
  class: "left"
27
- }, ue = { class: "infos" }, fe = ["title"], pe = ["data-path"], he = S({
26
+ }, me = { class: "infos" }, de = {
27
+ class: "reading",
28
+ title: "阅读量"
29
+ }, ue = ["data-path"], fe = S({
28
30
  name: "vft-md-container"
29
- }), Ie = /* @__PURE__ */ S({
30
- ...he,
31
+ }), qe = /* @__PURE__ */ S({
32
+ ...fe,
31
33
  props: {
32
34
  tocList: {},
33
35
  scrollDom: { default: ".layout-content" },
34
36
  showComment: { type: Boolean, default: !0 }
35
37
  },
36
38
  setup(a) {
37
- const r = te("md-container"), L = N(), { t: g } = oe(), m = A(), d = k(() => a.tocList && a.tocList !== "undefined" ? JSON.parse(a.tocList) : ""), { initPhotoSwipe: w } = le(`.${r.e("content")} img`);
38
- w(), se();
39
- const v = L.appContext.config.globalProperties.$router, n = v.currentRoute.value, V = Z(), _ = X ? location.pathname : "", { go: E } = ne(v);
40
- function M(o) {
41
- E(`/?classify=${o}`);
39
+ const s = ee("md-container"), T = $(), m = N(), d = x(() => a.tocList && a.tocList !== "undefined" ? JSON.parse(a.tocList) : ""), { initPhotoSwipe: w } = ne(`.${s.e("content")} img`);
40
+ w(), ae();
41
+ const h = T.appContext.config.globalProperties.$router, n = h.currentRoute.value, L = X(), V = W ? location.pathname : "", { go: _ } = te(h);
42
+ function E(o) {
43
+ _(`/?classify=${o}`);
42
44
  }
43
- const R = k(() => n.meta.category?.includes("api")), y = ee(
44
- () => K({
45
+ const M = x(() => n.meta.category?.includes("api")), v = Z(
46
+ () => G({
45
47
  scrollDom: a.scrollDom,
46
48
  contentDom: ".header-anchor",
47
49
  selectAttrName: "href",
48
- offset: Q(210, 1920, 1500, 1920),
50
+ offset: K(210, 1920, 1500, 1920),
49
51
  callback: (o) => {
50
52
  m.value?.menuRef && (m.value.menuRef.activeIndex = o.slice(1));
51
53
  }
52
54
  }),
53
55
  100
54
- ), C = (o) => {
56
+ ), y = (o) => {
55
57
  D(`[id="${o.index}"]`, a.scrollDom, 120);
56
- }, x = () => {
58
+ }, C = () => {
57
59
  const o = document.querySelector(a.scrollDom);
58
- o && o.removeEventListener("scroll", y);
60
+ o && o.removeEventListener("scroll", v);
59
61
  };
60
- return P(() => {
61
- q(() => {
62
+ return A(() => {
63
+ P(() => {
62
64
  setTimeout(() => {
63
65
  n.hash && D(`[id="${encodeURI(n.hash).slice(1)}"]`);
64
66
  }), setTimeout(() => {
65
67
  const t = document.querySelector(".layout-content");
66
- t && t.addEventListener("scroll", y);
68
+ t && t.addEventListener("scroll", v);
67
69
  }, 1500);
68
70
  const o = document.querySelectorAll(".item.expand"), i = document.querySelectorAll(
69
71
  "div.language-vue"
70
72
  );
71
73
  for (let t = 0; t < o.length; t++)
72
- ie(o[t], "click", () => {
74
+ oe(o[t], "click", () => {
73
75
  i[t].offsetHeight === 0 ? (i[t].style.height = "auto", i[t].style.visibility = "visible") : (i[t].style.height = "0px", i[t].style.visibility = "hidden");
74
76
  });
75
77
  });
78
+ }), q(() => {
79
+ C();
76
80
  }), z(() => {
77
- x();
78
- }), B(() => {
79
- x();
80
- }), (o, i) => (s(), u("div", {
81
- class: c([e(r).b(), e(r).is("api", R.value)])
81
+ C();
82
+ }), (o, i) => (r(), u("div", {
83
+ class: c([e(s).b(), e(s).is("api", M.value)])
82
84
  }, [
83
- d.value?.length ? (s(), f(e(Y), {
85
+ d.value?.length ? (r(), f(e(U), {
84
86
  key: 0,
85
87
  ref_key: "sideMenuRef",
86
88
  ref: m,
@@ -94,69 +96,66 @@ const me = { class: "info-container" }, de = {
94
96
  "attr-mapping": {
95
97
  index: "slug"
96
98
  },
97
- onSelect: C,
98
- onSubMenuClick: C
99
+ onSelect: y,
100
+ onSubMenuClick: y
99
101
  }, null, 8, ["default-active", "menus"])) : p("", !0),
100
102
  l("div", {
101
- class: c(e(r).e("header"))
103
+ class: c(e(s).e("header"))
102
104
  }, [
103
105
  l("h1", {
104
- class: c(e(r).e("title"))
105
- }, b(e(n).meta?.title), 3),
106
- l("div", me, [
107
- e(n).meta?.category?.length ? (s(), u("div", de, [
108
- h(e(T), {
106
+ class: c(e(s).e("title"))
107
+ }, k(e(n).meta?.title), 3),
108
+ l("div", re, [
109
+ e(n).meta?.category?.length ? (r(), u("div", ce, [
110
+ g(e(b), {
109
111
  size: 14,
110
- color: e(V),
112
+ color: e(L),
111
113
  icon: "icon-category"
112
114
  }, null, 8, ["color"]),
113
- (s(!0), u(I, null, O(e(n).meta?.category, (t, $) => (s(), f(e(G), {
115
+ (r(!0), u(B, null, I(e(n).meta?.category, (t, R) => (r(), f(e(Y), {
114
116
  size: "small",
115
117
  class: "tag",
116
- type: e(W)(e(ce), 1)[0],
117
- key: $,
118
- onClick: (ge) => M(t)
118
+ type: e(Q)(e(se), 1)[0],
119
+ key: R,
120
+ onClick: (pe) => E(t)
119
121
  }, {
120
- default: F(() => [
121
- H(b(t), 1)
122
+ default: O(() => [
123
+ F(k(t), 1)
122
124
  ]),
123
125
  _: 2
124
126
  }, 1032, ["type", "onClick"]))), 128))
125
127
  ])) : p("", !0),
126
- l("div", ue, [
127
- h(e(j), {
128
- title: e(g)("vft.mdContainer.publishTime"),
128
+ l("div", me, [
129
+ g(e(J), {
130
+ title: "发布时间",
129
131
  icon: "icon-date",
130
132
  size: 12,
131
133
  class: "mr-10px",
132
134
  distance: 5,
133
- text: e(ae)(
134
- (e(n).meta?.date ? new Date(e(n).meta.date).getTime() : (/* @__PURE__ */ new Date()).getTime()) - e(re)()
135
+ text: e(ie)(
136
+ (e(n).meta?.date ? new Date(e(n).meta.date).getTime() : (/* @__PURE__ */ new Date()).getTime()) - e(le)()
135
137
  )
136
- }, null, 8, ["title", "text"]),
137
- l("div", {
138
- class: "reading",
139
- title: e(g)("vft.mdContainer.readCount")
140
- }, [
141
- h(e(T), {
138
+ }, null, 8, ["text"]),
139
+ l("div", de, [
140
+ g(e(b), {
142
141
  icon: "icon-reading",
143
142
  size: 14,
144
143
  class: "mr-5px"
145
144
  }),
146
145
  l("div", {
147
146
  class: "waline-pageview-count lh-1",
148
- "data-path": e(_)
149
- }, "0", 8, pe)
150
- ], 8, fe)
147
+ "data-path": e(V)
148
+ }, "0", 8, ue)
149
+ ])
151
150
  ])
152
151
  ])
153
152
  ], 2),
154
153
  l("div", {
155
- class: c(e(r).e("content"))
154
+ class: c(e(s).e("content"))
156
155
  }, [
157
- J(o.$slots, "default")
156
+ H(o.$slots, "default")
158
157
  ], 2),
159
- a.showComment ? (s(), f(e(U), { key: 1 })) : p("", !0),
158
+ a.showComment ? (r(), f(e(j), { key: 1 })) : p("", !0),
160
159
  i[0] || (i[0] = l("ins", {
161
160
  class: "adsbygoogle",
162
161
  style: { display: "block", "text-align": "center" },
@@ -169,5 +168,5 @@ const me = { class: "info-container" }, de = {
169
168
  }
170
169
  });
171
170
  export {
172
- Ie as default
171
+ qe as default
173
172
  };