@varlet/ui 3.8.2 → 3.8.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/action-sheet/ActionItem.mjs +4 -4
- package/es/action-sheet/ActionSheet.mjs +9 -9
- package/es/action-sheet/index.mjs +2 -2
- package/es/action-sheet/props.mjs +1 -1
- package/es/action-sheet/style/index.mjs +1 -1
- package/es/alert/Alert.mjs +3 -3
- package/es/alert/index.mjs +1 -1
- package/es/app-bar/AppBar.mjs +5 -5
- package/es/app-bar/index.mjs +1 -1
- package/es/auto-complete/AutoComplete.mjs +23 -27
- package/es/auto-complete/index.mjs +1 -1
- package/es/auto-complete/props.mjs +1 -1
- package/es/avatar/Avatar.mjs +5 -5
- package/es/avatar/index.mjs +1 -1
- package/es/avatar-group/AvatarGroup.mjs +2 -2
- package/es/avatar-group/index.mjs +1 -1
- package/es/back-top/BackTop.mjs +7 -7
- package/es/back-top/index.mjs +1 -1
- package/es/badge/Badge.mjs +3 -3
- package/es/badge/index.mjs +1 -1
- package/es/badge/props.mjs +1 -1
- package/es/bottom-navigation/BottomNavigation.mjs +8 -9
- package/es/bottom-navigation/index.mjs +1 -1
- package/es/bottom-navigation-item/BottomNavigationItem.mjs +4 -4
- package/es/bottom-navigation-item/index.mjs +1 -1
- package/es/bottom-navigation-item/provide.mjs +1 -1
- package/es/breadcrumb/Breadcrumb.mjs +3 -3
- package/es/breadcrumb/index.mjs +1 -1
- package/es/breadcrumb/provide.mjs +1 -1
- package/es/breadcrumbs/Breadcrumbs.mjs +2 -2
- package/es/breadcrumbs/index.mjs +1 -1
- package/es/button/Button.mjs +6 -6
- package/es/button/index.mjs +1 -1
- package/es/button-group/ButtonGroup.mjs +1 -1
- package/es/button-group/index.mjs +1 -1
- package/es/card/Card.mjs +39 -39
- package/es/card/index.mjs +1 -1
- package/es/cell/Cell.mjs +3 -3
- package/es/cell/index.mjs +1 -1
- package/es/cell/props.mjs +1 -1
- package/es/checkbox/Checkbox.mjs +7 -7
- package/es/checkbox/index.mjs +1 -1
- package/es/checkbox-group/CheckboxGroup.mjs +5 -5
- package/es/checkbox-group/index.mjs +1 -1
- package/es/chip/Chip.mjs +4 -4
- package/es/chip/index.mjs +1 -1
- package/es/chip/props.mjs +1 -1
- package/es/code/Code.mjs +1 -1
- package/es/code/index.mjs +1 -1
- package/es/col/Col.mjs +4 -4
- package/es/col/index.mjs +1 -1
- package/es/collapse/Collapse.mjs +6 -4
- package/es/collapse/index.mjs +1 -1
- package/es/collapse-item/CollapseItem.mjs +4 -4
- package/es/collapse-item/index.mjs +1 -1
- package/es/collapse-item/provide.mjs +1 -1
- package/es/collapse-transition/CollapseTransition.mjs +2 -2
- package/es/collapse-transition/index.mjs +1 -1
- package/es/collapse-transition/useCollapseTransition.mjs +1 -1
- package/es/context/lock.mjs +1 -1
- package/es/context/stack.mjs +1 -1
- package/es/context/zIndex.mjs +1 -1
- package/es/count-to/CountTo.mjs +4 -4
- package/es/count-to/index.mjs +1 -1
- package/es/countdown/Countdown.mjs +2 -2
- package/es/countdown/index.mjs +1 -1
- package/es/counter/Counter.mjs +8 -8
- package/es/counter/index.mjs +1 -1
- package/es/date-picker/DatePicker.mjs +92 -43
- package/es/date-picker/index.mjs +1 -1
- package/es/date-picker/src/day-picker-panel.mjs +59 -27
- package/es/date-picker/src/month-picker-panel.mjs +57 -23
- package/es/date-picker/src/panel-header.mjs +12 -6
- package/es/date-picker/src/year-picker-panel.mjs +53 -23
- package/es/dialog/Dialog.mjs +5 -5
- package/es/dialog/index.mjs +3 -3
- package/es/dialog/props.mjs +1 -1
- package/es/divider/Divider.mjs +4 -4
- package/es/divider/index.mjs +1 -1
- package/es/drag/Drag.mjs +21 -42
- package/es/drag/index.mjs +1 -1
- package/es/ellipsis/Ellipsis.mjs +2 -2
- package/es/ellipsis/index.mjs +1 -1
- package/es/fab/Fab.mjs +4 -5
- package/es/fab/index.mjs +1 -1
- package/es/fab/props.mjs +1 -1
- package/es/field-decorator/FieldDecorator.mjs +5 -5
- package/es/field-decorator/index.mjs +1 -1
- package/es/floating-panel/FloatingPanel.mjs +6 -6
- package/es/floating-panel/index.mjs +1 -1
- package/es/form/Form.mjs +4 -4
- package/es/form/index.mjs +2 -2
- package/es/form/provide.mjs +1 -1
- package/es/form-details/index.mjs +1 -1
- package/es/highlighter-provider/HighlighterProvider.mjs +2 -2
- package/es/highlighter-provider/index.mjs +1 -1
- package/es/highlighter-provider/provide.mjs +1 -1
- package/es/hover/index.mjs +12 -7
- package/es/hover-overlay/HoverOverlay.mjs +2 -2
- package/es/hover-overlay/index.mjs +2 -2
- package/es/icon/Icon.mjs +3 -3
- package/es/icon/index.mjs +1 -1
- package/es/image/Image.mjs +5 -5
- package/es/image/index.mjs +1 -1
- package/es/image-preview/ImagePreview.mjs +13 -14
- package/es/image-preview/index.mjs +2 -2
- package/es/image-preview/props.mjs +2 -2
- package/es/index-anchor/IndexAnchor.mjs +5 -5
- package/es/index-anchor/index.mjs +1 -1
- package/es/index-anchor/provide.mjs +1 -1
- package/es/index-bar/IndexBar.mjs +17 -13
- package/es/index-bar/index.mjs +1 -1
- package/es/index.bundle.mjs +1 -1
- package/es/index.mjs +1 -1
- package/es/input/Input.mjs +12 -12
- package/es/input/index.mjs +1 -1
- package/es/input/props.mjs +1 -1
- package/es/lazy/index.mjs +1 -1
- package/es/link/Link.mjs +2 -2
- package/es/link/index.mjs +1 -1
- package/es/list/List.mjs +10 -10
- package/es/list/index.mjs +1 -1
- package/es/list/provide.mjs +1 -1
- package/es/loading/Loading.mjs +2 -2
- package/es/loading/index.mjs +1 -1
- package/es/loading-bar/LoadingBar.mjs +1 -2
- package/es/loading-bar/index.mjs +1 -1
- package/es/locale/index.mjs +5 -5
- package/es/locale-provider/LocaleProvider.mjs +11 -8
- package/es/locale-provider/index.mjs +1 -1
- package/es/locale-provider/provide.mjs +1 -1
- package/es/menu/Menu.mjs +2 -2
- package/es/menu/index.mjs +1 -1
- package/es/menu/usePopover.mjs +6 -6
- package/es/menu-option/MenuOption.mjs +9 -9
- package/es/menu-option/index.mjs +1 -1
- package/es/menu-option/provide.mjs +1 -1
- package/es/menu-select/MenuChildren.mjs +21 -21
- package/es/menu-select/MenuSelect.mjs +9 -9
- package/es/menu-select/index.mjs +1 -1
- package/es/option/Option.mjs +5 -5
- package/es/option/index.mjs +1 -1
- package/es/option/provide.mjs +1 -1
- package/es/overlay/Overlay.mjs +4 -4
- package/es/overlay/index.mjs +1 -1
- package/es/pagination/Pagination.mjs +26 -18
- package/es/pagination/index.mjs +1 -1
- package/es/paper/Paper.mjs +3 -3
- package/es/paper/index.mjs +1 -1
- package/es/picker/Picker.mjs +9 -9
- package/es/picker/index.mjs +2 -2
- package/es/picker/props.mjs +1 -1
- package/es/popup/Popup.mjs +6 -6
- package/es/popup/index.mjs +1 -1
- package/es/progress/Progress.mjs +4 -4
- package/es/progress/index.mjs +1 -1
- package/es/pull-refresh/PullRefresh.mjs +10 -12
- package/es/pull-refresh/index.mjs +1 -1
- package/es/radio/Radio.mjs +10 -9
- package/es/radio/index.mjs +1 -1
- package/es/radio-group/RadioGroup.mjs +7 -6
- package/es/radio-group/index.mjs +1 -1
- package/es/rate/Rate.mjs +8 -8
- package/es/rate/index.mjs +1 -1
- package/es/rate/props.mjs +1 -1
- package/es/result/Result.mjs +7 -7
- package/es/result/index.mjs +1 -1
- package/es/ripple/index.mjs +1 -1
- package/es/row/Row.mjs +4 -4
- package/es/row/index.mjs +1 -1
- package/es/select/Select.mjs +13 -13
- package/es/select/index.mjs +1 -1
- package/es/select/props.mjs +1 -1
- package/es/skeleton/Skeleton.mjs +3 -3
- package/es/skeleton/index.mjs +1 -1
- package/es/slider/Slider.mjs +9 -9
- package/es/slider/index.mjs +1 -1
- package/es/snackbar/Snackbar.mjs +1 -1
- package/es/snackbar/core.mjs +8 -8
- package/es/snackbar/index.mjs +9 -8
- package/es/snackbar/props.mjs +1 -1
- package/es/space/Space.mjs +2 -2
- package/es/space/index.mjs +1 -1
- package/es/step/Step.mjs +3 -3
- package/es/step/index.mjs +1 -1
- package/es/step/provide.mjs +1 -1
- package/es/steps/Steps.mjs +3 -3
- package/es/steps/index.mjs +1 -1
- package/es/sticky/Sticky.mjs +7 -7
- package/es/sticky/index.mjs +1 -1
- package/es/style-provider/StyleProvider.mjs +2 -2
- package/es/style-provider/index.mjs +2 -2
- package/es/swipe/Swipe.mjs +10 -10
- package/es/swipe/index.mjs +1 -1
- package/es/swipe-item/SwipeItem.mjs +1 -1
- package/es/swipe-item/index.mjs +1 -1
- package/es/swipe-item/provide.mjs +1 -1
- package/es/switch/Switch.mjs +6 -6
- package/es/switch/index.mjs +1 -1
- package/es/tab/Tab.mjs +4 -4
- package/es/tab/index.mjs +1 -1
- package/es/tab/provide.mjs +1 -1
- package/es/tab-item/TabItem.mjs +3 -3
- package/es/tab-item/index.mjs +1 -1
- package/es/tab-item/provide.mjs +1 -1
- package/es/table/Table.mjs +1 -1
- package/es/table/index.mjs +1 -1
- package/es/tabs/Tabs.mjs +9 -7
- package/es/tabs/index.mjs +1 -1
- package/es/tabs/props.mjs +1 -1
- package/es/tabs-items/TabsItems.mjs +4 -4
- package/es/tabs-items/index.mjs +1 -1
- package/es/themes/dark/index.mjs +33 -33
- package/es/themes/index.mjs +1 -1
- package/es/themes/md3-dark/index.mjs +45 -45
- package/es/themes/md3-light/index.mjs +39 -39
- package/es/time-picker/TimePicker.mjs +48 -24
- package/es/time-picker/clock.mjs +41 -19
- package/es/time-picker/index.mjs +1 -1
- package/es/time-picker/utils.mjs +13 -5
- package/es/tooltip/Tooltip.mjs +2 -2
- package/es/tooltip/index.mjs +1 -1
- package/es/uploader/Uploader.mjs +14 -14
- package/es/uploader/index.mjs +1 -1
- package/es/utils/components.mjs +5 -5
- package/es/utils/elements.mjs +9 -9
- package/es/utils/test.mjs +1 -1
- package/es/varlet.esm.js +20946 -20941
- package/es/watermark/Watermark.mjs +15 -17
- package/es/watermark/index.mjs +1 -1
- package/highlight/web-types.en-US.json +1 -1
- package/highlight/web-types.zh-CN.json +1 -1
- package/lib/varlet.cjs.js +25205 -25003
- package/package.json +34 -34
- package/types/actionSheet.d.ts +2 -2
- package/types/alert.d.ts +1 -1
- package/types/appBar.d.ts +1 -1
- package/types/autoComplete.d.ts +4 -4
- package/types/avatar.d.ts +1 -1
- package/types/avatarGroup.d.ts +1 -1
- package/types/backTop.d.ts +1 -1
- package/types/badge.d.ts +1 -1
- package/types/bottomNavigation.d.ts +2 -2
- package/types/bottomNavigationItem.d.ts +2 -2
- package/types/breadcrumb.d.ts +1 -1
- package/types/breadcrumbs.d.ts +1 -1
- package/types/button.d.ts +5 -5
- package/types/buttonGroup.d.ts +2 -2
- package/types/card.d.ts +1 -1
- package/types/cell.d.ts +1 -1
- package/types/checkbox.d.ts +1 -1
- package/types/checkboxGroup.d.ts +2 -2
- package/types/chip.d.ts +3 -3
- package/types/code.d.ts +1 -1
- package/types/col.d.ts +1 -1
- package/types/collapse.d.ts +1 -1
- package/types/collapseItem.d.ts +1 -1
- package/types/collapseTransition.d.ts +1 -1
- package/types/countTo.d.ts +1 -1
- package/types/countdown.d.ts +1 -1
- package/types/counter.d.ts +1 -1
- package/types/datePicker.d.ts +1 -1
- package/types/dialog.d.ts +1 -1
- package/types/divider.d.ts +1 -1
- package/types/drag.d.ts +1 -1
- package/types/ellipsis.d.ts +1 -1
- package/types/fab.d.ts +2 -2
- package/types/floatingPanel.d.ts +2 -2
- package/types/form.d.ts +1 -1
- package/types/formDetails.d.ts +1 -1
- package/types/highlighterProvider.d.ts +1 -1
- package/types/hover.d.ts +1 -1
- package/types/hoverOverlay.d.ts +1 -1
- package/types/icon.d.ts +1 -1
- package/types/image.d.ts +2 -2
- package/types/imagePreview.d.ts +2 -2
- package/types/indexAnchor.d.ts +1 -1
- package/types/indexBar.d.ts +1 -1
- package/types/input.d.ts +4 -4
- package/types/link.d.ts +1 -1
- package/types/list.d.ts +1 -1
- package/types/loading.d.ts +1 -1
- package/types/localeProvider.d.ts +2 -2
- package/types/menu.d.ts +2 -2
- package/types/menuOption.d.ts +1 -1
- package/types/menuSelect.d.ts +2 -2
- package/types/option.d.ts +1 -1
- package/types/overlay.d.ts +2 -2
- package/types/pagination.d.ts +1 -1
- package/types/paper.d.ts +1 -1
- package/types/picker.d.ts +3 -3
- package/types/popup.d.ts +2 -2
- package/types/progress.d.ts +1 -1
- package/types/pullRefresh.d.ts +1 -1
- package/types/radio.d.ts +1 -1
- package/types/radioGroup.d.ts +3 -3
- package/types/rate.d.ts +1 -1
- package/types/result.d.ts +1 -1
- package/types/row.d.ts +1 -1
- package/types/select.d.ts +3 -3
- package/types/skeleton.d.ts +1 -1
- package/types/slider.d.ts +4 -4
- package/types/snackbar.d.ts +2 -2
- package/types/space.d.ts +1 -1
- package/types/step.d.ts +1 -1
- package/types/steps.d.ts +3 -3
- package/types/sticky.d.ts +1 -1
- package/types/styleProvider.d.ts +2 -2
- package/types/swipe.d.ts +1 -1
- package/types/swipeItem.d.ts +1 -1
- package/types/switch.d.ts +1 -1
- package/types/tab.d.ts +1 -1
- package/types/tabItem.d.ts +1 -1
- package/types/table.d.ts +1 -1
- package/types/tabs.d.ts +3 -3
- package/types/tabsItems.d.ts +2 -2
- package/types/timePicker.d.ts +1 -1
- package/types/tooltip.d.ts +2 -2
- package/types/uploader.d.ts +2 -2
- package/types/watermark.d.ts +1 -1
- package/umd/varlet.js +7 -7
|
@@ -14,20 +14,20 @@ var __spreadValues = (a, b) => {
|
|
|
14
14
|
}
|
|
15
15
|
return a;
|
|
16
16
|
};
|
|
17
|
-
import dayjs from "dayjs/esm/index.js";
|
|
18
17
|
import {
|
|
19
|
-
defineComponent,
|
|
20
18
|
computed,
|
|
19
|
+
defineComponent,
|
|
20
|
+
reactive,
|
|
21
21
|
ref,
|
|
22
|
-
watch
|
|
23
|
-
reactive
|
|
22
|
+
watch
|
|
24
23
|
} from "vue";
|
|
25
24
|
import { toNumber } from "@varlet/shared";
|
|
25
|
+
import { onSmartMounted } from "@varlet/use";
|
|
26
|
+
import dayjs from "dayjs/esm/index.js";
|
|
26
27
|
import VarButton from "../../button/index.mjs";
|
|
27
28
|
import VarSticky from "../../sticky/index.mjs";
|
|
28
|
-
import PanelHeader from "./panel-header.mjs";
|
|
29
29
|
import { createNamespace } from "../../utils/components.mjs";
|
|
30
|
-
import
|
|
30
|
+
import PanelHeader from "./panel-header.mjs";
|
|
31
31
|
const { n, classes } = createNamespace("year-picker");
|
|
32
32
|
const { n: nDate } = createNamespace("date-picker");
|
|
33
33
|
import { resolveComponent as _resolveComponent, createVNode as _createVNode, withCtx as _withCtx, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, mergeProps as _mergeProps, normalizeClass as _normalizeClass, Transition as _Transition } from "vue";
|
|
@@ -59,8 +59,8 @@ function __render__(_ctx, _cache) {
|
|
|
59
59
|
"ul",
|
|
60
60
|
{
|
|
61
61
|
ref: "panel",
|
|
62
|
-
|
|
63
|
-
|
|
62
|
+
key: _ctx.panelKey,
|
|
63
|
+
class: _normalizeClass(_ctx.n())
|
|
64
64
|
},
|
|
65
65
|
[
|
|
66
66
|
(_openBlock(true), _createElementBlock(
|
|
@@ -151,13 +151,19 @@ const __sfc__ = defineComponent({
|
|
|
151
151
|
componentProps: { type, range }
|
|
152
152
|
} = props;
|
|
153
153
|
if (range) {
|
|
154
|
-
if (!chooseRangeYear.length)
|
|
154
|
+
if (!chooseRangeYear.length) {
|
|
155
|
+
return false;
|
|
156
|
+
}
|
|
155
157
|
const isBeforeMax = dayjs(val).isSameOrBefore(dayjs(chooseRangeYear[1]), "year");
|
|
156
158
|
const isAfterMin = dayjs(val).isSameOrAfter(dayjs(chooseRangeYear[0]), "year");
|
|
157
159
|
return isBeforeMax && isAfterMin;
|
|
158
160
|
}
|
|
159
|
-
if (type === "year")
|
|
160
|
-
|
|
161
|
+
if (type === "year") {
|
|
162
|
+
return chooseYears.includes(val);
|
|
163
|
+
}
|
|
164
|
+
if (type === "month") {
|
|
165
|
+
return chooseMonths.some((value) => value.includes(val));
|
|
166
|
+
}
|
|
161
167
|
return chooseDays.some((value) => value.includes(val));
|
|
162
168
|
};
|
|
163
169
|
const inRange = (year) => {
|
|
@@ -174,30 +180,52 @@ const __sfc__ = defineComponent({
|
|
|
174
180
|
componentProps: { allowedDates, color, multiple, range }
|
|
175
181
|
} = props;
|
|
176
182
|
const yearExist = () => {
|
|
177
|
-
if (range || multiple)
|
|
183
|
+
if (range || multiple) {
|
|
184
|
+
return shouldChoose(year);
|
|
185
|
+
}
|
|
178
186
|
return chooseYear2 === year;
|
|
179
187
|
};
|
|
180
188
|
const computeDisabled = () => {
|
|
181
|
-
if (!inRange(year))
|
|
182
|
-
|
|
189
|
+
if (!inRange(year)) {
|
|
190
|
+
return true;
|
|
191
|
+
}
|
|
192
|
+
if (!allowedDates) {
|
|
193
|
+
return false;
|
|
194
|
+
}
|
|
183
195
|
return !allowedDates(year);
|
|
184
196
|
};
|
|
185
197
|
const disabled = computeDisabled();
|
|
186
198
|
const computeText = () => {
|
|
187
|
-
if (disabled)
|
|
188
|
-
|
|
199
|
+
if (disabled) {
|
|
200
|
+
return true;
|
|
201
|
+
}
|
|
202
|
+
if (range || multiple) {
|
|
203
|
+
return !shouldChoose(year);
|
|
204
|
+
}
|
|
189
205
|
return chooseYear2 !== year;
|
|
190
206
|
};
|
|
191
207
|
const computeOutline = () => {
|
|
192
|
-
if (!(currentYear === year && props.componentProps.showCurrent))
|
|
193
|
-
|
|
194
|
-
|
|
208
|
+
if (!(currentYear === year && props.componentProps.showCurrent)) {
|
|
209
|
+
return false;
|
|
210
|
+
}
|
|
211
|
+
if ((range || multiple) && disabled) {
|
|
212
|
+
return true;
|
|
213
|
+
}
|
|
214
|
+
if (range || multiple) {
|
|
215
|
+
return !shouldChoose(year);
|
|
216
|
+
}
|
|
195
217
|
return chooseYear2 !== currentYear;
|
|
196
218
|
};
|
|
197
219
|
const textColorOrCover = () => {
|
|
198
|
-
if (disabled)
|
|
199
|
-
|
|
200
|
-
|
|
220
|
+
if (disabled) {
|
|
221
|
+
return "";
|
|
222
|
+
}
|
|
223
|
+
if (computeOutline()) {
|
|
224
|
+
return color != null ? color : "";
|
|
225
|
+
}
|
|
226
|
+
if (yearExist()) {
|
|
227
|
+
return "";
|
|
228
|
+
}
|
|
201
229
|
return `${nDate()}-color-cover`;
|
|
202
230
|
};
|
|
203
231
|
const isCover = textColorOrCover().startsWith(nDate());
|
|
@@ -213,7 +241,9 @@ const __sfc__ = defineComponent({
|
|
|
213
241
|
};
|
|
214
242
|
const chooseYear = (year, event) => {
|
|
215
243
|
const buttonEl = event.currentTarget;
|
|
216
|
-
if (buttonEl.classList.contains(n("button--disabled")))
|
|
244
|
+
if (buttonEl.classList.contains(n("button--disabled"))) {
|
|
245
|
+
return;
|
|
246
|
+
}
|
|
217
247
|
emit("choose-year", year);
|
|
218
248
|
};
|
|
219
249
|
const scrollToView = () => {
|
package/es/dialog/Dialog.mjs
CHANGED
|
@@ -14,15 +14,15 @@ var __spreadValues = (a, b) => {
|
|
|
14
14
|
}
|
|
15
15
|
return a;
|
|
16
16
|
};
|
|
17
|
-
import VarPopup from "../popup/index.mjs";
|
|
18
|
-
import VarButton from "../button/index.mjs";
|
|
19
|
-
import { props } from "./props.mjs";
|
|
20
17
|
import { defineComponent, ref, watch } from "vue";
|
|
18
|
+
import { call } from "@varlet/shared";
|
|
19
|
+
import VarButton from "../button/index.mjs";
|
|
21
20
|
import { t } from "../locale/index.mjs";
|
|
21
|
+
import { injectLocaleProvider } from "../locale-provider/provide.mjs";
|
|
22
|
+
import VarPopup from "../popup/index.mjs";
|
|
22
23
|
import { createNamespace } from "../utils/components.mjs";
|
|
23
24
|
import { toSizeUnit } from "../utils/elements.mjs";
|
|
24
|
-
import {
|
|
25
|
-
import { injectLocaleProvider } from "../locale-provider/provide.mjs";
|
|
25
|
+
import { props } from "./props.mjs";
|
|
26
26
|
const { name, n, classes } = createNamespace("dialog");
|
|
27
27
|
import { renderSlot as _renderSlot, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, normalizeClass as _normalizeClass, createElementVNode as _createElementVNode, normalizeStyle as _normalizeStyle, resolveComponent as _resolveComponent, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, mergeProps as _mergeProps } from "vue";
|
|
28
28
|
function __render__(_ctx, _cache) {
|
package/es/dialog/index.mjs
CHANGED
|
@@ -17,10 +17,10 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
import
|
|
21
|
-
import {
|
|
22
|
-
import { inBrowser, isString, call } from "@varlet/shared";
|
|
20
|
+
import { nextTick, reactive } from "vue";
|
|
21
|
+
import { call, inBrowser, isString } from "@varlet/shared";
|
|
23
22
|
import { mountInstance, withInstall, withPropsDefaultsSetter } from "../utils/components.mjs";
|
|
23
|
+
import VarDialog from "./Dialog.mjs";
|
|
24
24
|
import { props as dialogProps } from "./props.mjs";
|
|
25
25
|
let singletonOptions;
|
|
26
26
|
let defaultOptions = {};
|
package/es/dialog/props.mjs
CHANGED
|
@@ -14,8 +14,8 @@ var __spreadValues = (a, b) => {
|
|
|
14
14
|
}
|
|
15
15
|
return a;
|
|
16
16
|
};
|
|
17
|
-
import { defineListenerProp, pickProps } from "../utils/components.mjs";
|
|
18
17
|
import { popupProps } from "../popup/index.mjs";
|
|
18
|
+
import { defineListenerProp, pickProps } from "../utils/components.mjs";
|
|
19
19
|
const props = __spreadValues({
|
|
20
20
|
show: Boolean,
|
|
21
21
|
width: [Number, String],
|
package/es/divider/Divider.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent,
|
|
1
|
+
import { computed, defineComponent, onUpdated, ref } from "vue";
|
|
2
|
+
import { isBoolean, toNumber } from "@varlet/shared";
|
|
3
|
+
import { onSmartMounted } from "@varlet/use";
|
|
4
|
+
import { createNamespace } from "../utils/components.mjs";
|
|
2
5
|
import { toSizeUnit } from "../utils/elements.mjs";
|
|
3
|
-
import { toNumber, isBoolean } from "@varlet/shared";
|
|
4
6
|
import { props } from "./props.mjs";
|
|
5
|
-
import { createNamespace } from "../utils/components.mjs";
|
|
6
|
-
import { onSmartMounted } from "@varlet/use";
|
|
7
7
|
const { name, n, classes } = createNamespace("divider");
|
|
8
8
|
import { renderSlot as _renderSlot, toDisplayString as _toDisplayString, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, normalizeStyle as _normalizeStyle } from "vue";
|
|
9
9
|
function __render__(_ctx, _cache) {
|
package/es/divider/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import Divider from "./Divider.mjs";
|
|
2
1
|
import { withInstall, withPropsDefaultsSetter } from "../utils/components.mjs";
|
|
2
|
+
import Divider from "./Divider.mjs";
|
|
3
3
|
import { props as dividerProps } from "./props.mjs";
|
|
4
4
|
withInstall(Divider);
|
|
5
5
|
withPropsDefaultsSetter(Divider, dividerProps);
|
package/es/drag/Drag.mjs
CHANGED
|
@@ -17,32 +17,12 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
try {
|
|
24
|
-
step(generator.next(value));
|
|
25
|
-
} catch (e) {
|
|
26
|
-
reject(e);
|
|
27
|
-
}
|
|
28
|
-
};
|
|
29
|
-
var rejected = (value) => {
|
|
30
|
-
try {
|
|
31
|
-
step(generator.throw(value));
|
|
32
|
-
} catch (e) {
|
|
33
|
-
reject(e);
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
37
|
-
step((generator = generator.apply(__this, __arguments)).next());
|
|
38
|
-
});
|
|
39
|
-
};
|
|
40
|
-
import { defineComponent, ref, reactive, watch } from "vue";
|
|
41
|
-
import { props } from "./props.mjs";
|
|
20
|
+
import { defineComponent, reactive, ref, watch } from "vue";
|
|
21
|
+
import { call, clamp, getRect, preventDefault } from "@varlet/shared";
|
|
22
|
+
import { onSmartMounted, onWindowResize, useTouch } from "@varlet/use";
|
|
42
23
|
import { createNamespace, useTeleport } from "../utils/components.mjs";
|
|
43
24
|
import { toPxNum } from "../utils/elements.mjs";
|
|
44
|
-
import {
|
|
45
|
-
import { clamp, getRect, preventDefault, call } from "@varlet/shared";
|
|
25
|
+
import { props } from "./props.mjs";
|
|
46
26
|
const { name, n, classes } = createNamespace("drag");
|
|
47
27
|
import { renderSlot as _renderSlot, mergeProps as _mergeProps, createElementVNode as _createElementVNode, Teleport as _Teleport, openBlock as _openBlock, createBlock as _createBlock } from "vue";
|
|
48
28
|
function __render__(_ctx, _cache) {
|
|
@@ -57,13 +37,14 @@ function __render__(_ctx, _cache) {
|
|
|
57
37
|
class: _ctx.classes(_ctx.n(), _ctx.n("$--box"), [_ctx.enableTransition, _ctx.n("--transition")]),
|
|
58
38
|
style: {
|
|
59
39
|
"z-index": _ctx.zIndex
|
|
60
|
-
}
|
|
40
|
+
}
|
|
41
|
+
}, _ctx.getAttrs(), {
|
|
61
42
|
onTouchstart: _cache[0] || (_cache[0] = (...args) => _ctx.handleTouchstart && _ctx.handleTouchstart(...args)),
|
|
62
43
|
onTouchmove: _cache[1] || (_cache[1] = (...args) => _ctx.handleTouchmove && _ctx.handleTouchmove(...args)),
|
|
63
44
|
onTouchend: _cache[2] || (_cache[2] = (...args) => _ctx.handleTouchend && _ctx.handleTouchend(...args)),
|
|
64
45
|
onTouchcancel: _cache[3] || (_cache[3] = (...args) => _ctx.handleTouchend && _ctx.handleTouchend(...args)),
|
|
65
46
|
onClick: _cache[4] || (_cache[4] = (...args) => _ctx.handleClick && _ctx.handleClick(...args))
|
|
66
|
-
}
|
|
47
|
+
}),
|
|
67
48
|
[
|
|
68
49
|
_renderSlot(_ctx.$slots, "default")
|
|
69
50
|
],
|
|
@@ -104,22 +85,20 @@ const __sfc__ = defineComponent({
|
|
|
104
85
|
saveXY();
|
|
105
86
|
}
|
|
106
87
|
function handleTouchmove(event) {
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
clampToBoundary();
|
|
122
|
-
});
|
|
88
|
+
if (!touching.value || props2.disabled) {
|
|
89
|
+
return;
|
|
90
|
+
}
|
|
91
|
+
moveTouch(event);
|
|
92
|
+
preventDefault(event);
|
|
93
|
+
enableTransition.value = false;
|
|
94
|
+
dragged.value = true;
|
|
95
|
+
if (props2.direction.includes("x")) {
|
|
96
|
+
x.value += moveX.value;
|
|
97
|
+
}
|
|
98
|
+
if (props2.direction.includes("y")) {
|
|
99
|
+
y.value += moveY.value;
|
|
100
|
+
}
|
|
101
|
+
clampToBoundary();
|
|
123
102
|
}
|
|
124
103
|
function handleTouchend() {
|
|
125
104
|
if (props2.disabled) {
|
package/es/drag/index.mjs
CHANGED
package/es/ellipsis/Ellipsis.mjs
CHANGED
|
@@ -14,11 +14,11 @@ var __spreadValues = (a, b) => {
|
|
|
14
14
|
}
|
|
15
15
|
return a;
|
|
16
16
|
};
|
|
17
|
-
import VarTooltip from "../tooltip/index.mjs";
|
|
18
17
|
import { computed, defineComponent } from "vue";
|
|
18
|
+
import { useVModel } from "@varlet/use";
|
|
19
|
+
import VarTooltip from "../tooltip/index.mjs";
|
|
19
20
|
import { createNamespace } from "../utils/components.mjs";
|
|
20
21
|
import { props } from "./props.mjs";
|
|
21
|
-
import { useVModel } from "@varlet/use";
|
|
22
22
|
const { name, n, classes } = createNamespace("ellipsis");
|
|
23
23
|
import { renderSlot as _renderSlot, normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, createElementVNode as _createElementVNode, toDisplayString as _toDisplayString, openBlock as _openBlock, createElementBlock as _createElementBlock, resolveComponent as _resolveComponent, normalizeProps as _normalizeProps, guardReactiveProps as _guardReactiveProps, withCtx as _withCtx, createBlock as _createBlock } from "vue";
|
|
24
24
|
const _hoisted_1 = { key: 0 };
|
package/es/ellipsis/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import Ellipsis from "./Ellipsis.mjs";
|
|
2
1
|
import { withInstall, withPropsDefaultsSetter } from "../utils/components.mjs";
|
|
2
|
+
import Ellipsis from "./Ellipsis.mjs";
|
|
3
3
|
import { props as ellipsisProps } from "./props.mjs";
|
|
4
4
|
withInstall(Ellipsis);
|
|
5
5
|
withPropsDefaultsSetter(Ellipsis, ellipsisProps);
|
package/es/fab/Fab.mjs
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { createVNode as _createVNode, vShow as _vShow, withDirectives as _withDirectives, mergeProps as _mergeProps } from "vue";
|
|
1
|
+
import { defineComponent, ref, Transition, watch, createVNode as _createVNode, vShow as _vShow, withDirectives as _withDirectives, mergeProps as _mergeProps } from "vue";
|
|
2
|
+
import { call, isBoolean } from "@varlet/shared";
|
|
3
|
+
import { useClickOutside, useVModel } from "@varlet/use";
|
|
2
4
|
import Button from "../button/index.mjs";
|
|
3
|
-
import Icon from "../icon/index.mjs";
|
|
4
5
|
import Drag from "../drag/index.mjs";
|
|
5
|
-
import
|
|
6
|
-
import { useClickOutside, useVModel } from "@varlet/use";
|
|
7
|
-
import { isBoolean, call } from "@varlet/shared";
|
|
6
|
+
import Icon from "../icon/index.mjs";
|
|
8
7
|
import { createNamespace, flatFragment } from "../utils/components.mjs";
|
|
9
8
|
import { toSizeUnit } from "../utils/elements.mjs";
|
|
10
9
|
import { props } from "./props.mjs";
|
package/es/fab/index.mjs
CHANGED
package/es/fab/props.mjs
CHANGED
|
@@ -18,14 +18,14 @@ var __async = (__this, __arguments, generator) => {
|
|
|
18
18
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
19
19
|
});
|
|
20
20
|
};
|
|
21
|
+
import { computed, defineComponent, nextTick, onUpdated, ref, watch } from "vue";
|
|
22
|
+
import { call, doubleRaf, getStyle, isEmpty } from "@varlet/shared";
|
|
23
|
+
import { onSmartMounted, onWindowResize } from "@varlet/use";
|
|
21
24
|
import VarIcon from "../icon/index.mjs";
|
|
22
|
-
import { defineComponent, ref, computed, nextTick, onUpdated, watch } from "vue";
|
|
23
|
-
import { props } from "./props.mjs";
|
|
24
|
-
import { isEmpty, getStyle, call, doubleRaf } from "@varlet/shared";
|
|
25
|
-
import { createNamespace } from "../utils/components.mjs";
|
|
26
|
-
import { onWindowResize, onSmartMounted } from "@varlet/use";
|
|
27
25
|
import { usePopup } from "../popup/provide.mjs";
|
|
28
26
|
import { useSwipeResizeDispatcher } from "../swipe/provide.mjs";
|
|
27
|
+
import { createNamespace } from "../utils/components.mjs";
|
|
28
|
+
import { props } from "./props.mjs";
|
|
29
29
|
const { name, n, classes } = createNamespace("field-decorator");
|
|
30
30
|
import { renderSlot as _renderSlot, normalizeClass as _normalizeClass, createElementVNode as _createElementVNode, toDisplayString as _toDisplayString, normalizeStyle as _normalizeStyle, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, resolveComponent as _resolveComponent, createVNode as _createVNode, Teleport as _Teleport, createBlock as _createBlock, Fragment as _Fragment } from "vue";
|
|
31
31
|
const _hoisted_1 = ["for"];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import FieldDecorator from "./FieldDecorator.mjs";
|
|
2
1
|
import { withInstall, withPropsDefaultsSetter } from "../utils/components.mjs";
|
|
2
|
+
import FieldDecorator from "./FieldDecorator.mjs";
|
|
3
3
|
import { props as fieldDecoratorProps } from "./props.mjs";
|
|
4
4
|
withInstall(FieldDecorator);
|
|
5
5
|
withPropsDefaultsSetter(FieldDecorator, fieldDecoratorProps);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent, ref,
|
|
2
|
-
import {
|
|
1
|
+
import { computed, defineComponent, ref, watch } from "vue";
|
|
2
|
+
import { call, isEmpty, preventDefault, toNumber } from "@varlet/shared";
|
|
3
|
+
import { useTouch, useVModel, useWindowSize } from "@varlet/use";
|
|
3
4
|
import { useLock } from "../context/lock.mjs";
|
|
4
5
|
import { createNamespace, formatElevation, useTeleport } from "../utils/components.mjs";
|
|
5
6
|
import { toSizeUnit } from "../utils/elements.mjs";
|
|
6
|
-
import {
|
|
7
|
-
import { toNumber, isEmpty, preventDefault, call } from "@varlet/shared";
|
|
7
|
+
import { props } from "./props.mjs";
|
|
8
8
|
const { name, n, classes } = createNamespace("floating-panel");
|
|
9
9
|
const DEFAULT_START_ANCHOR = 100;
|
|
10
10
|
const OVERFLOW_REDUCE_RATIO = 0.2;
|
|
@@ -55,8 +55,8 @@ function __render__(_ctx, _cache) {
|
|
|
55
55
|
_createElementVNode(
|
|
56
56
|
"div",
|
|
57
57
|
{
|
|
58
|
-
|
|
59
|
-
|
|
58
|
+
ref: "contentRef",
|
|
59
|
+
class: _normalizeClass(_ctx.n("content"))
|
|
60
60
|
},
|
|
61
61
|
[
|
|
62
62
|
_renderSlot(_ctx.$slots, "default")
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import FloatingPanel from "./FloatingPanel.mjs";
|
|
2
1
|
import { withInstall, withPropsDefaultsSetter } from "../utils/components.mjs";
|
|
2
|
+
import FloatingPanel from "./FloatingPanel.mjs";
|
|
3
3
|
import { props as floatingPanelProps } from "./props.mjs";
|
|
4
4
|
withInstall(FloatingPanel);
|
|
5
5
|
withPropsDefaultsSetter(FloatingPanel, floatingPanelProps);
|
package/es/form/Form.mjs
CHANGED
|
@@ -18,13 +18,13 @@ var __async = (__this, __arguments, generator) => {
|
|
|
18
18
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
19
19
|
});
|
|
20
20
|
};
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import { useFormItems } from "./provide.mjs";
|
|
21
|
+
import { computed, defineComponent } from "vue";
|
|
22
|
+
import { call, find, preventDefault } from "@varlet/shared";
|
|
24
23
|
import { createNamespace } from "../utils/components.mjs";
|
|
25
|
-
import { find, preventDefault, call } from "@varlet/shared";
|
|
26
24
|
import { getParentScroller, getTop, scrollTo, toPxNum } from "../utils/elements.mjs";
|
|
27
25
|
import { linear } from "../utils/shared.mjs";
|
|
26
|
+
import { props } from "./props.mjs";
|
|
27
|
+
import { useFormItems } from "./provide.mjs";
|
|
28
28
|
const { name, n } = createNamespace("form");
|
|
29
29
|
import { renderSlot as _renderSlot, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
|
|
30
30
|
function __render__(_ctx, _cache) {
|
package/es/form/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import Form from "./Form.mjs";
|
|
2
1
|
import { useValidation, withInstall, withPropsDefaultsSetter } from "../utils/components.mjs";
|
|
3
|
-
import
|
|
2
|
+
import Form from "./Form.mjs";
|
|
4
3
|
import { props as formProps } from "./props.mjs";
|
|
4
|
+
import { useForm } from "./provide.mjs";
|
|
5
5
|
Form.useValidation = useValidation;
|
|
6
6
|
Form.useForm = useForm;
|
|
7
7
|
withInstall(Form);
|
package/es/form/provide.mjs
CHANGED
|
@@ -17,8 +17,8 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
import { useChildren, useParent } from "@varlet/use";
|
|
21
20
|
import { getCurrentInstance } from "vue";
|
|
21
|
+
import { useChildren, useParent } from "@varlet/use";
|
|
22
22
|
const FORM_BIND_FORM_ITEM_KEY = Symbol("FORM_BIND_FORM_ITEM_KEY");
|
|
23
23
|
function useForm() {
|
|
24
24
|
const { parentProvider, index, bindParent } = useParent(FORM_BIND_FORM_ITEM_KEY);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import FormDetails from "./FormDetails.mjs";
|
|
2
1
|
import { withInstall, withPropsDefaultsSetter } from "../utils/components.mjs";
|
|
2
|
+
import FormDetails from "./FormDetails.mjs";
|
|
3
3
|
import { props as formDetailsProps } from "./props.mjs";
|
|
4
4
|
withInstall(FormDetails);
|
|
5
5
|
withPropsDefaultsSetter(FormDetails, formDetailsProps);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { computed, defineComponent, h } from "vue";
|
|
2
|
-
import { props } from "./props.mjs";
|
|
3
|
-
import { createNamespace } from "../utils/components.mjs";
|
|
4
2
|
import { call } from "@varlet/shared";
|
|
3
|
+
import { createNamespace } from "../utils/components.mjs";
|
|
4
|
+
import { props } from "./props.mjs";
|
|
5
5
|
import { provideHighlighterProvider } from "./provide.mjs";
|
|
6
6
|
const { name, n } = createNamespace("highlighter-provider");
|
|
7
7
|
const __sfc__ = defineComponent({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import HighlighterProvider from "./HighlighterProvider.mjs";
|
|
2
1
|
import { withInstall, withPropsDefaultsSetter } from "../utils/components.mjs";
|
|
2
|
+
import HighlighterProvider from "./HighlighterProvider.mjs";
|
|
3
3
|
import { props as highlighterProviderProps } from "./props.mjs";
|
|
4
4
|
withInstall(HighlighterProvider);
|
|
5
5
|
withPropsDefaultsSetter(HighlighterProvider, highlighterProviderProps);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { keyInProvides } from "@varlet/use";
|
|
2
1
|
import { inject, provide } from "vue";
|
|
2
|
+
import { keyInProvides } from "@varlet/use";
|
|
3
3
|
const HIGHLIGHTER_PROVIDER_KEY = Symbol("HIGHLIGHTER_PROVIDER_KEY");
|
|
4
4
|
function provideHighlighterProvider(highlighterProvider) {
|
|
5
5
|
provide(HIGHLIGHTER_PROVIDER_KEY, highlighterProvider);
|
package/es/hover/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { camelize, inMobile, isFunction } from "@varlet/shared";
|
|
2
2
|
function shouldDisabled(arg) {
|
|
3
3
|
if (!arg) {
|
|
4
4
|
return false;
|
|
@@ -13,12 +13,17 @@ function shouldDisabled(arg) {
|
|
|
13
13
|
}
|
|
14
14
|
function getStyle(element) {
|
|
15
15
|
const style = element.getAttribute("style");
|
|
16
|
-
if (!style)
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
16
|
+
if (!style) {
|
|
17
|
+
return {};
|
|
18
|
+
}
|
|
19
|
+
return style.split(";").filter(Boolean).reduce(
|
|
20
|
+
(style2, item) => {
|
|
21
|
+
const [key, value] = item.split(":").map((item2) => item2.trim());
|
|
22
|
+
style2[camelize(key)] = value;
|
|
23
|
+
return style2;
|
|
24
|
+
},
|
|
25
|
+
{}
|
|
26
|
+
);
|
|
22
27
|
}
|
|
23
28
|
function updateRawStyle(element) {
|
|
24
29
|
const { value } = element._hover;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent } from "vue";
|
|
2
|
-
import { props } from "./props.mjs";
|
|
3
|
-
import { createNamespace } from "../utils/components.mjs";
|
|
4
2
|
import { inMobile } from "@varlet/shared";
|
|
3
|
+
import { createNamespace } from "../utils/components.mjs";
|
|
4
|
+
import { props } from "./props.mjs";
|
|
5
5
|
const { name, n, classes } = createNamespace("hover-overlay");
|
|
6
6
|
import { normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
|
|
7
7
|
function __render__(_ctx, _cache) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ref } from "vue";
|
|
2
2
|
import { withInstall, withPropsDefaultsSetter } from "../utils/components.mjs";
|
|
3
|
+
import HoverOverlay from "./HoverOverlay.mjs";
|
|
3
4
|
import { props as hoverOverlayProps } from "./props.mjs";
|
|
4
|
-
import { ref } from "vue";
|
|
5
5
|
withInstall(HoverOverlay);
|
|
6
6
|
withPropsDefaultsSetter(HoverOverlay, hoverOverlayProps);
|
|
7
7
|
function useHoverOverlay() {
|
package/es/icon/Icon.mjs
CHANGED
|
@@ -18,11 +18,11 @@ var __async = (__this, __arguments, generator) => {
|
|
|
18
18
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
19
19
|
});
|
|
20
20
|
};
|
|
21
|
-
import { defineComponent,
|
|
21
|
+
import { defineComponent, nextTick, ref, watch } from "vue";
|
|
22
22
|
import { isURL, toNumber } from "@varlet/shared";
|
|
23
|
-
import { props } from "./props.mjs";
|
|
24
|
-
import { toSizeUnit } from "../utils/elements.mjs";
|
|
25
23
|
import { createNamespace } from "../utils/components.mjs";
|
|
24
|
+
import { toSizeUnit } from "../utils/elements.mjs";
|
|
25
|
+
import { props } from "./props.mjs";
|
|
26
26
|
const { name, n, classes } = createNamespace("icon");
|
|
27
27
|
import { resolveDynamicComponent as _resolveDynamicComponent, normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, openBlock as _openBlock, createBlock as _createBlock } from "vue";
|
|
28
28
|
function __render__(_ctx, _cache) {
|
package/es/icon/index.mjs
CHANGED
package/es/image/Image.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { defineComponent, ref, watch } from "vue";
|
|
2
|
+
import { call } from "@varlet/shared";
|
|
2
3
|
import Lazy from "../lazy/index.mjs";
|
|
3
|
-
import
|
|
4
|
-
import { props } from "./props.mjs";
|
|
5
|
-
import { toSizeUnit } from "../utils/elements.mjs";
|
|
4
|
+
import Ripple from "../ripple/index.mjs";
|
|
6
5
|
import { createNamespace } from "../utils/components.mjs";
|
|
7
|
-
import {
|
|
6
|
+
import { toSizeUnit } from "../utils/elements.mjs";
|
|
7
|
+
import { props } from "./props.mjs";
|
|
8
8
|
const { name, n, classes } = createNamespace("image");
|
|
9
9
|
import { normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, resolveDirective as _resolveDirective, withDirectives as _withDirectives, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, renderSlot as _renderSlot } from "vue";
|
|
10
10
|
const _hoisted_1 = ["alt", "title", "referrerpolicy", "lazy-loading", "lazy-error"];
|
package/es/image/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import Image from "./Image.mjs";
|
|
2
1
|
import { withInstall, withPropsDefaultsSetter } from "../utils/components.mjs";
|
|
2
|
+
import Image from "./Image.mjs";
|
|
3
3
|
import { props as imageProps } from "./props.mjs";
|
|
4
4
|
withInstall(Image);
|
|
5
5
|
withPropsDefaultsSetter(Image, imageProps);
|