vue-amazing-ui 2.2.11 → 2.2.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.iife.js +144 -69
- package/dist/index.js +4925 -4804
- package/dist/index.umd.cjs +139 -64
- package/dist/style.css +1 -1
- package/es/backtop/BackTop.css +1 -1
- package/es/backtop/BackTop.vue.js +1 -1
- package/es/backtop/BackTop.vue2.js +7 -7
- package/es/button/Button.css +1 -1
- package/es/button/Button.vue.js +2 -2
- package/es/button/Button.vue2.js +34 -34
- package/es/calendar/Calendar.css +1 -1
- package/es/calendar/Calendar.d.ts +6 -0
- package/es/calendar/Calendar.vue.js +2 -2
- package/es/calendar/Calendar.vue2.js +130 -126
- package/es/calendar/index.d.ts +9 -0
- package/es/collapse/Collapse.css +1 -1
- package/es/collapse/Collapse.vue.js +2 -2
- package/es/colorpicker/ColorPicker.css +1 -1
- package/es/colorpicker/ColorPicker.d.ts +4 -0
- package/es/colorpicker/ColorPicker.vue.js +2 -2
- package/es/colorpicker/ColorPicker.vue2.js +244 -234
- package/es/colorpicker/index.d.ts +6 -0
- package/es/floatbutton/FloatButton.css +1 -1
- package/es/floatbutton/FloatButton.vue.js +2 -2
- package/es/floatbutton/FloatButton.vue2.js +5 -3
- package/es/image/Image.css +1 -1
- package/es/image/Image.vue.js +1 -1
- package/es/image/Image.vue2.js +25 -21
- package/es/input/Input.css +1 -1
- package/es/input/Input.vue.js +2 -2
- package/es/input/Input.vue2.js +35 -29
- package/es/inputnumber/InputNumber.css +1 -1
- package/es/inputnumber/InputNumber.vue.js +2 -2
- package/es/inputnumber/InputNumber.vue2.js +41 -35
- package/es/inputsearch/InputSearch.css +1 -1
- package/es/inputsearch/InputSearch.vue.js +1 -1
- package/es/inputsearch/InputSearch.vue2.js +31 -25
- package/es/message/Message.css +1 -1
- package/es/message/Message.vue.js +2 -2
- package/es/message/Message.vue2.js +38 -32
- package/es/modal/Modal.css +1 -1
- package/es/modal/Modal.vue.js +1 -1
- package/es/modal/Modal.vue2.js +39 -29
- package/es/notification/Notification.css +1 -1
- package/es/notification/Notification.vue.js +1 -1
- package/es/notification/Notification.vue2.js +36 -27
- package/es/pagination/Pagination.css +1 -1
- package/es/pagination/Pagination.d.ts +5 -0
- package/es/pagination/Pagination.vue.js +1 -1
- package/es/pagination/Pagination.vue2.js +123 -103
- package/es/pagination/index.d.ts +7 -0
- package/es/popconfirm/Popconfirm.css +1 -1
- package/es/popconfirm/Popconfirm.vue.js +1 -1
- package/es/popconfirm/Popconfirm.vue2.js +20 -14
- package/es/progress/Progress.css +1 -1
- package/es/progress/Progress.vue.js +2 -2
- package/es/progress/Progress.vue2.js +13 -12
- package/es/qrcode/QRCode.css +1 -1
- package/es/qrcode/QRCode.vue.js +2 -2
- package/es/rate/Rate.css +1 -1
- package/es/rate/Rate.vue.js +2 -2
- package/es/rate/Rate.vue2.js +1 -1
- package/es/scrollbar/Scrollbar.css +1 -1
- package/es/scrollbar/Scrollbar.d.ts +1 -7
- package/es/scrollbar/Scrollbar.vue.js +2 -2
- package/es/scrollbar/index.d.ts +3 -21
- package/es/select/Select.css +1 -1
- package/es/select/Select.d.ts +2 -14
- package/es/select/Select.vue.js +2 -2
- package/es/select/Select.vue2.js +91 -82
- package/es/select/index.d.ts +2 -14
- package/es/slider/Slider.css +1 -1
- package/es/slider/Slider.vue.js +2 -2
- package/es/slider/Slider.vue2.js +18 -18
- package/es/spin/Spin.css +1 -1
- package/es/spin/Spin.vue.js +2 -2
- package/es/spin/Spin.vue2.js +32 -32
- package/es/steps/Steps.css +1 -1
- package/es/steps/Steps.vue.js +2 -2
- package/es/steps/Steps.vue2.js +22 -16
- package/es/style/global.css +1 -1
- package/es/switch/Switch.css +1 -1
- package/es/switch/Switch.vue.js +2 -2
- package/es/switch/Switch.vue2.js +19 -15
- package/es/table/Table.d.ts +4 -28
- package/es/table/index.d.ts +2 -14
- package/es/tabs/Tabs.css +1 -1
- package/es/tabs/Tabs.vue.js +2 -2
- package/es/tabs/Tabs.vue2.js +14 -13
- package/es/textarea/Textarea.css +1 -1
- package/es/textarea/Textarea.vue.js +4 -4
- package/es/textarea/Textarea.vue2.js +41 -35
- package/es/textscroll/TextScroll.css +1 -1
- package/es/textscroll/TextScroll.vue.js +1 -1
- package/es/textscroll/TextScroll.vue2.js +71 -71
- package/es/upload/Upload.css +1 -1
- package/es/upload/Upload.vue.js +1 -1
- package/es/upload/Upload.vue2.js +35 -30
- package/lib/backtop/BackTop.css +1 -1
- package/lib/backtop/BackTop.vue.cjs +1 -1
- package/lib/backtop/BackTop.vue2.cjs +1 -1
- package/lib/button/Button.css +1 -1
- package/lib/button/Button.vue.cjs +1 -1
- package/lib/button/Button.vue2.cjs +11 -11
- package/lib/calendar/Calendar.css +1 -1
- package/lib/calendar/Calendar.d.ts +6 -0
- package/lib/calendar/Calendar.vue.cjs +1 -1
- package/lib/calendar/Calendar.vue2.cjs +5 -1
- package/lib/calendar/index.d.ts +9 -0
- package/lib/collapse/Collapse.css +1 -1
- package/lib/collapse/Collapse.vue.cjs +1 -1
- package/lib/colorpicker/ColorPicker.css +1 -1
- package/lib/colorpicker/ColorPicker.d.ts +4 -0
- package/lib/colorpicker/ColorPicker.vue.cjs +1 -1
- package/lib/colorpicker/ColorPicker.vue2.cjs +10 -3
- package/lib/colorpicker/index.d.ts +6 -0
- package/lib/floatbutton/FloatButton.css +1 -1
- package/lib/floatbutton/FloatButton.vue.cjs +1 -1
- package/lib/floatbutton/FloatButton.vue2.cjs +4 -2
- package/lib/image/Image.css +1 -1
- package/lib/image/Image.vue.cjs +1 -1
- package/lib/image/Image.vue2.cjs +1 -1
- package/lib/input/Input.css +1 -1
- package/lib/input/Input.vue.cjs +1 -1
- package/lib/input/Input.vue2.cjs +6 -1
- package/lib/inputnumber/InputNumber.css +1 -1
- package/lib/inputnumber/InputNumber.vue.cjs +1 -1
- package/lib/inputnumber/InputNumber.vue2.cjs +7 -1
- package/lib/inputsearch/InputSearch.css +1 -1
- package/lib/inputsearch/InputSearch.vue.cjs +1 -1
- package/lib/inputsearch/InputSearch.vue2.cjs +6 -1
- package/lib/message/Message.css +1 -1
- package/lib/message/Message.vue.cjs +1 -1
- package/lib/message/Message.vue2.cjs +7 -1
- package/lib/modal/Modal.css +1 -1
- package/lib/modal/Modal.vue.cjs +1 -1
- package/lib/modal/Modal.vue2.cjs +8 -1
- package/lib/notification/Notification.css +1 -1
- package/lib/notification/Notification.vue.cjs +1 -1
- package/lib/notification/Notification.vue2.cjs +6 -1
- package/lib/pagination/Pagination.css +1 -1
- package/lib/pagination/Pagination.d.ts +5 -0
- package/lib/pagination/Pagination.vue.cjs +1 -1
- package/lib/pagination/Pagination.vue2.cjs +1 -1
- package/lib/pagination/index.d.ts +7 -0
- package/lib/popconfirm/Popconfirm.css +1 -1
- package/lib/popconfirm/Popconfirm.vue.cjs +1 -1
- package/lib/popconfirm/Popconfirm.vue2.cjs +6 -1
- package/lib/progress/Progress.css +1 -1
- package/lib/progress/Progress.vue.cjs +1 -1
- package/lib/progress/Progress.vue2.cjs +5 -4
- package/lib/qrcode/QRCode.css +1 -1
- package/lib/qrcode/QRCode.vue.cjs +1 -1
- package/lib/rate/Rate.css +1 -1
- package/lib/rate/Rate.vue.cjs +1 -1
- package/lib/rate/Rate.vue2.cjs +1 -1
- package/lib/scrollbar/Scrollbar.css +1 -1
- package/lib/scrollbar/Scrollbar.d.ts +1 -7
- package/lib/scrollbar/Scrollbar.vue.cjs +1 -1
- package/lib/scrollbar/index.d.ts +3 -21
- package/lib/select/Select.css +1 -1
- package/lib/select/Select.d.ts +2 -14
- package/lib/select/Select.vue.cjs +1 -1
- package/lib/select/Select.vue2.cjs +8 -1
- package/lib/select/index.d.ts +2 -14
- package/lib/slider/Slider.css +1 -1
- package/lib/slider/Slider.vue.cjs +1 -1
- package/lib/slider/Slider.vue2.cjs +20 -20
- package/lib/spin/Spin.css +1 -1
- package/lib/spin/Spin.vue.cjs +1 -1
- package/lib/spin/Spin.vue2.cjs +2 -2
- package/lib/steps/Steps.css +1 -1
- package/lib/steps/Steps.vue.cjs +1 -1
- package/lib/steps/Steps.vue2.cjs +7 -1
- package/lib/style/global.css +1 -1
- package/lib/switch/Switch.css +1 -1
- package/lib/switch/Switch.vue.cjs +1 -1
- package/lib/switch/Switch.vue2.cjs +5 -1
- package/lib/table/Table.d.ts +4 -28
- package/lib/table/index.d.ts +2 -14
- package/lib/tabs/Tabs.css +1 -1
- package/lib/tabs/Tabs.vue.cjs +1 -1
- package/lib/tabs/Tabs.vue2.cjs +1 -1
- package/lib/textarea/Textarea.css +1 -1
- package/lib/textarea/Textarea.vue.cjs +1 -1
- package/lib/textarea/Textarea.vue2.cjs +6 -1
- package/lib/textscroll/TextScroll.css +1 -1
- package/lib/textscroll/TextScroll.vue.cjs +1 -1
- package/lib/textscroll/TextScroll.vue2.cjs +18 -18
- package/lib/upload/Upload.css +1 -1
- package/lib/upload/Upload.vue.cjs +1 -1
- package/lib/upload/Upload.vue2.cjs +1 -1
- package/package.json +3 -2
|
@@ -15,9 +15,11 @@ declare const _default: {
|
|
|
15
15
|
footer: string;
|
|
16
16
|
label: (color: string) => string;
|
|
17
17
|
actions: import('./ColorPicker').ColorPickerAction[];
|
|
18
|
+
width: string | number;
|
|
18
19
|
tooltipStyle: import('vue').CSSProperties;
|
|
19
20
|
value: string;
|
|
20
21
|
disabled: boolean;
|
|
22
|
+
inputProps: object;
|
|
21
23
|
showAlpha: boolean;
|
|
22
24
|
showPreview: boolean;
|
|
23
25
|
modes: import('./ColorPicker').ColorPickerMode[];
|
|
@@ -171,9 +173,11 @@ declare const _default: {
|
|
|
171
173
|
footer: string;
|
|
172
174
|
label: (color: string) => string;
|
|
173
175
|
actions: import('./ColorPicker').ColorPickerAction[];
|
|
176
|
+
width: string | number;
|
|
174
177
|
tooltipStyle: import('vue').CSSProperties;
|
|
175
178
|
value: string;
|
|
176
179
|
disabled: boolean;
|
|
180
|
+
inputProps: object;
|
|
177
181
|
showAlpha: boolean;
|
|
178
182
|
showPreview: boolean;
|
|
179
183
|
modes: import('./ColorPicker').ColorPickerMode[];
|
|
@@ -197,9 +201,11 @@ declare const _default: {
|
|
|
197
201
|
footer: string;
|
|
198
202
|
label: (color: string) => string;
|
|
199
203
|
actions: import('./ColorPicker').ColorPickerAction[];
|
|
204
|
+
width: string | number;
|
|
200
205
|
tooltipStyle: import('vue').CSSProperties;
|
|
201
206
|
value: string;
|
|
202
207
|
disabled: boolean;
|
|
208
|
+
inputProps: object;
|
|
203
209
|
showAlpha: boolean;
|
|
204
210
|
showPreview: boolean;
|
|
205
211
|
modes: import('./ColorPicker').ColorPickerMode[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.fade-move[data-v-
|
|
1
|
+
.fade-move[data-v-0d09ce57],.fade-enter-active[data-v-0d09ce57],.fade-leave-active[data-v-0d09ce57]{transition:transform .3s cubic-bezier(.4,0,.2,1),opacity .3s cubic-bezier(.4,0,.2,1)}.fade-enter-from[data-v-0d09ce57],.fade-leave-to[data-v-0d09ce57]{transform:scale(.75);opacity:0}.fade-leave-active[data-v-0d09ce57]{position:absolute}.move-enter-active[data-v-0d09ce57],.move-leave-active[data-v-0d09ce57]{transform-origin:0 0;transition:all .3s cubic-bezier(.78,.14,.15,.86)}.move-leave-active[data-v-0d09ce57]{pointer-events:none}.move-enter-from[data-v-0d09ce57],.move-leave-to[data-v-0d09ce57]{transform:translate3d(0,var(--float-btn-height),0);transform-origin:0 0;opacity:0}.m-float-btn[data-v-0d09ce57]{position:fixed;left:var(--float-btn-left);right:var(--float-btn-right);top:var(--float-btn-top);bottom:var(--float-btn-bottom);z-index:var(--float-btn-z-index);font-size:14px;color:#000000e0;line-height:1.57142857;display:inline-block;width:var(--float-btn-width);height:var(--float-btn-height);cursor:pointer;outline:none;box-shadow:0 6px 16px #00000014,0 3px 6px -4px #0000001f,0 9px 28px 8px #0000000d}.m-float-btn .float-btn-tooltip[data-v-0d09ce57],.m-float-btn .float-btn-tooltip[data-v-0d09ce57] .tooltip-content{width:100%;height:100%}.m-float-btn .float-btn-tooltip[data-v-0d09ce57] .tooltip-content .m-badge{vertical-align:top;width:100%;height:100%}.m-float-btn .float-btn-tooltip[data-v-0d09ce57] .tooltip-content .m-badge .m-badge-value:not(.only-dot){transform:translate(0);transform-origin:center;top:-6px;right:-6px}.m-float-btn .float-btn-body[data-v-0d09ce57]{position:relative;width:100%;height:100%;display:flex;justify-content:center;align-items:center;transition:all .2s}.m-float-btn .float-btn-body .float-btn-content[data-v-0d09ce57]{overflow:hidden;text-align:center;min-height:var(--float-btn-height);display:flex;flex-direction:column;justify-content:center;align-items:center;padding:2px 4px}.m-float-btn .float-btn-body .float-btn-content .float-btn-icon[data-v-0d09ce57]{font-size:18px;line-height:1}.m-float-btn .float-btn-body .float-btn-content .float-btn-icon .close-svg[data-v-0d09ce57]{display:inline-block;vertical-align:bottom}.m-float-btn .float-btn-body .float-btn-content .float-btn-icon[data-v-0d09ce57] svg{fill:currentColor}.m-float-btn .float-btn-body .float-btn-content .float-btn-icon[data-v-0d09ce57] img{vertical-align:bottom}.m-float-btn .float-btn-menu[data-v-0d09ce57]{position:absolute;bottom:100%;display:block;z-index:-1}.m-float-btn .float-btn-menu .m-float-btn[data-v-0d09ce57]{position:static}.m-float-btn .float-btn-menu[data-v-0d09ce57]>*{margin-bottom:16px}.float-btn-default[data-v-0d09ce57]{background-color:#fff;transition:background-color .2s}.float-btn-default>.float-btn-tooltip .float-btn-body[data-v-0d09ce57]{background-color:#fff;transition:background-color .2s}.float-btn-default>.float-btn-tooltip .float-btn-body[data-v-0d09ce57]:hover{background-color:#0000000f}.float-btn-default>.float-btn-tooltip .float-btn-body .float-btn-content .float-btn-icon[data-v-0d09ce57]{color:#000000e0}.float-btn-default>.float-btn-tooltip .float-btn-body .float-btn-content .float-btn-description[data-v-0d09ce57]{display:flex;align-items:center;line-height:16px;color:#000000e0;font-size:12px}.float-btn-primary[data-v-0d09ce57]{background-color:var(--float-btn-primary-color)}.float-btn-primary>.float-btn-tooltip .float-btn-body[data-v-0d09ce57]{background-color:var(--float-btn-primary-color);transition:background-color .2s}.float-btn-primary>.float-btn-tooltip .float-btn-body[data-v-0d09ce57]:hover{background-color:var(--float-btn-primary-color-hover)}.float-btn-primary>.float-btn-tooltip .float-btn-body .float-btn-content .float-btn-icon[data-v-0d09ce57]{color:#fff}.float-btn-primary>.float-btn-tooltip .float-btn-body .float-btn-description[data-v-0d09ce57]{display:flex;align-items:center;line-height:16px;color:#fff;font-size:12px}.float-btn-circle[data-v-0d09ce57]{border-radius:50%}.float-btn-circle[data-v-0d09ce57] .m-badge .only-dot{top:5.85786438px;right:5.85786438px}.float-btn-circle>.float-btn-tooltip .float-btn-body[data-v-0d09ce57]{border-radius:50%}.float-btn-square[data-v-0d09ce57]{height:auto;min-height:var(--float-btn-height);border-radius:8px}.float-btn-square[data-v-0d09ce57] .m-badge .only-dot{top:2.34314575px;right:2.34314575px}.float-btn-square>.float-btn-tooltip .float-btn-body[data-v-0d09ce57]{height:auto;border-radius:8px}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./FloatButton.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-0d09ce57"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as N, ref as V, computed as o, watch as I, createBlock as h, openBlock as i, resolveDynamicComponent as v, normalizeStyle as R, normalizeClass as F, withCtx as r, createVNode as s, withDirectives as H, unref as g, mergeProps as W, createSlots as j, normalizeProps as q, guardReactiveProps as A, createElementVNode as u, createElementBlock as d, createCommentVNode as p, Transition as b, renderSlot as f, createTextVNode as
|
|
1
|
+
import { defineComponent as N, ref as V, computed as o, watch as I, createBlock as h, openBlock as i, resolveDynamicComponent as v, normalizeStyle as R, normalizeClass as F, withCtx as r, createVNode as s, withDirectives as H, unref as g, mergeProps as W, createSlots as j, normalizeProps as q, guardReactiveProps as A, createElementVNode as u, createElementBlock as d, createCommentVNode as p, Transition as b, renderSlot as f, createTextVNode as y, toDisplayString as $, vShow as G } from "vue";
|
|
2
2
|
import J from "../tooltip/index.js";
|
|
3
3
|
import K from "../badge/index.js";
|
|
4
4
|
import { useSlotsExist as O } from "../utils/index.js";
|
|
@@ -60,6 +60,8 @@ const Q = { class: "float-btn-body" }, U = { class: "float-btn-content" }, X = {
|
|
|
60
60
|
--float-btn-top: ${D.value};
|
|
61
61
|
--float-btn-bottom: ${E.value};
|
|
62
62
|
--float-btn-z-index: ${e.zIndex};
|
|
63
|
+
--float-btn-primary-color: #1677ff;
|
|
64
|
+
--float-btn-primary-color-hover: #4096ff;
|
|
63
65
|
`),
|
|
64
66
|
href: e.href,
|
|
65
67
|
target: e.target,
|
|
@@ -89,7 +91,7 @@ const Q = { class: "float-btn-body" }, U = { class: "float-btn-content" }, X = {
|
|
|
89
91
|
])) : p("", !0),
|
|
90
92
|
C.value ? (i(), d("div", Z, [
|
|
91
93
|
f(e.$slots, "description", {}, () => [
|
|
92
|
-
$(
|
|
94
|
+
y($(e.description), 1)
|
|
93
95
|
], !0)
|
|
94
96
|
])) : p("", !0)
|
|
95
97
|
])
|
|
@@ -104,7 +106,7 @@ const Q = { class: "float-btn-body" }, U = { class: "float-btn-content" }, X = {
|
|
|
104
106
|
name: "tooltip",
|
|
105
107
|
fn: r(() => [
|
|
106
108
|
f(e.$slots, "tooltip", {}, () => [
|
|
107
|
-
$(
|
|
109
|
+
y($(e.tooltip), 1)
|
|
108
110
|
], !0)
|
|
109
111
|
]),
|
|
110
112
|
key: "0"
|
package/es/image/Image.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.fade-enter-active[data-v-
|
|
1
|
+
.fade-enter-active[data-v-448d5720],.fade-leave-active[data-v-448d5720]{transition:opacity .2s linear}.fade-enter-from[data-v-448d5720],.fade-leave-to[data-v-448d5720]{opacity:0}.zoom-enter[data-v-448d5720]{transform:none;opacity:0;animation-duration:.3s;animation-fill-mode:both;animation-timing-function:cubic-bezier(.08,.82,.17,1);animation-play-state:paused}.zoom-enter-active[data-v-448d5720]{animation-name:zoomIn-448d5720;animation-play-state:running}@keyframes zoomIn-448d5720{0%{transform:scale(.2);opacity:0}to{transform:scale(1);opacity:1}}.zoom-leave[data-v-448d5720]{animation-duration:.2s;animation-fill-mode:both;animation-play-state:paused;animation-timing-function:cubic-bezier(.78,.14,.15,.86)}.zoom-leave-active[data-v-448d5720]{animation-name:zoomOut-448d5720;animation-play-state:running;pointer-events:none}@keyframes zoomOut-448d5720{0%{transform:scale(1);opacity:1}to{transform:scale(.2);opacity:0}}.m-image[data-v-448d5720]{display:inline-block}.m-image .image-hover-mask:hover .image-mask[data-v-448d5720]{opacity:1;pointer-events:auto}.m-image .image-wrap[data-v-448d5720]{position:relative;display:inline-block;vertical-align:top;border-radius:8px;overflow:hidden}.m-image .image-wrap .image-item[data-v-448d5720]{display:inline-block;width:100%;height:100%;vertical-align:bottom}.m-image .image-wrap .image-mask[data-v-448d5720]{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;color:#fff;background:#00000080;cursor:pointer;opacity:0;pointer-events:none;transition:opacity .3s}.m-image .image-wrap .image-mask .image-mask-info[data-v-448d5720]{display:inline-flex;align-items:center;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;padding:0 4px}.m-image .image-wrap .image-mask .image-mask-info .eye-svg[data-v-448d5720]{margin-right:4px;font-size:14px;color:#fff;fill:currentColor}.m-image .image-wrap .image-mask .image-mask-info .mask-pre[data-v-448d5720]{display:inline-block;color:#fff}.m-image .image-bordered[data-v-448d5720]{border:1px solid #d9d9d9}.m-image .preview-mask[data-v-448d5720]{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1000;height:100%;background-color:#00000073}.m-image .preview-wrap[data-v-448d5720]{position:fixed;top:0;left:0;bottom:0;right:0;overflow:auto;outline:none;z-index:1080;height:100%;text-align:center}.m-image .preview-wrap .preview-body[data-v-448d5720]{position:absolute;top:0;right:0;bottom:0;left:0;overflow:hidden;pointer-events:none}.m-image .preview-wrap .preview-body .preview-operations[data-v-448d5720]{position:fixed;width:100%;z-index:9;display:flex;flex-direction:row-reverse;align-items:center;background:#0000001a;height:42px;pointer-events:auto}.m-image .preview-wrap .preview-body .preview-operations .preview-name[data-v-448d5720]{position:absolute;left:12px;font-size:14px;color:#fff;line-height:1.57;max-width:calc(50% - 60px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:color .3s}.m-image .preview-wrap .preview-body .preview-operations .preview-name[data-v-448d5720]:hover{color:var(--image-primary-color)}.m-image .preview-wrap .preview-body .preview-operations .preview-progress[data-v-448d5720]{position:absolute;left:50%;transform:translate(-50%);font-size:14px;color:#fff;line-height:1.57}.m-image .preview-wrap .preview-body .preview-operations .preview-operation[data-v-448d5720]{display:flex;justify-content:center;align-items:center;width:42px;height:42px;padding:12px;border-radius:8px;cursor:pointer;transition:all .3s}.m-image .preview-wrap .preview-body .preview-operations .preview-operation[data-v-448d5720]:not(:last-child){margin-left:12px}.m-image .preview-wrap .preview-body .preview-operations .preview-operation[data-v-448d5720]:hover{background:#00000040}.m-image .preview-wrap .preview-body .preview-operations .preview-operation .icon-svg[data-v-448d5720]{font-size:18px;color:#fff;fill:currentColor}.m-image .preview-wrap .preview-body .preview-operations .operation-disabled[data-v-448d5720]{color:#ffffff40;pointer-events:none}.m-image .preview-wrap .preview-body .preview-operations .operation-disabled .icon-svg[data-v-448d5720]{color:#ffffff40}.m-image .preview-wrap .preview-body .preview-image-wrap[data-v-448d5720]{position:absolute;z-index:3;top:0;right:0;bottom:0;left:0;transition:transform var(--drag-transition-duration) cubic-bezier(.215,.61,.355,1) 0s;display:flex;justify-content:center;align-items:center}.m-image .preview-wrap .preview-body .preview-image-wrap .preview-image[data-v-448d5720]{display:inline-block;vertical-align:middle;max-width:100%;max-height:100vh;cursor:grab;transition:transform .3s cubic-bezier(.215,.61,.355,1) 0s;-webkit-user-select:none;user-select:none;pointer-events:auto}.m-image .preview-wrap .preview-body .switch-left[data-v-448d5720]{left:12px;position:fixed;top:50%;z-index:1081;display:flex;align-items:center;justify-content:center;width:40px;height:40px;margin-top:-20px;color:#fff;background:#0000001a;border-radius:50%;transform:translateY(-50%);cursor:pointer;transition:all .3s;pointer-events:auto;-webkit-user-select:none;user-select:none}.m-image .preview-wrap .preview-body .switch-left[data-v-448d5720]:hover{background:#0003}.m-image .preview-wrap .preview-body .switch-left .switch-svg[data-v-448d5720]{font-size:18px;color:#fff;fill:currentColor}.m-image .preview-wrap .preview-body .switch-right[data-v-448d5720]{right:12px;position:fixed;top:50%;z-index:1081;display:flex;align-items:center;justify-content:center;width:40px;height:40px;margin-top:-20px;color:#fff;background:#0000001a;border-radius:50%;transform:translateY(-50%);cursor:pointer;transition:all .3s;pointer-events:auto}.m-image .preview-wrap .preview-body .switch-right[data-v-448d5720]:hover{background:#0003}.m-image .preview-wrap .preview-body .switch-right .switch-svg[data-v-448d5720]{font-size:18px;color:#fff;fill:currentColor}.m-image .preview-wrap .preview-body .switch-disabled[data-v-448d5720]{color:#ffffff40;background:transparent;cursor:not-allowed}.m-image .preview-wrap .preview-body .switch-disabled[data-v-448d5720]:hover{background:transparent}.m-image .preview-wrap .preview-body .switch-disabled .switch-svg[data-v-448d5720]{color:#ffffff40}
|
package/es/image/Image.vue.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./Image.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-448d5720"]]);
|
|
5
5
|
export {
|
|
6
6
|
p as default
|
|
7
7
|
};
|
package/es/image/Image.vue2.js
CHANGED
|
@@ -2,7 +2,10 @@ import { defineComponent as ye, ref as i, computed as J, watchEffect as be, crea
|
|
|
2
2
|
import Le from "../space/index.js";
|
|
3
3
|
import Be from "../spin/index.js";
|
|
4
4
|
import { downloadFile as He, add as T } from "../utils/index.js";
|
|
5
|
-
const Ve = {
|
|
5
|
+
const Ve = {
|
|
6
|
+
class: "m-image",
|
|
7
|
+
style: "--image-primary-color: #1677ff;"
|
|
8
|
+
}, Ze = ["onLoad", "src", "alt"], Ae = ["onClick"], $e = { class: "image-mask-info" }, Re = { class: "mask-pre" }, De = { class: "preview-mask" }, Ee = { class: "preview-body" }, Ie = { class: "preview-operations" }, Pe = ["href", "title"], Ye = {
|
|
6
9
|
class: "icon-svg",
|
|
7
10
|
style: { transform: "rotate(90deg)" },
|
|
8
11
|
focusable: "false",
|
|
@@ -35,7 +38,7 @@ const Ve = { class: "m-image" }, Ze = ["onLoad", "src", "alt"], Ae = ["onClick"]
|
|
|
35
38
|
album: { type: Boolean, default: !1 }
|
|
36
39
|
},
|
|
37
40
|
setup(oe, { expose: te }) {
|
|
38
|
-
const o = oe, d = i([]), W = i(), s = i(0), w = i(!1), z = i(0), t = i(1), H = i(1), V = i(1), K = i(0), O = i(0), r = i(0), c = i(0), h = i(0), p = i(0), Z = i(0), A = i(0), $ = i(0), R = i(0), D = i(0), E = i(0),
|
|
41
|
+
const o = oe, d = i([]), W = i(), s = i(0), w = i(!1), z = i(0), t = i(1), H = i(1), V = i(1), K = i(0), O = i(0), r = i(0), c = i(0), h = i(0), p = i(0), Z = i(0), A = i(0), $ = i(0), R = i(0), D = i(0), E = i(0), v = J(() => d.value.length), ie = J(() => o.draggable ? "100ms" : "300ms"), I = i(Array(v.value).fill(!1)), se = i(Array(v.value).fill(!1));
|
|
39
42
|
be(() => {
|
|
40
43
|
d.value = ne();
|
|
41
44
|
});
|
|
@@ -66,8 +69,8 @@ const Ve = { class: "m-image" }, Ze = ["onLoad", "src", "alt"], Ae = ["onClick"]
|
|
|
66
69
|
function F(e, l) {
|
|
67
70
|
return Array.isArray(e) ? typeof e[l] == "number" ? `${e[l]}px` : e[l] : typeof e == "number" ? `${e}px` : e;
|
|
68
71
|
}
|
|
69
|
-
function
|
|
70
|
-
w.value &&
|
|
72
|
+
function ve(e) {
|
|
73
|
+
w.value && v.value > 1 && ((e.key === "ArrowLeft" || e.key === "ArrowUp") && q(), (e.key === "ArrowRight" || e.key === "ArrowDown") && G());
|
|
71
74
|
}
|
|
72
75
|
async function U(e) {
|
|
73
76
|
t.value = 1, z.value = 0, r.value = 0, c.value = 0, w.value = !0, s.value = e, await Se(), W.value.focus();
|
|
@@ -78,7 +81,7 @@ const Ve = { class: "m-image" }, Ze = ["onLoad", "src", "alt"], Ae = ["onClick"]
|
|
|
78
81
|
function P() {
|
|
79
82
|
w.value = !1;
|
|
80
83
|
}
|
|
81
|
-
function
|
|
84
|
+
function ue() {
|
|
82
85
|
const e = d.value[s.value];
|
|
83
86
|
He(e.src, e.name);
|
|
84
87
|
}
|
|
@@ -109,8 +112,8 @@ const Ve = { class: "m-image" }, Ze = ["onLoad", "src", "alt"], Ae = ["onClick"]
|
|
|
109
112
|
}
|
|
110
113
|
function ze(e) {
|
|
111
114
|
if (!e.target) return;
|
|
112
|
-
const
|
|
113
|
-
Z.value =
|
|
115
|
+
const u = e.target.getBoundingClientRect();
|
|
116
|
+
Z.value = u.top, A.value = u.bottom, $.value = u.right, R.value = u.left, D.value = window.innerWidth, E.value = window.innerHeight, K.value = e.clientX, O.value = e.clientY, h.value = r.value, p.value = c.value, document.addEventListener("mousemove", Y), document.addEventListener("mouseup", j), Y(e);
|
|
114
117
|
}
|
|
115
118
|
function Y(e) {
|
|
116
119
|
r.value = h.value + e.clientX - K.value, c.value = p.value + e.clientY - O.value;
|
|
@@ -119,21 +122,22 @@ const Ve = { class: "m-image" }, Ze = ["onLoad", "src", "alt"], Ae = ["onClick"]
|
|
|
119
122
|
o.draggable ? (r.value > h.value + D.value - $.value && (r.value = h.value + D.value - $.value), r.value < h.value - R.value && (r.value = h.value - R.value), c.value > p.value + E.value - A.value && (c.value = p.value + E.value - A.value), c.value < p.value - Z.value && (c.value = p.value - Z.value)) : (r.value = 0, c.value = 0), document.removeEventListener("mousemove", Y), document.removeEventListener("mouseup", j);
|
|
120
123
|
}
|
|
121
124
|
function q() {
|
|
122
|
-
o.loop ? s.value = (s.value - 1 +
|
|
125
|
+
o.loop ? s.value = (s.value - 1 + v.value) % v.value : s.value > 0 && s.value--, k();
|
|
123
126
|
}
|
|
124
127
|
function G() {
|
|
125
|
-
o.loop ? s.value = (s.value + 1) %
|
|
128
|
+
o.loop ? s.value = (s.value + 1) % v.value : s.value < v.value - 1 && s.value++, k();
|
|
126
129
|
}
|
|
127
130
|
return (e, l) => (f(), m("div", Ve, [
|
|
128
131
|
M(Q(Le), _({ gap: "small" }, e.spaceProps), {
|
|
129
132
|
default: S(() => [
|
|
130
|
-
(f(!0), m(x, null, ee(d.value, (
|
|
133
|
+
(f(!0), m(x, null, ee(d.value, (u, n) => y((f(), m("div", {
|
|
131
134
|
class: g(["image-wrap", { "image-bordered": e.bordered, "image-hover-mask": !e.disabled && I.value[n] }]),
|
|
132
135
|
style: L(`width: ${F(o.width, n)}; height: ${F(o.height, n)};`),
|
|
133
136
|
key: n
|
|
134
137
|
}, [
|
|
135
138
|
M(Q(Be), _({
|
|
136
139
|
spinning: !I.value[n],
|
|
140
|
+
color: "var(--image-primary-color)",
|
|
137
141
|
indicator: "dynamic-circle",
|
|
138
142
|
size: "small",
|
|
139
143
|
ref_for: !0
|
|
@@ -143,8 +147,8 @@ const Ve = { class: "m-image" }, Ze = ["onLoad", "src", "alt"], Ae = ["onClick"]
|
|
|
143
147
|
class: "image-item",
|
|
144
148
|
style: L(`object-fit: ${e.fit};`),
|
|
145
149
|
onLoad: (X) => re(n),
|
|
146
|
-
src:
|
|
147
|
-
alt: C(
|
|
150
|
+
src: u.src,
|
|
151
|
+
alt: C(u)
|
|
148
152
|
}, null, 44, Ze)
|
|
149
153
|
]),
|
|
150
154
|
_: 2
|
|
@@ -206,19 +210,19 @@ const Ve = { class: "m-image" }, Ze = ["onLoad", "src", "alt"], Ae = ["onClick"]
|
|
|
206
210
|
onClick: N(P, ["self"]),
|
|
207
211
|
onWheel: N(we, ["prevent"]),
|
|
208
212
|
onKeydown: [
|
|
209
|
-
|
|
213
|
+
ve,
|
|
210
214
|
Me(P, ["esc"])
|
|
211
215
|
]
|
|
212
216
|
}, [
|
|
213
217
|
a("div", Ee, [
|
|
214
218
|
a("div", Ie, [
|
|
215
219
|
a("a", {
|
|
216
|
-
class: "
|
|
220
|
+
class: "preview-name",
|
|
217
221
|
href: d.value[s.value].src,
|
|
218
222
|
target: "_blank",
|
|
219
223
|
title: C(d.value[s.value])
|
|
220
224
|
}, B(C(d.value[s.value])), 9, Pe),
|
|
221
|
-
y(a("p", { class: "preview-progress" }, B(s.value + 1) + " / " + B(
|
|
225
|
+
y(a("p", { class: "preview-progress" }, B(s.value + 1) + " / " + B(v.value), 513), [
|
|
222
226
|
[b, Array.isArray(e.src)]
|
|
223
227
|
]),
|
|
224
228
|
a("div", {
|
|
@@ -242,7 +246,7 @@ const Ve = { class: "m-image" }, Ze = ["onLoad", "src", "alt"], Ae = ["onClick"]
|
|
|
242
246
|
a("div", {
|
|
243
247
|
class: g(["preview-operation", { "operation-disabled": t.value === e.maxZoomScale }]),
|
|
244
248
|
title: "下载",
|
|
245
|
-
onClick:
|
|
249
|
+
onClick: ue
|
|
246
250
|
}, l[3] || (l[3] = [
|
|
247
251
|
a("svg", {
|
|
248
252
|
class: "icon-svg",
|
|
@@ -377,7 +381,7 @@ const Ve = { class: "m-image" }, Ze = ["onLoad", "src", "alt"], Ae = ["onClick"]
|
|
|
377
381
|
])))
|
|
378
382
|
])
|
|
379
383
|
]),
|
|
380
|
-
(f(!0), m(x, null, ee(d.value, (
|
|
384
|
+
(f(!0), m(x, null, ee(d.value, (u, n) => y((f(), m("div", {
|
|
381
385
|
class: "preview-image-wrap",
|
|
382
386
|
style: L(`--drag-transition-duration: ${ie.value}; transform: translate3d(${r.value}px, ${c.value}px, 0px);`),
|
|
383
387
|
key: n
|
|
@@ -388,8 +392,8 @@ const Ve = { class: "m-image" }, Ze = ["onLoad", "src", "alt"], Ae = ["onClick"]
|
|
|
388
392
|
e.previewImageStyle,
|
|
389
393
|
`transform: scale3d(${H.value * t.value}, ${V.value * t.value}, 1) rotate(${z.value}deg);`
|
|
390
394
|
]),
|
|
391
|
-
src:
|
|
392
|
-
alt: C(
|
|
395
|
+
src: u.src,
|
|
396
|
+
alt: C(u),
|
|
393
397
|
onMousedown: N(ze, ["prevent"]),
|
|
394
398
|
onLoad: (X) => ce(n),
|
|
395
399
|
onDblclick: l[0] || (l[0] = (X) => e.resetOnDbclick ? k() : () => !1)
|
|
@@ -397,7 +401,7 @@ const Ve = { class: "m-image" }, Ze = ["onLoad", "src", "alt"], Ae = ["onClick"]
|
|
|
397
401
|
], 4)), [
|
|
398
402
|
[b, s.value === n]
|
|
399
403
|
])), 128)),
|
|
400
|
-
|
|
404
|
+
v.value > 1 ? (f(), m(x, { key: 0 }, [
|
|
401
405
|
a("div", {
|
|
402
406
|
class: g(["switch-left", { "switch-disabled": s.value === 0 && !e.loop }]),
|
|
403
407
|
onClick: q
|
|
@@ -416,7 +420,7 @@ const Ve = { class: "m-image" }, Ze = ["onLoad", "src", "alt"], Ae = ["onClick"]
|
|
|
416
420
|
], -1)
|
|
417
421
|
]), 2),
|
|
418
422
|
a("div", {
|
|
419
|
-
class: g(["switch-right", { "switch-disabled": s.value ===
|
|
423
|
+
class: g(["switch-right", { "switch-disabled": s.value === v.value - 1 && !e.loop }]),
|
|
420
424
|
onClick: G
|
|
421
425
|
}, l[12] || (l[12] = [
|
|
422
426
|
a("svg", {
|
package/es/input/Input.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.m-input[data-v-
|
|
1
|
+
.m-input[data-v-424d4b34]{width:var(--input-width);text-align:start;vertical-align:top;position:relative;display:inline-table;border-collapse:separate;border-spacing:0}.m-input .input-addon[data-v-424d4b34]{position:relative;padding:0 11px;color:#000000e0;font-weight:400;font-size:14px;text-align:center;background-color:#00000005;border:1px solid #d9d9d9;border-radius:6px;line-height:1;display:table-cell;width:1px;white-space:nowrap;vertical-align:middle;transition:all .3s}.m-input .input-addon[data-v-424d4b34] svg{fill:currentColor}.m-input .addon-before[data-v-424d4b34]{border-top-right-radius:0;border-bottom-right-radius:0;border-right:0}.m-input .addon-after[data-v-424d4b34]{border-top-left-radius:0;border-bottom-left-radius:0;border-left:0}.m-input .input-wrap[data-v-424d4b34]{font-size:14px;color:#000000e0;line-height:1.57142857;position:relative;display:inline-flex;vertical-align:top;width:100%;min-width:0;background-color:#fff}.m-input .input-wrap .input-border[data-v-424d4b34]{position:absolute;left:0;right:0;top:0;bottom:0;pointer-events:none;border-radius:inherit;border:1px solid #d9d9d9}.m-input .input-wrap .input-border-state[data-v-424d4b34]{position:absolute;z-index:1;left:0;right:0;top:0;bottom:0;pointer-events:none;border-radius:inherit;border:1px solid #d9d9d9;border-color:#0000;transition:all .2s}.m-input .input-wrap .input-hover[data-v-424d4b34]{border:1px solid var(--input-primary-color-hover)}.m-input .input-wrap .input-focus[data-v-424d4b34]{border:1px solid var(--input-primary-color-focus);box-shadow:0 0 0 2px var(--input-primary-shadow-color)}.m-input .input-wrap .input-prefix[data-v-424d4b34]{margin-right:4px;display:inline-flex;flex:none;align-items:center}.m-input .input-wrap .input-prefix[data-v-424d4b34] svg{fill:currentColor}.m-input .input-wrap .input-item[data-v-424d4b34]{font-size:14px;color:#000000e0;line-height:1.57142857;position:relative;display:inline-block;width:100%;min-width:0;background-color:#fff;border:none;outline:none;text-overflow:ellipsis;transition:all .2s}.m-input .input-wrap input[data-v-424d4b34]::-webkit-input-placeholder{color:#00000040}.m-input .input-wrap input[data-v-424d4b34]:-moz-placeholder{color:#00000040}.m-input .input-wrap input[data-v-424d4b34]::-moz-placeholder{color:#00000040}.m-input .input-wrap input[data-v-424d4b34]:-ms-input-placeholder{color:#00000040}.m-input .input-wrap .input-suffix[data-v-424d4b34]{margin-left:4px;display:inline-flex;flex:none;gap:8px;align-items:center}.m-input .input-wrap .input-suffix .input-actions[data-v-424d4b34]{display:inline-flex;align-items:center;cursor:pointer}.m-input .input-wrap .input-suffix .input-actions .clear-svg[data-v-424d4b34]{display:inline-block;font-size:12px;color:#00000040;fill:currentColor;transition:color .3s}.m-input .input-wrap .input-suffix .input-actions .clear-svg[data-v-424d4b34]:hover{color:#00000073}.m-input .input-wrap .input-suffix .input-actions .eye-svg[data-v-424d4b34]{display:inline-block;font-size:14px;color:#00000073;fill:currentColor;transition:color .3s}.m-input .input-wrap .input-suffix .input-actions .eye-svg[data-v-424d4b34]:hover{color:#000000d9}.m-input .input-wrap .input-suffix .clear-hidden[data-v-424d4b34]{visibility:hidden}.m-input .input-wrap .input-suffix .input-count[data-v-424d4b34]{color:#00000073}.m-input .input-wrap .input-suffix .suffix-item[data-v-424d4b34]{display:flex;flex:none;align-items:center}.m-input .input-wrap .input-suffix .suffix-item[data-v-424d4b34] svg{fill:currentColor}.m-input .input-small[data-v-424d4b34]{padding:1px 7px;border-radius:4px}.m-input .input-middle[data-v-424d4b34]{padding:5px 11px;border-radius:6px}.m-input .input-large[data-v-424d4b34]{padding:8px 11px;font-size:16px;line-height:1.5;border-radius:8px}.m-input .input-large .input-item[data-v-424d4b34]{font-size:16px;line-height:1.5}.m-input .input-before[data-v-424d4b34]{border-top-left-radius:0;border-bottom-left-radius:0}.m-input .input-after[data-v-424d4b34]{border-top-right-radius:0;border-bottom-right-radius:0}.m-input .input-disabled[data-v-424d4b34]{color:#00000040;background-color:#0000000a;cursor:not-allowed}.m-input .input-disabled .input-hover[data-v-424d4b34]{border-color:#d9d9d9}.m-input .input-disabled .input-focus[data-v-424d4b34]{border-color:#d9d9d9;box-shadow:none}.m-input .input-disabled .input-item[data-v-424d4b34]{color:#00000040;background-color:transparent;cursor:not-allowed}
|
package/es/input/Input.vue.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./Input.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const _ = /* @__PURE__ */ t(o, [["__scopeId", "data-v-424d4b34"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
_ as default
|
|
7
7
|
};
|
package/es/input/Input.vue2.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as H, ref as d, computed as o, watch as T, createElementBlock as n, openBlock as l, normalizeStyle as j, createCommentVNode as
|
|
1
|
+
import { defineComponent as H, ref as d, computed as o, watch as T, createElementBlock as n, openBlock as l, normalizeStyle as j, createCommentVNode as s, createElementVNode as u, normalizeClass as f, renderSlot as h, createTextVNode as m, toDisplayString as p, withKeys as G, withModifiers as J, withDirectives as k, vShow as M } from "vue";
|
|
2
2
|
import { useSlotsExist as O } from "../utils/index.js";
|
|
3
3
|
const U = {
|
|
4
4
|
key: 0,
|
|
@@ -50,7 +50,7 @@ const U = {
|
|
|
50
50
|
},
|
|
51
51
|
emits: ["update:value", "change", "enter"],
|
|
52
52
|
setup(L, { emit: E }) {
|
|
53
|
-
const t = L,
|
|
53
|
+
const t = L, b = d(null), w = d(!1), y = d(!1), v = d(), r = d(!1), i = E, c = O(["prefix", "suffix", "addonBefore", "addonAfter"]), $ = o(() => typeof t.width == "number" ? `${t.width}px` : t.width), x = o(() => !t.disabled && t.allowClear), A = o(() => t.maxlength ? `${t.value ? t.value.length : 0} / ${t.maxlength}` : t.value ? t.value.length : 0), S = o(() => c.prefix || t.prefix), z = o(() => c.suffix || t.suffix), q = o(() => x.value || t.password || t.showCount || z.value), g = o(() => c.addonBefore || t.addonBefore), C = o(() => c.addonAfter || t.addonAfter), B = o(() => "lazy" in t.valueModifiers);
|
|
54
54
|
T(
|
|
55
55
|
() => t.value,
|
|
56
56
|
(e) => {
|
|
@@ -67,10 +67,10 @@ const U = {
|
|
|
67
67
|
w.value = !1;
|
|
68
68
|
}
|
|
69
69
|
function V() {
|
|
70
|
-
|
|
70
|
+
y.value = !0;
|
|
71
71
|
}
|
|
72
72
|
function K() {
|
|
73
|
-
|
|
73
|
+
y.value = !1;
|
|
74
74
|
}
|
|
75
75
|
function P(e) {
|
|
76
76
|
const a = e.target;
|
|
@@ -88,29 +88,35 @@ const U = {
|
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
90
|
function F() {
|
|
91
|
-
|
|
91
|
+
var e;
|
|
92
|
+
i("update:value", ""), (e = b.value) == null || e.focus();
|
|
92
93
|
}
|
|
93
94
|
function R() {
|
|
94
95
|
r.value = !r.value;
|
|
95
96
|
}
|
|
96
97
|
return (e, a) => (l(), n("div", {
|
|
97
98
|
class: "m-input",
|
|
98
|
-
style: j(`
|
|
99
|
+
style: j(`
|
|
100
|
+
--input-width: ${$.value};
|
|
101
|
+
--input-primary-color-hover: #4096ff;
|
|
102
|
+
--input-primary-color-focus: #4096ff;
|
|
103
|
+
--input-primary-shadow-color: rgba(5, 145, 255, 0.1);
|
|
104
|
+
`)
|
|
99
105
|
}, [
|
|
100
|
-
|
|
106
|
+
g.value ? (l(), n("span", {
|
|
101
107
|
key: 0,
|
|
102
|
-
class: f(["input-addon", { "addon-before":
|
|
108
|
+
class: f(["input-addon", { "addon-before": g.value }])
|
|
103
109
|
}, [
|
|
104
110
|
h(e.$slots, "addonBefore", {}, () => [
|
|
105
111
|
m(p(e.addonBefore), 1)
|
|
106
112
|
], !0)
|
|
107
|
-
], 2)) :
|
|
108
|
-
|
|
113
|
+
], 2)) : s("", !0),
|
|
114
|
+
u("div", {
|
|
109
115
|
tabindex: "1",
|
|
110
116
|
class: f(["input-wrap", [
|
|
111
117
|
`input-${e.size}`,
|
|
112
118
|
{
|
|
113
|
-
"input-before":
|
|
119
|
+
"input-before": g.value,
|
|
114
120
|
"input-after": C.value,
|
|
115
121
|
"input-disabled": e.disabled
|
|
116
122
|
}
|
|
@@ -118,18 +124,18 @@ const U = {
|
|
|
118
124
|
onMouseenter: I,
|
|
119
125
|
onMouseleave: N
|
|
120
126
|
}, [
|
|
121
|
-
a[3] || (a[3] =
|
|
122
|
-
|
|
123
|
-
class: f(["input-border-state", { "input-hover": w.value, "input-focus":
|
|
127
|
+
a[3] || (a[3] = u("div", { class: "input-border" }, null, -1)),
|
|
128
|
+
u("div", {
|
|
129
|
+
class: f(["input-border-state", { "input-hover": w.value, "input-focus": y.value }])
|
|
124
130
|
}, null, 2),
|
|
125
131
|
S.value ? (l(), n("span", U, [
|
|
126
132
|
h(e.$slots, "prefix", {}, () => [
|
|
127
133
|
m(p(e.prefix), 1)
|
|
128
134
|
], !0)
|
|
129
|
-
])) :
|
|
130
|
-
|
|
135
|
+
])) : s("", !0),
|
|
136
|
+
u("input", {
|
|
131
137
|
ref_key: "inputRef",
|
|
132
|
-
ref:
|
|
138
|
+
ref: b,
|
|
133
139
|
class: "input-item",
|
|
134
140
|
type: e.password && !r.value ? "password" : "text",
|
|
135
141
|
value: v.value,
|
|
@@ -143,12 +149,12 @@ const U = {
|
|
|
143
149
|
onKeydown: G(J(D, ["prevent"]), ["enter"])
|
|
144
150
|
}, null, 40, X),
|
|
145
151
|
q.value ? (l(), n("span", Y, [
|
|
146
|
-
|
|
152
|
+
x.value ? (l(), n("span", {
|
|
147
153
|
key: 0,
|
|
148
154
|
class: f(["input-actions", { "clear-hidden": !e.value }]),
|
|
149
155
|
onClick: F
|
|
150
156
|
}, a[0] || (a[0] = [
|
|
151
|
-
|
|
157
|
+
u("svg", {
|
|
152
158
|
class: "clear-svg",
|
|
153
159
|
focusable: "false",
|
|
154
160
|
"data-icon": "close-circle",
|
|
@@ -158,33 +164,33 @@ const U = {
|
|
|
158
164
|
"aria-hidden": "true",
|
|
159
165
|
viewBox: "64 64 896 896"
|
|
160
166
|
}, [
|
|
161
|
-
|
|
167
|
+
u("path", { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm165.4 618.2l-66-.3L512 563.4l-99.3 118.4-66.1.3c-4.4 0-8-3.5-8-8 0-1.9.7-3.7 1.9-5.2l130.1-155L340.5 359a8.32 8.32 0 01-1.9-5.2c0-4.4 3.6-8 8-8l66.1.3L512 464.6l99.3-118.4 66-.3c4.4 0 8 3.5 8 8 0 1.9-.7 3.7-1.9 5.2L553.5 514l130 155c1.2 1.5 1.9 3.3 1.9 5.2 0 4.4-3.6 8-8 8z" })
|
|
162
168
|
], -1)
|
|
163
|
-
]), 2)) :
|
|
169
|
+
]), 2)) : s("", !0),
|
|
164
170
|
e.password ? (l(), n("span", {
|
|
165
171
|
key: 1,
|
|
166
172
|
class: "input-actions",
|
|
167
173
|
onClick: R
|
|
168
174
|
}, [
|
|
169
175
|
k((l(), n("svg", Z, a[1] || (a[1] = [
|
|
170
|
-
|
|
176
|
+
u("path", { d: "M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z" }, null, -1)
|
|
171
177
|
]), 512)), [
|
|
172
178
|
[M, r.value]
|
|
173
179
|
]),
|
|
174
180
|
k((l(), n("svg", _, a[2] || (a[2] = [
|
|
175
|
-
|
|
176
|
-
|
|
181
|
+
u("path", { d: "M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z" }, null, -1),
|
|
182
|
+
u("path", { d: "M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z" }, null, -1)
|
|
177
183
|
]), 512)), [
|
|
178
184
|
[M, !r.value]
|
|
179
185
|
])
|
|
180
|
-
])) :
|
|
181
|
-
e.showCount ? (l(), n("span", ee, p(A.value), 1)) :
|
|
186
|
+
])) : s("", !0),
|
|
187
|
+
e.showCount ? (l(), n("span", ee, p(A.value), 1)) : s("", !0),
|
|
182
188
|
z.value ? (l(), n("span", te, [
|
|
183
189
|
h(e.$slots, "suffix", {}, () => [
|
|
184
190
|
m(p(e.suffix), 1)
|
|
185
191
|
], !0)
|
|
186
|
-
])) :
|
|
187
|
-
])) :
|
|
192
|
+
])) : s("", !0)
|
|
193
|
+
])) : s("", !0)
|
|
188
194
|
], 34),
|
|
189
195
|
C.value ? (l(), n("span", {
|
|
190
196
|
key: 1,
|
|
@@ -193,7 +199,7 @@ const U = {
|
|
|
193
199
|
h(e.$slots, "addonAfter", {}, () => [
|
|
194
200
|
m(p(e.addonAfter), 1)
|
|
195
201
|
], !0)
|
|
196
|
-
], 2)) :
|
|
202
|
+
], 2)) : s("", !0)
|
|
197
203
|
], 4));
|
|
198
204
|
}
|
|
199
205
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.m-input-number[data-v-
|
|
1
|
+
.m-input-number[data-v-2bcf838f]{position:relative;display:inline-block;width:var(--input-number-width);height:32px;font-size:14px;color:#000000e0;line-height:1.57142857;padding:0 11px;background-color:#fff;border-radius:6px;border:1px solid #d9d9d9;transition:all .2s}.m-input-number[data-v-2bcf838f]:hover{border-color:var(--input-number-primary-color-hover)}.m-input-number:hover .input-number-handler-wrap[data-v-2bcf838f]{background:#fff;opacity:1}.m-input-number[data-v-2bcf838f]:focus-within{border-color:var(--input-number-primary-color-focus);box-shadow:0 0 0 2px var(--input-number-primary-shadow-color)}.m-input-number .input-number-wrap[data-v-2bcf838f]{height:100%;display:flex}.m-input-number .input-number-wrap .input-prefix[data-v-2bcf838f]{pointer-events:none;margin-right:4px;display:inline-flex;align-items:center}.m-input-number .input-number-wrap .input-number[data-v-2bcf838f]{font-size:14px;color:#000000e0;width:100%;height:100%;background:transparent;border-radius:6px;transition:all .2s linear;-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield;border:none;outline:none}.m-input-number .input-number-wrap input[data-v-2bcf838f]::-webkit-input-placeholder{color:#00000040}.m-input-number .input-number-wrap input[data-v-2bcf838f]:-moz-placeholder{color:#00000040}.m-input-number .input-number-wrap input[data-v-2bcf838f]::-moz-placeholder{color:#00000040}.m-input-number .input-number-wrap input[data-v-2bcf838f]:-ms-input-placeholder{color:#00000040}.m-input-number .input-number-handler-wrap[data-v-2bcf838f]{position:absolute;top:0;right:0;width:22px;height:100%;background:transparent;border-radius:0 6px 6px 0;opacity:0;display:flex;flex-direction:column;align-items:stretch;transition:all .2s linear}.m-input-number .input-number-handler-wrap .input-number-arrow[data-v-2bcf838f]{display:flex;align-items:center;justify-content:center;flex:auto;height:40%;border-left:1px solid #d9d9d9;cursor:pointer;transition:all .2s linear}.m-input-number .input-number-handler-wrap .input-number-arrow[data-v-2bcf838f]:hover{height:60%}.m-input-number .input-number-handler-wrap .input-number-arrow:hover .icon-svg[data-v-2bcf838f]{color:var(--input-number-primary-color)}.m-input-number .input-number-handler-wrap .input-number-arrow .icon-svg[data-v-2bcf838f]{font-size:7px;color:#00000073;fill:currentColor;-webkit-user-select:none;user-select:none;transition:color .2s}.m-input-number .input-number-handler-wrap .up-arrow[data-v-2bcf838f]{border-top-right-radius:6px}.m-input-number .input-number-handler-wrap .down-arrow[data-v-2bcf838f]{border-top:1px solid #d9d9d9;border-bottom-right-radius:6px}.m-input-number .input-number-handler-wrap .arrow-disabled[data-v-2bcf838f]{cursor:not-allowed}.input-number-disabled[data-v-2bcf838f]{color:#00000040;background-color:#0000000a;border-color:#d9d9d9;box-shadow:none;cursor:not-allowed;opacity:1}.input-number-disabled[data-v-2bcf838f]:hover{border-color:#d9d9d9}.input-number-disabled[data-v-2bcf838f]:focus-within{border-color:#d9d9d9;box-shadow:none}.input-number-disabled .input-number-wrap .input-number[data-v-2bcf838f]{color:#00000040;cursor:not-allowed}.input-number-disabled .input-number-handler-wrap[data-v-2bcf838f]{display:none}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./InputNumber.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-2bcf838f"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|