@varlet/ui 2.9.3-alpha.1679537809832 → 2.9.3
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/es/app-bar/AppBar.mjs +3 -2
- package/es/app-bar/props.mjs +1 -1
- package/es/back-top/BackTop.mjs +4 -1
- package/es/back-top/props.mjs +4 -0
- package/es/counter/Counter.mjs +3 -2
- package/es/counter/props.mjs +4 -0
- package/es/date-picker/DatePicker.mjs +6 -4
- package/es/date-picker/props.mjs +5 -1
- package/es/date-picker/src/day-picker-panel.mjs +3 -2
- package/es/date-picker/src/month-picker-panel.mjs +3 -2
- package/es/index.bundle.mjs +1 -1
- package/es/index.mjs +1 -1
- package/es/pagination/Pagination.mjs +6 -5
- package/es/pagination/props.mjs +4 -0
- package/es/table/Table.mjs +4 -3
- package/es/table/props.mjs +4 -0
- package/es/tabs/Tabs.mjs +4 -3
- package/es/tabs/props.mjs +1 -1
- package/es/time-picker/TimePicker.mjs +4 -3
- package/es/time-picker/props.mjs +1 -1
- package/es/uploader/Uploader.mjs +4 -3
- package/es/uploader/props.mjs +4 -0
- package/es/varlet.esm.js +1379 -1337
- package/highlight/web-types.en-US.json +63 -9
- package/highlight/web-types.zh-CN.json +65 -11
- package/lib/varlet.cjs.js +79 -37
- package/package.json +6 -6
- package/types/appBar.d.ts +1 -1
- package/types/backTop.d.ts +1 -0
- package/types/counter.d.ts +1 -0
- package/types/datePicker.d.ts +2 -1
- package/types/pagination.d.ts +1 -0
- package/types/table.d.ts +1 -0
- package/types/tabs.d.ts +1 -1
- package/types/timePicker.d.ts +1 -1
- package/types/uploader.d.ts +1 -0
- package/umd/varlet.js +4 -4
package/es/app-bar/AppBar.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, ref, onUpdated, computed } from 'vue';
|
|
2
2
|
import { props } from './props.mjs';
|
|
3
|
-
import { createNamespace } from '../utils/components.mjs';
|
|
3
|
+
import { createNamespace, formatElevation } from '../utils/components.mjs';
|
|
4
4
|
import { useMounted } from '@varlet/use';
|
|
5
5
|
var {
|
|
6
6
|
n,
|
|
@@ -10,7 +10,7 @@ import { renderSlot as _renderSlot, toDisplayString as _toDisplayString, createT
|
|
|
10
10
|
|
|
11
11
|
function __render__(_ctx, _cache) {
|
|
12
12
|
return _openBlock(), _createElementBlock("div", {
|
|
13
|
-
class: _normalizeClass(_ctx.classes(_ctx.n(), [_ctx.round, _ctx.n('--round')],
|
|
13
|
+
class: _normalizeClass(_ctx.classes(_ctx.n(), [_ctx.round, _ctx.n('--round')], _ctx.formatElevation(_ctx.elevation, 3))),
|
|
14
14
|
style: _normalizeStyle(_ctx.rootStyles)
|
|
15
15
|
}, [_createElementVNode("div", {
|
|
16
16
|
class: _normalizeClass(_ctx.n('toolbar'))
|
|
@@ -99,6 +99,7 @@ var __sfc__ = defineComponent({
|
|
|
99
99
|
return {
|
|
100
100
|
n,
|
|
101
101
|
classes,
|
|
102
|
+
formatElevation,
|
|
102
103
|
rootStyles,
|
|
103
104
|
paddingLeft,
|
|
104
105
|
paddingRight
|
package/es/app-bar/props.mjs
CHANGED
package/es/back-top/BackTop.mjs
CHANGED
|
@@ -32,6 +32,7 @@ function __render__(_ctx, _cache) {
|
|
|
32
32
|
return _ctx.handleClick && _ctx.handleClick(...arguments);
|
|
33
33
|
}, ["stop"]))
|
|
34
34
|
}), [_renderSlot(_ctx.$slots, "default", {}, () => [_createVNode(_component_var_button, {
|
|
35
|
+
elevation: _ctx.elevation,
|
|
35
36
|
type: "primary",
|
|
36
37
|
round: "",
|
|
37
38
|
"var-back-top-cover": ""
|
|
@@ -42,7 +43,9 @@ function __render__(_ctx, _cache) {
|
|
|
42
43
|
_: 1
|
|
43
44
|
/* STABLE */
|
|
44
45
|
|
|
45
|
-
}
|
|
46
|
+
}, 8
|
|
47
|
+
/* PROPS */
|
|
48
|
+
, ["elevation"])])], 16
|
|
46
49
|
/* FULL_PROPS */
|
|
47
50
|
)], 8
|
|
48
51
|
/* PROPS */
|
package/es/back-top/props.mjs
CHANGED
package/es/counter/Counter.mjs
CHANGED
|
@@ -8,7 +8,7 @@ import { props } from './props.mjs';
|
|
|
8
8
|
import { toNumber } from '@varlet/shared';
|
|
9
9
|
import { toSizeUnit } from '../utils/elements.mjs';
|
|
10
10
|
import { useForm } from '../form/provide.mjs';
|
|
11
|
-
import { useValidation, createNamespace, call } from '../utils/components.mjs';
|
|
11
|
+
import { useValidation, createNamespace, call, formatElevation } from '../utils/components.mjs';
|
|
12
12
|
var {
|
|
13
13
|
n,
|
|
14
14
|
classes
|
|
@@ -31,7 +31,7 @@ function __render__(_ctx, _cache) {
|
|
|
31
31
|
return _openBlock(), _createElementBlock("div", {
|
|
32
32
|
class: _normalizeClass(_ctx.classes(_ctx.n(), _ctx.n('$--box')))
|
|
33
33
|
}, [_createElementVNode("div", _mergeProps({
|
|
34
|
-
class: _ctx.classes(_ctx.n('controller'), _ctx.
|
|
34
|
+
class: _ctx.classes(_ctx.n('controller'), _ctx.formatElevation(_ctx.elevation, 2), [_ctx.disabled || _ctx.formDisabled, _ctx.n('--disabled')], [_ctx.errorMessage, _ctx.n('--error')]),
|
|
35
35
|
style: {
|
|
36
36
|
background: _ctx.color ? _ctx.color : undefined
|
|
37
37
|
}
|
|
@@ -362,6 +362,7 @@ var __sfc__ = defineComponent({
|
|
|
362
362
|
return {
|
|
363
363
|
n,
|
|
364
364
|
classes,
|
|
365
|
+
formatElevation,
|
|
365
366
|
inputValue,
|
|
366
367
|
errorMessage,
|
|
367
368
|
formDisabled,
|
package/es/counter/props.mjs
CHANGED
|
@@ -6,7 +6,7 @@ import DayPickerPanel from './src/day-picker-panel.mjs';
|
|
|
6
6
|
import { props, MONTH_LIST, WEEK_HEADER } from './props.mjs';
|
|
7
7
|
import { isArray, toNumber } from '@varlet/shared';
|
|
8
8
|
import { nextTickFrame } from '../utils/elements.mjs';
|
|
9
|
-
import { createNamespace, call } from '../utils/components.mjs';
|
|
9
|
+
import { createNamespace, call, formatElevation } from '../utils/components.mjs';
|
|
10
10
|
import { padStart } from '../utils/shared.mjs';
|
|
11
11
|
import { pack } from '../locale/index.mjs';
|
|
12
12
|
var {
|
|
@@ -23,7 +23,7 @@ function __render__(_ctx, _cache) {
|
|
|
23
23
|
var _component_day_picker_panel = _resolveComponent("day-picker-panel");
|
|
24
24
|
|
|
25
25
|
return _openBlock(), _createElementBlock("div", {
|
|
26
|
-
class: _normalizeClass(_ctx.classes(_ctx.n(),
|
|
26
|
+
class: _normalizeClass(_ctx.classes(_ctx.n(), _ctx.formatElevation(_ctx.elevation, 2)))
|
|
27
27
|
}, [_createElementVNode("div", {
|
|
28
28
|
class: _normalizeClass(_ctx.n('title')),
|
|
29
29
|
style: _normalizeStyle({
|
|
@@ -191,7 +191,8 @@ var __sfc__ = defineComponent({
|
|
|
191
191
|
max: props.max,
|
|
192
192
|
showCurrent: props.showCurrent,
|
|
193
193
|
multiple: props.multiple,
|
|
194
|
-
range: props.range
|
|
194
|
+
range: props.range,
|
|
195
|
+
buttonElevation: props.buttonElevation
|
|
195
196
|
});
|
|
196
197
|
var getChoose = computed(() => ({
|
|
197
198
|
chooseMonth: chooseMonth.value,
|
|
@@ -538,7 +539,8 @@ var __sfc__ = defineComponent({
|
|
|
538
539
|
getChooseDay,
|
|
539
540
|
getChooseMonth,
|
|
540
541
|
getChooseYear,
|
|
541
|
-
checkPreview
|
|
542
|
+
checkPreview,
|
|
543
|
+
formatElevation
|
|
542
544
|
};
|
|
543
545
|
}
|
|
544
546
|
|
package/es/date-picker/props.mjs
CHANGED
|
@@ -63,9 +63,13 @@ export var props = {
|
|
|
63
63
|
type: String
|
|
64
64
|
},
|
|
65
65
|
elevation: {
|
|
66
|
-
type: Boolean,
|
|
66
|
+
type: [Boolean, Number, String],
|
|
67
67
|
default: false
|
|
68
68
|
},
|
|
69
|
+
buttonElevation: {
|
|
70
|
+
type: [Boolean, Number, String],
|
|
71
|
+
default: true
|
|
72
|
+
},
|
|
69
73
|
firstDayOfWeek: {
|
|
70
74
|
type: [String, Number],
|
|
71
75
|
default: 0
|
|
@@ -66,7 +66,8 @@ function __render__(_ctx, _cache) {
|
|
|
66
66
|
type: "primary",
|
|
67
67
|
"var-day-picker-cover": "",
|
|
68
68
|
round: "",
|
|
69
|
-
ripple: false
|
|
69
|
+
ripple: false,
|
|
70
|
+
elevation: _ctx.componentProps.buttonElevation
|
|
70
71
|
}, _extends({}, _ctx.buttonProps(day)), {
|
|
71
72
|
onClick: event => _ctx.chooseDay(day, event)
|
|
72
73
|
}), {
|
|
@@ -78,7 +79,7 @@ function __render__(_ctx, _cache) {
|
|
|
78
79
|
|
|
79
80
|
}, 1040
|
|
80
81
|
/* FULL_PROPS, DYNAMIC_SLOTS */
|
|
81
|
-
, ["onClick"])]);
|
|
82
|
+
, ["elevation", "onClick"])]);
|
|
82
83
|
}), 128
|
|
83
84
|
/* KEYED_FRAGMENT */
|
|
84
85
|
))], 2
|
|
@@ -50,7 +50,8 @@ function __render__(_ctx, _cache) {
|
|
|
50
50
|
}, [_createVNode(_component_var_button, _mergeProps({
|
|
51
51
|
type: "primary",
|
|
52
52
|
"var-month-picker-cover": "",
|
|
53
|
-
ripple: false
|
|
53
|
+
ripple: false,
|
|
54
|
+
elevation: _ctx.componentProps.buttonElevation
|
|
54
55
|
}, _extends({}, _ctx.buttonProps(month.index)), {
|
|
55
56
|
onClick: event => _ctx.chooseMonth(month, event)
|
|
56
57
|
}), {
|
|
@@ -62,7 +63,7 @@ function __render__(_ctx, _cache) {
|
|
|
62
63
|
|
|
63
64
|
}, 1040
|
|
64
65
|
/* FULL_PROPS, DYNAMIC_SLOTS */
|
|
65
|
-
, ["onClick"])]);
|
|
66
|
+
, ["elevation", "onClick"])]);
|
|
66
67
|
}), 128
|
|
67
68
|
/* KEYED_FRAGMENT */
|
|
68
69
|
))]))]),
|
package/es/index.bundle.mjs
CHANGED
|
@@ -241,7 +241,7 @@ import './time-picker/style/index.mjs'
|
|
|
241
241
|
import './tooltip/style/index.mjs'
|
|
242
242
|
import './uploader/style/index.mjs'
|
|
243
243
|
|
|
244
|
-
const version = '2.9.3
|
|
244
|
+
const version = '2.9.3'
|
|
245
245
|
|
|
246
246
|
function install(app) {
|
|
247
247
|
ActionSheet.install && app.use(ActionSheet)
|
package/es/index.mjs
CHANGED
|
@@ -160,7 +160,7 @@ export * from './time-picker/index.mjs'
|
|
|
160
160
|
export * from './tooltip/index.mjs'
|
|
161
161
|
export * from './uploader/index.mjs'
|
|
162
162
|
|
|
163
|
-
const version = '2.9.3
|
|
163
|
+
const version = '2.9.3'
|
|
164
164
|
|
|
165
165
|
function install(app) {
|
|
166
166
|
ActionSheet.install && app.use(ActionSheet)
|
|
@@ -7,7 +7,7 @@ import { defineComponent, ref, computed, watch } from 'vue';
|
|
|
7
7
|
import { props } from './props.mjs';
|
|
8
8
|
import { isNumber, toNumber } from '@varlet/shared';
|
|
9
9
|
import { pack } from '../locale/index.mjs';
|
|
10
|
-
import { call, createNamespace } from '../utils/components.mjs';
|
|
10
|
+
import { call, createNamespace, formatElevation } from '../utils/components.mjs';
|
|
11
11
|
var {
|
|
12
12
|
n,
|
|
13
13
|
classes
|
|
@@ -32,7 +32,7 @@ function __render__(_ctx, _cache) {
|
|
|
32
32
|
return _openBlock(), _createElementBlock("ul", {
|
|
33
33
|
class: _normalizeClass(_ctx.n())
|
|
34
34
|
}, [_withDirectives((_openBlock(), _createElementBlock("li", {
|
|
35
|
-
class: _normalizeClass(_ctx.classes(_ctx.n('item'), _ctx.n('prev'), [_ctx.current <= 1 || _ctx.disabled, _ctx.n('item--disabled')], [_ctx.simple, _ctx.n('item--simple'), _ctx.
|
|
35
|
+
class: _normalizeClass(_ctx.classes(_ctx.n('item'), _ctx.n('prev'), [_ctx.current <= 1 || _ctx.disabled, _ctx.n('item--disabled')], [_ctx.simple, _ctx.n('item--simple'), _ctx.formatElevation(_ctx.elevation, 2)])),
|
|
36
36
|
onClick: _cache[0] || (_cache[0] = $event => _ctx.clickItem('prev'))
|
|
37
37
|
}, [_renderSlot(_ctx.$slots, "prev", {}, () => [_createVNode(_component_var_icon, {
|
|
38
38
|
name: "chevron-left"
|
|
@@ -66,7 +66,7 @@ function __render__(_ctx, _cache) {
|
|
|
66
66
|
return _withDirectives((_openBlock(), _createElementBlock("li", {
|
|
67
67
|
key: _ctx.toNumber(item) + index,
|
|
68
68
|
"item-mode": _ctx.getMode(item, index),
|
|
69
|
-
class: _normalizeClass(_ctx.classes(_ctx.n('item'), _ctx.
|
|
69
|
+
class: _normalizeClass(_ctx.classes(_ctx.n('item'), _ctx.formatElevation(_ctx.elevation, 2), [item === _ctx.current && !_ctx.disabled, _ctx.n('item--active')], [_ctx.isHideEllipsis(item, index), _ctx.n('item--hide')], [_ctx.disabled, _ctx.n('item--disabled')], [item === _ctx.current && _ctx.disabled, _ctx.n('item--disabled--active')])),
|
|
70
70
|
onClick: $event => _ctx.clickItem(item, index)
|
|
71
71
|
}, [_createTextVNode(_toDisplayString(item), 1
|
|
72
72
|
/* TEXT */
|
|
@@ -78,7 +78,7 @@ function __render__(_ctx, _cache) {
|
|
|
78
78
|
}), 128
|
|
79
79
|
/* KEYED_FRAGMENT */
|
|
80
80
|
)), _withDirectives((_openBlock(), _createElementBlock("li", {
|
|
81
|
-
class: _normalizeClass(_ctx.classes(_ctx.n('item'), _ctx.n('next'), [_ctx.current >= _ctx.pageCount || _ctx.disabled, _ctx.n('item--disabled')], [_ctx.simple, _ctx.n('item--simple'), _ctx.
|
|
81
|
+
class: _normalizeClass(_ctx.classes(_ctx.n('item'), _ctx.n('next'), [_ctx.current >= _ctx.pageCount || _ctx.disabled, _ctx.n('item--disabled')], [_ctx.simple, _ctx.n('item--simple'), _ctx.formatElevation(_ctx.elevation, 2)])),
|
|
82
82
|
onClick: _cache[4] || (_cache[4] = $event => _ctx.clickItem('next'))
|
|
83
83
|
}, [_renderSlot(_ctx.$slots, "next", {}, () => [_createVNode(_component_var_icon, {
|
|
84
84
|
name: "chevron-right"
|
|
@@ -348,7 +348,8 @@ var __sfc__ = defineComponent({
|
|
|
348
348
|
showMenu,
|
|
349
349
|
clickSize,
|
|
350
350
|
setPage,
|
|
351
|
-
toNumber
|
|
351
|
+
toNumber,
|
|
352
|
+
formatElevation
|
|
352
353
|
};
|
|
353
354
|
}
|
|
354
355
|
|
package/es/pagination/props.mjs
CHANGED
package/es/table/Table.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent } from 'vue';
|
|
2
2
|
import { toSizeUnit } from '../utils/elements.mjs';
|
|
3
|
-
import { createNamespace } from '../utils/components.mjs';
|
|
3
|
+
import { createNamespace, formatElevation } from '../utils/components.mjs';
|
|
4
4
|
import { props } from './props.mjs';
|
|
5
5
|
var {
|
|
6
6
|
n,
|
|
@@ -10,7 +10,7 @@ import { renderSlot as _renderSlot, normalizeClass as _normalizeClass, normalize
|
|
|
10
10
|
|
|
11
11
|
function __render__(_ctx, _cache) {
|
|
12
12
|
return _openBlock(), _createElementBlock("div", {
|
|
13
|
-
class: _normalizeClass(_ctx.classes(_ctx.n(), _ctx.
|
|
13
|
+
class: _normalizeClass(_ctx.classes(_ctx.n(), _ctx.formatElevation(_ctx.elevation, 1), _ctx.n('$--box')))
|
|
14
14
|
}, [_createElementVNode("div", {
|
|
15
15
|
class: _normalizeClass(_ctx.n('main'))
|
|
16
16
|
}, [_createElementVNode("table", {
|
|
@@ -40,7 +40,8 @@ var __sfc__ = defineComponent({
|
|
|
40
40
|
return {
|
|
41
41
|
toSizeUnit,
|
|
42
42
|
n,
|
|
43
|
-
classes
|
|
43
|
+
classes,
|
|
44
|
+
formatElevation
|
|
44
45
|
};
|
|
45
46
|
}
|
|
46
47
|
|
package/es/table/props.mjs
CHANGED
package/es/tabs/Tabs.mjs
CHANGED
|
@@ -9,7 +9,7 @@ import { useTabList } from './provide.mjs';
|
|
|
9
9
|
import { isNumber } from '@varlet/shared';
|
|
10
10
|
import { linear } from '../utils/shared.mjs';
|
|
11
11
|
import { toSizeUnit, scrollTo, doubleRaf } from '../utils/elements.mjs';
|
|
12
|
-
import { createNamespace, call } from '../utils/components.mjs';
|
|
12
|
+
import { createNamespace, call, formatElevation } from '../utils/components.mjs';
|
|
13
13
|
import { useEventListener } from '@varlet/use';
|
|
14
14
|
var {
|
|
15
15
|
n,
|
|
@@ -25,7 +25,7 @@ function __render__(_ctx, _cache) {
|
|
|
25
25
|
"z-index": _ctx.sticky ? _ctx.stickyZIndex : undefined
|
|
26
26
|
}, {
|
|
27
27
|
default: _withCtx(() => [_createElementVNode("div", _mergeProps({
|
|
28
|
-
class: _ctx.classes(_ctx.n(), _ctx.n('$--box'), _ctx.n("--item-" + _ctx.itemDirection), _ctx.n("--layout-" + _ctx.layoutDirection + "-padding"),
|
|
28
|
+
class: _ctx.classes(_ctx.n(), _ctx.n('$--box'), _ctx.n("--item-" + _ctx.itemDirection), _ctx.n("--layout-" + _ctx.layoutDirection + "-padding"), _ctx.formatElevation(_ctx.elevation, 4), [_ctx.fixedBottom, _ctx.n('--fixed-bottom')], [_ctx.safeArea, _ctx.n('--safe-area')]),
|
|
29
29
|
style: {
|
|
30
30
|
background: _ctx.color
|
|
31
31
|
}
|
|
@@ -235,7 +235,8 @@ var __sfc__ = defineComponent({
|
|
|
235
235
|
n,
|
|
236
236
|
classes,
|
|
237
237
|
resize,
|
|
238
|
-
resizeSticky
|
|
238
|
+
resizeSticky,
|
|
239
|
+
formatElevation
|
|
239
240
|
};
|
|
240
241
|
}
|
|
241
242
|
|
package/es/tabs/props.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import dayjs from 'dayjs/esm';
|
|
|
3
3
|
import Clock from './clock.mjs';
|
|
4
4
|
import { props, hoursAmpm, hours24 } from './props.mjs';
|
|
5
5
|
import { toNumber } from '@varlet/shared';
|
|
6
|
-
import { createNamespace, call } from '../utils/components.mjs';
|
|
6
|
+
import { createNamespace, call, formatElevation } from '../utils/components.mjs';
|
|
7
7
|
import { padStart } from '../utils/shared.mjs';
|
|
8
8
|
import { getNumberTime, getIsDisableMinute, getIsDisableSecond } from './utils.mjs';
|
|
9
9
|
var {
|
|
@@ -26,7 +26,7 @@ function __render__(_ctx, _cache) {
|
|
|
26
26
|
var _component_clock = _resolveComponent("clock");
|
|
27
27
|
|
|
28
28
|
return _openBlock(), _createElementBlock("div", {
|
|
29
|
-
class: _normalizeClass(_ctx.classes(_ctx.n(),
|
|
29
|
+
class: _normalizeClass(_ctx.classes(_ctx.n(), _ctx.formatElevation(_ctx.elevation, 2))),
|
|
30
30
|
ref: "picker"
|
|
31
31
|
}, [_createElementVNode("div", {
|
|
32
32
|
class: _normalizeClass(_ctx.n('title')),
|
|
@@ -401,7 +401,8 @@ var __sfc__ = defineComponent({
|
|
|
401
401
|
checkAmpm,
|
|
402
402
|
end,
|
|
403
403
|
update,
|
|
404
|
-
changePreventUpdate
|
|
404
|
+
changePreventUpdate,
|
|
405
|
+
formatElevation
|
|
405
406
|
};
|
|
406
407
|
}
|
|
407
408
|
|
package/es/time-picker/props.mjs
CHANGED
package/es/uploader/Uploader.mjs
CHANGED
|
@@ -13,7 +13,7 @@ import { defineComponent, nextTick, reactive, computed, watch, ref } from 'vue';
|
|
|
13
13
|
import { props } from './props.mjs';
|
|
14
14
|
import { isNumber, toNumber, isString, isArray } from '@varlet/shared';
|
|
15
15
|
import { isHTMLSupportImage, isHTMLSupportVideo } from '../utils/shared.mjs';
|
|
16
|
-
import { call, useValidation, createNamespace } from '../utils/components.mjs';
|
|
16
|
+
import { call, useValidation, createNamespace, formatElevation } from '../utils/components.mjs';
|
|
17
17
|
import { useForm } from '../form/provide.mjs';
|
|
18
18
|
var {
|
|
19
19
|
n,
|
|
@@ -49,7 +49,7 @@ function __render__(_ctx, _cache) {
|
|
|
49
49
|
class: _normalizeClass(_ctx.n('file-list'))
|
|
50
50
|
}, [(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.files, f => {
|
|
51
51
|
return _withDirectives((_openBlock(), _createElementBlock("div", {
|
|
52
|
-
class: _normalizeClass(_ctx.classes(_ctx.n('file'), _ctx.
|
|
52
|
+
class: _normalizeClass(_ctx.classes(_ctx.n('file'), _ctx.formatElevation(_ctx.elevation, 2), [f.state === 'loading', _ctx.n('--loading')])),
|
|
53
53
|
key: f.id,
|
|
54
54
|
onClick: $event => _ctx.preview(f)
|
|
55
55
|
}, [_createElementVNode("div", {
|
|
@@ -91,7 +91,7 @@ function __render__(_ctx, _cache) {
|
|
|
91
91
|
/* KEYED_FRAGMENT */
|
|
92
92
|
)), !_ctx.maxlength || _ctx.modelValue.length < _ctx.maxlength ? _withDirectives((_openBlock(), _createElementBlock("div", {
|
|
93
93
|
key: 0,
|
|
94
|
-
class: _normalizeClass(_ctx.classes([!_ctx.$slots.default, _ctx.n('action') + " " + _ctx.
|
|
94
|
+
class: _normalizeClass(_ctx.classes([!_ctx.$slots.default, _ctx.n('action') + " " + _ctx.formatElevation(_ctx.elevation, 2)], [_ctx.disabled || _ctx.formDisabled, _ctx.n('--disabled')])),
|
|
95
95
|
onClick: _cache[1] || (_cache[1] = function () {
|
|
96
96
|
return _ctx.chooseFile && _ctx.chooseFile(...arguments);
|
|
97
97
|
})
|
|
@@ -464,6 +464,7 @@ var __sfc__ = defineComponent({
|
|
|
464
464
|
return {
|
|
465
465
|
n,
|
|
466
466
|
classes,
|
|
467
|
+
formatElevation,
|
|
467
468
|
input,
|
|
468
469
|
files,
|
|
469
470
|
showPreview,
|