vft 0.0.511 → 0.0.514
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.
- package/dist/index.css +1 -1
- package/es/components/cascader/cascader.vue2.js +202 -203
- package/es/components/cascader-panel/menu.vue2.js +49 -50
- package/es/components/clamp-toggle/clamp-toggle.vue2.js +18 -19
- package/es/components/color-picker/color-picker.vue2.js +133 -134
- package/es/components/config-provider/config-provider.vue.d.ts +0 -2
- package/es/components/config-provider/config-provider.vue2.js +4 -5
- package/es/components/config-provider/constants.d.ts +0 -1
- package/es/components/config-provider/constants.js +2 -3
- package/es/components/config-provider/hooks/use-global-config.js +30 -33
- package/es/components/config-provider/index.d.ts +0 -9
- package/es/components/config-provider/index.js +5 -6
- package/es/components/date-picker/composables/use-basic-date-table.js +82 -83
- package/es/components/date-picker/composables/use-month-range-header.js +14 -15
- package/es/components/date-picker/composables/use-panel-date-range.js +23 -24
- package/es/components/date-picker/date-picker-com/basic-month-table.vue2.js +38 -39
- package/es/components/date-picker/date-picker-com/basic-year-table.vue2.js +38 -39
- package/es/components/date-picker/date-picker-com/panel-date-pick.vue2.js +183 -184
- package/es/components/date-picker/date-picker-com/panel-date-range.vue2.js +224 -225
- package/es/components/date-time-select/date-time-select.vue2.js +36 -39
- package/es/components/dropdown/dropdown-item-impl.vue.d.ts +1 -1
- package/es/components/dropdown/dropdown-item.vue.d.ts +1 -1
- package/es/components/dropdown/dropdown.vue.d.ts +1 -1
- package/es/components/dropdown/dropdown.vue2.js +67 -68
- package/es/components/dropdown/index.d.ts +33 -33
- package/es/components/empty/empty.vue2.js +38 -39
- package/es/components/full-screen/full-screen.vue2.js +17 -18
- package/es/components/image/image.vue2.js +59 -60
- package/es/components/image-viewer/image-viewer.vue2.js +44 -45
- package/es/components/index.js +97 -98
- package/es/components/md-container/md-container.vue2.js +74 -75
- package/es/components/md-container/toc.js +36 -37
- package/es/components/message-box/message-box.vue2.js +3 -3
- package/es/components/message-box/method.js +47 -48
- package/es/components/modal/modal-footer-action.vue2.js +24 -25
- package/es/components/multiple-tabs/multiple-tabs.vue2.js +15 -16
- package/es/components/multiple-tabs/use/use-tab-dropdown.js +53 -54
- package/es/components/popconfirm/popconfirm.vue2.js +39 -40
- package/es/components/search/search.vue2.js +50 -51
- package/es/components/select/useSelect.js +231 -232
- package/es/components/super-form/super-form-item.vue2.js +66 -66
- package/es/components/time-picker/time-picker-com/panel-time-pick.vue2.js +65 -66
- package/es/components/time-picker/time-picker-com/panel-time-range.vue2.js +133 -134
- package/es/components/transfer/transfer-panel.vue2.js +56 -57
- package/es/components/transfer/transfer.vue2.js +69 -70
- package/es/components/tree/tree.vue2.js +59 -60
- package/es/components/upload/upload-content.vue2.js +49 -50
- package/es/components/upload/upload-list.vue2.js +45 -46
- package/es/components/upload/upload.vue2.js +99 -100
- package/es/hooks/use-z-index/index.js +3 -3
- package/es/index.d.ts +0 -1
- package/es/index.js +1 -5
- package/es/package.json.d.ts +1 -1
- package/es/package.json.js +1 -1
- package/lib/components/cascader/cascader.vue2.cjs +1 -1
- package/lib/components/cascader-panel/menu.vue2.cjs +4 -4
- package/lib/components/clamp-toggle/clamp-toggle.vue2.cjs +1 -1
- package/lib/components/color-picker/color-picker.vue2.cjs +1 -1
- package/lib/components/config-provider/config-provider.vue.d.ts +0 -2
- package/lib/components/config-provider/config-provider.vue2.cjs +1 -1
- package/lib/components/config-provider/constants.cjs +1 -1
- package/lib/components/config-provider/constants.d.ts +0 -1
- package/lib/components/config-provider/hooks/use-global-config.cjs +1 -1
- package/lib/components/config-provider/index.cjs +1 -1
- package/lib/components/config-provider/index.d.ts +0 -9
- package/lib/components/date-picker/composables/use-basic-date-table.cjs +1 -1
- package/lib/components/date-picker/composables/use-month-range-header.cjs +1 -1
- package/lib/components/date-picker/composables/use-panel-date-range.cjs +1 -1
- package/lib/components/date-picker/date-picker-com/basic-month-table.vue2.cjs +1 -1
- package/lib/components/date-picker/date-picker-com/basic-year-table.vue2.cjs +1 -1
- package/lib/components/date-picker/date-picker-com/panel-date-pick.vue2.cjs +1 -1
- package/lib/components/date-picker/date-picker-com/panel-date-range.vue2.cjs +1 -1
- package/lib/components/date-time-select/date-time-select.vue2.cjs +1 -1
- package/lib/components/dropdown/dropdown-item-impl.vue.d.ts +1 -1
- package/lib/components/dropdown/dropdown-item.vue.d.ts +1 -1
- package/lib/components/dropdown/dropdown.vue.d.ts +1 -1
- package/lib/components/dropdown/dropdown.vue2.cjs +1 -1
- package/lib/components/dropdown/index.d.ts +33 -33
- package/lib/components/empty/empty.vue2.cjs +1 -1
- package/lib/components/full-screen/full-screen.vue2.cjs +1 -1
- package/lib/components/image/image.vue2.cjs +1 -1
- package/lib/components/image-viewer/image-viewer.vue2.cjs +1 -1
- package/lib/components/index.cjs +1 -1
- package/lib/components/md-container/md-container.vue2.cjs +1 -1
- package/lib/components/md-container/toc.cjs +1 -1
- package/lib/components/message-box/message-box.vue2.cjs +1 -1
- package/lib/components/message-box/method.cjs +1 -1
- package/lib/components/modal/modal-footer-action.vue2.cjs +1 -1
- package/lib/components/multiple-tabs/multiple-tabs.vue2.cjs +1 -1
- package/lib/components/multiple-tabs/use/use-tab-dropdown.cjs +1 -1
- package/lib/components/popconfirm/popconfirm.vue2.cjs +1 -1
- package/lib/components/search/search.vue2.cjs +1 -1
- package/lib/components/select/useSelect.cjs +1 -1
- package/lib/components/super-form/super-form-item.vue2.cjs +1 -1
- package/lib/components/time-picker/time-picker-com/panel-time-pick.vue2.cjs +1 -1
- package/lib/components/time-picker/time-picker-com/panel-time-range.vue2.cjs +1 -1
- package/lib/components/transfer/transfer-panel.vue2.cjs +1 -1
- package/lib/components/transfer/transfer.vue2.cjs +1 -1
- package/lib/components/tree/tree.vue2.cjs +1 -1
- package/lib/components/upload/upload-content.vue2.cjs +1 -1
- package/lib/components/upload/upload-list.vue2.cjs +1 -1
- package/lib/components/upload/upload.vue2.cjs +1 -1
- package/lib/index.cjs +1 -1
- package/lib/index.d.ts +0 -1
- package/lib/package.json.cjs +1 -1
- package/lib/package.json.d.ts +1 -1
- package/package.json +3 -3
- package/theme-style/index.css +1 -1
- package/theme-style/src/image-viewer.scss +12 -0
- package/theme-style/src/message-box.scss +2 -2
- package/theme-style/src/table.scss +6 -0
- package/theme-style/vft-image-viewer.css +1 -1
- package/theme-style/vft-message-box.css +1 -1
- package/theme-style/vft-table.css +1 -1
- package/web-types.json +1 -1
- package/es/locale/index.d.js +0 -1
- package/es/locale/index.d.ts +0 -26
- package/es/locale/index.js +0 -10
- package/es/locale/lang/en.d.ts +0 -183
- package/es/locale/lang/en.js +0 -241
- package/es/locale/lang/zh-cn.d.ts +0 -183
- package/es/locale/lang/zh-cn.js +0 -241
- package/es/locale/lang/zh-tw.d.ts +0 -183
- package/es/locale/lang/zh-tw.js +0 -241
- package/es/locale/use-locale.d.ts +0 -17
- package/es/locale/use-locale.js +0 -56
- package/lib/locale/index.cjs +0 -1
- package/lib/locale/index.d.cjs +0 -1
- package/lib/locale/index.d.ts +0 -26
- package/lib/locale/lang/en.cjs +0 -1
- package/lib/locale/lang/en.d.ts +0 -183
- package/lib/locale/lang/zh-cn.cjs +0 -1
- package/lib/locale/lang/zh-cn.d.ts +0 -183
- package/lib/locale/lang/zh-tw.cjs +0 -1
- package/lib/locale/lang/zh-tw.d.ts +0 -183
- package/lib/locale/use-locale.cjs +0 -1
- package/lib/locale/use-locale.d.ts +0 -17
package/es/components/index.js
CHANGED
|
@@ -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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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,
|
|
138
|
-
import { countdownEmits as
|
|
139
|
-
import { datePickerProps as
|
|
140
|
-
import { defaultProps as
|
|
141
|
-
import { dragEventsKey as
|
|
142
|
-
import { formContextKey as
|
|
143
|
-
import { genFileId as
|
|
144
|
-
import { getChildState as
|
|
145
|
-
import { getDynamicProps as
|
|
146
|
-
import { initAffixTabs as
|
|
147
|
-
import { inputTagEmits as
|
|
148
|
-
import { isDatePicker as
|
|
149
|
-
import { messageDefaults as
|
|
150
|
-
import { notificationEmits as
|
|
151
|
-
import { provideGlobalConfig as
|
|
152
|
-
import { radioGroupKey as
|
|
153
|
-
import { rowContextKey as
|
|
154
|
-
import { scrollbarContextKey as
|
|
155
|
-
import { selectV2InjectionKey as
|
|
156
|
-
import { sliderContextKey as
|
|
157
|
-
import { sliderEmits as
|
|
158
|
-
import { spaceProps as
|
|
159
|
-
import { timePickerDefaultProps as
|
|
160
|
-
import { useDialog as
|
|
161
|
-
import { useDisabled as
|
|
162
|
-
import { useFormItem as
|
|
163
|
-
import { useModal as
|
|
164
|
-
import { usePagination as
|
|
165
|
-
import { useSpace as
|
|
166
|
-
import { useTabDropdown as
|
|
167
|
-
import { watermarkProps as
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
341
|
-
|
|
340
|
+
Cp as countdownEmits,
|
|
341
|
+
Tp as countdownProps,
|
|
342
342
|
W as createContextMenu,
|
|
343
343
|
Rf as createLoadingDirective,
|
|
344
344
|
Hf as dateEquals,
|
|
345
|
-
|
|
345
|
+
gp as datePickerProps,
|
|
346
346
|
Uf as dayOrDaysToDate,
|
|
347
|
-
|
|
347
|
+
Ip as defaultProps,
|
|
348
348
|
j as destroyContextMenu,
|
|
349
349
|
rf as dialogInjectionKey,
|
|
350
|
-
|
|
350
|
+
yp as dragEventsKey,
|
|
351
351
|
sp as emitChangeFn,
|
|
352
352
|
Jf as extractDateFormat,
|
|
353
353
|
Yf as extractTimeFormat,
|
|
354
|
-
|
|
355
|
-
|
|
354
|
+
Kp as formContextKey,
|
|
355
|
+
bp as formItemContextKey,
|
|
356
356
|
qf as formatter,
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
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
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
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
|
-
|
|
376
|
-
|
|
374
|
+
tm as provideGlobalConfig,
|
|
375
|
+
am as radioGroupKey,
|
|
377
376
|
Qf as rangeArr,
|
|
378
377
|
vf as removeRequire,
|
|
379
378
|
Bt as renderThumbStyle,
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
379
|
+
im as rowContextKey,
|
|
380
|
+
nm as scrollbarContextKey,
|
|
381
|
+
Dp as segmentedEmits,
|
|
382
|
+
Sp as segmentedProps,
|
|
384
383
|
Gf as selectMapping,
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
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
|
-
|
|
395
|
+
Lp as uploadContextKey,
|
|
397
396
|
Zt as useCascaderConfig,
|
|
398
397
|
$ as useContextMenu,
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
398
|
+
_m as useDialog,
|
|
399
|
+
Mm as useDisabled,
|
|
400
|
+
Mp as useDragNodeHandler,
|
|
401
|
+
Gp as useForm,
|
|
403
402
|
Am as useFormDisabled,
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
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
|
-
|
|
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
|
-
|
|
422
|
+
Jm as watermarkProps
|
|
424
423
|
};
|
|
@@ -1,86 +1,88 @@
|
|
|
1
|
-
import { defineComponent as S, getCurrentInstance as
|
|
2
|
-
import { VftIcon as
|
|
3
|
-
import { VftIconText as
|
|
4
|
-
import { VftMdComment as
|
|
5
|
-
import { VftSideMenu as
|
|
6
|
-
import { VftTag as
|
|
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
|
|
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
|
|
11
|
-
import { debounce as
|
|
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
|
|
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
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
|
|
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
|
-
},
|
|
26
|
+
}, me = { class: "infos" }, de = {
|
|
27
|
+
class: "reading",
|
|
28
|
+
title: "阅读量"
|
|
29
|
+
}, ue = ["data-path"], fe = S({
|
|
28
30
|
name: "vft-md-container"
|
|
29
|
-
}),
|
|
30
|
-
...
|
|
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
|
|
38
|
-
w(),
|
|
39
|
-
const
|
|
40
|
-
function
|
|
41
|
-
|
|
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
|
|
44
|
-
() =>
|
|
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:
|
|
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
|
-
),
|
|
56
|
+
), y = (o) => {
|
|
55
57
|
D(`[id="${o.index}"]`, a.scrollDom, 120);
|
|
56
|
-
},
|
|
58
|
+
}, C = () => {
|
|
57
59
|
const o = document.querySelector(a.scrollDom);
|
|
58
|
-
o && o.removeEventListener("scroll",
|
|
60
|
+
o && o.removeEventListener("scroll", v);
|
|
59
61
|
};
|
|
60
|
-
return
|
|
61
|
-
|
|
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",
|
|
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
|
-
|
|
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
|
-
|
|
78
|
-
}),
|
|
79
|
-
|
|
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 ? (
|
|
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:
|
|
98
|
-
onSubMenuClick:
|
|
99
|
+
onSelect: y,
|
|
100
|
+
onSubMenuClick: y
|
|
99
101
|
}, null, 8, ["default-active", "menus"])) : p("", !0),
|
|
100
102
|
l("div", {
|
|
101
|
-
class: c(e(
|
|
103
|
+
class: c(e(s).e("header"))
|
|
102
104
|
}, [
|
|
103
105
|
l("h1", {
|
|
104
|
-
class: c(e(
|
|
105
|
-
},
|
|
106
|
-
l("div",
|
|
107
|
-
e(n).meta?.category?.length ? (
|
|
108
|
-
|
|
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(
|
|
112
|
+
color: e(L),
|
|
111
113
|
icon: "icon-category"
|
|
112
114
|
}, null, 8, ["color"]),
|
|
113
|
-
(
|
|
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(
|
|
117
|
-
key:
|
|
118
|
-
onClick: (
|
|
118
|
+
type: e(Q)(e(se), 1)[0],
|
|
119
|
+
key: R,
|
|
120
|
+
onClick: (pe) => E(t)
|
|
119
121
|
}, {
|
|
120
|
-
default:
|
|
121
|
-
|
|
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",
|
|
127
|
-
|
|
128
|
-
title:
|
|
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(
|
|
134
|
-
(e(n).meta?.date ? new Date(e(n).meta.date).getTime() : (/* @__PURE__ */ new Date()).getTime()) - e(
|
|
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, ["
|
|
137
|
-
l("div",
|
|
138
|
-
|
|
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,
|
|
150
|
-
]
|
|
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(
|
|
154
|
+
class: c(e(s).e("content"))
|
|
156
155
|
}, [
|
|
157
|
-
|
|
156
|
+
H(o.$slots, "default")
|
|
158
157
|
], 2),
|
|
159
|
-
a.showComment ? (
|
|
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
|
-
|
|
171
|
+
qe as default
|
|
173
172
|
};
|