@varlet/ui 1.23.12-alpha.31 → 1.24.2-alpha.1640872052259
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/CHANGELOG.md +36 -0
- package/es/back-top/BackTop.js +3 -1
- package/es/badge/Badge.js +4 -3
- package/es/button/Button.js +6 -2
- package/es/card/Card.js +3 -1
- package/es/checkbox/Checkbox.js +3 -1
- package/es/checkbox-group/CheckboxGroup.js +23 -11
- package/es/chip/Chip.js +3 -1
- package/es/col/Col.js +3 -1
- package/es/collapse/Collapse.js +24 -14
- package/es/collapse-item/CollapseItem.js +3 -1
- package/es/counter/Counter.js +3 -1
- package/es/date-picker/DatePicker.js +2 -2
- package/es/date-picker/src/day-picker-panel.js +4 -3
- package/es/date-picker/src/month-picker-panel.js +4 -3
- package/es/date-picker/src/panel-header.js +4 -3
- package/es/date-picker/src/year-picker-panel.js +4 -3
- package/es/divider/Divider.js +4 -3
- package/es/form/Form.js +18 -9
- package/es/icon/icon.css +1 -1
- package/es/image/Image.js +18 -6
- package/es/image-preview/ImagePreview.js +21 -12
- package/es/index-bar/IndexBar.js +11 -7
- package/es/input/Input.js +27 -9
- package/es/lazy/index.js +5 -1
- package/es/list/List.js +3 -1
- package/es/loading/Loading.js +4 -3
- package/es/menu/Menu.js +59 -52
- package/es/menu/index.js +1 -1
- package/es/menu/style/index.js +0 -1
- package/es/menu/style/less.js +0 -1
- package/es/option/Option.js +3 -1
- package/es/pagination/Pagination.js +9 -3
- package/es/picker/Picker.js +5 -1
- package/es/popup/Popup.js +5 -4
- package/es/pull-refresh/PullRefresh.js +12 -4
- package/es/radio/Radio.js +3 -1
- package/es/radio-group/RadioGroup.js +6 -3
- package/es/row/Row.js +3 -1
- package/es/select/Select.js +36 -18
- package/es/slider/Slider.js +14 -3
- package/es/snackbar/index.js +16 -7
- package/es/space/Space.js +5 -3
- package/es/step/Step.js +6 -2
- package/es/style-provider/StyleProvider.js +4 -3
- package/es/style-provider/index.js +7 -2
- package/es/styles/elevation.css +1 -1
- package/es/styles/elevation.less +2 -0
- package/es/swipe/Swipe.js +28 -14
- package/es/switch/Switch.js +3 -1
- package/es/tab/Tab.js +3 -1
- package/es/tabs/Tabs.js +21 -12
- package/es/tabs-items/TabsItems.js +24 -12
- package/es/time-picker/TimePicker.js +9 -3
- package/es/time-picker/clock.js +9 -5
- package/es/uploader/Uploader.js +16 -8
- package/es/utils/components.js +9 -1
- package/es/utils/elements.js +9 -7
- package/es/utils/jest.js +41 -12
- package/es/utils/shared.js +20 -4
- package/highlight/attributes.json +3 -3
- package/highlight/tags.json +3 -3
- package/highlight/web-types.json +4 -4
- package/lib/action-sheet/ActionSheet.js +1 -1
- package/lib/app-bar/AppBar.js +1 -1
- package/lib/back-top/BackTop.js +4 -2
- package/lib/badge/Badge.js +5 -4
- package/lib/button/Button.js +7 -3
- package/lib/card/Card.js +4 -2
- package/lib/cell/Cell.js +1 -1
- package/lib/checkbox/Checkbox.js +4 -2
- package/lib/checkbox-group/CheckboxGroup.js +24 -12
- package/lib/checkbox-group/provide.js +1 -1
- package/lib/chip/Chip.js +4 -2
- package/lib/col/Col.js +4 -2
- package/lib/collapse/Collapse.js +25 -15
- package/lib/collapse/provide.js +1 -1
- package/lib/collapse-item/CollapseItem.js +4 -2
- package/lib/context/lock.js +1 -1
- package/lib/countdown/Countdown.js +1 -1
- package/lib/counter/Counter.js +4 -2
- package/lib/date-picker/DatePicker.js +3 -3
- package/lib/date-picker/src/day-picker-panel.js +5 -4
- package/lib/date-picker/src/month-picker-panel.js +5 -4
- package/lib/date-picker/src/panel-header.js +5 -4
- package/lib/date-picker/src/year-picker-panel.js +5 -4
- package/lib/dialog/Dialog.js +1 -1
- package/lib/divider/Divider.js +5 -4
- package/lib/form/Form.js +19 -10
- package/lib/form/provide.js +1 -1
- package/lib/form-details/FormDetails.js +1 -1
- package/lib/icon/Icon.js +1 -1
- package/lib/icon/icon.css +1 -1
- package/lib/image/Image.js +19 -7
- package/lib/image-preview/ImagePreview.js +22 -13
- package/lib/index-anchor/IndexAnchor.js +1 -1
- package/lib/index-bar/IndexBar.js +12 -8
- package/lib/index-bar/provide.js +1 -1
- package/lib/input/Input.js +28 -10
- package/lib/input/props.js +1 -1
- package/lib/lazy/index.js +6 -2
- package/lib/list/List.js +4 -2
- package/lib/loading/Loading.js +5 -4
- package/lib/loading/props.js +2 -2
- package/lib/locale/index.js +1 -1
- package/lib/menu/Menu.js +56 -50
- package/lib/menu/index.js +1 -1
- package/lib/menu/style/index.js +0 -1
- package/lib/menu/style/less.js +0 -1
- package/lib/option/Option.js +4 -2
- package/lib/pagination/Pagination.js +10 -4
- package/lib/picker/Picker.js +6 -2
- package/lib/popup/Popup.js +5 -4
- package/lib/progress/Progress.js +1 -1
- package/lib/pull-refresh/PullRefresh.js +13 -5
- package/lib/radio/Radio.js +4 -2
- package/lib/radio-group/RadioGroup.js +7 -4
- package/lib/radio-group/provide.js +1 -1
- package/lib/rate/Rate.js +1 -1
- package/lib/row/Row.js +4 -2
- package/lib/row/provide.js +1 -1
- package/lib/select/Select.js +37 -19
- package/lib/select/props.js +1 -1
- package/lib/select/provide.js +1 -1
- package/lib/skeleton/Skeleton.js +1 -1
- package/lib/slider/Slider.js +15 -4
- package/lib/snackbar/Snackbar.js +1 -1
- package/lib/snackbar/core.js +1 -1
- package/lib/snackbar/index.js +16 -7
- package/lib/snackbar/props.js +1 -1
- package/lib/snackbar/style/index.js +1 -1
- package/lib/snackbar/style/less.js +1 -1
- package/lib/space/Space.js +5 -3
- package/lib/space/props.js +1 -1
- package/lib/step/Step.js +7 -3
- package/lib/steps/Steps.js +1 -1
- package/lib/steps/provide.js +1 -1
- package/lib/sticky/Sticky.js +1 -1
- package/lib/style-provider/StyleProvider.js +4 -3
- package/lib/style-provider/index.js +7 -2
- package/lib/style.css +1 -1
- package/lib/styles/elevation.css +1 -1
- package/lib/styles/elevation.less +2 -0
- package/lib/swipe/Swipe.js +29 -15
- package/lib/swipe/provide.js +1 -1
- package/lib/swipe-item/SwipeItem.js +1 -1
- package/lib/switch/Switch.js +4 -2
- package/lib/tab/Tab.js +4 -2
- package/lib/tab-item/TabItem.js +1 -1
- package/lib/table/Table.js +1 -1
- package/lib/tabs/Tabs.js +22 -13
- package/lib/tabs/provide.js +1 -1
- package/lib/tabs-items/TabsItems.js +25 -13
- package/lib/tabs-items/provide.js +1 -1
- package/lib/time-picker/TimePicker.js +10 -4
- package/lib/time-picker/clock.js +10 -6
- package/lib/time-picker/props.js +1 -1
- package/lib/time-picker/utils.js +1 -1
- package/lib/uploader/Uploader.js +17 -9
- package/lib/utils/components.js +15 -7
- package/lib/utils/elements.js +20 -17
- package/lib/utils/jest.js +49 -20
- package/lib/utils/shared.js +24 -6
- package/package.json +25 -17
- package/umd/varlet.js +4 -4
- package/es/menu/MenuSfc.css +0 -0
- package/es/menu/MenuSfc.less +0 -0
- package/lib/menu/MenuSfc.css +0 -0
- package/lib/menu/MenuSfc.less +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,42 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [1.24.1](https://github.com/haoziqaq/varlet/compare/v1.24.0...v1.24.1) (2021-12-27)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **ui/elevation:** resolve shadow cannot display ([227b2db](https://github.com/haoziqaq/varlet/commit/227b2dbab2884a8914ef5a530c18dfffff010323))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [1.24.0](https://github.com/haoziqaq/varlet/compare/v1.23.11...v1.24.0) (2021-12-27)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* **card:** add word-break for description ([38d7427](https://github.com/haoziqaq/varlet/commit/38d74270eed5bc71b4f821f5433604b7a62eecbc))
|
|
23
|
+
* **d.ts:** fix pack declare lost after build ([d7df27e](https://github.com/haoziqaq/varlet/commit/d7df27e439a2b28fa4a9cfb867129611f2a268b3))
|
|
24
|
+
* **loading:** add transition for overlay ([2a62eaa](https://github.com/haoziqaq/varlet/commit/2a62eaa8eed6a5ff77222b48932b39655744ffae))
|
|
25
|
+
* **loading:** expose marigin css variable ([313d232](https://github.com/haoziqaq/varlet/commit/313d232b363981ce94c11e419ace904bfc2b246d))
|
|
26
|
+
* **placeholder:** text-overflow to ellipsis ([7c586d2](https://github.com/haoziqaq/varlet/commit/7c586d2f7e751a12993d06e46d460ac25de24b22))
|
|
27
|
+
* **select:** fix select's placeholder when too long ([a7e08a6](https://github.com/haoziqaq/varlet/commit/a7e08a60e7d2d8f49f0863fcda6814bc1fdd4fdc))
|
|
28
|
+
* **types:** fix prompts that could not find a declaration file when import translation file ([2637884](https://github.com/haoziqaq/varlet/commit/26378841f2fbafeda8bcd6fffd5eccfd50e9e559))
|
|
29
|
+
* **types:** fix prompts that could not find a declaration file when import translation file ([e17c6d2](https://github.com/haoziqaq/varlet/commit/e17c6d2c430f1b4601875e98ca92d075a1de5813))
|
|
30
|
+
* **ui/input, select:** fix placeholder animation and var--ellipsis class ([458ab30](https://github.com/haoziqaq/varlet/commit/458ab307652328ace71dc0523323422f7ebdbaac))
|
|
31
|
+
* **ui/swipe:** do not use initialIndex when resize ([46e997e](https://github.com/haoziqaq/varlet/commit/46e997e8f014432149f409e40545592757ae4484))
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
### Features
|
|
35
|
+
|
|
36
|
+
* **loading:** add slots and desc prop ([db0df16](https://github.com/haoziqaq/varlet/commit/db0df16af2cab2de059282e9a8c15c66077b1ae2))
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
6
42
|
## [1.23.11](https://github.com/haoziqaq/varlet/compare/v1.23.10...v1.23.11) (2021-12-10)
|
|
7
43
|
|
|
8
44
|
|
package/es/back-top/BackTop.js
CHANGED
|
@@ -12,7 +12,9 @@ export function render(_ctx, _cache) {
|
|
|
12
12
|
|
|
13
13
|
return _openBlock(), _createElementBlock("div", {
|
|
14
14
|
class: _normalizeClass(["var-back-top", [_ctx.show ? 'var-back-top--active' : null]]),
|
|
15
|
-
onClick: _cache[0] || (_cache[0] = _withModifiers(
|
|
15
|
+
onClick: _cache[0] || (_cache[0] = _withModifiers(function () {
|
|
16
|
+
return _ctx.click && _ctx.click(...arguments);
|
|
17
|
+
}, ["stop"]))
|
|
16
18
|
}, [_renderSlot(_ctx.$slots, "default", {}, () => [_createVNode(_component_var_button, {
|
|
17
19
|
type: "primary",
|
|
18
20
|
round: "",
|
package/es/badge/Badge.js
CHANGED
package/es/button/Button.js
CHANGED
|
@@ -19,8 +19,12 @@ export function render(_ctx, _cache) {
|
|
|
19
19
|
background: _ctx.color
|
|
20
20
|
}),
|
|
21
21
|
disabled: _ctx.disabled,
|
|
22
|
-
onClick: _cache[0] || (_cache[0] = (
|
|
23
|
-
|
|
22
|
+
onClick: _cache[0] || (_cache[0] = function () {
|
|
23
|
+
return _ctx.handleClick && _ctx.handleClick(...arguments);
|
|
24
|
+
}),
|
|
25
|
+
onTouchstart: _cache[1] || (_cache[1] = function () {
|
|
26
|
+
return _ctx.handleTouchstart && _ctx.handleTouchstart(...arguments);
|
|
27
|
+
})
|
|
24
28
|
}, [_ctx.loading ? (_openBlock(), _createBlock(_component_var_loading, {
|
|
25
29
|
key: 0,
|
|
26
30
|
class: "var-button__loading",
|
package/es/card/Card.js
CHANGED
|
@@ -28,7 +28,9 @@ export function render(_ctx, _cache) {
|
|
|
28
28
|
|
|
29
29
|
return _withDirectives((_openBlock(), _createElementBlock("div", {
|
|
30
30
|
class: _normalizeClass(["var-card", [_ctx.elevation ? "var-elevation--" + _ctx.elevation : 'var-elevation--2']]),
|
|
31
|
-
onClick: _cache[0] || (_cache[0] = (
|
|
31
|
+
onClick: _cache[0] || (_cache[0] = function () {
|
|
32
|
+
return _ctx.onClick && _ctx.onClick(...arguments);
|
|
33
|
+
})
|
|
32
34
|
}, [_renderSlot(_ctx.$slots, "image", {}, () => [_ctx.src ? (_openBlock(), _createElementBlock("img", {
|
|
33
35
|
key: 0,
|
|
34
36
|
class: "var-card__image",
|
package/es/checkbox/Checkbox.js
CHANGED
|
@@ -22,7 +22,9 @@ export function render(_ctx, _cache) {
|
|
|
22
22
|
|
|
23
23
|
return _openBlock(), _createElementBlock("div", {
|
|
24
24
|
class: "var-checkbox__wrap",
|
|
25
|
-
onClick: _cache[0] || (_cache[0] = (
|
|
25
|
+
onClick: _cache[0] || (_cache[0] = function () {
|
|
26
|
+
return _ctx.handleClick && _ctx.handleClick(...arguments);
|
|
27
|
+
})
|
|
26
28
|
}, [_createElementVNode("div", _hoisted_1, [_withDirectives(_createElementVNode("div", {
|
|
27
29
|
class: _normalizeClass(["var-checkbox__action", [_ctx.checked ? 'var-checkbox--checked' : 'var-checkbox--unchecked', _ctx.errorMessage || _ctx.checkboxGroupErrorMessage ? 'var-checkbox--error' : null, _ctx.formDisabled || _ctx.disabled ? 'var-checkbox--disabled' : null]]),
|
|
28
30
|
style: _normalizeStyle({
|
|
@@ -94,17 +94,23 @@ export default defineComponent({
|
|
|
94
94
|
change(modelValue.filter(value => value !== changedValue));
|
|
95
95
|
};
|
|
96
96
|
|
|
97
|
-
var syncCheckboxes = () => checkboxes.forEach(
|
|
98
|
-
|
|
99
|
-
|
|
97
|
+
var syncCheckboxes = () => checkboxes.forEach(_ref => {
|
|
98
|
+
var {
|
|
99
|
+
sync
|
|
100
|
+
} = _ref;
|
|
101
|
+
return sync(props.modelValue);
|
|
102
|
+
}); // expose
|
|
100
103
|
|
|
101
104
|
|
|
102
105
|
var checkAll = () => {
|
|
103
106
|
var _props$onUpdateModel2;
|
|
104
107
|
|
|
105
|
-
var checkedValues = checkboxes.map(
|
|
106
|
-
|
|
107
|
-
|
|
108
|
+
var checkedValues = checkboxes.map(_ref2 => {
|
|
109
|
+
var {
|
|
110
|
+
checkedValue
|
|
111
|
+
} = _ref2;
|
|
112
|
+
return checkedValue.value;
|
|
113
|
+
});
|
|
108
114
|
var changedModelValue = uniq(checkedValues);
|
|
109
115
|
(_props$onUpdateModel2 = props['onUpdate:modelValue']) == null ? void 0 : _props$onUpdateModel2.call(props, changedModelValue);
|
|
110
116
|
return changedModelValue;
|
|
@@ -114,11 +120,17 @@ export default defineComponent({
|
|
|
114
120
|
var inverseAll = () => {
|
|
115
121
|
var _props$onUpdateModel3;
|
|
116
122
|
|
|
117
|
-
var checkedValues = checkboxes.filter(
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
123
|
+
var checkedValues = checkboxes.filter(_ref3 => {
|
|
124
|
+
var {
|
|
125
|
+
checked
|
|
126
|
+
} = _ref3;
|
|
127
|
+
return !checked.value;
|
|
128
|
+
}).map(_ref4 => {
|
|
129
|
+
var {
|
|
130
|
+
checkedValue
|
|
131
|
+
} = _ref4;
|
|
132
|
+
return checkedValue.value;
|
|
133
|
+
});
|
|
122
134
|
var changedModelValue = uniq(checkedValues);
|
|
123
135
|
(_props$onUpdateModel3 = props['onUpdate:modelValue']) == null ? void 0 : _props$onUpdateModel3.call(props, changedModelValue);
|
|
124
136
|
return changedModelValue;
|
package/es/chip/Chip.js
CHANGED
|
@@ -18,7 +18,9 @@ export function render(_ctx, _cache) {
|
|
|
18
18
|
), _renderSlot(_ctx.$slots, "right"), _ctx.closable ? (_openBlock(), _createElementBlock("span", {
|
|
19
19
|
key: 0,
|
|
20
20
|
class: "var-chip--close",
|
|
21
|
-
onClick: _cache[0] || (_cache[0] = (
|
|
21
|
+
onClick: _cache[0] || (_cache[0] = function () {
|
|
22
|
+
return _ctx.onClose && _ctx.onClose(...arguments);
|
|
23
|
+
})
|
|
22
24
|
}, [_createVNode(_component_var_icon, {
|
|
23
25
|
name: "" + (_ctx.iconName ? _ctx.iconName : 'close-circle')
|
|
24
26
|
}, null, 8
|
package/es/col/Col.js
CHANGED
|
@@ -11,7 +11,9 @@ export function render(_ctx, _cache) {
|
|
|
11
11
|
paddingLeft: _ctx.toSizeUnit(_ctx.padding.left),
|
|
12
12
|
paddingRight: _ctx.toSizeUnit(_ctx.padding.right)
|
|
13
13
|
}),
|
|
14
|
-
onClick: _cache[0] || (_cache[0] = (
|
|
14
|
+
onClick: _cache[0] || (_cache[0] = function () {
|
|
15
|
+
return _ctx.onClick && _ctx.onClick(...arguments);
|
|
16
|
+
})
|
|
15
17
|
}, [_renderSlot(_ctx.$slots, "default")], 6
|
|
16
18
|
/* CLASS, STYLE */
|
|
17
19
|
);
|
package/es/collapse/Collapse.js
CHANGED
|
@@ -56,14 +56,18 @@ export default defineComponent({
|
|
|
56
56
|
|
|
57
57
|
var matchName = () => {
|
|
58
58
|
if (props.accordion) {
|
|
59
|
-
return collapseItem.find(
|
|
60
|
-
|
|
61
|
-
|
|
59
|
+
return collapseItem.find(_ref => {
|
|
60
|
+
var {
|
|
61
|
+
name
|
|
62
|
+
} = _ref;
|
|
63
|
+
return props.modelValue === name.value;
|
|
64
|
+
});
|
|
62
65
|
}
|
|
63
66
|
|
|
64
|
-
var filterItem = collapseItem.filter(
|
|
65
|
-
|
|
66
|
-
|
|
67
|
+
var filterItem = collapseItem.filter(_ref2 => {
|
|
68
|
+
var {
|
|
69
|
+
name
|
|
70
|
+
} = _ref2;
|
|
67
71
|
if (name.value === undefined) return false;
|
|
68
72
|
return props.modelValue.includes(name.value);
|
|
69
73
|
});
|
|
@@ -72,16 +76,22 @@ export default defineComponent({
|
|
|
72
76
|
|
|
73
77
|
var matchIndex = () => {
|
|
74
78
|
if (props.accordion) {
|
|
75
|
-
return collapseItem.find(
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
+
return collapseItem.find(_ref3 => {
|
|
80
|
+
var {
|
|
81
|
+
index,
|
|
82
|
+
name
|
|
83
|
+
} = _ref3;
|
|
84
|
+
return name.value === undefined ? props.modelValue === index.value : false;
|
|
85
|
+
});
|
|
79
86
|
}
|
|
80
87
|
|
|
81
|
-
return collapseItem.filter(
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
88
|
+
return collapseItem.filter(_ref4 => {
|
|
89
|
+
var {
|
|
90
|
+
index,
|
|
91
|
+
name
|
|
92
|
+
} = _ref4;
|
|
93
|
+
return name.value === undefined ? props.modelValue.includes(index.value) : false;
|
|
94
|
+
});
|
|
85
95
|
};
|
|
86
96
|
|
|
87
97
|
var resize = () => {
|
|
@@ -44,7 +44,9 @@ export function render(_ctx, _cache) {
|
|
|
44
44
|
, ["name", "class"])])])]), _withDirectives(_createElementVNode("div", {
|
|
45
45
|
class: "var-collapse-item-content",
|
|
46
46
|
ref: "contentEl",
|
|
47
|
-
onTransitionend: _cache[1] || (_cache[1] = (
|
|
47
|
+
onTransitionend: _cache[1] || (_cache[1] = function () {
|
|
48
|
+
return _ctx.transitionend && _ctx.transitionend(...arguments);
|
|
49
|
+
})
|
|
48
50
|
}, [_createElementVNode("div", _hoisted_3, [_renderSlot(_ctx.$slots, "default")])], 544
|
|
49
51
|
/* HYDRATE_EVENTS, NEED_PATCH */
|
|
50
52
|
), [[_vShow, _ctx.show]])], 2
|
package/es/counter/Counter.js
CHANGED
|
@@ -56,7 +56,9 @@ export function render(_ctx, _cache) {
|
|
|
56
56
|
readonly: _ctx.readonly || _ctx.formReadonly,
|
|
57
57
|
disabled: _ctx.disabled || _ctx.formDisabled || _ctx.disableInput,
|
|
58
58
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => _ctx.inputValue = $event),
|
|
59
|
-
onChange: _cache[1] || (_cache[1] = (
|
|
59
|
+
onChange: _cache[1] || (_cache[1] = function () {
|
|
60
|
+
return _ctx.handleChange && _ctx.handleChange(...arguments);
|
|
61
|
+
})
|
|
60
62
|
}, null, 44
|
|
61
63
|
/* STYLE, PROPS, HYDRATE_EVENTS */
|
|
62
64
|
, _hoisted_2), [[_vModelText, _ctx.inputValue]]), _withDirectives(_createVNode(_component_var_icon, {
|
|
@@ -201,8 +201,8 @@ export default defineComponent({
|
|
|
201
201
|
} = props;
|
|
202
202
|
|
|
203
203
|
if (range) {
|
|
204
|
-
|
|
205
|
-
return
|
|
204
|
+
var formatRangeDays = chooseRangeDay.value.map(date => dayjs(date).format('YYYY-MM-DD'));
|
|
205
|
+
return formatRangeDays[0] + " ~ " + formatRangeDays[1];
|
|
206
206
|
}
|
|
207
207
|
|
|
208
208
|
if (multiple) return "" + chooseDays.value.length + pack.value.datePickerSelected;
|
|
@@ -117,9 +117,10 @@ export default defineComponent({
|
|
|
117
117
|
},
|
|
118
118
|
emits: ['check-preview', 'choose-day'],
|
|
119
119
|
|
|
120
|
-
setup(props, {
|
|
121
|
-
|
|
122
|
-
|
|
120
|
+
setup(props, _ref) {
|
|
121
|
+
var {
|
|
122
|
+
emit
|
|
123
|
+
} = _ref;
|
|
123
124
|
var [currentYear, currentMonth, currentDay] = props.current.split('-');
|
|
124
125
|
var days = ref([]);
|
|
125
126
|
var reverse = ref(false);
|
|
@@ -100,9 +100,10 @@ export default defineComponent({
|
|
|
100
100
|
},
|
|
101
101
|
emits: ['check-preview', 'choose-month'],
|
|
102
102
|
|
|
103
|
-
setup(props, {
|
|
104
|
-
|
|
105
|
-
|
|
103
|
+
setup(props, _ref) {
|
|
104
|
+
var {
|
|
105
|
+
emit
|
|
106
|
+
} = _ref;
|
|
106
107
|
var [currentYear, currentMonth] = props.current.split('-');
|
|
107
108
|
var reverse = ref(false);
|
|
108
109
|
var panelKey = ref(0);
|
|
@@ -90,9 +90,10 @@ export default defineComponent({
|
|
|
90
90
|
},
|
|
91
91
|
emits: ['check-panel', 'check-date'],
|
|
92
92
|
|
|
93
|
-
setup(props, {
|
|
94
|
-
|
|
95
|
-
|
|
93
|
+
setup(props, _ref) {
|
|
94
|
+
var {
|
|
95
|
+
emit
|
|
96
|
+
} = _ref;
|
|
96
97
|
var reverse = ref(false);
|
|
97
98
|
var forwardOrBackNum = ref(0);
|
|
98
99
|
var showDate = computed(() => {
|
package/es/divider/Divider.js
CHANGED
package/es/form/Form.js
CHANGED
|
@@ -30,9 +30,12 @@ export default defineComponent({
|
|
|
30
30
|
|
|
31
31
|
var validate = /*#__PURE__*/function () {
|
|
32
32
|
var _ref = _asyncToGenerator(function* () {
|
|
33
|
-
var res = yield Promise.all(formItems.map(
|
|
34
|
-
|
|
35
|
-
|
|
33
|
+
var res = yield Promise.all(formItems.map(_ref2 => {
|
|
34
|
+
var {
|
|
35
|
+
validate
|
|
36
|
+
} = _ref2;
|
|
37
|
+
return validate();
|
|
38
|
+
}));
|
|
36
39
|
return res.every(r => r === true);
|
|
37
40
|
});
|
|
38
41
|
|
|
@@ -42,14 +45,20 @@ export default defineComponent({
|
|
|
42
45
|
}(); // expose
|
|
43
46
|
|
|
44
47
|
|
|
45
|
-
var reset = () => formItems.forEach(
|
|
46
|
-
|
|
47
|
-
|
|
48
|
+
var reset = () => formItems.forEach(_ref3 => {
|
|
49
|
+
var {
|
|
50
|
+
reset
|
|
51
|
+
} = _ref3;
|
|
52
|
+
return reset();
|
|
53
|
+
}); // expose
|
|
48
54
|
|
|
49
55
|
|
|
50
|
-
var resetValidation = () => formItems.forEach(
|
|
51
|
-
|
|
52
|
-
|
|
56
|
+
var resetValidation = () => formItems.forEach(_ref4 => {
|
|
57
|
+
var {
|
|
58
|
+
resetValidation
|
|
59
|
+
} = _ref4;
|
|
60
|
+
return resetValidation();
|
|
61
|
+
});
|
|
53
62
|
|
|
54
63
|
var formProvider = {
|
|
55
64
|
disabled,
|