@varlet/ui 1.26.9 → 1.27.0-alpha.1649265140569
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/README.en-US.md +1 -1
- package/README.md +1 -1
- package/es/action-sheet/ActionSheet.js +29 -27
- package/es/app-bar/AppBar.js +32 -27
- package/es/back-top/BackTop.js +9 -2
- package/es/badge/Badge.js +22 -14
- package/es/bottom-navigation/BottomNavigation.js +204 -0
- package/es/bottom-navigation/BottomNavigationSfc.css +0 -0
- package/es/bottom-navigation/BottomNavigationSfc.less +0 -0
- package/es/bottom-navigation/bottomNavigation.css +1 -0
- package/es/bottom-navigation/bottomNavigation.less +51 -0
- package/es/bottom-navigation/index.js +8 -0
- package/es/bottom-navigation/props.js +40 -0
- package/es/bottom-navigation/provide.js +17 -0
- package/es/bottom-navigation/style/index.js +4 -0
- package/es/bottom-navigation/style/less.js +4 -0
- package/es/bottom-navigation-item/BottomNavigationItem.js +122 -0
- package/es/bottom-navigation-item/BottomNavigationItemSfc.css +0 -0
- package/es/bottom-navigation-item/BottomNavigationItemSfc.less +0 -0
- package/es/bottom-navigation-item/bottomNavigationItem.css +1 -0
- package/es/bottom-navigation-item/bottomNavigationItem.less +78 -0
- package/es/bottom-navigation-item/index.js +8 -0
- package/es/bottom-navigation-item/props.js +22 -0
- package/es/bottom-navigation-item/provide.js +21 -0
- package/es/bottom-navigation-item/style/index.js +6 -0
- package/es/bottom-navigation-item/style/less.js +6 -0
- package/es/button/Button.js +12 -5
- package/es/card/Card.js +33 -28
- package/es/cell/Cell.js +26 -15
- package/es/checkbox/Checkbox.js +28 -26
- package/es/checkbox-group/CheckboxGroup.js +21 -25
- package/es/chip/Chip.js +16 -7
- package/es/chip/chip.css +1 -1
- package/es/chip/chip.less +11 -11
- package/es/col/Col.js +12 -5
- package/es/collapse/Collapse.js +15 -12
- package/es/collapse-item/CollapseItem.js +31 -30
- package/es/collapse-item/collapseItem.css +1 -1
- package/es/collapse-item/collapseItem.less +16 -16
- package/es/countdown/Countdown.js +14 -11
- package/es/counter/Counter.js +30 -27
- package/es/date-picker/DatePicker.js +28 -23
- package/es/date-picker/date-picker.css +1 -1
- package/es/date-picker/date-picker.less +22 -20
- package/es/date-picker/src/day-picker-panel.js +41 -34
- package/es/date-picker/src/month-picker-panel.js +27 -21
- package/es/date-picker/src/panel-header.js +16 -11
- package/es/date-picker/src/year-picker-panel.js +17 -9
- package/es/dialog/Dialog.js +36 -40
- package/es/divider/Divider.js +16 -12
- package/es/form/Form.js +11 -8
- package/es/form-details/FormDetails.js +27 -22
- package/es/icon/Icon.js +8 -1
- package/es/image/Image.js +19 -12
- package/es/image-preview/ImagePreview.js +35 -34
- package/es/index-anchor/IndexAnchor.js +8 -1
- package/es/index-bar/IndexBar.js +22 -20
- package/es/index.js +10 -0
- package/es/input/Input.js +45 -44
- package/es/lazy/index.js +2 -1
- package/es/less.js +2 -0
- package/es/list/List.js +39 -38
- package/es/loading/Loading.js +31 -23
- package/es/loading/loading.css +1 -1
- package/es/loading/loading.less +32 -32
- package/es/menu/Menu.js +12 -10
- package/es/option/Option.js +16 -11
- package/es/pagination/Pagination.js +34 -44
- package/es/pagination/pagination.css +1 -1
- package/es/pagination/pagination.less +8 -8
- package/es/picker/Picker.js +51 -47
- package/es/popup/Popup.js +9 -5
- package/es/progress/Progress.js +44 -35
- package/es/progress/progress.css +1 -1
- package/es/progress/progress.less +12 -12
- package/es/pull-refresh/PullRefresh.js +13 -10
- package/es/radio/Radio.js +25 -25
- package/es/radio-group/RadioGroup.js +19 -19
- package/es/rate/Rate.js +27 -25
- package/es/ripple/index.js +6 -2
- package/es/row/Row.js +11 -4
- package/es/select/Select.js +53 -54
- package/es/skeleton/Skeleton.js +70 -81
- package/es/slider/Slider.js +44 -40
- package/es/slider/slider.css +1 -1
- package/es/slider/slider.less +5 -5
- package/es/snackbar/Snackbar.js +9 -5
- package/es/snackbar/core.js +20 -26
- package/es/snackbar/snackbar.css +1 -1
- package/es/snackbar/snackbar.less +66 -68
- package/es/snackbar/style/index.js +1 -1
- package/es/snackbar/style/less.js +1 -1
- package/es/space/Space.js +8 -3
- package/es/step/Step.js +25 -23
- package/es/step/step.css +1 -1
- package/es/step/step.less +10 -10
- package/es/steps/Steps.js +12 -5
- package/es/sticky/Sticky.js +14 -7
- package/es/style-provider/StyleProvider.js +6 -2
- package/es/style.css +1 -1
- package/es/style.js +2 -0
- package/es/swipe/Swipe.js +22 -16
- package/es/swipe-item/SwipeItem.js +9 -4
- package/es/switch/Switch.js +25 -23
- package/es/switch/switch.css +1 -1
- package/es/switch/switch.less +2 -2
- package/es/tab/Tab.js +8 -1
- package/es/tab-item/TabItem.js +8 -1
- package/es/table/Table.js +27 -20
- package/es/tabs/Tabs.js +23 -14
- package/es/tabs-items/TabsItems.js +10 -5
- package/es/themes/dark/bottomNavigation.js +4 -0
- package/es/themes/dark/bottomNavigationItem.js +3 -0
- package/es/themes/dark/index.js +3 -1
- package/es/time-picker/TimePicker.js +47 -38
- package/es/time-picker/clock.js +26 -22
- package/es/time-picker/timePicker.css +1 -1
- package/es/time-picker/timePicker.less +11 -11
- package/es/umdIndex.js +10 -0
- package/es/uploader/Uploader.js +62 -57
- package/es/utils/components.js +35 -0
- package/es/varlet.esm.js +2093 -1504
- package/highlight/attributes.json +48 -0
- package/highlight/tags.json +20 -0
- package/highlight/web-types.json +155 -1
- package/lib/action-sheet/ActionSheet.js +30 -26
- package/lib/app-bar/AppBar.js +31 -24
- package/lib/back-top/BackTop.js +11 -2
- package/lib/badge/Badge.js +23 -13
- package/lib/bottom-navigation/BottomNavigation.js +221 -0
- package/lib/bottom-navigation/BottomNavigationSfc.css +0 -0
- package/lib/bottom-navigation/BottomNavigationSfc.less +0 -0
- package/lib/bottom-navigation/bottomNavigation.css +1 -0
- package/lib/bottom-navigation/bottomNavigation.less +51 -0
- package/lib/bottom-navigation/index.js +17 -0
- package/lib/bottom-navigation/props.js +45 -0
- package/lib/bottom-navigation/provide.js +27 -0
- package/lib/bottom-navigation/style/index.js +4 -0
- package/lib/bottom-navigation/style/less.js +4 -0
- package/lib/bottom-navigation-item/BottomNavigationItem.js +140 -0
- package/lib/bottom-navigation-item/BottomNavigationItemSfc.css +0 -0
- package/lib/bottom-navigation-item/BottomNavigationItemSfc.less +0 -0
- package/lib/bottom-navigation-item/bottomNavigationItem.css +1 -0
- package/lib/bottom-navigation-item/bottomNavigationItem.less +78 -0
- package/lib/bottom-navigation-item/index.js +17 -0
- package/lib/bottom-navigation-item/props.js +27 -0
- package/lib/bottom-navigation-item/provide.js +28 -0
- package/lib/bottom-navigation-item/style/index.js +6 -0
- package/lib/bottom-navigation-item/style/less.js +6 -0
- package/lib/button/Button.js +13 -4
- package/lib/card/Card.js +34 -27
- package/lib/cell/Cell.js +26 -13
- package/lib/checkbox/Checkbox.js +26 -23
- package/lib/checkbox-group/CheckboxGroup.js +19 -22
- package/lib/chip/Chip.js +18 -7
- package/lib/chip/chip.css +1 -1
- package/lib/chip/chip.less +11 -11
- package/lib/col/Col.js +14 -5
- package/lib/collapse/Collapse.js +15 -10
- package/lib/collapse-item/CollapseItem.js +31 -28
- package/lib/collapse-item/collapseItem.css +1 -1
- package/lib/collapse-item/collapseItem.less +16 -16
- package/lib/countdown/Countdown.js +14 -10
- package/lib/counter/Counter.js +29 -26
- package/lib/date-picker/DatePicker.js +30 -23
- package/lib/date-picker/date-picker.css +1 -1
- package/lib/date-picker/date-picker.less +22 -20
- package/lib/date-picker/src/day-picker-panel.js +41 -32
- package/lib/date-picker/src/month-picker-panel.js +27 -19
- package/lib/date-picker/src/panel-header.js +16 -9
- package/lib/date-picker/src/year-picker-panel.js +19 -9
- package/lib/dialog/Dialog.js +36 -38
- package/lib/divider/Divider.js +16 -10
- package/lib/form/Form.js +11 -6
- package/lib/form-details/FormDetails.js +27 -20
- package/lib/icon/Icon.js +10 -1
- package/lib/image/Image.js +20 -11
- package/lib/image-preview/ImagePreview.js +35 -33
- package/lib/index-anchor/IndexAnchor.js +10 -1
- package/lib/index-bar/IndexBar.js +24 -20
- package/lib/index.js +6 -0
- package/lib/input/Input.js +45 -43
- package/lib/lazy/index.js +3 -1
- package/lib/less.js +2 -0
- package/lib/list/List.js +39 -36
- package/lib/loading/Loading.js +33 -23
- package/lib/loading/loading.css +1 -1
- package/lib/loading/loading.less +32 -32
- package/lib/menu/Menu.js +12 -9
- package/lib/option/Option.js +16 -9
- package/lib/pagination/Pagination.js +36 -44
- package/lib/pagination/pagination.css +1 -1
- package/lib/pagination/pagination.less +8 -8
- package/lib/picker/Picker.js +51 -46
- package/lib/popup/Popup.js +9 -4
- package/lib/progress/Progress.js +45 -34
- package/lib/progress/progress.css +1 -1
- package/lib/progress/progress.less +12 -12
- package/lib/pull-refresh/PullRefresh.js +14 -10
- package/lib/radio/Radio.js +23 -22
- package/lib/radio-group/RadioGroup.js +17 -16
- package/lib/rate/Rate.js +27 -24
- package/lib/ripple/index.js +7 -2
- package/lib/row/Row.js +12 -3
- package/lib/select/Select.js +53 -53
- package/lib/skeleton/Skeleton.js +69 -78
- package/lib/slider/Slider.js +42 -38
- package/lib/slider/slider.css +1 -1
- package/lib/slider/slider.less +5 -5
- package/lib/snackbar/Snackbar.js +9 -4
- package/lib/snackbar/core.js +20 -25
- package/lib/snackbar/snackbar.css +1 -1
- package/lib/snackbar/snackbar.less +66 -68
- package/lib/space/Space.js +9 -3
- package/lib/step/Step.js +26 -22
- package/lib/step/step.css +1 -1
- package/lib/step/step.less +10 -10
- package/lib/steps/Steps.js +13 -4
- package/lib/sticky/Sticky.js +15 -6
- package/lib/style-provider/StyleProvider.js +8 -2
- package/lib/style.css +1 -1
- package/lib/style.js +2 -0
- package/lib/swipe/Swipe.js +23 -16
- package/lib/swipe-item/SwipeItem.js +10 -3
- package/lib/switch/Switch.js +23 -20
- package/lib/switch/switch.css +1 -1
- package/lib/switch/switch.less +2 -2
- package/lib/tab/Tab.js +10 -1
- package/lib/tab-item/TabItem.js +10 -1
- package/lib/table/Table.js +27 -18
- package/lib/tabs/Tabs.js +25 -14
- package/lib/tabs-items/TabsItems.js +11 -4
- package/lib/themes/dark/bottomNavigation.js +9 -0
- package/lib/themes/dark/bottomNavigationItem.js +8 -0
- package/lib/themes/dark/index.js +5 -1
- package/lib/time-picker/TimePicker.js +49 -38
- package/lib/time-picker/clock.js +26 -20
- package/lib/time-picker/timePicker.css +1 -1
- package/lib/time-picker/timePicker.less +11 -11
- package/lib/uploader/Uploader.js +60 -55
- package/lib/utils/components.js +39 -0
- package/package.json +5 -5
- package/types/bottomNavigation.d.ts +19 -0
- package/types/bottomNavigationItem.d.ts +16 -0
- package/types/global.d.ts +2 -0
- package/types/index.d.ts +2 -0
- package/umd/varlet.js +4 -4
package/lib/dialog/Dialog.js
CHANGED
|
@@ -16,16 +16,14 @@ var _shared = require("../utils/shared");
|
|
|
16
16
|
|
|
17
17
|
var _locale = require("../locale");
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
var _components = require("../utils/components");
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
22
22
|
|
|
23
|
-
var
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
class: "var-dialog__actions"
|
|
28
|
-
};
|
|
23
|
+
var {
|
|
24
|
+
n,
|
|
25
|
+
classes
|
|
26
|
+
} = (0, _components.createNamespace)('dialog');
|
|
29
27
|
|
|
30
28
|
function render(_ctx, _cache) {
|
|
31
29
|
var _component_var_button = (0, _vue.resolveComponent)("var-button");
|
|
@@ -33,7 +31,7 @@ function render(_ctx, _cache) {
|
|
|
33
31
|
var _component_var_popup = (0, _vue.resolveComponent)("var-popup");
|
|
34
32
|
|
|
35
33
|
return (0, _vue.openBlock)(), (0, _vue.createBlock)(_component_var_popup, {
|
|
36
|
-
class:
|
|
34
|
+
class: (0, _vue.normalizeClass)(_ctx.n('popup')),
|
|
37
35
|
"var-dialog-cover": "",
|
|
38
36
|
show: _ctx.popupShow,
|
|
39
37
|
overlay: _ctx.overlay,
|
|
@@ -50,22 +48,28 @@ function render(_ctx, _cache) {
|
|
|
50
48
|
onClickOverlay: _ctx.handleClickOverlay
|
|
51
49
|
}, {
|
|
52
50
|
default: (0, _vue.withCtx)(() => [(0, _vue.createElementVNode)("div", (0, _vue.mergeProps)({
|
|
53
|
-
class:
|
|
51
|
+
class: _ctx.classes('var--box', _ctx.n(), _ctx.dialogClass),
|
|
54
52
|
style: _ctx.dialogStyle
|
|
55
|
-
}, _ctx.$attrs), [(0, _vue.createElementVNode)("div",
|
|
53
|
+
}, _ctx.$attrs), [(0, _vue.createElementVNode)("div", {
|
|
54
|
+
class: (0, _vue.normalizeClass)(_ctx.n('title'))
|
|
55
|
+
}, [(0, _vue.renderSlot)(_ctx.$slots, "title", {}, () => [(0, _vue.createTextVNode)((0, _vue.toDisplayString)(_ctx.dt(_ctx.title, _ctx.pack.dialogTitle)), 1
|
|
56
56
|
/* TEXT */
|
|
57
|
-
)])]
|
|
58
|
-
|
|
57
|
+
)])], 2
|
|
58
|
+
/* CLASS */
|
|
59
|
+
), (0, _vue.createElementVNode)("div", {
|
|
60
|
+
class: (0, _vue.normalizeClass)(_ctx.n('message')),
|
|
59
61
|
style: (0, _vue.normalizeStyle)({
|
|
60
62
|
textAlign: _ctx.messageAlign
|
|
61
63
|
})
|
|
62
64
|
}, [(0, _vue.renderSlot)(_ctx.$slots, "default", {}, () => [(0, _vue.createTextVNode)((0, _vue.toDisplayString)(_ctx.message), 1
|
|
63
65
|
/* TEXT */
|
|
64
|
-
)])],
|
|
65
|
-
/* STYLE */
|
|
66
|
-
), (0, _vue.createElementVNode)("div",
|
|
66
|
+
)])], 6
|
|
67
|
+
/* CLASS, STYLE */
|
|
68
|
+
), (0, _vue.createElementVNode)("div", {
|
|
69
|
+
class: (0, _vue.normalizeClass)(_ctx.n('actions'))
|
|
70
|
+
}, [_ctx.cancelButton ? ((0, _vue.openBlock)(), (0, _vue.createBlock)(_component_var_button, {
|
|
67
71
|
key: 0,
|
|
68
|
-
class:
|
|
72
|
+
class: (0, _vue.normalizeClass)(_ctx.classes(_ctx.n('button'), _ctx.n('cancel-button'))),
|
|
69
73
|
"var-dialog-cover": "",
|
|
70
74
|
text: "",
|
|
71
75
|
"text-color": _ctx.cancelButtonTextColor,
|
|
@@ -80,9 +84,9 @@ function render(_ctx, _cache) {
|
|
|
80
84
|
|
|
81
85
|
}, 8
|
|
82
86
|
/* PROPS */
|
|
83
|
-
, ["text-color", "color", "onClick"])) : (0, _vue.createCommentVNode)("v-if", true), _ctx.confirmButton ? ((0, _vue.openBlock)(), (0, _vue.createBlock)(_component_var_button, {
|
|
87
|
+
, ["class", "text-color", "color", "onClick"])) : (0, _vue.createCommentVNode)("v-if", true), _ctx.confirmButton ? ((0, _vue.openBlock)(), (0, _vue.createBlock)(_component_var_button, {
|
|
84
88
|
key: 1,
|
|
85
|
-
class:
|
|
89
|
+
class: (0, _vue.normalizeClass)(_ctx.classes(_ctx.n('button'), _ctx.n('confirm-button'))),
|
|
86
90
|
"var-dialog-cover": "",
|
|
87
91
|
text: "",
|
|
88
92
|
"text-color": _ctx.confirmButtonTextColor,
|
|
@@ -97,7 +101,9 @@ function render(_ctx, _cache) {
|
|
|
97
101
|
|
|
98
102
|
}, 8
|
|
99
103
|
/* PROPS */
|
|
100
|
-
, ["text-color", "color", "onClick"])) : (0, _vue.createCommentVNode)("v-if", true)]
|
|
104
|
+
, ["class", "text-color", "color", "onClick"])) : (0, _vue.createCommentVNode)("v-if", true)], 2
|
|
105
|
+
/* CLASS */
|
|
106
|
+
)], 16
|
|
101
107
|
/* FULL_PROPS */
|
|
102
108
|
)]),
|
|
103
109
|
_: 3
|
|
@@ -105,7 +111,7 @@ function render(_ctx, _cache) {
|
|
|
105
111
|
|
|
106
112
|
}, 8
|
|
107
113
|
/* PROPS */
|
|
108
|
-
, ["show", "overlay", "overlay-class", "overlay-style", "lock-scroll", "close-on-click-overlay", "teleport", "onOpen", "onClose", "onClosed", "onOpened", "onRouteChange", "onClickOverlay"]);
|
|
114
|
+
, ["class", "show", "overlay", "overlay-class", "overlay-style", "lock-scroll", "close-on-click-overlay", "teleport", "onOpen", "onClose", "onClosed", "onOpened", "onRouteChange", "onClickOverlay"]);
|
|
109
115
|
}
|
|
110
116
|
|
|
111
117
|
var _default = (0, _vue.defineComponent)({
|
|
@@ -122,21 +128,15 @@ var _default = (0, _vue.defineComponent)({
|
|
|
122
128
|
var popupShow = (0, _vue.ref)(false);
|
|
123
129
|
var popupCloseOnClickOverlay = (0, _vue.ref)(false);
|
|
124
130
|
|
|
125
|
-
var done = () =>
|
|
126
|
-
var _props$onUpdateShow;
|
|
127
|
-
|
|
128
|
-
return (_props$onUpdateShow = props['onUpdate:show']) == null ? void 0 : _props$onUpdateShow.call(props, false);
|
|
129
|
-
};
|
|
131
|
+
var done = () => (0, _components.call)(props['onUpdate:show'], false);
|
|
130
132
|
|
|
131
133
|
var handleClickOverlay = () => {
|
|
132
|
-
var _props$onUpdateShow2;
|
|
133
|
-
|
|
134
134
|
var {
|
|
135
135
|
closeOnClickOverlay,
|
|
136
136
|
onClickOverlay,
|
|
137
137
|
onBeforeClose
|
|
138
138
|
} = props;
|
|
139
|
-
|
|
139
|
+
(0, _components.call)(onClickOverlay);
|
|
140
140
|
|
|
141
141
|
if (!closeOnClickOverlay) {
|
|
142
142
|
return;
|
|
@@ -147,41 +147,37 @@ var _default = (0, _vue.defineComponent)({
|
|
|
147
147
|
return;
|
|
148
148
|
}
|
|
149
149
|
|
|
150
|
-
(
|
|
150
|
+
(0, _components.call)(props['onUpdate:show'], false);
|
|
151
151
|
};
|
|
152
152
|
|
|
153
153
|
var confirm = () => {
|
|
154
|
-
var _props$onUpdateShow3;
|
|
155
|
-
|
|
156
154
|
var {
|
|
157
155
|
onBeforeClose,
|
|
158
156
|
onConfirm
|
|
159
157
|
} = props;
|
|
160
|
-
|
|
158
|
+
(0, _components.call)(onConfirm);
|
|
161
159
|
|
|
162
160
|
if (onBeforeClose != null) {
|
|
163
161
|
onBeforeClose('confirm', done);
|
|
164
162
|
return;
|
|
165
163
|
}
|
|
166
164
|
|
|
167
|
-
(
|
|
165
|
+
(0, _components.call)(props['onUpdate:show'], false);
|
|
168
166
|
};
|
|
169
167
|
|
|
170
168
|
var cancel = () => {
|
|
171
|
-
var _props$onUpdateShow4;
|
|
172
|
-
|
|
173
169
|
var {
|
|
174
170
|
onBeforeClose,
|
|
175
171
|
onCancel
|
|
176
172
|
} = props;
|
|
177
|
-
|
|
173
|
+
(0, _components.call)(onCancel);
|
|
178
174
|
|
|
179
175
|
if (onBeforeClose != null) {
|
|
180
176
|
onBeforeClose('cancel', done);
|
|
181
177
|
return;
|
|
182
178
|
}
|
|
183
179
|
|
|
184
|
-
(
|
|
180
|
+
(0, _components.call)(props['onUpdate:show'], false);
|
|
185
181
|
};
|
|
186
182
|
|
|
187
183
|
(0, _vue.watch)(() => props.show, newValue => {
|
|
@@ -200,6 +196,8 @@ var _default = (0, _vue.defineComponent)({
|
|
|
200
196
|
immediate: true
|
|
201
197
|
});
|
|
202
198
|
return {
|
|
199
|
+
n,
|
|
200
|
+
classes,
|
|
203
201
|
pack: _locale.pack,
|
|
204
202
|
dt: _shared.dt,
|
|
205
203
|
popupShow,
|
package/lib/divider/Divider.js
CHANGED
|
@@ -12,21 +12,24 @@ var _shared = require("../utils/shared");
|
|
|
12
12
|
|
|
13
13
|
var _props = require("./props");
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
var _components = require("../utils/components");
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
18
18
|
|
|
19
|
-
var
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
};
|
|
19
|
+
var {
|
|
20
|
+
n,
|
|
21
|
+
classes
|
|
22
|
+
} = (0, _components.createNamespace)('divider');
|
|
23
23
|
|
|
24
24
|
function render(_ctx, _cache) {
|
|
25
25
|
return (0, _vue.openBlock)(), (0, _vue.createElementBlock)("div", {
|
|
26
|
-
class: (0, _vue.normalizeClass)(
|
|
26
|
+
class: (0, _vue.normalizeClass)(_ctx.classes(_ctx.n(), 'var--box', [_ctx.vertical, _ctx.n('--vertical')], [_ctx.withText, _ctx.n('--with-text')], [_ctx.isInset, _ctx.n('--inset')], [_ctx.dashed, _ctx.n('--dashed')])),
|
|
27
27
|
style: (0, _vue.normalizeStyle)(_ctx.style)
|
|
28
|
-
}, [(0, _vue.renderSlot)(_ctx.$slots, "default", {}, () => [_ctx.description ? ((0, _vue.openBlock)(), (0, _vue.createElementBlock)("span",
|
|
29
|
-
|
|
28
|
+
}, [(0, _vue.renderSlot)(_ctx.$slots, "default", {}, () => [_ctx.description ? ((0, _vue.openBlock)(), (0, _vue.createElementBlock)("span", {
|
|
29
|
+
key: 0,
|
|
30
|
+
class: (0, _vue.normalizeClass)(_ctx.n('text'))
|
|
31
|
+
}, (0, _vue.toDisplayString)(_ctx.description), 3
|
|
32
|
+
/* TEXT, CLASS */
|
|
30
33
|
)) : (0, _vue.createCommentVNode)("v-if", true)])], 6
|
|
31
34
|
/* CLASS, STYLE */
|
|
32
35
|
);
|
|
@@ -78,7 +81,10 @@ var _default = (0, _vue.defineComponent)({
|
|
|
78
81
|
(0, _vue.onUpdated)(() => {
|
|
79
82
|
checkHasText();
|
|
80
83
|
});
|
|
81
|
-
return _extends({
|
|
84
|
+
return _extends({
|
|
85
|
+
n,
|
|
86
|
+
classes
|
|
87
|
+
}, (0, _vue.toRefs)(state), {
|
|
82
88
|
style,
|
|
83
89
|
isInset
|
|
84
90
|
});
|
package/lib/form/Form.js
CHANGED
|
@@ -10,18 +10,22 @@ var _props = require("./props");
|
|
|
10
10
|
|
|
11
11
|
var _provide = require("./provide");
|
|
12
12
|
|
|
13
|
+
var _components = require("../utils/components");
|
|
14
|
+
|
|
13
15
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
14
16
|
|
|
15
17
|
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
16
18
|
|
|
17
|
-
var
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
class: "var-form"
|
|
21
|
-
};
|
|
19
|
+
var {
|
|
20
|
+
n
|
|
21
|
+
} = (0, _components.createNamespace)('form');
|
|
22
22
|
|
|
23
23
|
function render(_ctx, _cache) {
|
|
24
|
-
return (0, _vue.openBlock)(), (0, _vue.createElementBlock)("div",
|
|
24
|
+
return (0, _vue.openBlock)(), (0, _vue.createElementBlock)("div", {
|
|
25
|
+
class: (0, _vue.normalizeClass)(_ctx.n())
|
|
26
|
+
}, [(0, _vue.renderSlot)(_ctx.$slots, "default")], 2
|
|
27
|
+
/* CLASS */
|
|
28
|
+
);
|
|
25
29
|
}
|
|
26
30
|
|
|
27
31
|
var _default = (0, _vue.defineComponent)({
|
|
@@ -75,6 +79,7 @@ var _default = (0, _vue.defineComponent)({
|
|
|
75
79
|
};
|
|
76
80
|
bindFormItems(formProvider);
|
|
77
81
|
return {
|
|
82
|
+
n,
|
|
78
83
|
validate,
|
|
79
84
|
reset,
|
|
80
85
|
resetValidation
|
|
@@ -6,40 +6,47 @@ exports.render = render;
|
|
|
6
6
|
|
|
7
7
|
var _vue = require("vue");
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _components = require("../utils/components");
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _props = require("./props");
|
|
12
12
|
|
|
13
|
-
var
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
};
|
|
17
|
-
var _hoisted_2 = {
|
|
18
|
-
class: "var-form-details__message"
|
|
19
|
-
};
|
|
20
|
-
var _hoisted_3 = {
|
|
21
|
-
class: "var-form-details__length"
|
|
22
|
-
};
|
|
13
|
+
var {
|
|
14
|
+
n
|
|
15
|
+
} = (0, _components.createNamespace)('form-details');
|
|
23
16
|
|
|
24
17
|
function render(_ctx, _cache) {
|
|
25
18
|
return (0, _vue.openBlock)(), (0, _vue.createBlock)(_vue.Transition, {
|
|
26
|
-
name:
|
|
19
|
+
name: _ctx.n()
|
|
27
20
|
}, {
|
|
28
|
-
default: (0, _vue.withCtx)(() => [_ctx.errorMessage || _ctx.maxlengthText ? ((0, _vue.openBlock)(), (0, _vue.createElementBlock)("div",
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
21
|
+
default: (0, _vue.withCtx)(() => [_ctx.errorMessage || _ctx.maxlengthText ? ((0, _vue.openBlock)(), (0, _vue.createElementBlock)("div", {
|
|
22
|
+
key: 0,
|
|
23
|
+
class: (0, _vue.normalizeClass)(_ctx.n())
|
|
24
|
+
}, [(0, _vue.createElementVNode)("div", {
|
|
25
|
+
class: (0, _vue.normalizeClass)(_ctx.n('message'))
|
|
26
|
+
}, (0, _vue.toDisplayString)(_ctx.errorMessage), 3
|
|
27
|
+
/* TEXT, CLASS */
|
|
28
|
+
), (0, _vue.createElementVNode)("div", {
|
|
29
|
+
class: (0, _vue.normalizeClass)(_ctx.n('length'))
|
|
30
|
+
}, (0, _vue.toDisplayString)(_ctx.maxlengthText), 3
|
|
31
|
+
/* TEXT, CLASS */
|
|
32
|
+
)], 2
|
|
33
|
+
/* CLASS */
|
|
34
|
+
)) : (0, _vue.createCommentVNode)("v-if", true)]),
|
|
33
35
|
_: 1
|
|
34
36
|
/* STABLE */
|
|
35
37
|
|
|
36
|
-
}
|
|
38
|
+
}, 8
|
|
39
|
+
/* PROPS */
|
|
40
|
+
, ["name"]);
|
|
37
41
|
}
|
|
38
42
|
|
|
39
43
|
var _default = (0, _vue.defineComponent)({
|
|
40
44
|
render,
|
|
41
45
|
name: 'VarFormDetails',
|
|
42
|
-
props: _props.props
|
|
46
|
+
props: _props.props,
|
|
47
|
+
setup: () => ({
|
|
48
|
+
n
|
|
49
|
+
})
|
|
43
50
|
});
|
|
44
51
|
|
|
45
52
|
exports.default = _default;
|
package/lib/icon/Icon.js
CHANGED
|
@@ -12,13 +12,20 @@ var _props = require("./props");
|
|
|
12
12
|
|
|
13
13
|
var _elements = require("../utils/elements");
|
|
14
14
|
|
|
15
|
+
var _components = require("../utils/components");
|
|
16
|
+
|
|
15
17
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
16
18
|
|
|
17
19
|
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
18
20
|
|
|
21
|
+
var {
|
|
22
|
+
n,
|
|
23
|
+
classes
|
|
24
|
+
} = (0, _components.createNamespace)('icon');
|
|
25
|
+
|
|
19
26
|
function render(_ctx, _cache) {
|
|
20
27
|
return (0, _vue.openBlock)(), (0, _vue.createBlock)((0, _vue.resolveDynamicComponent)(_ctx.isURL(_ctx.name) ? 'img' : 'i'), {
|
|
21
|
-
class: (0, _vue.normalizeClass)(
|
|
28
|
+
class: (0, _vue.normalizeClass)(_ctx.classes(_ctx.n(), _ctx.namespace + "--set", [_ctx.isURL(_ctx.name), _ctx.n('image'), _ctx.namespace + "-" + _ctx.nextName], [_ctx.shrinking, _ctx.n('--shrinking')])),
|
|
22
29
|
style: (0, _vue.normalizeStyle)({
|
|
23
30
|
color: _ctx.color,
|
|
24
31
|
transition: "transform " + _ctx.toNumber(_ctx.transition) + "ms",
|
|
@@ -70,6 +77,8 @@ var _default = (0, _vue.defineComponent)({
|
|
|
70
77
|
immediate: true
|
|
71
78
|
});
|
|
72
79
|
return {
|
|
80
|
+
n,
|
|
81
|
+
classes,
|
|
73
82
|
nextName,
|
|
74
83
|
shrinking,
|
|
75
84
|
isURL: _shared.isURL,
|
package/lib/image/Image.js
CHANGED
|
@@ -14,8 +14,15 @@ var _props = require("./props");
|
|
|
14
14
|
|
|
15
15
|
var _elements = require("../utils/elements");
|
|
16
16
|
|
|
17
|
+
var _components = require("../utils/components");
|
|
18
|
+
|
|
17
19
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
18
20
|
|
|
21
|
+
var {
|
|
22
|
+
n,
|
|
23
|
+
classes
|
|
24
|
+
} = (0, _components.createNamespace)('image');
|
|
25
|
+
|
|
19
26
|
var _withScopeId = n => ((0, _vue.pushScopeId)(""), n = n(), (0, _vue.popScopeId)(), n);
|
|
20
27
|
|
|
21
28
|
var _hoisted_1 = ["alt", "lazy-error", "lazy-loading"];
|
|
@@ -27,7 +34,7 @@ function render(_ctx, _cache) {
|
|
|
27
34
|
var _directive_ripple = (0, _vue.resolveDirective)("ripple");
|
|
28
35
|
|
|
29
36
|
return (0, _vue.withDirectives)(((0, _vue.openBlock)(), (0, _vue.createElementBlock)("div", {
|
|
30
|
-
class: (0, _vue.normalizeClass)(
|
|
37
|
+
class: (0, _vue.normalizeClass)(_ctx.classes(_ctx.n(), 'var--box', [!_ctx.block, 'var--inline-block'])),
|
|
31
38
|
style: (0, _vue.normalizeStyle)({
|
|
32
39
|
width: _ctx.toSizeUnit(_ctx.width),
|
|
33
40
|
height: _ctx.toSizeUnit(_ctx.height),
|
|
@@ -35,7 +42,7 @@ function render(_ctx, _cache) {
|
|
|
35
42
|
})
|
|
36
43
|
}, [_ctx.lazy ? (0, _vue.withDirectives)(((0, _vue.openBlock)(), (0, _vue.createElementBlock)("img", {
|
|
37
44
|
key: 0,
|
|
38
|
-
class:
|
|
45
|
+
class: (0, _vue.normalizeClass)(_ctx.n('image')),
|
|
39
46
|
alt: _ctx.alt,
|
|
40
47
|
"lazy-error": _ctx.error,
|
|
41
48
|
"lazy-loading": _ctx.loading,
|
|
@@ -51,11 +58,11 @@ function render(_ctx, _cache) {
|
|
|
51
58
|
onClick: _cache[2] || (_cache[2] = function () {
|
|
52
59
|
return _ctx.onClick && _ctx.onClick(...arguments);
|
|
53
60
|
})
|
|
54
|
-
}, null,
|
|
55
|
-
/* STYLE, PROPS, HYDRATE_EVENTS */
|
|
61
|
+
}, null, 46
|
|
62
|
+
/* CLASS, STYLE, PROPS, HYDRATE_EVENTS */
|
|
56
63
|
, _hoisted_1)), [[_directive_lazy, _ctx.src]]) : ((0, _vue.openBlock)(), (0, _vue.createElementBlock)("img", {
|
|
57
64
|
key: 1,
|
|
58
|
-
class:
|
|
65
|
+
class: (0, _vue.normalizeClass)(_ctx.n('image')),
|
|
59
66
|
alt: _ctx.alt,
|
|
60
67
|
style: (0, _vue.normalizeStyle)({
|
|
61
68
|
objectFit: _ctx.fit
|
|
@@ -70,8 +77,8 @@ function render(_ctx, _cache) {
|
|
|
70
77
|
onClick: _cache[5] || (_cache[5] = function () {
|
|
71
78
|
return _ctx.onClick && _ctx.onClick(...arguments);
|
|
72
79
|
})
|
|
73
|
-
}, null,
|
|
74
|
-
/* STYLE, PROPS, HYDRATE_EVENTS */
|
|
80
|
+
}, null, 46
|
|
81
|
+
/* CLASS, STYLE, PROPS, HYDRATE_EVENTS */
|
|
75
82
|
, _hoisted_2))], 6
|
|
76
83
|
/* CLASS, STYLE */
|
|
77
84
|
)), [[_directive_ripple, {
|
|
@@ -98,10 +105,10 @@ var _default = (0, _vue.defineComponent)({
|
|
|
98
105
|
} = props;
|
|
99
106
|
|
|
100
107
|
if (lazy) {
|
|
101
|
-
el._lazy.state === 'success' && (
|
|
102
|
-
el._lazy.state === 'error' && (
|
|
108
|
+
el._lazy.state === 'success' && (0, _components.call)(onLoad, e);
|
|
109
|
+
el._lazy.state === 'error' && (0, _components.call)(onError, e);
|
|
103
110
|
} else {
|
|
104
|
-
|
|
111
|
+
(0, _components.call)(onLoad, e);
|
|
105
112
|
}
|
|
106
113
|
};
|
|
107
114
|
|
|
@@ -110,10 +117,12 @@ var _default = (0, _vue.defineComponent)({
|
|
|
110
117
|
lazy,
|
|
111
118
|
onError
|
|
112
119
|
} = props;
|
|
113
|
-
!lazy && (
|
|
120
|
+
!lazy && (0, _components.call)(onError, e);
|
|
114
121
|
};
|
|
115
122
|
|
|
116
123
|
return {
|
|
124
|
+
n,
|
|
125
|
+
classes,
|
|
117
126
|
toSizeUnit: _elements.toSizeUnit,
|
|
118
127
|
handleLoad,
|
|
119
128
|
handleError
|
|
@@ -18,8 +18,14 @@ var _props = require("./props");
|
|
|
18
18
|
|
|
19
19
|
var _shared = require("../utils/shared");
|
|
20
20
|
|
|
21
|
+
var _components = require("../utils/components");
|
|
22
|
+
|
|
21
23
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
22
24
|
|
|
25
|
+
var {
|
|
26
|
+
n,
|
|
27
|
+
classes
|
|
28
|
+
} = (0, _components.createNamespace)('image-preview');
|
|
23
29
|
var DISTANCE_OFFSET = 12;
|
|
24
30
|
var EVENT_DELAY = 200;
|
|
25
31
|
var TAP_DELAY = 350;
|
|
@@ -28,13 +34,6 @@ var ANIMATION_DURATION = 200;
|
|
|
28
34
|
var _withScopeId = n => ((0, _vue.pushScopeId)(""), n = n(), (0, _vue.popScopeId)(), n);
|
|
29
35
|
|
|
30
36
|
var _hoisted_1 = ["src", "alt"];
|
|
31
|
-
var _hoisted_2 = {
|
|
32
|
-
key: 0,
|
|
33
|
-
class: "var-image-preview__indicators"
|
|
34
|
-
};
|
|
35
|
-
var _hoisted_3 = {
|
|
36
|
-
class: "var-image-preview__extra"
|
|
37
|
-
};
|
|
38
37
|
|
|
39
38
|
function render(_ctx, _cache) {
|
|
40
39
|
var _component_var_swipe_item = (0, _vue.resolveComponent)("var-swipe-item");
|
|
@@ -46,7 +45,7 @@ function render(_ctx, _cache) {
|
|
|
46
45
|
var _component_var_popup = (0, _vue.resolveComponent)("var-popup");
|
|
47
46
|
|
|
48
47
|
return (0, _vue.openBlock)(), (0, _vue.createBlock)(_component_var_popup, {
|
|
49
|
-
class:
|
|
48
|
+
class: (0, _vue.normalizeClass)(_ctx.n('popup')),
|
|
50
49
|
"var-image-preview-cover": "",
|
|
51
50
|
transition: "var-fade",
|
|
52
51
|
show: _ctx.popupShow,
|
|
@@ -61,7 +60,7 @@ function render(_ctx, _cache) {
|
|
|
61
60
|
onRouteChange: _ctx.onRouteChange
|
|
62
61
|
}, {
|
|
63
62
|
default: (0, _vue.withCtx)(() => [(0, _vue.createVNode)(_component_var_swipe, (0, _vue.mergeProps)({
|
|
64
|
-
class:
|
|
63
|
+
class: _ctx.n('swipe'),
|
|
65
64
|
"var-image-preview-cover": "",
|
|
66
65
|
touchable: _ctx.canSwipe,
|
|
67
66
|
indicator: _ctx.indicator && _ctx.images.length > 1,
|
|
@@ -71,12 +70,12 @@ function render(_ctx, _cache) {
|
|
|
71
70
|
}, _ctx.$attrs), {
|
|
72
71
|
default: (0, _vue.withCtx)(() => [((0, _vue.openBlock)(true), (0, _vue.createElementBlock)(_vue.Fragment, null, (0, _vue.renderList)(_ctx.images, image => {
|
|
73
72
|
return (0, _vue.openBlock)(), (0, _vue.createBlock)(_component_var_swipe_item, {
|
|
74
|
-
class:
|
|
73
|
+
class: (0, _vue.normalizeClass)(_ctx.n('swipe-item')),
|
|
75
74
|
"var-image-preview-cover": "",
|
|
76
75
|
key: image
|
|
77
76
|
}, {
|
|
78
77
|
default: (0, _vue.withCtx)(() => [(0, _vue.createElementVNode)("div", {
|
|
79
|
-
class:
|
|
78
|
+
class: (0, _vue.normalizeClass)(_ctx.n('zoom-container')),
|
|
80
79
|
style: (0, _vue.normalizeStyle)({
|
|
81
80
|
transform: "scale(" + _ctx.scale + ") translate(" + _ctx.translateX + "px, " + _ctx.translateY + "px)",
|
|
82
81
|
transitionTimingFunction: _ctx.transitionTimingFunction,
|
|
@@ -92,20 +91,20 @@ function render(_ctx, _cache) {
|
|
|
92
91
|
return _ctx.handleTouchend && _ctx.handleTouchend(...arguments);
|
|
93
92
|
})
|
|
94
93
|
}, [(0, _vue.createElementVNode)("img", {
|
|
95
|
-
class:
|
|
94
|
+
class: (0, _vue.normalizeClass)(_ctx.n('image')),
|
|
96
95
|
src: image,
|
|
97
96
|
alt: image
|
|
98
|
-
}, null,
|
|
99
|
-
/* PROPS */
|
|
100
|
-
, _hoisted_1)],
|
|
101
|
-
/* STYLE, HYDRATE_EVENTS */
|
|
97
|
+
}, null, 10
|
|
98
|
+
/* CLASS, PROPS */
|
|
99
|
+
, _hoisted_1)], 38
|
|
100
|
+
/* CLASS, STYLE, HYDRATE_EVENTS */
|
|
102
101
|
)]),
|
|
103
102
|
_: 2
|
|
104
103
|
/* DYNAMIC */
|
|
105
104
|
|
|
106
|
-
},
|
|
107
|
-
/* DYNAMIC_SLOTS */
|
|
108
|
-
);
|
|
105
|
+
}, 1032
|
|
106
|
+
/* PROPS, DYNAMIC_SLOTS */
|
|
107
|
+
, ["class"]);
|
|
109
108
|
}), 128
|
|
110
109
|
/* KEYED_FRAGMENT */
|
|
111
110
|
))]),
|
|
@@ -117,8 +116,11 @@ function render(_ctx, _cache) {
|
|
|
117
116
|
return [(0, _vue.renderSlot)(_ctx.$slots, "indicator", {
|
|
118
117
|
index: index,
|
|
119
118
|
length: length
|
|
120
|
-
}, () => [_ctx.indicator && _ctx.images.length > 1 ? ((0, _vue.openBlock)(), (0, _vue.createElementBlock)("div",
|
|
121
|
-
|
|
119
|
+
}, () => [_ctx.indicator && _ctx.images.length > 1 ? ((0, _vue.openBlock)(), (0, _vue.createElementBlock)("div", {
|
|
120
|
+
key: 0,
|
|
121
|
+
class: (0, _vue.normalizeClass)(_ctx.n('indicators'))
|
|
122
|
+
}, (0, _vue.toDisplayString)(index + 1) + " / " + (0, _vue.toDisplayString)(length), 3
|
|
123
|
+
/* TEXT, CLASS */
|
|
122
124
|
)) : (0, _vue.createCommentVNode)("v-if", true)])];
|
|
123
125
|
}),
|
|
124
126
|
_: 3
|
|
@@ -126,21 +128,25 @@ function render(_ctx, _cache) {
|
|
|
126
128
|
|
|
127
129
|
}, 16
|
|
128
130
|
/* FULL_PROPS */
|
|
129
|
-
, ["touchable", "indicator", "initial-index", "loop", "onChange"]), (0, _vue.renderSlot)(_ctx.$slots, "close-icon", {}, () => [_ctx.closeable ? ((0, _vue.openBlock)(), (0, _vue.createBlock)(_component_var_icon, {
|
|
131
|
+
, ["class", "touchable", "indicator", "initial-index", "loop", "onChange"]), (0, _vue.renderSlot)(_ctx.$slots, "close-icon", {}, () => [_ctx.closeable ? ((0, _vue.openBlock)(), (0, _vue.createBlock)(_component_var_icon, {
|
|
130
132
|
key: 0,
|
|
131
|
-
class:
|
|
133
|
+
class: (0, _vue.normalizeClass)(_ctx.n('close-icon')),
|
|
132
134
|
name: "close-circle",
|
|
133
135
|
"var-image-preview-cover": "",
|
|
134
136
|
onClick: _ctx.close
|
|
135
137
|
}, null, 8
|
|
136
138
|
/* PROPS */
|
|
137
|
-
, ["onClick"])) : (0, _vue.createCommentVNode)("v-if", true)]), (0, _vue.createElementVNode)("div",
|
|
139
|
+
, ["class", "onClick"])) : (0, _vue.createCommentVNode)("v-if", true)]), (0, _vue.createElementVNode)("div", {
|
|
140
|
+
class: (0, _vue.normalizeClass)(_ctx.n('extra'))
|
|
141
|
+
}, [(0, _vue.renderSlot)(_ctx.$slots, "extra")], 2
|
|
142
|
+
/* CLASS */
|
|
143
|
+
)]),
|
|
138
144
|
_: 3
|
|
139
145
|
/* FORWARDED */
|
|
140
146
|
|
|
141
147
|
}, 8
|
|
142
148
|
/* PROPS */
|
|
143
|
-
, ["show", "lock-scroll", "teleport", "onOpen", "onClose", "onClosed", "onOpened", "onRouteChange"]);
|
|
149
|
+
, ["class", "show", "lock-scroll", "teleport", "onOpen", "onClose", "onClosed", "onOpened", "onRouteChange"]);
|
|
144
150
|
}
|
|
145
151
|
|
|
146
152
|
var _default = (0, _vue.defineComponent)({
|
|
@@ -341,19 +347,13 @@ var _default = (0, _vue.defineComponent)({
|
|
|
341
347
|
};
|
|
342
348
|
|
|
343
349
|
var close = () => {
|
|
344
|
-
var _props$onUpdateShow2;
|
|
345
|
-
|
|
346
350
|
if (scale.value > 1) {
|
|
347
351
|
zoomOut();
|
|
348
|
-
setTimeout(() =>
|
|
349
|
-
var _props$onUpdateShow;
|
|
350
|
-
|
|
351
|
-
return (_props$onUpdateShow = props['onUpdate:show']) == null ? void 0 : _props$onUpdateShow.call(props, false);
|
|
352
|
-
}, ANIMATION_DURATION);
|
|
352
|
+
setTimeout(() => (0, _components.call)(props['onUpdate:show'], false), ANIMATION_DURATION);
|
|
353
353
|
return;
|
|
354
354
|
}
|
|
355
355
|
|
|
356
|
-
(
|
|
356
|
+
(0, _components.call)(props['onUpdate:show'], false);
|
|
357
357
|
};
|
|
358
358
|
|
|
359
359
|
(0, _vue.watch)(() => props.show, newValue => {
|
|
@@ -362,6 +362,8 @@ var _default = (0, _vue.defineComponent)({
|
|
|
362
362
|
immediate: true
|
|
363
363
|
});
|
|
364
364
|
return {
|
|
365
|
+
n,
|
|
366
|
+
classes,
|
|
365
367
|
initialIndex,
|
|
366
368
|
popupShow,
|
|
367
369
|
scale,
|
|
@@ -12,8 +12,15 @@ var _provide = require("./provide");
|
|
|
12
12
|
|
|
13
13
|
var _props = require("./props");
|
|
14
14
|
|
|
15
|
+
var _components = require("../utils/components");
|
|
16
|
+
|
|
15
17
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
16
18
|
|
|
19
|
+
var {
|
|
20
|
+
n,
|
|
21
|
+
classes
|
|
22
|
+
} = (0, _components.createNamespace)('index-anchor');
|
|
23
|
+
|
|
17
24
|
function render(_ctx, _cache) {
|
|
18
25
|
return (0, _vue.openBlock)(), (0, _vue.createBlock)((0, _vue.resolveDynamicComponent)(_ctx.sticky ? 'var-sticky' : _ctx.Transition), {
|
|
19
26
|
"offset-top": _ctx.sticky ? _ctx.stickyOffsetTop : null,
|
|
@@ -23,7 +30,7 @@ function render(_ctx, _cache) {
|
|
|
23
30
|
ref: "anchorEl"
|
|
24
31
|
}, {
|
|
25
32
|
default: (0, _vue.withCtx)(() => [(0, _vue.createElementVNode)("div", (0, _vue.mergeProps)({
|
|
26
|
-
class:
|
|
33
|
+
class: _ctx.n()
|
|
27
34
|
}, _ctx.$attrs), [(0, _vue.renderSlot)(_ctx.$slots, "default", {}, () => [(0, _vue.createTextVNode)((0, _vue.toDisplayString)(_ctx.name), 1
|
|
28
35
|
/* TEXT */
|
|
29
36
|
)])], 16
|
|
@@ -82,6 +89,8 @@ var _default = (0, _vue.defineComponent)({
|
|
|
82
89
|
};
|
|
83
90
|
bindIndexBar(indexAnchorProvider);
|
|
84
91
|
return {
|
|
92
|
+
n,
|
|
93
|
+
classes,
|
|
85
94
|
name,
|
|
86
95
|
anchorEl,
|
|
87
96
|
active,
|