vft 0.0.128 → 0.0.129
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/backtop/backtop.vue2.js +21 -21
- package/es/components/button/button.vue2.js +1 -1
- package/es/components/button/use-button.js +3 -3
- package/es/components/color-picker/color-picker.vue2.js +2 -2
- package/es/components/date-picker/date-picker-com/panel-date-pick.vue2.js +33 -33
- package/es/components/date-picker/date-picker-com/panel-date-range.vue2.js +26 -26
- package/es/components/date-picker/date-picker-com/panel-month-range.vue2.js +13 -13
- package/es/components/date-time-select/date-time-select.vue2.js +3 -3
- package/es/components/dialog/dialog-content.vue2.js +1 -1
- package/es/components/drawer/drawer.vue2.js +9 -9
- package/es/components/dropdown/dropdown.vue2.js +1 -1
- package/es/components/full-screen/full-screen.vue2.js +11 -11
- package/es/components/icon/icon.vue2.js +3 -1
- package/es/components/icon-text/icon-text.vue2.js +22 -22
- package/es/components/image-viewer/image-viewer.vue2.js +35 -35
- package/es/components/index.js +113 -113
- package/es/components/input/input.vue2.js +37 -33
- package/es/components/input-number/input-number.vue2.js +25 -25
- package/es/components/list-cell/list-cell.vue2.js +14 -14
- package/es/components/md-code-demo/md-code-demo.js +3 -3
- package/es/components/md-container/md-container.vue2.js +13 -13
- package/es/components/md-vue-playground/md-vue-playground.vue2.js +8 -8
- package/es/components/menu/menu.vue2.js +1 -1
- package/es/components/menu/sub-menu.vue2.js +2 -2
- package/es/components/message/message.vue2.js +4 -4
- package/es/components/multiple-tabs/use/use-tab-dropdown.js +10 -10
- package/es/components/pagination/components/next.vue2.js +5 -5
- package/es/components/pagination/components/pager.vue2.js +40 -40
- package/es/components/pagination/components/prev.vue2.js +5 -5
- package/es/components/popconfirm/popconfirm.vue2.js +1 -1
- package/es/components/progress/progress.vue2.js +13 -13
- package/es/components/search/search.vue2.js +1 -1
- package/es/components/select/select.vue.js +1 -1
- package/es/components/select/useSelect.js +1 -1
- package/es/components/side-menu/side-menu.vue2.js +24 -24
- package/es/components/skeleton/skeleton-item.vue2.js +5 -5
- package/es/components/switch/switch.vue2.js +1 -1
- package/es/components/tabs/tabs.vue2.js +4 -4
- package/es/components/tag/tag.vue2.js +1 -1
- package/es/components/time-picker/common/picker.vue2.js +1 -1
- package/es/components/time-picker/common/props.js +1 -1
- package/es/components/time-picker/time-picker-com/basic-time-spinner.vue2.js +2 -2
- package/es/components/tree/tree-node.vue.js +9 -9
- package/es/components/upload/upload-list.vue2.js +33 -33
- package/es/index.js +113 -113
- package/es/package.json.js +1 -1
- package/lib/components/backtop/backtop.vue2.cjs +1 -1
- package/lib/components/button/button.vue2.cjs +1 -1
- package/lib/components/button/use-button.cjs +1 -1
- package/lib/components/color-picker/color-picker.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-picker/date-picker-com/panel-month-range.vue2.cjs +1 -1
- package/lib/components/date-time-select/date-time-select.vue2.cjs +1 -1
- package/lib/components/dialog/dialog-content.vue2.cjs +1 -1
- package/lib/components/drawer/drawer.vue2.cjs +1 -1
- package/lib/components/dropdown/dropdown.vue2.cjs +1 -1
- package/lib/components/full-screen/full-screen.vue2.cjs +1 -1
- package/lib/components/icon/icon.vue2.cjs +1 -1
- package/lib/components/icon-text/icon-text.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/input/input.vue2.cjs +1 -1
- package/lib/components/input-number/input-number.vue2.cjs +1 -1
- package/lib/components/list-cell/list-cell.vue2.cjs +1 -1
- package/lib/components/md-code-demo/md-code-demo.cjs +1 -1
- package/lib/components/md-container/md-container.vue2.cjs +1 -1
- package/lib/components/md-vue-playground/md-vue-playground.vue2.cjs +1 -1
- package/lib/components/menu/menu.vue2.cjs +1 -1
- package/lib/components/menu/sub-menu.vue2.cjs +1 -1
- package/lib/components/message/message.vue2.cjs +1 -1
- package/lib/components/multiple-tabs/use/use-tab-dropdown.cjs +1 -1
- package/lib/components/pagination/components/next.vue2.cjs +1 -1
- package/lib/components/pagination/components/pager.vue2.cjs +1 -1
- package/lib/components/pagination/components/prev.vue2.cjs +1 -1
- package/lib/components/popconfirm/popconfirm.vue2.cjs +1 -1
- package/lib/components/progress/progress.vue2.cjs +2 -2
- package/lib/components/search/search.vue2.cjs +1 -1
- package/lib/components/select/select.vue.cjs +1 -1
- package/lib/components/select/useSelect.cjs +1 -1
- package/lib/components/side-menu/side-menu.vue2.cjs +1 -1
- package/lib/components/skeleton/skeleton-item.vue2.cjs +1 -1
- package/lib/components/switch/switch.vue2.cjs +1 -1
- package/lib/components/tabs/tabs.vue2.cjs +1 -1
- package/lib/components/tag/tag.vue2.cjs +1 -1
- package/lib/components/time-picker/common/picker.vue2.cjs +1 -1
- package/lib/components/time-picker/common/props.cjs +1 -1
- package/lib/components/time-picker/time-picker-com/basic-time-spinner.vue2.cjs +1 -1
- package/lib/components/tree/tree-node.vue.cjs +1 -1
- package/lib/components/upload/upload-list.vue2.cjs +1 -1
- package/lib/index.cjs +1 -1
- package/lib/package.json.cjs +1 -1
- package/package.json +2 -2
- package/theme-style/index.css +1 -1
- package/theme-style/src/backtop.scss +4 -0
- package/theme-style/src/button.scss +4 -0
- package/theme-style/src/color-picker.scss +3 -0
- package/theme-style/src/common/icon.scss +65 -0
- package/theme-style/src/common/var.scss +4 -0
- package/theme-style/src/date-picker/date-picker.scss +14 -0
- package/theme-style/src/date-picker/time-picker.scss +4 -0
- package/theme-style/src/date-picker.scss +1 -0
- package/theme-style/src/date-time-select.scss +8 -1
- package/theme-style/src/dialog.scss +2 -0
- package/theme-style/src/drawer.scss +2 -0
- package/theme-style/src/dropdown.scss +2 -0
- package/theme-style/src/full-screen.scss +8 -1
- package/theme-style/src/icon-text.scss +4 -0
- package/theme-style/src/image-viewer.scss +19 -1
- package/theme-style/src/input-number.scss +9 -0
- package/theme-style/src/input.scss +22 -0
- package/theme-style/src/list-cell.scss +2 -0
- package/theme-style/src/md-container.scss +28 -0
- package/theme-style/src/menu.scss +11 -4
- package/theme-style/src/message.scss +10 -0
- package/theme-style/src/mixins/icon.scss +52 -0
- package/theme-style/src/mixins/mixins.scss +1 -0
- package/theme-style/src/multiple-tabs.scss +22 -0
- package/theme-style/src/pagination.scss +15 -0
- package/theme-style/src/popconfirm.scss +4 -0
- package/theme-style/src/progress.scss +16 -0
- package/theme-style/src/select.scss +3 -0
- package/theme-style/src/side-menu.scss +4 -0
- package/theme-style/src/skeleton-item.scss +5 -0
- package/theme-style/src/switch.scss +4 -0
- package/theme-style/src/tabs.scss +7 -0
- package/theme-style/src/tag.scss +2 -0
- package/theme-style/src/tree.scss +7 -0
- package/theme-style/src/upload.scss +25 -4
- package/theme-style/vft-backtop.css +1 -1
- package/theme-style/vft-button.css +1 -1
- package/theme-style/vft-color-picker.css +1 -1
- package/theme-style/vft-date-picker.css +1 -1
- package/theme-style/vft-date-time-select.css +1 -1
- package/theme-style/vft-dialog.css +1 -1
- package/theme-style/vft-drawer.css +1 -1
- package/theme-style/vft-dropdown.css +1 -1
- package/theme-style/vft-full-screen.css +1 -1
- package/theme-style/vft-icon-text.css +1 -1
- package/theme-style/vft-image-viewer.css +1 -1
- package/theme-style/vft-input-number.css +1 -1
- package/theme-style/vft-input.css +1 -1
- package/theme-style/vft-list-cell.css +1 -1
- package/theme-style/vft-md-container.css +1 -1
- package/theme-style/vft-menu.css +1 -1
- package/theme-style/vft-message.css +1 -1
- package/theme-style/vft-multiple-tabs.css +1 -1
- package/theme-style/vft-pagination.css +1 -1
- package/theme-style/vft-popconfirm.css +1 -1
- package/theme-style/vft-progress.css +1 -1
- package/theme-style/vft-select.css +1 -1
- package/theme-style/vft-side-menu.css +1 -1
- package/theme-style/vft-skeleton-item.css +1 -1
- package/theme-style/vft-switch.css +1 -1
- package/theme-style/vft-tabs.css +1 -1
- package/theme-style/vft-tag.css +1 -1
- package/theme-style/vft-time-picker.css +1 -1
- package/theme-style/vft-time-select.css +1 -1
- package/theme-style/vft-tree.css +1 -1
- package/theme-style/vft-upload.css +1 -1
- package/web-types.json +1 -1
package/es/components/index.js
CHANGED
|
@@ -84,45 +84,45 @@ import { VftMdTabs as ye } from "./md-tabs/index.js";
|
|
|
84
84
|
import { VftMdVuePlayground as _e } from "./md-vue-playground/index.js";
|
|
85
85
|
import { VftLoading as Ke } from "./loading/index.js";
|
|
86
86
|
import { VftMessage as ve, VftMessage as Re } from "./message/index.js";
|
|
87
|
-
import {
|
|
88
|
-
import {
|
|
89
|
-
import {
|
|
90
|
-
import {
|
|
91
|
-
import {
|
|
92
|
-
import {
|
|
93
|
-
import {
|
|
94
|
-
import {
|
|
95
|
-
import {
|
|
96
|
-
import {
|
|
97
|
-
import {
|
|
98
|
-
import {
|
|
99
|
-
import {
|
|
100
|
-
import {
|
|
101
|
-
import {
|
|
102
|
-
import {
|
|
103
|
-
import {
|
|
104
|
-
import {
|
|
105
|
-
import {
|
|
106
|
-
import {
|
|
107
|
-
import { default as vt } from "./popper/
|
|
108
|
-
import {
|
|
109
|
-
import {
|
|
110
|
-
import {
|
|
111
|
-
import {
|
|
112
|
-
import {
|
|
113
|
-
import {
|
|
114
|
-
import {
|
|
115
|
-
import {
|
|
116
|
-
import {
|
|
117
|
-
import {
|
|
118
|
-
import {
|
|
119
|
-
import {
|
|
120
|
-
import {
|
|
121
|
-
import {
|
|
122
|
-
import {
|
|
123
|
-
import {
|
|
124
|
-
import {
|
|
125
|
-
import {
|
|
87
|
+
import { default as Oe } from "./time-picker/common/picker.vue2.js";
|
|
88
|
+
import { default as ze } from "./time-picker/time-picker-com/panel-time-pick.vue2.js";
|
|
89
|
+
import { buttonGroupContextKey as he } from "./button/constants.js";
|
|
90
|
+
import { checkboxGroupContextKey as Be } from "./checkbox/constants.js";
|
|
91
|
+
import { configProviderContextKey as qe, messageConfig as Je } from "./config-provider/constants.js";
|
|
92
|
+
import { provideGlobalConfig as je, useGlobalComponentSettings as Qe, useGlobalConfig as We } from "./config-provider/hooks/use-global-config.js";
|
|
93
|
+
import { ROOT_PICKER_INJECTION_KEY as Ze, datePickerConfig as $e } from "./date-picker/constants.js";
|
|
94
|
+
import { datePickerProps as rt } from "./date-picker/props/date-picker.js";
|
|
95
|
+
import { dialogInjectionKey as tt } from "./dialog/constants.js";
|
|
96
|
+
import { useDialog as mt } from "./dialog/hooks/use-dialog.js";
|
|
97
|
+
import { DROPDOWN_INJECTION_KEY as xt } from "./dropdown/tokens.js";
|
|
98
|
+
import { EmptyEnum as it } from "./empty/constants.js";
|
|
99
|
+
import { formContextKey as Vt, formItemContextKey as st } from "./form/constants.js";
|
|
100
|
+
import { useDisabled as dt, useFormDisabled as lt, useFormSize as ct, useSize as Tt } from "./form/hooks/use-form-common-props.js";
|
|
101
|
+
import { useFormItem as Ct, useFormItemInputId as Dt } from "./form/hooks/use-form-item.js";
|
|
102
|
+
import { formItemValidateStates as Et } from "./form/types.js";
|
|
103
|
+
import { MenuTypeEnum as Mt } from "./horizontal-menu/constants.js";
|
|
104
|
+
import { initAffixTabs as Lt, useTabsDrag as St } from "./multiple-tabs/use/use-multiple-tabs.js";
|
|
105
|
+
import { useTabDropdown as bt } from "./multiple-tabs/use/use-tab-dropdown.js";
|
|
106
|
+
import { usePagination as At, vftPaginationKey as Kt } from "./pagination/usePagination.js";
|
|
107
|
+
import { default as vt } from "./popper/arrow.vue2.js";
|
|
108
|
+
import { default as Gt } from "./popper/content.vue2.js";
|
|
109
|
+
import { default as wt } from "./popper/trigger.vue2.js";
|
|
110
|
+
import { radioGroupKey as Nt } from "./radio/constants.js";
|
|
111
|
+
import { rowContextKey as Ut } from "./row/constants.js";
|
|
112
|
+
import { scrollbarContextKey as Ht } from "./scrollbar/constants.js";
|
|
113
|
+
import { BAR_MAP as Jt, GAP as Yt, renderThumbStyle as jt } from "./scrollbar/util.js";
|
|
114
|
+
import { selectInjectionKey as Wt } from "./select/token.js";
|
|
115
|
+
import { sliderContextKey as Zt } from "./slider/constants.js";
|
|
116
|
+
import { sliderEmits as of } from "./slider/slider.js";
|
|
117
|
+
import { spaceProps as ef } from "./space/space.js";
|
|
118
|
+
import { useSpace as ff } from "./space/use-space.js";
|
|
119
|
+
import { ACTION_FIELD as pf, CHECKED_FIELD as xf, CREATE_TIME_FIELD as af, DATE_FIELD as nf, DATE_TIME_FIELD as Vf, ID_FIELD as sf, NAME_FIELD as uf, SEQ_FIELD as df, STATUS_FIELD as lf, UPDATE_TIME_FIELD as cf } from "./table/field.js";
|
|
120
|
+
import { useTable as If } from "./table/use/use-table.js";
|
|
121
|
+
import { addRequire as Df, removeRequire as gf, selectMapping as Ef } from "./table/utils.js";
|
|
122
|
+
import { TabsRootContextKey as Mf } from "./tabs/types.js";
|
|
123
|
+
import { timePickerDefaultProps as Lf } from "./time-picker/common/props.js";
|
|
124
|
+
import { DEFAULT_FORMATS_DATE as yf, DEFAULT_FORMATS_DATEPICKER as bf, DEFAULT_FORMATS_TIME as _f, timeUnits as Af } from "./time-picker/constants.js";
|
|
125
|
+
import { buildTimeList as kf, dateEquals as vf, extractDateFormat as Rf, extractTimeFormat as Gf, formatter as Of, makeList as wf, parseDate as zf, rangeArr as Nf, valueEquals as hf } from "./time-picker/utils.js";
|
|
126
126
|
import { TOOLTIP_INJECTION_KEY as Bf } from "./tooltip/constants.js";
|
|
127
127
|
import { getChildState as qf } from "./tree/model/node.js";
|
|
128
128
|
import { dragEventsKey as Yf, useDragNodeHandler as jf } from "./tree/model/useDragNode.js";
|
|
@@ -134,36 +134,36 @@ import { vLoading as um, createLoadingDirective as dm, vLoading as lm } from "./
|
|
|
134
134
|
import { Loading as Tm } from "./loading/service.js";
|
|
135
135
|
import { messageDefaults as Cm, messageTypes as Dm } from "./message/types.js";
|
|
136
136
|
export {
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
137
|
+
pf as ACTION_FIELD,
|
|
138
|
+
Jt as BAR_MAP,
|
|
139
|
+
xf as CHECKED_FIELD,
|
|
140
|
+
af as CREATE_TIME_FIELD,
|
|
141
|
+
Oe as CommonPicker,
|
|
142
|
+
nf as DATE_FIELD,
|
|
143
|
+
Vf as DATE_TIME_FIELD,
|
|
144
|
+
yf as DEFAULT_FORMATS_DATE,
|
|
145
|
+
bf as DEFAULT_FORMATS_DATEPICKER,
|
|
146
|
+
_f as DEFAULT_FORMATS_TIME,
|
|
147
|
+
xt as DROPDOWN_INJECTION_KEY,
|
|
148
148
|
Xr as DynamicSizeGrid,
|
|
149
149
|
$r as DynamicSizeList,
|
|
150
|
-
|
|
150
|
+
it as EmptyEnum,
|
|
151
151
|
re as FixedSizeGrid,
|
|
152
152
|
te as FixedSizeList,
|
|
153
153
|
$f as FormCompEnum,
|
|
154
|
-
|
|
155
|
-
|
|
154
|
+
Yt as GAP,
|
|
155
|
+
sf as ID_FIELD,
|
|
156
156
|
go as Icon,
|
|
157
|
-
|
|
157
|
+
Mt as MenuTypeEnum,
|
|
158
158
|
ve as Message,
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
159
|
+
uf as NAME_FIELD,
|
|
160
|
+
Ze as ROOT_PICKER_INJECTION_KEY,
|
|
161
|
+
df as SEQ_FIELD,
|
|
162
|
+
lf as STATUS_FIELD,
|
|
163
163
|
Bf as TOOLTIP_INJECTION_KEY,
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
164
|
+
Mf as TabsRootContextKey,
|
|
165
|
+
ze as TimePickPanel,
|
|
166
|
+
cf as UPDATE_TIME_FIELD,
|
|
167
167
|
e as VftAlert,
|
|
168
168
|
A as VftAside,
|
|
169
169
|
ne as VftAutocomplete,
|
|
@@ -235,9 +235,9 @@ export {
|
|
|
235
235
|
rr as VftPopconfirm,
|
|
236
236
|
tr as VftPopover,
|
|
237
237
|
mr as VftPopper,
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
238
|
+
vt as VftPopperArrow,
|
|
239
|
+
Gt as VftPopperContent,
|
|
240
|
+
wt as VftPopperTrigger,
|
|
241
241
|
de as VftProgress,
|
|
242
242
|
xr as VftQrcode,
|
|
243
243
|
ir as VftRadio,
|
|
@@ -267,76 +267,76 @@ export {
|
|
|
267
267
|
Ie as VftUpload,
|
|
268
268
|
Qr as VftVerifyCode,
|
|
269
269
|
om as add,
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
270
|
+
Df as addRequire,
|
|
271
|
+
kf as buildTimeList,
|
|
272
|
+
he as buttonGroupContextKey,
|
|
273
|
+
Be as checkboxGroupContextKey,
|
|
274
274
|
rm as componentMap,
|
|
275
|
-
|
|
275
|
+
qe as configProviderContextKey,
|
|
276
276
|
O as createContextMenu,
|
|
277
277
|
dm as createLoadingDirective,
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
278
|
+
vf as dateEquals,
|
|
279
|
+
$e as datePickerConfig,
|
|
280
|
+
rt as datePickerProps,
|
|
281
281
|
em as del,
|
|
282
282
|
w as destroyContextMenu,
|
|
283
|
-
|
|
283
|
+
tt as dialogInjectionKey,
|
|
284
284
|
Yf as dragEventsKey,
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
285
|
+
Rf as extractDateFormat,
|
|
286
|
+
Gf as extractTimeFormat,
|
|
287
|
+
Vt as formContextKey,
|
|
288
|
+
st as formItemContextKey,
|
|
289
|
+
Et as formItemValidateStates,
|
|
290
|
+
Of as formatter,
|
|
291
291
|
nm as genFileId,
|
|
292
292
|
qf as getChildState,
|
|
293
293
|
xm as getDynamicProps,
|
|
294
|
-
|
|
294
|
+
Lt as initAffixTabs,
|
|
295
295
|
tm as isDatePicker,
|
|
296
296
|
fm as isInput,
|
|
297
297
|
mm as isRangePicker,
|
|
298
|
-
|
|
299
|
-
|
|
298
|
+
wf as makeList,
|
|
299
|
+
Je as messageConfig,
|
|
300
300
|
Cm as messageDefaults,
|
|
301
301
|
Dm as messageTypes,
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
302
|
+
zf as parseDate,
|
|
303
|
+
je as provideGlobalConfig,
|
|
304
|
+
Nt as radioGroupKey,
|
|
305
|
+
Nf as rangeArr,
|
|
306
|
+
gf as removeRequire,
|
|
307
|
+
jt as renderThumbStyle,
|
|
308
|
+
Ut as rowContextKey,
|
|
309
|
+
Ht as scrollbarContextKey,
|
|
310
|
+
Wt as selectInjectionKey,
|
|
311
|
+
Ef as selectMapping,
|
|
312
|
+
Zt as sliderContextKey,
|
|
313
|
+
of as sliderEmits,
|
|
314
|
+
ef as spaceProps,
|
|
315
|
+
Lf as timePickerDefaultProps,
|
|
316
|
+
Af as timeUnits,
|
|
317
317
|
Vm as uploadContextKey,
|
|
318
318
|
N as useContextMenu,
|
|
319
|
-
|
|
320
|
-
|
|
319
|
+
mt as useDialog,
|
|
320
|
+
dt as useDisabled,
|
|
321
321
|
jf as useDragNodeHandler,
|
|
322
322
|
am as useForm,
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
323
|
+
lt as useFormDisabled,
|
|
324
|
+
Ct as useFormItem,
|
|
325
|
+
Dt as useFormItemInputId,
|
|
326
|
+
ct as useFormSize,
|
|
327
|
+
Qe as useGlobalComponentSettings,
|
|
328
|
+
We as useGlobalConfig,
|
|
329
329
|
Wf as useModal,
|
|
330
330
|
Xf as useModalInner,
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
331
|
+
At as usePagination,
|
|
332
|
+
Tt as useSize,
|
|
333
|
+
ff as useSpace,
|
|
334
|
+
bt as useTabDropdown,
|
|
335
|
+
If as useTable,
|
|
336
|
+
St as useTabsDrag,
|
|
337
337
|
lm as vLoading,
|
|
338
|
-
|
|
339
|
-
|
|
338
|
+
hf as valueEquals,
|
|
339
|
+
Kt as vftPaginationKey,
|
|
340
340
|
me as virtualizedGridProps,
|
|
341
341
|
pe as virtualizedListProps,
|
|
342
342
|
xe as virtualizedProps,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as Le, useAttrs as Oe, useSlots as je, computed as l, getCurrentInstance as We, shallowRef as q, ref as
|
|
1
|
+
import { defineComponent as Le, useAttrs as Oe, useSlots as je, computed as l, getCurrentInstance as We, shallowRef as q, ref as V, watch as G, nextTick as B, onMounted as He, withDirectives as Ue, openBlock as i, createElementBlock as d, mergeProps as y, Fragment as J, normalizeClass as c, unref as t, renderSlot as N, createCommentVNode as r, createElementVNode as g, createBlock as F, withKeys as qe, withModifiers as ye, toDisplayString as D, normalizeStyle as Ge, vShow as Je } from "vue";
|
|
2
2
|
import { UPDATE_MODEL_EVENT as Q } from "@vft/constants";
|
|
3
3
|
import { useAttrs as Qe } from "@vft/use";
|
|
4
|
-
import { isString as
|
|
4
|
+
import { isString as A, singleAttrToObj as X, noop as Xe, isObject as he } from "@vft/utils";
|
|
5
5
|
import "../form/index.js";
|
|
6
|
-
import { VftIcon as
|
|
6
|
+
import { VftIcon as K } from "../icon/index.js";
|
|
7
7
|
import { useResizeObserver as Ye, isClient as Ze } from "@vueuse/core";
|
|
8
8
|
import { debugWarn as Y } from "../../utils/error.js";
|
|
9
9
|
import "../../utils/ns-cover.js";
|
|
@@ -44,11 +44,11 @@ const la = ["role"], sa = ["id", "type", "disabled", "formatter", "parser", "rea
|
|
|
44
44
|
inputStyle: {}
|
|
45
45
|
},
|
|
46
46
|
emits: {
|
|
47
|
-
[Q]: (a) =>
|
|
48
|
-
input: (a) =>
|
|
49
|
-
change: (a) =>
|
|
50
|
-
suffixClick: (a) =>
|
|
51
|
-
prefixClick: (a) =>
|
|
47
|
+
[Q]: (a) => A(a),
|
|
48
|
+
input: (a) => A(a),
|
|
49
|
+
change: (a) => A(a),
|
|
50
|
+
suffixClick: (a) => A(a),
|
|
51
|
+
prefixClick: (a) => A(a),
|
|
52
52
|
focus: (a) => a instanceof FocusEvent,
|
|
53
53
|
blur: (a) => a instanceof FocusEvent,
|
|
54
54
|
clear: () => !0,
|
|
@@ -84,8 +84,12 @@ const la = ["role"], sa = ["id", "type", "disabled", "formatter", "parser", "rea
|
|
|
84
84
|
excludeKeys: l(() => Object.keys(Z.value))
|
|
85
85
|
}), { form: T, formItem: u } = aa(), { inputId: _ } = ta(Ce.props, {
|
|
86
86
|
formItemContext: u
|
|
87
|
-
}), ze = oa(), h = na(), o = be("input"), ee = be("textarea"),
|
|
88
|
-
|
|
87
|
+
}), ze = oa(), h = na(), o = be("input"), ee = be("textarea"), M = q(), b = q(), w = V(!1), L = V(!1), k = V(!1), P = V(!1), ae = V(), O = q(a.inputStyle), z = l(() => M.value || b.value), j = l(() => X(a.prefixIcon, "icon", { size: 16 })), te = l(() => X(a.suffixIcon, "icon", { size: 16 })), Ie = l(() => X(a.clearIcon, "icon", { icon: "icon-circle-close", size: 16 })), oe = l(() => (T == null ? void 0 : T.statusIcon) ?? !1), I = l(() => (u == null ? void 0 : u.validateState) || ""), ne = l(() => I.value && {
|
|
88
|
+
validating: "icon-loading",
|
|
89
|
+
success: "icon-circle-check",
|
|
90
|
+
error: "icon-circle-close"
|
|
91
|
+
}[I.value]), Se = l(
|
|
92
|
+
() => P.value ? { icon: "icon-view", size: 16 } : { icon: "icon-hide", size: 16 }
|
|
89
93
|
), Ee = l(() => [C.style, a.inputStyle]), le = l(
|
|
90
94
|
() => [a.inputStyle, O.value, { resize: a.resize }]
|
|
91
95
|
), p = l(() => _e(a.modelValue) ? "" : String(a.modelValue)), R = l(
|
|
@@ -100,8 +104,8 @@ const la = ["role"], sa = ["id", "type", "disabled", "formatter", "parser", "rea
|
|
|
100
104
|
!!x.value && H.value > Number(f.value.maxlength)
|
|
101
105
|
)
|
|
102
106
|
), Be = l(
|
|
103
|
-
() => !!m.suffix || !!a.suffixIcon || R.value || a.showPassword || x.value || !!
|
|
104
|
-
), [Fe, Ae] = ea(
|
|
107
|
+
() => !!m.suffix || !!a.suffixIcon || R.value || a.showPassword || x.value || !!I.value && oe.value
|
|
108
|
+
), [Fe, Ae] = ea(M);
|
|
105
109
|
Ye(b, (e) => {
|
|
106
110
|
if (!x.value || a.resize !== "both")
|
|
107
111
|
return;
|
|
@@ -122,7 +126,7 @@ const la = ["role"], sa = ["id", "type", "disabled", "formatter", "parser", "rea
|
|
|
122
126
|
O.value = {
|
|
123
127
|
minHeight: we(b.value).minHeight
|
|
124
128
|
};
|
|
125
|
-
},
|
|
129
|
+
}, S = () => {
|
|
126
130
|
const e = z.value;
|
|
127
131
|
!e || e.value === p.value || (e.value = p.value);
|
|
128
132
|
}, U = async (e) => {
|
|
@@ -130,10 +134,10 @@ const la = ["role"], sa = ["id", "type", "disabled", "formatter", "parser", "rea
|
|
|
130
134
|
let { value: n } = e.target;
|
|
131
135
|
if (f.value.maxlength && n.length >= f.value.maxlength && (n = n.slice(0, Number(f.value.maxlength))), a.formatter && (n = a.parser ? a.parser(n) : n, n = a.formatter(n)), !k.value) {
|
|
132
136
|
if (n === p.value) {
|
|
133
|
-
|
|
137
|
+
S();
|
|
134
138
|
return;
|
|
135
139
|
}
|
|
136
|
-
s(Q, n), s("input", n), await
|
|
140
|
+
s(Q, n), s("input", n), await B(), S(), Ae();
|
|
137
141
|
}
|
|
138
142
|
}, se = (e) => {
|
|
139
143
|
s("change", e.target.value);
|
|
@@ -144,17 +148,17 @@ const la = ["role"], sa = ["id", "type", "disabled", "formatter", "parser", "rea
|
|
|
144
148
|
}, ie = (e) => {
|
|
145
149
|
s("compositionstart", e), k.value = !0;
|
|
146
150
|
}, Pe = (e) => /([(\uAC00-\uD7AF)|\u3130-\u318F])+/.test(e), ue = (e) => {
|
|
147
|
-
var
|
|
151
|
+
var E;
|
|
148
152
|
s("compositionupdate", e);
|
|
149
|
-
const n = (
|
|
153
|
+
const n = (E = e.target) == null ? void 0 : E.value, v = n[n.length - 1] || "";
|
|
150
154
|
k.value = !Pe(v);
|
|
151
155
|
}, re = (e) => {
|
|
152
156
|
s("compositionend", e), k.value && (k.value = !1, U(e));
|
|
153
157
|
}, Re = () => {
|
|
154
|
-
|
|
158
|
+
P.value = !P.value, ce();
|
|
155
159
|
}, ce = async () => {
|
|
156
160
|
var e;
|
|
157
|
-
await
|
|
161
|
+
await B(), (e = z.value) == null || e.focus();
|
|
158
162
|
}, $e = () => {
|
|
159
163
|
var e;
|
|
160
164
|
return (e = z.value) == null ? void 0 : e.blur();
|
|
@@ -182,18 +186,18 @@ const la = ["role"], sa = ["id", "type", "disabled", "formatter", "parser", "rea
|
|
|
182
186
|
() => a.modelValue,
|
|
183
187
|
() => {
|
|
184
188
|
var e;
|
|
185
|
-
|
|
189
|
+
B(() => $()), a.validateEvent && ((e = u == null ? void 0 : u.validate) == null || e.call(u, "change").catch((n) => Y(n)));
|
|
186
190
|
}
|
|
187
|
-
), G(p, () =>
|
|
191
|
+
), G(p, () => S()), G(
|
|
188
192
|
() => a.type,
|
|
189
193
|
async () => {
|
|
190
|
-
await
|
|
194
|
+
await B(), S(), $();
|
|
191
195
|
}
|
|
192
196
|
), He(() => {
|
|
193
|
-
!a.formatter && a.parser && Y("VftInput", "If you set the parser, you also need to set the formatter."),
|
|
197
|
+
!a.formatter && a.parser && Y("VftInput", "If you set the parser, you also need to set the formatter."), S(), B($);
|
|
194
198
|
}), xe({
|
|
195
199
|
/** @description HTML input element */
|
|
196
|
-
input:
|
|
200
|
+
input: M,
|
|
197
201
|
/** @description HTML textarea element */
|
|
198
202
|
textarea: b,
|
|
199
203
|
/** @description HTML element, input or textarea */
|
|
@@ -213,7 +217,7 @@ const la = ["role"], sa = ["id", "type", "disabled", "formatter", "parser", "rea
|
|
|
213
217
|
/** @description resize textarea. */
|
|
214
218
|
resizeTextarea: $
|
|
215
219
|
}), (e, n) => {
|
|
216
|
-
var v,
|
|
220
|
+
var v, E, me;
|
|
217
221
|
return Ue((i(), d("div", y(Z.value, {
|
|
218
222
|
class: ge.value,
|
|
219
223
|
style: Ee.value,
|
|
@@ -240,7 +244,7 @@ const la = ["role"], sa = ["id", "type", "disabled", "formatter", "parser", "rea
|
|
|
240
244
|
onClick: Me
|
|
241
245
|
}, [
|
|
242
246
|
N(e.$slots, "prefix"),
|
|
243
|
-
(
|
|
247
|
+
(E = j.value) != null && E.icon ? (i(), F(t(K), y({
|
|
244
248
|
key: 0,
|
|
245
249
|
pointer: ""
|
|
246
250
|
}, j.value, {
|
|
@@ -251,10 +255,10 @@ const la = ["role"], sa = ["id", "type", "disabled", "formatter", "parser", "rea
|
|
|
251
255
|
g("input", y({
|
|
252
256
|
id: t(_),
|
|
253
257
|
ref_key: "input",
|
|
254
|
-
ref:
|
|
258
|
+
ref: M,
|
|
255
259
|
class: t(o).e("inner")
|
|
256
260
|
}, t(f), {
|
|
257
|
-
type: e.showPassword ?
|
|
261
|
+
type: e.showPassword ? P.value ? "text" : "password" : e.type,
|
|
258
262
|
disabled: t(h),
|
|
259
263
|
formatter: e.formatter,
|
|
260
264
|
parser: e.parser,
|
|
@@ -285,11 +289,11 @@ const la = ["role"], sa = ["id", "type", "disabled", "formatter", "parser", "rea
|
|
|
285
289
|
}, [
|
|
286
290
|
!R.value || !W.value || !x.value ? (i(), d(J, { key: 0 }, [
|
|
287
291
|
N(e.$slots, "suffix"),
|
|
288
|
-
(me = te.value) != null && me.icon ? (i(),
|
|
292
|
+
(me = te.value) != null && me.icon ? (i(), F(t(K), y({ key: 0 }, te.value, {
|
|
289
293
|
class: t(o).e("icon")
|
|
290
294
|
}), null, 16, ["class"])) : r("", !0)
|
|
291
295
|
], 64)) : r("", !0),
|
|
292
|
-
R.value ? (i(),
|
|
296
|
+
R.value ? (i(), F(t(K), y({
|
|
293
297
|
key: 1,
|
|
294
298
|
pointer: "",
|
|
295
299
|
class: [t(o).e("icon"), t(o).e("clear")]
|
|
@@ -297,7 +301,7 @@ const la = ["role"], sa = ["id", "type", "disabled", "formatter", "parser", "rea
|
|
|
297
301
|
onMousedown: ye(t(Xe), ["prevent"]),
|
|
298
302
|
onClick: ye(pe, ["stop"])
|
|
299
303
|
}), null, 16, ["class", "onMousedown", "onClick"])) : r("", !0),
|
|
300
|
-
W.value ? (i(),
|
|
304
|
+
W.value ? (i(), F(t(K), y({ key: 2 }, Se.value, {
|
|
301
305
|
class: [t(o).e("icon"), t(o).e("password")],
|
|
302
306
|
onClick: Re
|
|
303
307
|
}), null, 16, ["class"])) : r("", !0),
|
|
@@ -309,10 +313,10 @@ const la = ["role"], sa = ["id", "type", "disabled", "formatter", "parser", "rea
|
|
|
309
313
|
class: c(t(o).e("count-inner"))
|
|
310
314
|
}, D(H.value) + " / " + D(t(f).maxlength), 3)
|
|
311
315
|
], 2)) : r("", !0),
|
|
312
|
-
|
|
316
|
+
I.value && ne.value && oe.value ? (i(), F(t(K), {
|
|
313
317
|
key: 4,
|
|
314
318
|
icon: ne.value,
|
|
315
|
-
class: c([t(o).e("icon"), t(o).e("validateIcon"), t(o).is("loading",
|
|
319
|
+
class: c([t(o).e("icon"), t(o).e("validateIcon"), t(o).is("loading", I.value === "validating")])
|
|
316
320
|
}, null, 8, ["icon", "class"])) : r("", !0)
|
|
317
321
|
], 2)
|
|
318
322
|
], 2)) : r("", !0)
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as j, ref as ee, reactive as ne, computed as f, watch as te, onMounted as le, onUpdated as ue, openBlock as P, createElementBlock as B, normalizeClass as O, unref as u, withModifiers as V, withDirectives as W, withKeys as h, createVNode as T, createCommentVNode as Y } from "vue";
|
|
2
2
|
import { isNumber as s, isUndefined as y, isString as ie } from "@vft/utils";
|
|
3
3
|
import "../form/index.js";
|
|
4
|
-
import { VftIcon as
|
|
4
|
+
import { VftIcon as $ } from "../icon/index.js";
|
|
5
5
|
import { VftInput as ae } from "../input/index.js";
|
|
6
|
-
import { CHANGE_EVENT as
|
|
6
|
+
import { CHANGE_EVENT as H, INPUT_EVENT as w, UPDATE_MODEL_EVENT as b } from "../../constants/event.js";
|
|
7
7
|
import "@vueuse/core";
|
|
8
8
|
import { debugWarn as D } from "../../utils/error.js";
|
|
9
9
|
import "../../utils/ns-cover.js";
|
|
@@ -11,15 +11,15 @@ import { isNil as v } from "lodash";
|
|
|
11
11
|
import { useNamespace as re } from "../../hooks/use-namespace/index.js";
|
|
12
12
|
import "@popperjs/core";
|
|
13
13
|
import "../../hooks/use-z-index/index.js";
|
|
14
|
-
import { vRepeatClick as
|
|
14
|
+
import { vRepeatClick as L } from "./directives.js";
|
|
15
15
|
import { useFormItem as oe } from "../form/hooks/use-form-item.js";
|
|
16
16
|
import { useFormSize as se, useFormDisabled as ce } from "../form/hooks/use-form-common-props.js";
|
|
17
17
|
const de = ["onKeydown"], me = ["onKeydown"], c = (
|
|
18
18
|
/* hoist-static*/
|
|
19
19
|
re("input-number")
|
|
20
|
-
), fe =
|
|
20
|
+
), fe = j({
|
|
21
21
|
name: "vft-input-number"
|
|
22
|
-
}), Be = /* @__PURE__ */
|
|
22
|
+
}), Be = /* @__PURE__ */ j({
|
|
23
23
|
...fe,
|
|
24
24
|
props: {
|
|
25
25
|
id: { default: void 0 },
|
|
@@ -41,7 +41,7 @@ const de = ["onKeydown"], me = ["onKeydown"], c = (
|
|
|
41
41
|
validateEvent: { type: Boolean, default: !0 }
|
|
42
42
|
},
|
|
43
43
|
emits: {
|
|
44
|
-
[
|
|
44
|
+
[H]: (n, g) => g !== n,
|
|
45
45
|
blur: (n) => n instanceof FocusEvent,
|
|
46
46
|
focus: (n) => n instanceof FocusEvent,
|
|
47
47
|
[w]: (n) => s(n) || v(n),
|
|
@@ -55,7 +55,7 @@ const de = ["onKeydown"], me = ["onKeydown"], c = (
|
|
|
55
55
|
() => n.modelValue && s(n.modelValue) && n.modelValue <= n.min
|
|
56
56
|
), M = f(
|
|
57
57
|
() => n.modelValue && s(n.modelValue) && n.modelValue >= n.max
|
|
58
|
-
),
|
|
58
|
+
), p = f(() => {
|
|
59
59
|
const e = z(n.step);
|
|
60
60
|
return y(n.precision) ? Math.max(z(n.modelValue), e) : (e > n.precision && D(
|
|
61
61
|
"InputNumber",
|
|
@@ -74,29 +74,29 @@ const de = ["onKeydown"], me = ["onKeydown"], c = (
|
|
|
74
74
|
}
|
|
75
75
|
return e;
|
|
76
76
|
}), F = (e, t) => {
|
|
77
|
-
if (y(t) && (t =
|
|
77
|
+
if (y(t) && (t = p.value), t === 0)
|
|
78
78
|
return Math.round(e);
|
|
79
79
|
let l = String(e);
|
|
80
80
|
const a = l.indexOf(".");
|
|
81
81
|
if (a === -1 || !l.replace(".", "").split("")[a + t])
|
|
82
82
|
return e;
|
|
83
|
-
const
|
|
84
|
-
return l.charAt(
|
|
83
|
+
const R = l.length;
|
|
84
|
+
return l.charAt(R - 1) === "5" && (l = `${l.slice(0, Math.max(0, R - 1))}6`), Number.parseFloat(Number(l).toFixed(t));
|
|
85
85
|
}, z = (e) => {
|
|
86
86
|
if (v(e))
|
|
87
87
|
return 0;
|
|
88
88
|
const t = e.toString(), l = t.indexOf(".");
|
|
89
89
|
let a = 0;
|
|
90
90
|
return l !== -1 && (a = t.length - l - 1), a;
|
|
91
|
-
},
|
|
91
|
+
}, U = (e, t = 1) => s(e) ? F(e + n.step * t) : i.currentValue, x = () => {
|
|
92
92
|
if (n.readonly || m.value || M.value)
|
|
93
93
|
return;
|
|
94
|
-
const e = Number(E.value) || 0, t =
|
|
94
|
+
const e = Number(E.value) || 0, t = U(e);
|
|
95
95
|
N(t), r(w, i.currentValue);
|
|
96
96
|
}, A = () => {
|
|
97
97
|
if (n.readonly || m.value || K.value)
|
|
98
98
|
return;
|
|
99
|
-
const e = Number(E.value) || 0, t =
|
|
99
|
+
const e = Number(E.value) || 0, t = U(e, -1);
|
|
100
100
|
N(t), r(w, i.currentValue);
|
|
101
101
|
}, C = (e, t) => {
|
|
102
102
|
let l = Number(e);
|
|
@@ -115,7 +115,7 @@ const de = ["onKeydown"], me = ["onKeydown"], c = (
|
|
|
115
115
|
r(b, a);
|
|
116
116
|
return;
|
|
117
117
|
}
|
|
118
|
-
l !== a && (i.userInput = null, r(b, a), r(
|
|
118
|
+
l !== a && (i.userInput = null, r(b, a), r(H, a, l), n.validateEvent && ((S = o == null ? void 0 : o.validate) == null || S.call(o, "change").catch((G) => D(G))), i.currentValue = a);
|
|
119
119
|
}, q = (e) => {
|
|
120
120
|
i.userInput = e;
|
|
121
121
|
const t = e === "" ? null : Number(e);
|
|
@@ -169,30 +169,30 @@ const de = ["onKeydown"], me = ["onKeydown"], c = (
|
|
|
169
169
|
onDragstart: t[1] || (t[1] = V(() => {
|
|
170
170
|
}, ["prevent"]))
|
|
171
171
|
}, [
|
|
172
|
-
e.controls ?
|
|
172
|
+
e.controls ? W((P(), B("span", {
|
|
173
173
|
key: 0,
|
|
174
174
|
role: "button",
|
|
175
175
|
class: O([u(c).e("decrease"), u(c).is("disabled", K.value)]),
|
|
176
176
|
onKeydown: h(A, ["enter"])
|
|
177
177
|
}, [
|
|
178
|
-
T(u(
|
|
179
|
-
icon: I.value ? "
|
|
178
|
+
T(u($), {
|
|
179
|
+
icon: I.value ? "icon-arrow-down" : "icon-minus"
|
|
180
180
|
}, null, 8, ["icon"])
|
|
181
181
|
], 42, de)), [
|
|
182
|
-
[u(
|
|
183
|
-
]) :
|
|
184
|
-
e.controls ?
|
|
182
|
+
[u(L), A]
|
|
183
|
+
]) : Y("", !0),
|
|
184
|
+
e.controls ? W((P(), B("span", {
|
|
185
185
|
key: 1,
|
|
186
186
|
role: "button",
|
|
187
187
|
class: O([u(c).e("increase"), u(c).is("disabled", M.value)]),
|
|
188
188
|
onKeydown: h(x, ["enter"])
|
|
189
189
|
}, [
|
|
190
|
-
T(u(
|
|
191
|
-
icon: I.value ? "
|
|
190
|
+
T(u($), {
|
|
191
|
+
icon: I.value ? "icon-arrow-up" : "icon-plus"
|
|
192
192
|
}, null, 8, ["icon"])
|
|
193
193
|
], 42, me)), [
|
|
194
|
-
[u(
|
|
195
|
-
]) :
|
|
194
|
+
[u(L), x]
|
|
195
|
+
]) : Y("", !0),
|
|
196
196
|
T(u(ae), {
|
|
197
197
|
id: e.id,
|
|
198
198
|
ref_key: "input",
|