vft 0.0.162 → 0.0.164
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +1 -1
- package/es/components/button/use-button.js +3 -3
- package/es/components/carousel/carousel.vue.d.ts +1 -1
- package/es/components/carousel/carousel.vue2.js +22 -26
- package/es/components/carousel/index.d.ts +11 -11
- package/es/components/checkbox/index.d.ts +12 -12
- package/es/components/header-layout/header-layout.vue2.js +14 -14
- package/es/components/index.js +113 -113
- package/es/components/link/index.d.ts +4 -4
- package/es/components/popper/composables/use-content.d.ts +2 -2
- package/es/components/select/option-item.vue.d.ts +1 -1
- package/es/components/table/index.d.ts +114 -114
- package/es/components/table/table.vue.d.ts +13 -13
- package/es/components/time-select/time-select.vue.d.ts +1 -1
- package/es/components/tree/index.d.ts +42 -42
- package/es/components/tree/tree.vue.d.ts +7 -7
- package/es/components/upload/index.d.ts +19 -19
- package/es/components/upload/upload-content.vue.d.ts +1 -1
- package/es/components/upload/upload.vue.d.ts +1 -1
- package/es/hooks/use-popper/index.d.ts +2 -2
- package/es/index.js +113 -113
- package/es/package.json.d.ts +1 -1
- package/es/package.json.js +1 -1
- package/lib/components/button/use-button.cjs +1 -1
- package/lib/components/carousel/carousel.vue.d.ts +1 -1
- package/lib/components/carousel/carousel.vue2.cjs +1 -1
- package/lib/components/carousel/index.d.ts +11 -11
- package/lib/components/checkbox/index.d.ts +12 -12
- package/lib/components/header-layout/header-layout.vue2.cjs +1 -1
- package/lib/components/index.cjs +1 -1
- package/lib/components/link/index.d.ts +4 -4
- package/lib/components/popper/composables/use-content.d.ts +2 -2
- package/lib/components/select/option-item.vue.d.ts +1 -1
- package/lib/components/table/index.d.ts +114 -114
- package/lib/components/table/table.vue.d.ts +13 -13
- package/lib/components/time-select/time-select.vue.d.ts +1 -1
- package/lib/components/tree/index.d.ts +42 -42
- package/lib/components/tree/tree.vue.d.ts +7 -7
- package/lib/components/upload/index.d.ts +19 -19
- package/lib/components/upload/upload-content.vue.d.ts +1 -1
- package/lib/components/upload/upload.vue.d.ts +1 -1
- package/lib/hooks/use-popper/index.d.ts +2 -2
- package/lib/index.cjs +1 -1
- package/lib/package.json.cjs +1 -1
- package/lib/package.json.d.ts +1 -1
- package/package.json +6 -6
- package/theme-style/index.css +1 -1
- package/theme-style/src/header-layout.scss +4 -0
- package/theme-style/vft-header-layout.css +1 -1
- package/web-types.json +1 -1
package/es/index.js
CHANGED
|
@@ -127,45 +127,45 @@ import { cAF as Qf, rAF as Xf } from "./utils/vue/raf.js";
|
|
|
127
127
|
import { composeRefs as ep } from "./utils/vue/refs.js";
|
|
128
128
|
import { PatchFlags as rp, ensureOnlyChild as tp, flattedChildren as fp, getFirstValidNode as pp, getNormalizedProps as mp, isComment as ap, isFragment as xp, isTemplate as ip, isText as sp, isValidElementNode as np, renderBlock as lp, renderIf as Vp } from "./utils/vue/vnode.js";
|
|
129
129
|
import { default as dp } from "dayjs";
|
|
130
|
-
import {
|
|
131
|
-
import {
|
|
132
|
-
import {
|
|
133
|
-
import {
|
|
134
|
-
import {
|
|
135
|
-
import {
|
|
136
|
-
import {
|
|
137
|
-
import {
|
|
138
|
-
import {
|
|
139
|
-
import {
|
|
140
|
-
import {
|
|
141
|
-
import {
|
|
142
|
-
import {
|
|
143
|
-
import {
|
|
144
|
-
import {
|
|
145
|
-
import {
|
|
146
|
-
import {
|
|
147
|
-
import {
|
|
148
|
-
import {
|
|
149
|
-
import {
|
|
150
|
-
import { default as um } from "./components/popper/
|
|
151
|
-
import {
|
|
152
|
-
import {
|
|
153
|
-
import {
|
|
154
|
-
import {
|
|
155
|
-
import {
|
|
156
|
-
import {
|
|
157
|
-
import {
|
|
158
|
-
import {
|
|
159
|
-
import {
|
|
160
|
-
import {
|
|
161
|
-
import {
|
|
162
|
-
import {
|
|
163
|
-
import {
|
|
164
|
-
import {
|
|
165
|
-
import {
|
|
166
|
-
import {
|
|
167
|
-
import {
|
|
168
|
-
import {
|
|
130
|
+
import { buttonGroupContextKey as Ip } from "./components/button/constants.js";
|
|
131
|
+
import { checkboxGroupContextKey as Tp } from "./components/checkbox/constants.js";
|
|
132
|
+
import { configProviderContextKey as Ep, messageConfig as Dp } from "./components/config-provider/constants.js";
|
|
133
|
+
import { provideGlobalConfig as Sp, useGlobalComponentSettings as Fp, useGlobalConfig as yp } from "./components/config-provider/hooks/use-global-config.js";
|
|
134
|
+
import { ROOT_PICKER_INJECTION_KEY as _p, datePickerConfig as bp } from "./components/date-picker/constants.js";
|
|
135
|
+
import { datePickerProps as Ap } from "./components/date-picker/props/date-picker.js";
|
|
136
|
+
import { dialogInjectionKey as Kp } from "./components/dialog/constants.js";
|
|
137
|
+
import { useDialog as Rp } from "./components/dialog/hooks/use-dialog.js";
|
|
138
|
+
import { DROPDOWN_INJECTION_KEY as Op } from "./components/dropdown/tokens.js";
|
|
139
|
+
import { EmptyEnum as wp } from "./components/empty/constants.js";
|
|
140
|
+
import { formContextKey as Gp, formItemContextKey as Up } from "./components/form/constants.js";
|
|
141
|
+
import { useDisabled as Bp, useFormDisabled as Hp, useFormSize as Jp, useSize as Wp } from "./components/form/hooks/use-form-common-props.js";
|
|
142
|
+
import { useFormItem as qp, useFormItemInputId as Zp } from "./components/form/hooks/use-form-item.js";
|
|
143
|
+
import { formItemValidateStates as Xp } from "./components/form/types.js";
|
|
144
|
+
import { MenuTypeEnum as em } from "./components/horizontal-menu/constants.js";
|
|
145
|
+
import { initAffixTabs as rm, useTabsDrag as tm } from "./components/multiple-tabs/use/use-multiple-tabs.js";
|
|
146
|
+
import { useTabDropdown as pm } from "./components/multiple-tabs/use/use-tab-dropdown.js";
|
|
147
|
+
import { usePagination as am, vftPaginationKey as xm } from "./components/pagination/usePagination.js";
|
|
148
|
+
import { default as sm } from "./components/popper/arrow.vue2.js";
|
|
149
|
+
import { default as lm } from "./components/popper/content.vue2.js";
|
|
150
|
+
import { default as um } from "./components/popper/trigger.vue2.js";
|
|
151
|
+
import { radioGroupKey as cm } from "./components/radio/constants.js";
|
|
152
|
+
import { rowContextKey as Cm } from "./components/row/constants.js";
|
|
153
|
+
import { scrollbarContextKey as gm } from "./components/scrollbar/constants.js";
|
|
154
|
+
import { BAR_MAP as Dm, GAP as Pm, renderThumbStyle as Sm } from "./components/scrollbar/util.js";
|
|
155
|
+
import { selectInjectionKey as ym } from "./components/select/token.js";
|
|
156
|
+
import { sliderContextKey as _m } from "./components/slider/constants.js";
|
|
157
|
+
import { sliderEmits as Lm } from "./components/slider/slider.js";
|
|
158
|
+
import { spaceProps as Nm } from "./components/space/space.js";
|
|
159
|
+
import { useSpace as vm } from "./components/space/use-space.js";
|
|
160
|
+
import { ACTION_FIELD as km, CHECKED_FIELD as Om, CREATE_TIME_FIELD as hm, DATE_FIELD as wm, DATE_TIME_FIELD as zm, ID_FIELD as Gm, NAME_FIELD as Um, SEQ_FIELD as Ym, STATUS_FIELD as Bm, UPDATE_TIME_FIELD as Hm } from "./components/table/field.js";
|
|
161
|
+
import { useTable as Wm } from "./components/table/use/use-table.js";
|
|
162
|
+
import { addRequire as qm, removeRequire as Zm, selectMapping as Qm } from "./components/table/utils.js";
|
|
163
|
+
import { TabsRootContextKey as $m } from "./components/tabs/types.js";
|
|
164
|
+
import { timePickerDefaultProps as oa } from "./components/time-picker/common/props.js";
|
|
165
|
+
import { DEFAULT_FORMATS_DATE as ta, DEFAULT_FORMATS_DATEPICKER as fa, DEFAULT_FORMATS_TIME as pa, timeUnits as ma } from "./components/time-picker/constants.js";
|
|
166
|
+
import { buildTimeList as xa, dateEquals as ia, extractDateFormat as sa, extractTimeFormat as na, formatter as la, makeList as Va, parseDate as ua, rangeArr as da, valueEquals as ca } from "./components/time-picker/utils.js";
|
|
167
|
+
import { default as Ca } from "./components/time-picker/common/picker.vue2.js";
|
|
168
|
+
import { default as ga } from "./components/time-picker/time-picker-com/panel-time-pick.vue2.js";
|
|
169
169
|
import { TOOLTIP_INJECTION_KEY as Da } from "./components/tooltip/constants.js";
|
|
170
170
|
import { getChildState as Sa } from "./components/tree/model/node.js";
|
|
171
171
|
import { dragEventsKey as ya, useDragNodeHandler as Ma } from "./components/tree/model/useDragNode.js";
|
|
@@ -179,46 +179,46 @@ import { Loading as Xa } from "./components/loading/service.js";
|
|
|
179
179
|
import { messageDefaults as ex, messageTypes as ox } from "./components/message/types.js";
|
|
180
180
|
const r = e.install, t = e.version;
|
|
181
181
|
export {
|
|
182
|
-
|
|
183
|
-
|
|
182
|
+
km as ACTION_FIELD,
|
|
183
|
+
Dm as BAR_MAP,
|
|
184
184
|
mt as CHANGE_EVENT,
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
185
|
+
Om as CHECKED_FIELD,
|
|
186
|
+
hm as CREATE_TIME_FIELD,
|
|
187
|
+
Ca as CommonPicker,
|
|
188
188
|
m as CompResolver,
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
189
|
+
wm as DATE_FIELD,
|
|
190
|
+
zm as DATE_TIME_FIELD,
|
|
191
|
+
ta as DEFAULT_FORMATS_DATE,
|
|
192
|
+
fa as DEFAULT_FORMATS_DATEPICKER,
|
|
193
|
+
pa as DEFAULT_FORMATS_TIME,
|
|
194
|
+
Op as DROPDOWN_INJECTION_KEY,
|
|
195
195
|
xr as DynamicSizeGrid,
|
|
196
196
|
sr as DynamicSizeList,
|
|
197
197
|
ot as EVENT_CODE,
|
|
198
|
-
|
|
198
|
+
wp as EmptyEnum,
|
|
199
199
|
Pt as FORWARD_REF_INJECTION_KEY,
|
|
200
200
|
lr as FixedSizeGrid,
|
|
201
201
|
ur as FixedSizeList,
|
|
202
202
|
Na as FormCompEnum,
|
|
203
|
-
|
|
204
|
-
|
|
203
|
+
Pm as GAP,
|
|
204
|
+
Gm as ID_FIELD,
|
|
205
205
|
Mt as ID_INJECTION_KEY,
|
|
206
206
|
at as INPUT_EVENT,
|
|
207
207
|
st as INSTALLED_KEY,
|
|
208
208
|
Le as Icon,
|
|
209
|
-
|
|
209
|
+
em as MenuTypeEnum,
|
|
210
210
|
jr as Message,
|
|
211
|
-
|
|
211
|
+
Um as NAME_FIELD,
|
|
212
212
|
rp as PatchFlags,
|
|
213
|
-
|
|
214
|
-
|
|
213
|
+
_p as ROOT_PICKER_INJECTION_KEY,
|
|
214
|
+
Ym as SEQ_FIELD,
|
|
215
215
|
Xt as SIZE_INJECTION_KEY,
|
|
216
|
-
|
|
216
|
+
Bm as STATUS_FIELD,
|
|
217
217
|
Da as TOOLTIP_INJECTION_KEY,
|
|
218
|
-
|
|
219
|
-
|
|
218
|
+
$m as TabsRootContextKey,
|
|
219
|
+
ga as TimePickPanel,
|
|
220
220
|
xt as UPDATE_MODEL_EVENT,
|
|
221
|
-
|
|
221
|
+
Hm as UPDATE_TIME_FIELD,
|
|
222
222
|
s as VftAlert,
|
|
223
223
|
G as VftAside,
|
|
224
224
|
Er as VftAutocomplete,
|
|
@@ -295,9 +295,9 @@ export {
|
|
|
295
295
|
no as VftPopconfirm,
|
|
296
296
|
Vo as VftPopover,
|
|
297
297
|
co as VftPopper,
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
298
|
+
sm as VftPopperArrow,
|
|
299
|
+
lm as VftPopperContent,
|
|
300
|
+
um as VftPopperTrigger,
|
|
301
301
|
Fr as VftProgress,
|
|
302
302
|
$r as VftProgressI,
|
|
303
303
|
Co as VftQrcode,
|
|
@@ -330,28 +330,28 @@ export {
|
|
|
330
330
|
tt as WEEK_DAYS,
|
|
331
331
|
Ot as _bem,
|
|
332
332
|
Ka as add,
|
|
333
|
-
|
|
333
|
+
qm as addRequire,
|
|
334
334
|
Hf as buildProp,
|
|
335
335
|
Jf as buildProps,
|
|
336
|
-
|
|
337
|
-
|
|
336
|
+
xa as buildTimeList,
|
|
337
|
+
Ip as buttonGroupContextKey,
|
|
338
338
|
Qf as cAF,
|
|
339
339
|
Ja as carouselContextKey,
|
|
340
|
-
|
|
340
|
+
Tp as checkboxGroupContextKey,
|
|
341
341
|
va as componentMap,
|
|
342
342
|
lt as componentSizeMap,
|
|
343
343
|
Vt as componentSizes,
|
|
344
344
|
Pf as composeEventHandlers,
|
|
345
345
|
ep as composeRefs,
|
|
346
|
-
|
|
346
|
+
Ep as configProviderContextKey,
|
|
347
347
|
W as createContextMenu,
|
|
348
348
|
qa as createLoadingDirective,
|
|
349
349
|
Kt as createModelToggleComposable,
|
|
350
350
|
Lf as cssVarValue,
|
|
351
|
-
|
|
351
|
+
ia as dateEquals,
|
|
352
352
|
ft as datePickTypes,
|
|
353
|
-
|
|
354
|
-
|
|
353
|
+
bp as datePickerConfig,
|
|
354
|
+
Ap as datePickerProps,
|
|
355
355
|
dp as dayjs,
|
|
356
356
|
gf as debugWarn,
|
|
357
357
|
e as default,
|
|
@@ -360,18 +360,18 @@ export {
|
|
|
360
360
|
Wf as definePropType,
|
|
361
361
|
Ra as del,
|
|
362
362
|
j as destroyContextMenu,
|
|
363
|
-
|
|
363
|
+
Kp as dialogInjectionKey,
|
|
364
364
|
ya as dragEventsKey,
|
|
365
365
|
tp as ensureOnlyChild,
|
|
366
366
|
jf as epPropKey,
|
|
367
367
|
hf as escapeStringRegexp,
|
|
368
|
-
|
|
369
|
-
|
|
368
|
+
sa as extractDateFormat,
|
|
369
|
+
na as extractTimeFormat,
|
|
370
370
|
fp as flattedChildren,
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
371
|
+
Gp as formContextKey,
|
|
372
|
+
Up as formItemContextKey,
|
|
373
|
+
Xp as formItemValidateStates,
|
|
374
|
+
la as formatter,
|
|
375
375
|
Ya as genFileId,
|
|
376
376
|
Af as generateCssVars,
|
|
377
377
|
Sa as getChildState,
|
|
@@ -385,7 +385,7 @@ export {
|
|
|
385
385
|
df as getScrollBarWidth,
|
|
386
386
|
cf as getScrollContainer,
|
|
387
387
|
Mf as getSizeType,
|
|
388
|
-
|
|
388
|
+
rm as initAffixTabs,
|
|
389
389
|
r as install,
|
|
390
390
|
ap as isComment,
|
|
391
391
|
ka as isDatePicker,
|
|
@@ -400,54 +400,54 @@ export {
|
|
|
400
400
|
_f as isValidComponentSize,
|
|
401
401
|
np as isValidElementNode,
|
|
402
402
|
x as makeInstaller,
|
|
403
|
-
|
|
404
|
-
|
|
403
|
+
Va as makeList,
|
|
404
|
+
Dp as messageConfig,
|
|
405
405
|
ex as messageDefaults,
|
|
406
406
|
ox as messageTypes,
|
|
407
407
|
kf as mutable,
|
|
408
408
|
wt as namespaceContextKey,
|
|
409
|
-
|
|
409
|
+
ua as parseDate,
|
|
410
410
|
Nf as primaryColor,
|
|
411
|
-
|
|
411
|
+
Sp as provideGlobalConfig,
|
|
412
412
|
Xf as rAF,
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
413
|
+
cm as radioGroupKey,
|
|
414
|
+
da as rangeArr,
|
|
415
|
+
Zm as removeRequire,
|
|
416
416
|
lp as renderBlock,
|
|
417
417
|
Vp as renderIf,
|
|
418
|
-
|
|
419
|
-
|
|
418
|
+
Sm as renderThumbStyle,
|
|
419
|
+
Cm as rowContextKey,
|
|
420
420
|
Cf as scrollIntoView,
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
421
|
+
gm as scrollbarContextKey,
|
|
422
|
+
ym as selectInjectionKey,
|
|
423
|
+
Qm as selectMapping,
|
|
424
424
|
Kf as setCssVar,
|
|
425
425
|
vf as setPrimaryColorCssvars,
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
426
|
+
_m as sliderContextKey,
|
|
427
|
+
Lm as sliderEmits,
|
|
428
|
+
Nm as spaceProps,
|
|
429
429
|
Ef as throwError,
|
|
430
|
-
|
|
431
|
-
|
|
430
|
+
oa as timePickerDefaultProps,
|
|
431
|
+
ma as timeUnits,
|
|
432
432
|
Ba as uploadContextKey,
|
|
433
433
|
dt as useAttrs,
|
|
434
434
|
Z as useContextMenu,
|
|
435
435
|
It as useDelayedToggle,
|
|
436
|
-
|
|
437
|
-
|
|
436
|
+
Rp as useDialog,
|
|
437
|
+
Bp as useDisabled,
|
|
438
438
|
Ma as useDragNodeHandler,
|
|
439
439
|
Tt as useDraggable,
|
|
440
440
|
Et as useFocus,
|
|
441
441
|
Ga as useForm,
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
442
|
+
Hp as useFormDisabled,
|
|
443
|
+
qp as useFormItem,
|
|
444
|
+
Zp as useFormItemInputId,
|
|
445
|
+
Jp as useFormSize,
|
|
446
446
|
St as useForwardRef,
|
|
447
447
|
Ft as useForwardRefDirective,
|
|
448
448
|
zt as useGetDerivedNamespace,
|
|
449
|
-
|
|
450
|
-
|
|
449
|
+
Fp as useGlobalComponentSettings,
|
|
450
|
+
yp as useGlobalConfig,
|
|
451
451
|
$t as useGlobalSize,
|
|
452
452
|
_t as useId,
|
|
453
453
|
bt as useIdInjection,
|
|
@@ -458,23 +458,23 @@ export {
|
|
|
458
458
|
Rt as useModelToggleEmits,
|
|
459
459
|
Gt as useNamespace,
|
|
460
460
|
Yt as useOrderedChildren,
|
|
461
|
-
|
|
461
|
+
am as usePagination,
|
|
462
462
|
Ht as usePopper,
|
|
463
463
|
Wt as usePopperContainer,
|
|
464
464
|
jt as usePopperContainerId,
|
|
465
465
|
Zt as useSameTarget,
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
466
|
+
Wp as useSize,
|
|
467
|
+
vm as useSpace,
|
|
468
|
+
pm as useTabDropdown,
|
|
469
|
+
Wm as useTable,
|
|
470
|
+
tm as useTabsDrag,
|
|
471
471
|
of as useThrottleRender,
|
|
472
472
|
tf as useTimeout,
|
|
473
473
|
mf as useZIndex,
|
|
474
474
|
Za as vLoading,
|
|
475
|
-
|
|
475
|
+
ca as valueEquals,
|
|
476
476
|
t as version,
|
|
477
|
-
|
|
477
|
+
xm as vftPaginationKey,
|
|
478
478
|
cr as virtualizedGridProps,
|
|
479
479
|
Ir as virtualizedListProps,
|
|
480
480
|
Cr as virtualizedProps,
|
package/es/package.json.d.ts
CHANGED
package/es/package.json.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../config-provider/index.cjs");require("../form/index.cjs");const S=require("@vueuse/core"),n=require("vue"),T=require("./constants.cjs"),I=require("../
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../config-provider/index.cjs");require("../form/index.cjs");const S=require("@vueuse/core"),n=require("vue"),T=require("./constants.cjs"),I=require("../form/hooks/use-form-item.cjs"),_=require("../config-provider/hooks/use-global-config.cjs"),l=require("../form/hooks/use-form-common-props.cjs"),k=(t,d)=>{const o=n.inject(T.buttonGroupContextKey,void 0),m=_.useGlobalConfig("button"),{form:c}=I.useFormItem(),f=l.useFormSize(n.computed(()=>o==null?void 0:o.size)),u=l.useFormDisabled(),g=n.ref(),i=n.useSlots(),h=n.computed(()=>t.type||(o==null?void 0:o.type)||""),y=n.computed(()=>{var e;return t.autoInsertSpace??((e=m.value)==null?void 0:e.autoInsertSpace)??!1}),b=n.computed(()=>{var a;const e=(a=i.default)==null?void 0:a.call(i);if(y.value&&(e==null?void 0:e.length)===1){const s=e[0];if((s==null?void 0:s.type)===n.Text){const F=s.children;return new RegExp("^\\p{Unified_Ideograph}{2}$","u").test(F.trim())}}return!1}),q=n.computed(()=>t.tag==="button"?{ariaDisabled:u.value||t.loading,disabled:u.value||t.loading,autofocus:t.autofocus,type:t.nativeType}:{}),r=e=>{t.nativeType==="reset"&&(c==null||c.resetFields()),d("click",e)},v=S.useThrottleFn(e=>{r(e)},t.throttleTime);return{_props:q,_disabled:u,_size:f,_type:h,_ref:g,shouldAddSpace:b,handleClick:e=>{t.useThrottle?v(e):r(e)}}};exports.useButton=k;
|
|
@@ -53,8 +53,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
53
53
|
arrow: "always" | "never" | "hover";
|
|
54
54
|
loop: boolean;
|
|
55
55
|
trigger: "click" | "hover";
|
|
56
|
-
initialIndex: number;
|
|
57
56
|
interval: number;
|
|
57
|
+
initialIndex: number;
|
|
58
58
|
autoplay: boolean;
|
|
59
59
|
indicatorPosition: "" | "none" | "outside";
|
|
60
60
|
pauseOnHover: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),w=require("../icon/index.cjs");require("@vueuse/core");require("@vft/utils");require("../../utils/ns-cover.cjs");require("lodash");const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),w=require("../icon/index.cjs");require("@vueuse/core");require("@vft/utils");require("../../utils/ns-cover.cjs");require("lodash");const L=require("../../hooks/use-namespace/index.cjs");require("@popperjs/core");require("../../hooks/use-z-index/index.cjs");const P=require("./use-carousel.cjs"),T=["onMouseenter","onClick"],A={key:0},t=L.useNamespace("carousel"),H=e.defineComponent({name:t.b()}),O=e.defineComponent({...H,props:{initialIndex:{default:0},height:{default:""},trigger:{default:"hover"},autoplay:{type:Boolean,default:!0},interval:{default:3e3},indicatorPosition:{default:""},arrow:{default:"hover"},type:{default:""},loop:{type:Boolean,default:!0},direction:{default:"horizontal"},pauseOnHover:{type:Boolean,default:!0}},emits:["change"],setup(C,{expose:h,emit:y}){const i=C,B=y,{root:M,activeIndex:s,arrowDisplay:a,hasLabel:f,hover:d,isCardType:b,items:c,isVertical:g,containerStyle:V,handleButtonEnter:m,handleButtonLeave:u,handleIndicatorClick:E,handleMouseEnter:p,handleMouseLeave:v,setActiveItem:N,prev:q,next:z,throttledArrowClick:k,throttledIndicatorHover:S}=P.useCarousel(i,B,t.b()),$=e.computed(()=>{const o=[t.b(),t.m(i.direction)];return e.unref(b)&&o.push(t.m("card")),o}),I=e.computed(()=>{const o=[t.e("indicators"),t.em("indicators",i.direction)];return e.unref(f)&&o.push(t.em("indicators","labels")),i.indicatorPosition==="outside"&&o.push(t.em("indicators","outside")),e.unref(g)&&o.push(t.em("indicators","right")),o});return h({setActiveItem:N,prev:q,next:z}),(o,r)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"root",ref:M,class:e.normalizeClass($.value),onMouseenter:r[6]||(r[6]=e.withModifiers((...n)=>e.unref(p)&&e.unref(p)(...n),["stop"])),onMouseleave:r[7]||(r[7]=e.withModifiers((...n)=>e.unref(v)&&e.unref(v)(...n),["stop"]))},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(t).e("container")),style:e.normalizeStyle(e.unref(V))},[e.unref(a)?(e.openBlock(),e.createBlock(e.Transition,{key:0,name:"carousel-arrow-left"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("button",{type:"button",class:e.normalizeClass([e.unref(t).e("arrow"),e.unref(t).em("arrow","left")]),onMouseenter:r[0]||(r[0]=n=>e.unref(m)("left")),onMouseleave:r[1]||(r[1]=(...n)=>e.unref(u)&&e.unref(u)(...n)),onClick:r[2]||(r[2]=e.withModifiers(n=>e.unref(k)(e.unref(s)-1),["stop"]))},[e.createVNode(e.unref(w.VftIcon),{icon:"ico-ep:arrow-left"})],34),[[e.vShow,(o.arrow==="always"||e.unref(d))&&(i.loop||e.unref(s)>0)]])]),_:1})):e.createCommentVNode("",!0),e.unref(a)?(e.openBlock(),e.createBlock(e.Transition,{key:1,name:"carousel-arrow-right"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("button",{type:"button",class:e.normalizeClass([e.unref(t).e("arrow"),e.unref(t).em("arrow","right")]),onMouseenter:r[3]||(r[3]=n=>e.unref(m)("right")),onMouseleave:r[4]||(r[4]=(...n)=>e.unref(u)&&e.unref(u)(...n)),onClick:r[5]||(r[5]=e.withModifiers(n=>e.unref(k)(e.unref(s)+1),["stop"]))},[e.createVNode(e.unref(w.VftIcon),{icon:"ico-ep:arrow-right"})],34),[[e.vShow,(o.arrow==="always"||e.unref(d))&&(i.loop||e.unref(s)<e.unref(c).length-1)]])]),_:1})):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"default")],6),o.indicatorPosition!=="none"?(e.openBlock(),e.createElementBlock("ul",{key:0,class:e.normalizeClass(I.value)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(c),(n,l)=>(e.openBlock(),e.createElementBlock("li",{key:l,class:e.normalizeClass([e.unref(t).e("indicator"),e.unref(t).em("indicator",o.direction),e.unref(t).is("active",l===e.unref(s))]),onMouseenter:D=>e.unref(S)(l),onClick:e.withModifiers(D=>e.unref(E)(l),["stop"])},[e.createElementVNode("button",{class:e.normalizeClass(e.unref(t).e("button"))},[e.unref(f)?(e.openBlock(),e.createElementBlock("span",A,e.toDisplayString(n.props.label),1)):e.createCommentVNode("",!0)],2)],42,T))),128))],2)):e.createCommentVNode("",!0)],34))}});exports.default=O;
|
|
@@ -24,11 +24,11 @@ export declare const VftCarousel: import("vft/es/utils").SFCWithInstall<{
|
|
|
24
24
|
type: globalThis.PropType<"click" | "hover">;
|
|
25
25
|
default: string;
|
|
26
26
|
};
|
|
27
|
-
|
|
27
|
+
interval: {
|
|
28
28
|
type: globalThis.PropType<number>;
|
|
29
29
|
default: number;
|
|
30
30
|
};
|
|
31
|
-
|
|
31
|
+
initialIndex: {
|
|
32
32
|
type: globalThis.PropType<number>;
|
|
33
33
|
default: number;
|
|
34
34
|
};
|
|
@@ -77,11 +77,11 @@ export declare const VftCarousel: import("vft/es/utils").SFCWithInstall<{
|
|
|
77
77
|
type: globalThis.PropType<"click" | "hover">;
|
|
78
78
|
default: string;
|
|
79
79
|
};
|
|
80
|
-
|
|
80
|
+
interval: {
|
|
81
81
|
type: globalThis.PropType<number>;
|
|
82
82
|
default: number;
|
|
83
83
|
};
|
|
84
|
-
|
|
84
|
+
initialIndex: {
|
|
85
85
|
type: globalThis.PropType<number>;
|
|
86
86
|
default: number;
|
|
87
87
|
};
|
|
@@ -106,8 +106,8 @@ export declare const VftCarousel: import("vft/es/utils").SFCWithInstall<{
|
|
|
106
106
|
arrow: "always" | "never" | "hover";
|
|
107
107
|
loop: boolean;
|
|
108
108
|
trigger: "click" | "hover";
|
|
109
|
-
initialIndex: number;
|
|
110
109
|
interval: number;
|
|
110
|
+
initialIndex: number;
|
|
111
111
|
autoplay: boolean;
|
|
112
112
|
indicatorPosition: "" | "none" | "outside";
|
|
113
113
|
pauseOnHover: boolean;
|
|
@@ -143,11 +143,11 @@ export declare const VftCarousel: import("vft/es/utils").SFCWithInstall<{
|
|
|
143
143
|
type: globalThis.PropType<"click" | "hover">;
|
|
144
144
|
default: string;
|
|
145
145
|
};
|
|
146
|
-
|
|
146
|
+
interval: {
|
|
147
147
|
type: globalThis.PropType<number>;
|
|
148
148
|
default: number;
|
|
149
149
|
};
|
|
150
|
-
|
|
150
|
+
initialIndex: {
|
|
151
151
|
type: globalThis.PropType<number>;
|
|
152
152
|
default: number;
|
|
153
153
|
};
|
|
@@ -176,8 +176,8 @@ export declare const VftCarousel: import("vft/es/utils").SFCWithInstall<{
|
|
|
176
176
|
arrow: "always" | "never" | "hover";
|
|
177
177
|
loop: boolean;
|
|
178
178
|
trigger: "click" | "hover";
|
|
179
|
-
initialIndex: number;
|
|
180
179
|
interval: number;
|
|
180
|
+
initialIndex: number;
|
|
181
181
|
autoplay: boolean;
|
|
182
182
|
indicatorPosition: "" | "none" | "outside";
|
|
183
183
|
pauseOnHover: boolean;
|
|
@@ -210,11 +210,11 @@ export declare const VftCarousel: import("vft/es/utils").SFCWithInstall<{
|
|
|
210
210
|
type: globalThis.PropType<"click" | "hover">;
|
|
211
211
|
default: string;
|
|
212
212
|
};
|
|
213
|
-
|
|
213
|
+
interval: {
|
|
214
214
|
type: globalThis.PropType<number>;
|
|
215
215
|
default: number;
|
|
216
216
|
};
|
|
217
|
-
|
|
217
|
+
initialIndex: {
|
|
218
218
|
type: globalThis.PropType<number>;
|
|
219
219
|
default: number;
|
|
220
220
|
};
|
|
@@ -245,8 +245,8 @@ export declare const VftCarousel: import("vft/es/utils").SFCWithInstall<{
|
|
|
245
245
|
arrow: "always" | "never" | "hover";
|
|
246
246
|
loop: boolean;
|
|
247
247
|
trigger: "click" | "hover";
|
|
248
|
-
initialIndex: number;
|
|
249
248
|
interval: number;
|
|
249
|
+
initialIndex: number;
|
|
250
250
|
autoplay: boolean;
|
|
251
251
|
indicatorPosition: "" | "none" | "outside";
|
|
252
252
|
pauseOnHover: boolean;
|
|
@@ -31,6 +31,9 @@ export declare const VftCheckbox: import("vft/es/utils").SFCWithInstall<{
|
|
|
31
31
|
type: globalThis.PropType<boolean>;
|
|
32
32
|
default: boolean;
|
|
33
33
|
};
|
|
34
|
+
controls: {
|
|
35
|
+
type: globalThis.PropType<string>;
|
|
36
|
+
};
|
|
34
37
|
checked: {
|
|
35
38
|
type: globalThis.PropType<boolean>;
|
|
36
39
|
};
|
|
@@ -43,9 +46,6 @@ export declare const VftCheckbox: import("vft/es/utils").SFCWithInstall<{
|
|
|
43
46
|
falseValue: {
|
|
44
47
|
type: globalThis.PropType<string | number>;
|
|
45
48
|
};
|
|
46
|
-
controls: {
|
|
47
|
-
type: globalThis.PropType<string>;
|
|
48
|
-
};
|
|
49
49
|
}>> & {
|
|
50
50
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
51
51
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
@@ -84,6 +84,9 @@ export declare const VftCheckbox: import("vft/es/utils").SFCWithInstall<{
|
|
|
84
84
|
type: globalThis.PropType<boolean>;
|
|
85
85
|
default: boolean;
|
|
86
86
|
};
|
|
87
|
+
controls: {
|
|
88
|
+
type: globalThis.PropType<string>;
|
|
89
|
+
};
|
|
87
90
|
checked: {
|
|
88
91
|
type: globalThis.PropType<boolean>;
|
|
89
92
|
};
|
|
@@ -96,9 +99,6 @@ export declare const VftCheckbox: import("vft/es/utils").SFCWithInstall<{
|
|
|
96
99
|
falseValue: {
|
|
97
100
|
type: globalThis.PropType<string | number>;
|
|
98
101
|
};
|
|
99
|
-
controls: {
|
|
100
|
-
type: globalThis.PropType<string>;
|
|
101
|
-
};
|
|
102
102
|
}>> & {
|
|
103
103
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
104
104
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
@@ -143,6 +143,9 @@ export declare const VftCheckbox: import("vft/es/utils").SFCWithInstall<{
|
|
|
143
143
|
type: globalThis.PropType<boolean>;
|
|
144
144
|
default: boolean;
|
|
145
145
|
};
|
|
146
|
+
controls: {
|
|
147
|
+
type: globalThis.PropType<string>;
|
|
148
|
+
};
|
|
146
149
|
checked: {
|
|
147
150
|
type: globalThis.PropType<boolean>;
|
|
148
151
|
};
|
|
@@ -155,9 +158,6 @@ export declare const VftCheckbox: import("vft/es/utils").SFCWithInstall<{
|
|
|
155
158
|
falseValue: {
|
|
156
159
|
type: globalThis.PropType<string | number>;
|
|
157
160
|
};
|
|
158
|
-
controls: {
|
|
159
|
-
type: globalThis.PropType<string>;
|
|
160
|
-
};
|
|
161
161
|
}>> & {
|
|
162
162
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
163
163
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
@@ -199,6 +199,9 @@ export declare const VftCheckbox: import("vft/es/utils").SFCWithInstall<{
|
|
|
199
199
|
type: globalThis.PropType<boolean>;
|
|
200
200
|
default: boolean;
|
|
201
201
|
};
|
|
202
|
+
controls: {
|
|
203
|
+
type: globalThis.PropType<string>;
|
|
204
|
+
};
|
|
202
205
|
checked: {
|
|
203
206
|
type: globalThis.PropType<boolean>;
|
|
204
207
|
};
|
|
@@ -211,9 +214,6 @@ export declare const VftCheckbox: import("vft/es/utils").SFCWithInstall<{
|
|
|
211
214
|
falseValue: {
|
|
212
215
|
type: globalThis.PropType<string | number>;
|
|
213
216
|
};
|
|
214
|
-
controls: {
|
|
215
|
-
type: globalThis.PropType<string>;
|
|
216
|
-
};
|
|
217
217
|
}>> & {
|
|
218
218
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
219
219
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../alert/index.cjs");require("../avatar/index.cjs");require("../backtop/index.cjs");require("../button/index.cjs");require("../card/index.cjs");require("../check-tag/index.cjs");require("../checkbox/index.cjs");require("../clamp/index.cjs");require("../clamp-toggle/index.cjs");require("../clamp-tooltip/index.cjs");require("../col/index.cjs");require("../collapse-transition/index.cjs");require("../color-picker/index.cjs");require("../config-provider/index.cjs");const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../alert/index.cjs");require("../avatar/index.cjs");require("../backtop/index.cjs");require("../button/index.cjs");require("../card/index.cjs");require("../check-tag/index.cjs");require("../checkbox/index.cjs");require("../clamp/index.cjs");require("../clamp-toggle/index.cjs");require("../clamp-tooltip/index.cjs");require("../col/index.cjs");require("../collapse-transition/index.cjs");require("../color-picker/index.cjs");require("../config-provider/index.cjs");const i=require("../container/index.cjs");require("@vft/utils");require("../context-menu/context-menu.vue2.cjs");require("../date-picker/index.cjs");require("../date-time-select/index.cjs");require("../descriptions/index.cjs");require("../dialog/index.cjs");require("../divider/index.cjs");require("../drawer/index.cjs");require("../dropdown/index.cjs");require("../empty/index.cjs");require("../exception/index.cjs");require("../footer-layout/index.cjs");require("../form/index.cjs");require("../full-screen/index.cjs");require("./index.cjs");require("../horizontal-menu/index.cjs");require("../icon/index.cjs");require("../icon-text/index.cjs");require("../iframe-layout/index.cjs");require("../image/index.cjs");require("../image-viewer/index.cjs");require("../input/index.cjs");require("../input-number/index.cjs");require("../link/index.cjs");require("../list-cell/index.cjs");const q=require("../logo/index.cjs");require("../menu/index.cjs");require("../multiple-tabs/index.cjs");require("../overlay/index.cjs");require("../page-wrapper/index.cjs");require("../pagination/index.cjs");require("../popconfirm/index.cjs");require("../popover/index.cjs");require("../popper/index.cjs");require("../qrcode/index.cjs");require("../radio/index.cjs");require("../result/index.cjs");require("../router-view-content/index.cjs");require("../row/index.cjs");require("../scrollbar/index.cjs");require("../search/index.cjs");require("../select/index.cjs");require("../side-menu/index.cjs");require("../skeleton/index.cjs");require("../slider/index.cjs");require("../space/index.cjs");require("../switch/index.cjs");require("../table/index.cjs");require("../tabs/index.cjs");require("../tag/index.cjs");require("../time-picker/index.cjs");require("../tooltip/index.cjs");require("../tree/index.cjs");require("../verify-code/index.cjs");require("../virtual-list/components/dynamic-size-grid.cjs");require("../virtual-list/components/dynamic-size-list.cjs");require("../virtual-list/components/fixed-size-grid.cjs");require("../virtual-list/components/fixed-size-list.cjs");require("../virtual-list/props.cjs");require("../autocomplete/index.cjs");require("../modal/index.cjs");require("../progress/index.cjs");require("../super-form/index.cjs");require("../upload/index.cjs");require("../carousel/index.cjs");require("../md-code-demo/index.cjs");require("../md-code-tabs/index.cjs");require("../md-comment/index.cjs");require("../md-container/index.cjs");require("../md-tabs/index.cjs");require("../md-vue-playground/index.cjs");require("@vueuse/core");require("../../utils/ns-cover.cjs");require("lodash");const o=require("../../hooks/use-namespace/index.cjs");require("@popperjs/core");require("../../hooks/use-z-index/index.cjs");require("../message/index.cjs");require("../infinite-scroll/index.cjs");require("../progress-i/index.cjs");const t={class:"content"},s={key:0,class:"left"},n={key:1,class:"right"},u=o.useNamespace("header-layout"),l=e.defineComponent({name:u.b()}),a=e.defineComponent({...l,props:{logoCfg:{}},setup(c){return(r,d)=>(e.openBlock(),e.createBlock(e.unref(i.VftHeader),{class:e.normalizeClass(e.unref(u).b())},{default:e.withCtx(()=>[e.createVNode(e.unref(i.VftContainer),null,{default:e.withCtx(()=>[e.createVNode(e.unref(i.VftMain),{class:e.normalizeClass([e.unref(u).e("top-container"),e.unref(u).is("no-bottom",!r.$slots.bottom)])},{default:e.withCtx(()=>[e.createElementVNode("div",t,[r.logoCfg||r.$slots.left?(e.openBlock(),e.createElementBlock("div",s,[r.logoCfg?(e.openBlock(),e.createBlock(e.unref(q.VftLogo),e.normalizeProps(e.mergeProps({key:0},r.logoCfg)),null,16)):e.createCommentVNode("",!0),e.renderSlot(r.$slots,"left")])):e.createCommentVNode("",!0),r.$slots.right?(e.openBlock(),e.createElementBlock("div",n,[e.renderSlot(r.$slots,"right")])):e.createCommentVNode("",!0)])]),_:3},8,["class"]),r.$slots.bottom?(e.openBlock(),e.createBlock(e.unref(i.VftFooter),{key:0,class:e.normalizeClass(e.unref(u).e("footer"))},{default:e.withCtx(()=>[e.renderSlot(r.$slots,"bottom")]),_:3},8,["class"])):e.createCommentVNode("",!0)]),_:3})]),_:3},8,["class"]))}});exports.default=a;
|