@fangzhongya/fang-ui 0.0.70 → 0.0.71
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/components/alert/src/index2.cjs +10 -10
- package/dist/components/array/src/index2.cjs +45 -45
- package/dist/components/autocomplete/src/index2.cjs +10 -10
- package/dist/components/box/src/index2.cjs +21 -21
- package/dist/components/box-adjust/src/index2.cjs +27 -27
- package/dist/components/box-local/src/index2.cjs +20 -20
- package/dist/components/box-mask/src/index2.cjs +5 -5
- package/dist/components/box-teleport/src/index2.cjs +5 -5
- package/dist/components/box-title/src/index2.cjs +15 -15
- package/dist/components/button/src/index2.cjs +9 -9
- package/dist/components/buttons/src/index2.cjs +20 -20
- package/dist/components/card/src/index2.cjs +10 -10
- package/dist/components/cascader/src/index2.cjs +10 -10
- package/dist/components/cascader-panel/src/index2.cjs +10 -10
- package/dist/components/cascaders/src/index2.cjs +17 -17
- package/dist/components/checkbox/src/index2.cjs +10 -10
- package/dist/components/checkbox-group/src/index2.cjs +10 -10
- package/dist/components/checks/src/index2.cjs +31 -31
- package/dist/components/choice-select/src/index2.cjs +5 -5
- package/dist/components/collapse/src/index2.cjs +10 -10
- package/dist/components/collapse-item/src/index2.cjs +10 -10
- package/dist/components/color-picker/src/index2.cjs +10 -10
- package/dist/components/common/list.cjs +5 -5
- package/dist/components/common/use.cjs +5 -5
- package/dist/components/company-select/src/index2.cjs +19 -19
- package/dist/components/config-provider/src/index2.cjs +10 -10
- package/dist/components/date-picker/src/index2.cjs +10 -10
- package/dist/components/dates/src/index2.cjs +12 -12
- package/dist/components/dates-divide/src/index2.cjs +20 -20
- package/dist/components/dates-picker/src/index2.cjs +15 -15
- package/dist/components/dates2/src/index2.cjs +26 -26
- package/dist/components/department-select/src/index2.cjs +11 -11
- package/dist/components/dialog/src/index2.cjs +10 -10
- package/dist/components/dialogs/src/index2.cjs +23 -23
- package/dist/components/divider/src/index2.cjs +10 -10
- package/dist/components/drawer/src/index2.cjs +10 -10
- package/dist/components/dropdown/src/index2.cjs +10 -10
- package/dist/components/dropdown-item/src/index2.cjs +10 -10
- package/dist/components/dropdown-menu/src/index2.cjs +10 -10
- package/dist/components/edit/src/index2.cjs +24 -24
- package/dist/components/edit-float/src/index2.cjs +40 -40
- package/dist/components/form/src/index2.cjs +10 -10
- package/dist/components/form-item/src/index2.cjs +10 -10
- package/dist/components/forms/src/index2.cjs +65 -65
- package/dist/components/forms/src/setup.cjs +12 -12
- package/dist/components/forms-div/src/index2.cjs +11 -11
- package/dist/components/forms-drag/src/index2.cjs +73 -73
- package/dist/components/forms-item/src/index2.cjs +45 -45
- package/dist/components/forms-item/src/label.cjs +4 -4
- package/dist/components/forms-items/src/index2.cjs +23 -23
- package/dist/components/global-config/src/index.cjs +5 -5
- package/dist/components/history/src/index2.cjs +26 -26
- package/dist/components/icon/src/index2.cjs +23 -23
- package/dist/components/icon-picker/src/index2.cjs +52 -52
- package/dist/components/iframe/src/index2.cjs +10 -10
- package/dist/components/image/src/index2.cjs +10 -10
- package/dist/components/images/src/index2.cjs +16 -16
- package/dist/components/input/src/index2.cjs +10 -10
- package/dist/components/input-array/src/index2.cjs +38 -38
- package/dist/components/input-history/src/index2.cjs +48 -48
- package/dist/components/input-history/src/util.cjs +4 -4
- package/dist/components/input-num/src/index2.cjs +17 -17
- package/dist/components/input-number/src/index2.cjs +10 -10
- package/dist/components/input-select/src/index2.cjs +51 -51
- package/dist/components/input-tag/src/index2.cjs +10 -10
- package/dist/components/inputs/src/index2.cjs +17 -17
- package/dist/components/keep-com/src/index2.cjs +16 -16
- package/dist/components/labels/src/index2.cjs +13 -13
- package/dist/components/list/src/index2.cjs +24 -24
- package/dist/components/lists/src/index2.cjs +51 -51
- package/dist/components/listsp/src/index2.cjs +34 -34
- package/dist/components/mention/src/index2.cjs +10 -10
- package/dist/components/menus/src/index2.cjs +16 -16
- package/dist/components/menus/src/menu-ll2.cjs +11 -11
- package/dist/components/no-data/src/index2.cjs +5 -5
- package/dist/components/option/src/index2.cjs +9 -9
- package/dist/components/option-group/src/index2.cjs +10 -10
- package/dist/components/page/src/index2.cjs +77 -77
- package/dist/components/page/src/set-column2.cjs +54 -54
- package/dist/components/pagination/src/index2.cjs +10 -10
- package/dist/components/paging/src/index2.cjs +13 -13
- package/dist/components/popconfirm/src/index2.cjs +10 -10
- package/dist/components/popover/src/index2.cjs +10 -10
- package/dist/components/popup/src/index2.cjs +29 -29
- package/dist/components/radio/src/index2.cjs +10 -10
- package/dist/components/radio-group/src/index2.cjs +10 -10
- package/dist/components/retract/src/index2.cjs +14 -14
- package/dist/components/right-key/src/index2.cjs +30 -30
- package/dist/components/role-select/src/index2.cjs +38 -38
- package/dist/components/seamless-scroll/src/index2.cjs +24 -24
- package/dist/components/select/src/index2.cjs +10 -10
- package/dist/components/select-dialog/src/index2.cjs +65 -65
- package/dist/components/select-popover/src/index2.cjs +42 -42
- package/dist/components/select-scroll/src/index2.cjs +30 -30
- package/dist/components/selector/src/index2.cjs +39 -39
- package/dist/components/selects/src/index2.cjs +20 -20
- package/dist/components/slider/src/index2.cjs +10 -10
- package/dist/components/stick-div/src/index2.cjs +17 -17
- package/dist/components/stick-edge/src/index2.cjs +10 -10
- package/dist/components/stick-window/src/index2.cjs +22 -22
- package/dist/components/switch/src/index2.cjs +10 -10
- package/dist/components/switchs/src/index2.cjs +15 -15
- package/dist/components/tab-pane/src/index2.cjs +10 -10
- package/dist/components/tables/common/img2.cjs +7 -7
- package/dist/components/tables/common/pagin.cjs +16 -16
- package/dist/components/tables/common/table-but2.cjs +10 -10
- package/dist/components/tables/common/table-color2.cjs +7 -7
- package/dist/components/tables/common/table-list2.cjs +9 -9
- package/dist/components/tables/common/util.cjs +2 -2
- package/dist/components/tables/src/column.cjs +5 -5
- package/dist/components/tables/src/columns2.cjs +2 -2
- package/dist/components/tables/src/columns3.cjs +2 -2
- package/dist/components/tables/src/index2.cjs +29 -29
- package/dist/components/tablesp/src/index2.cjs +35 -35
- package/dist/components/tabless/src/index2.cjs +48 -48
- package/dist/components/tablesv/src/column.cjs +16 -16
- package/dist/components/tablesv/src/columns2.cjs +2 -2
- package/dist/components/tablesv/src/columns3.cjs +2 -2
- package/dist/components/tablesv/src/index2.cjs +30 -30
- package/dist/components/tablesvp/src/index2.cjs +30 -30
- package/dist/components/tabs/src/index2.cjs +10 -10
- package/dist/components/text/src/index2.cjs +8 -8
- package/dist/components/time-picker/src/index2.cjs +10 -10
- package/dist/components/time-select/src/index2.cjs +10 -10
- package/dist/components/tooltip/src/index2.cjs +10 -10
- package/dist/components/transfer/src/index2.cjs +10 -10
- package/dist/components/tree/src/index2.cjs +10 -10
- package/dist/components/tree-select/src/index2.cjs +10 -10
- package/dist/components/tree-select-box/src/index2.cjs +29 -29
- package/dist/components/upload/src/index2.cjs +10 -10
- package/dist/components/user-select/src/index2.cjs +99 -99
- package/dist/components/window/src/index2.cjs +61 -61
- package/dist/directives/scroll/index.cjs +24 -6
- package/dist/directives/scroll/index.js +3 -1
- package/dist/hooks/event-aliass/index.cjs +2 -2
- package/dist/hooks/global-config/index.cjs +8 -8
- package/dist/hooks/inherit/index.cjs +2 -2
- package/dist/hooks/locale/index.cjs +7 -7
- package/dist/icons/iconify.cjs +3 -3
- package/dist/icons/index.css +39 -39
- package/dist/icons/index.json +10 -10
- package/dist/icons/vue/bar.cjs +3 -3
- package/dist/icons/vue/below.cjs +3 -3
- package/dist/icons/vue/bicycle.cjs +3 -3
- package/dist/icons/vue/bottom-left.cjs +4 -4
- package/dist/icons/vue/bottom-right.cjs +4 -4
- package/dist/icons/vue/bottom.cjs +3 -3
- package/dist/icons/vue/clear.cjs +5 -5
- package/dist/icons/vue/close.cjs +3 -3
- package/dist/icons/vue/edit.cjs +5 -5
- package/dist/icons/vue/frame.cjs +3 -3
- package/dist/icons/vue/left.cjs +3 -3
- package/dist/icons/vue/right.cjs +3 -3
- package/dist/icons/vue/star.cjs +4 -4
- package/dist/utils/vues/common.cjs +2 -2
- package/package.json +5 -5
- /package/dist/components/{forms-item → forms-items}/index.css +0 -0
- /package/dist/css/{forms-item.css → forms-items.css} +0 -0
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const
|
|
3
|
+
const vues = require("vue");
|
|
4
4
|
const index$3 = require("../../icon/index.cjs");
|
|
5
5
|
const clear = require("../../../icons/vue/clear.cjs");
|
|
6
6
|
const data = require("./data.cjs");
|
|
7
7
|
const index = require("../../../hooks/cssname/index.cjs");
|
|
8
8
|
const index$1 = require("element-plus/es/components/input-number/index");
|
|
9
9
|
const index$2 = require("element-plus/es/components/input/index");
|
|
10
|
-
const _sfc_main = /* @__PURE__ */
|
|
10
|
+
const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
11
11
|
__name: "index",
|
|
12
12
|
props: data.dataProps,
|
|
13
13
|
emits: data.dataEmits,
|
|
@@ -15,10 +15,10 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
15
15
|
const cs = index.useCssName("input-array");
|
|
16
16
|
const props = __props;
|
|
17
17
|
const emit = __emit;
|
|
18
|
-
const refInput =
|
|
19
|
-
const isfocus =
|
|
20
|
-
const start =
|
|
21
|
-
const end =
|
|
18
|
+
const refInput = vues.ref();
|
|
19
|
+
const isfocus = vues.ref(false);
|
|
20
|
+
const start = vues.ref("");
|
|
21
|
+
const end = vues.ref("");
|
|
22
22
|
if (props.isNumber) {
|
|
23
23
|
start.value = 0;
|
|
24
24
|
end.value = 0;
|
|
@@ -26,8 +26,8 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
26
26
|
start.value = "";
|
|
27
27
|
end.value = "";
|
|
28
28
|
}
|
|
29
|
-
const emove =
|
|
30
|
-
const isclear =
|
|
29
|
+
const emove = vues.ref(false);
|
|
30
|
+
const isclear = vues.computed(() => {
|
|
31
31
|
if (props.clearable) {
|
|
32
32
|
if (start.value || end.value) {
|
|
33
33
|
if (emove.value || isfocus.value) {
|
|
@@ -37,7 +37,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
37
37
|
}
|
|
38
38
|
return false;
|
|
39
39
|
});
|
|
40
|
-
|
|
40
|
+
vues.watch(
|
|
41
41
|
() => props.modelValue,
|
|
42
42
|
() => {
|
|
43
43
|
let v = props.modelValue || [];
|
|
@@ -67,7 +67,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
67
67
|
deep: true
|
|
68
68
|
}
|
|
69
69
|
);
|
|
70
|
-
|
|
70
|
+
vues.watch(
|
|
71
71
|
() => isfocus.value,
|
|
72
72
|
() => {
|
|
73
73
|
if (isfocus.value) {
|
|
@@ -131,16 +131,16 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
131
131
|
...data.dataExpose
|
|
132
132
|
});
|
|
133
133
|
return (_ctx, _cache) => {
|
|
134
|
-
return
|
|
135
|
-
class:
|
|
134
|
+
return vues.openBlock(), vues.createElementBlock("div", {
|
|
135
|
+
class: vues.normalizeClass([vues.unref(cs).z(), vues.unref(cs).is("focus", isfocus.value)]),
|
|
136
136
|
onMouseenter,
|
|
137
137
|
onMouseleave,
|
|
138
|
-
onClick:
|
|
138
|
+
onClick: vues.withModifiers(onClick, ["stop"])
|
|
139
139
|
}, [
|
|
140
|
-
|
|
141
|
-
props.isNumber ? (
|
|
140
|
+
vues.renderSlot(_ctx.$slots, vues.unref(data.dataSlot).prefix),
|
|
141
|
+
props.isNumber ? (vues.openBlock(), vues.createBlock(vues.unref(index$1.ElInputNumber), {
|
|
142
142
|
key: 0,
|
|
143
|
-
class:
|
|
143
|
+
class: vues.normalizeClass([vues.unref(cs).z("input")]),
|
|
144
144
|
modelValue: start.value,
|
|
145
145
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => start.value = $event),
|
|
146
146
|
readonly: props.readonly,
|
|
@@ -148,64 +148,64 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
148
148
|
placeholder: props.startPlaceholder,
|
|
149
149
|
"controls-position": props.isRight ? "right" : "",
|
|
150
150
|
onInput: omInput,
|
|
151
|
-
onClick:
|
|
151
|
+
onClick: vues.withModifiers(onFocus, ["stop"]),
|
|
152
152
|
onBlur
|
|
153
|
-
}, null, 8, ["class", "modelValue", "readonly", "clearable", "placeholder", "controls-position"])) : (
|
|
153
|
+
}, null, 8, ["class", "modelValue", "readonly", "clearable", "placeholder", "controls-position"])) : (vues.openBlock(), vues.createBlock(vues.unref(index$2.ElInput), {
|
|
154
154
|
key: 1,
|
|
155
|
-
class:
|
|
155
|
+
class: vues.normalizeClass([vues.unref(cs).z("input")]),
|
|
156
156
|
modelValue: start.value,
|
|
157
157
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => start.value = $event),
|
|
158
158
|
readonly: props.readonly,
|
|
159
159
|
clearable: props.inputClearable,
|
|
160
160
|
placeholder: props.startPlaceholder,
|
|
161
161
|
onInput: omInput,
|
|
162
|
-
onClick:
|
|
162
|
+
onClick: vues.withModifiers(onFocus, ["stop"]),
|
|
163
163
|
onBlur
|
|
164
164
|
}, null, 8, ["class", "modelValue", "readonly", "clearable", "placeholder"])),
|
|
165
|
-
|
|
166
|
-
class:
|
|
167
|
-
},
|
|
168
|
-
props.isNumber ? (
|
|
165
|
+
vues.createElementVNode("span", {
|
|
166
|
+
class: vues.normalizeClass([vues.unref(cs).z("range")])
|
|
167
|
+
}, vues.toDisplayString(props.rangeSeparator), 3),
|
|
168
|
+
props.isNumber ? (vues.openBlock(), vues.createBlock(vues.unref(index$1.ElInputNumber), {
|
|
169
169
|
key: 2,
|
|
170
|
-
class:
|
|
170
|
+
class: vues.normalizeClass([vues.unref(cs).z("input")]),
|
|
171
171
|
modelValue: end.value,
|
|
172
172
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => end.value = $event),
|
|
173
173
|
readonly: props.readonly,
|
|
174
174
|
clearable: props.inputClearable,
|
|
175
175
|
placeholder: props.endPlaceholder,
|
|
176
176
|
"controls-position": props.isRight ? "right" : "",
|
|
177
|
-
onClick:
|
|
177
|
+
onClick: vues.withModifiers(onFocus, ["stop"]),
|
|
178
178
|
onInput: omInput,
|
|
179
179
|
onBlur
|
|
180
|
-
}, null, 8, ["class", "modelValue", "readonly", "clearable", "placeholder", "controls-position"])) : (
|
|
180
|
+
}, null, 8, ["class", "modelValue", "readonly", "clearable", "placeholder", "controls-position"])) : (vues.openBlock(), vues.createBlock(vues.unref(index$2.ElInput), {
|
|
181
181
|
key: 3,
|
|
182
|
-
class:
|
|
182
|
+
class: vues.normalizeClass([vues.unref(cs).z("input")]),
|
|
183
183
|
modelValue: end.value,
|
|
184
184
|
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => end.value = $event),
|
|
185
185
|
readonly: props.readonly,
|
|
186
186
|
clearable: props.inputClearable,
|
|
187
187
|
placeholder: props.endPlaceholder,
|
|
188
|
-
onClick:
|
|
188
|
+
onClick: vues.withModifiers(onFocus, ["stop"]),
|
|
189
189
|
onInput: omInput,
|
|
190
190
|
onBlur
|
|
191
191
|
}, null, 8, ["class", "modelValue", "readonly", "clearable", "placeholder"])),
|
|
192
|
-
|
|
193
|
-
class:
|
|
192
|
+
vues.createElementVNode("input", {
|
|
193
|
+
class: vues.normalizeClass(vues.unref(cs).z("focus")),
|
|
194
194
|
ref_key: "refInput",
|
|
195
195
|
ref: refInput,
|
|
196
196
|
onBlur
|
|
197
197
|
}, null, 34),
|
|
198
|
-
isclear.value ? (
|
|
198
|
+
isclear.value ? (vues.openBlock(), vues.createBlock(vues.unref(index$3.Icon), {
|
|
199
199
|
key: 4,
|
|
200
|
-
class:
|
|
201
|
-
onClick:
|
|
200
|
+
class: vues.normalizeClass([vues.unref(cs).z("icon"), vues.unref(cs).z("clear")]),
|
|
201
|
+
onClick: vues.withModifiers(onClear, ["stop"])
|
|
202
202
|
}, {
|
|
203
|
-
default:
|
|
204
|
-
|
|
203
|
+
default: vues.withCtx(() => [
|
|
204
|
+
vues.createVNode(clear.default)
|
|
205
205
|
]),
|
|
206
206
|
_: 1
|
|
207
|
-
}, 8, ["class"])) :
|
|
208
|
-
|
|
207
|
+
}, 8, ["class"])) : vues.createCommentVNode("", true),
|
|
208
|
+
vues.renderSlot(_ctx.$slots, vues.unref(data.dataSlot).suffix)
|
|
209
209
|
], 34);
|
|
210
210
|
};
|
|
211
211
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const
|
|
3
|
+
const vues = require("vue");
|
|
4
4
|
const index$3 = require("../../icon/index.cjs");
|
|
5
5
|
const clear = require("../../../icons/vue/clear.cjs");
|
|
6
6
|
const index$5 = require("../../../directives/expose/index.cjs");
|
|
@@ -13,26 +13,26 @@ const index$4 = require("../../inputs/index.cjs");
|
|
|
13
13
|
const index$1 = require("../../../hooks/cssname/index.cjs");
|
|
14
14
|
const index = require("../../../hooks/inherit/index.cjs");
|
|
15
15
|
const _hoisted_1 = ["onClick"];
|
|
16
|
-
const _sfc_main = /* @__PURE__ */
|
|
16
|
+
const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
17
17
|
...{ inheritAttrs: false },
|
|
18
18
|
__name: "index",
|
|
19
19
|
props: data.dataProps,
|
|
20
20
|
emits: data.dataEmits,
|
|
21
21
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
22
|
-
const attrs = index.useInherit(
|
|
23
|
-
const slots =
|
|
22
|
+
const attrs = index.useInherit(vues.useAttrs());
|
|
23
|
+
const slots = vues.useSlots();
|
|
24
24
|
const cs = index$1.useCssName("input-history");
|
|
25
25
|
const props = __props;
|
|
26
26
|
const emit = __emit;
|
|
27
|
-
const visible =
|
|
28
|
-
const width =
|
|
29
|
-
const refInput =
|
|
27
|
+
const visible = vues.ref(false);
|
|
28
|
+
const width = vues.ref(200);
|
|
29
|
+
const refInput = vues.ref();
|
|
30
30
|
const options = util.useStorage(
|
|
31
31
|
props.storage || (/* @__PURE__ */ new Date()).getTime() + "",
|
|
32
32
|
[]
|
|
33
33
|
);
|
|
34
|
-
const value =
|
|
35
|
-
|
|
34
|
+
const value = vues.ref("");
|
|
35
|
+
vues.watch(
|
|
36
36
|
() => props.modelValue,
|
|
37
37
|
() => {
|
|
38
38
|
value.value = props.modelValue || "";
|
|
@@ -87,96 +87,96 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
87
87
|
options.value = [];
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
|
-
|
|
90
|
+
vues.onMounted(() => {
|
|
91
91
|
setWidth();
|
|
92
92
|
});
|
|
93
93
|
__expose({
|
|
94
94
|
...data.dataExpose
|
|
95
95
|
});
|
|
96
96
|
return (_ctx, _cache) => {
|
|
97
|
-
return
|
|
98
|
-
class: [
|
|
99
|
-
},
|
|
100
|
-
|
|
97
|
+
return vues.openBlock(), vues.createElementBlock("div", vues.mergeProps({
|
|
98
|
+
class: [vues.unref(cs).z()]
|
|
99
|
+
}, vues.unref(attrs).root), [
|
|
100
|
+
vues.createVNode(vues.unref(index$2.Popover), {
|
|
101
101
|
trigger: "click",
|
|
102
|
-
"popper-class":
|
|
102
|
+
"popper-class": vues.unref(cs).z("popper"),
|
|
103
103
|
visible: visible.value,
|
|
104
|
-
disabled: props.disabled ||
|
|
104
|
+
disabled: props.disabled || vues.unref(options).length == 0,
|
|
105
105
|
width: width.value
|
|
106
106
|
}, {
|
|
107
|
-
reference:
|
|
108
|
-
|
|
107
|
+
reference: vues.withCtx(() => [
|
|
108
|
+
vues.withDirectives((vues.openBlock(), vues.createBlock(vues.unref(index$4.Inputs), vues.mergeProps({
|
|
109
109
|
ref_key: "refInput",
|
|
110
110
|
ref: refInput,
|
|
111
111
|
modelValue: value.value,
|
|
112
112
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event)
|
|
113
|
-
},
|
|
113
|
+
}, vues.unref(attrs).assem, {
|
|
114
114
|
disabled: props.disabled,
|
|
115
115
|
onInput,
|
|
116
116
|
onFocus,
|
|
117
117
|
onBlur,
|
|
118
|
-
onKeyup: _cache[1] || (_cache[1] =
|
|
118
|
+
onKeyup: _cache[1] || (_cache[1] = vues.withKeys(
|
|
119
119
|
() => {
|
|
120
120
|
if (!props.buts) onChange();
|
|
121
121
|
},
|
|
122
122
|
["enter", "native"]
|
|
123
123
|
)),
|
|
124
124
|
onClear
|
|
125
|
-
}),
|
|
126
|
-
|
|
125
|
+
}), vues.createSlots({ _: 2 }, [
|
|
126
|
+
vues.renderList(Object.keys(vues.unref(slots)), (k, index2) => {
|
|
127
127
|
return {
|
|
128
128
|
name: k,
|
|
129
|
-
fn:
|
|
130
|
-
|
|
129
|
+
fn: vues.withCtx(() => [
|
|
130
|
+
vues.renderSlot(_ctx.$slots, k)
|
|
131
131
|
])
|
|
132
132
|
};
|
|
133
133
|
})
|
|
134
134
|
]), 1040, ["modelValue", "disabled"])), [
|
|
135
|
-
[
|
|
135
|
+
[vues.unref(index$5.default), {}]
|
|
136
136
|
])
|
|
137
137
|
]),
|
|
138
|
-
default:
|
|
139
|
-
|
|
138
|
+
default: vues.withCtx(() => [
|
|
139
|
+
vues.unref(options).length > 0 ? (vues.openBlock(), vues.createElementBlock("div", {
|
|
140
140
|
key: 0,
|
|
141
|
-
class:
|
|
141
|
+
class: vues.normalizeClass(vues.unref(cs).z("select"))
|
|
142
142
|
}, [
|
|
143
|
-
|
|
144
|
-
class:
|
|
143
|
+
vues.createElementVNode("ul", {
|
|
144
|
+
class: vues.normalizeClass(vues.unref(cs).z("select-ul"))
|
|
145
145
|
}, [
|
|
146
|
-
(
|
|
147
|
-
return
|
|
148
|
-
class:
|
|
149
|
-
onClick:
|
|
146
|
+
(vues.openBlock(true), vues.createElementBlock(vues.Fragment, null, vues.renderList(vues.unref(options), (item) => {
|
|
147
|
+
return vues.openBlock(), vues.createElementBlock("li", {
|
|
148
|
+
class: vues.normalizeClass([vues.unref(cs).z("select-li")]),
|
|
149
|
+
onClick: vues.withModifiers(($event) => onClickSelect(item), ["stop"])
|
|
150
150
|
}, [
|
|
151
|
-
|
|
152
|
-
props.clean ? (
|
|
151
|
+
vues.createElementVNode("span", null, vues.toDisplayString(item), 1),
|
|
152
|
+
props.clean ? (vues.openBlock(), vues.createBlock(vues.unref(index$3.Icon), {
|
|
153
153
|
key: 0,
|
|
154
|
-
class:
|
|
155
|
-
onClick:
|
|
154
|
+
class: vues.normalizeClass([vues.unref(cs).z("select-li-clean")]),
|
|
155
|
+
onClick: vues.withModifiers(($event) => onClean(item), ["stop"])
|
|
156
156
|
}, {
|
|
157
|
-
default:
|
|
158
|
-
|
|
157
|
+
default: vues.withCtx(() => [
|
|
158
|
+
vues.createVNode(clear.default)
|
|
159
159
|
]),
|
|
160
160
|
_: 1
|
|
161
|
-
}, 8, ["class", "onClick"])) :
|
|
161
|
+
}, 8, ["class", "onClick"])) : vues.createCommentVNode("", true)
|
|
162
162
|
], 10, _hoisted_1);
|
|
163
163
|
}), 256))
|
|
164
164
|
], 2)
|
|
165
|
-
], 2)) :
|
|
165
|
+
], 2)) : vues.createCommentVNode("", true)
|
|
166
166
|
]),
|
|
167
167
|
_: 3
|
|
168
168
|
}, 8, ["popper-class", "visible", "disabled", "width"]),
|
|
169
|
-
props.buts ? (
|
|
169
|
+
props.buts ? (vues.openBlock(), vues.createBlock(vues.unref(index$6.Button), vues.mergeProps({
|
|
170
170
|
key: 0,
|
|
171
|
-
class: [
|
|
171
|
+
class: [vues.unref(cs).z("but"), props.buts.class]
|
|
172
172
|
}, props.buts, {
|
|
173
|
-
onClick:
|
|
173
|
+
onClick: vues.withModifiers(onChange, ["stop"])
|
|
174
174
|
}), {
|
|
175
|
-
default:
|
|
176
|
-
|
|
175
|
+
default: vues.withCtx(() => [
|
|
176
|
+
vues.createTextVNode(vues.toDisplayString(props.buts.label), 1)
|
|
177
177
|
]),
|
|
178
178
|
_: 1
|
|
179
|
-
}, 16, ["class"])) :
|
|
179
|
+
}, 16, ["class"])) : vues.createCommentVNode("", true)
|
|
180
180
|
], 16);
|
|
181
181
|
};
|
|
182
182
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const
|
|
3
|
+
const vues = require("vue");
|
|
4
4
|
const local = require("../../../utils/local.cjs");
|
|
5
5
|
function replaceAfter(arr, obj, id, is) {
|
|
6
6
|
const varr = [];
|
|
@@ -82,8 +82,8 @@ const useStorage = (storage, d, is) => {
|
|
|
82
82
|
get = local.getSession;
|
|
83
83
|
set = local.setSession;
|
|
84
84
|
}
|
|
85
|
-
const value =
|
|
86
|
-
const w =
|
|
85
|
+
const value = vues.ref(get(storage) || d);
|
|
86
|
+
const w = vues.watch(
|
|
87
87
|
() => value.value,
|
|
88
88
|
(v) => {
|
|
89
89
|
set(storage, v);
|
|
@@ -92,7 +92,7 @@ const useStorage = (storage, d, is) => {
|
|
|
92
92
|
deep: true
|
|
93
93
|
}
|
|
94
94
|
);
|
|
95
|
-
|
|
95
|
+
vues.onUnmounted(() => {
|
|
96
96
|
w();
|
|
97
97
|
});
|
|
98
98
|
return value;
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const
|
|
3
|
+
const vues = require("vue");
|
|
4
4
|
const index$3 = require("../../../directives/expose/index.cjs");
|
|
5
5
|
const index$2 = require("element-plus/es/components/input-number/index");
|
|
6
6
|
const data = require("./data.cjs");
|
|
7
7
|
const index$1 = require("../../../hooks/cssname/index.cjs");
|
|
8
8
|
const index = require("../../../hooks/inherit/index.cjs");
|
|
9
|
-
const _sfc_main = /* @__PURE__ */
|
|
9
|
+
const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
10
10
|
...{ inheritAttrs: false },
|
|
11
11
|
__name: "index",
|
|
12
12
|
props: data.dataProps,
|
|
13
13
|
emits: data.dataEmits,
|
|
14
14
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
15
|
-
const attrs = index.useInherit(
|
|
15
|
+
const attrs = index.useInherit(vues.useAttrs());
|
|
16
16
|
const cs = index$1.useCssName("input-num");
|
|
17
17
|
const props = __props;
|
|
18
|
-
const slots =
|
|
18
|
+
const slots = vues.useSlots();
|
|
19
19
|
const emit = __emit;
|
|
20
|
-
const refEl =
|
|
21
|
-
const value =
|
|
20
|
+
const refEl = vues.ref();
|
|
21
|
+
const value = vues.computed({
|
|
22
22
|
get() {
|
|
23
23
|
let v = props.modelValue;
|
|
24
24
|
return v;
|
|
@@ -31,28 +31,28 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
31
31
|
el: refEl
|
|
32
32
|
});
|
|
33
33
|
return (_ctx, _cache) => {
|
|
34
|
-
return
|
|
34
|
+
return vues.openBlock(), vues.createElementBlock("div", vues.mergeProps({
|
|
35
35
|
ref_key: "refEl",
|
|
36
36
|
ref: refEl,
|
|
37
|
-
class:
|
|
38
|
-
},
|
|
39
|
-
|
|
40
|
-
class:
|
|
37
|
+
class: vues.unref(cs).z()
|
|
38
|
+
}, vues.unref(attrs).root), [
|
|
39
|
+
vues.withDirectives((vues.openBlock(), vues.createBlock(vues.unref(index$2.ElInputNumber), vues.mergeProps({
|
|
40
|
+
class: vues.unref(cs).z("input"),
|
|
41
41
|
modelValue: value.value,
|
|
42
42
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event)
|
|
43
|
-
},
|
|
43
|
+
}, vues.unref(attrs).assem, {
|
|
44
44
|
placeholder: props.placeholder
|
|
45
|
-
}),
|
|
46
|
-
|
|
45
|
+
}), vues.createSlots({ _: 2 }, [
|
|
46
|
+
vues.renderList(Object.keys(vues.unref(slots)), (k, index2) => {
|
|
47
47
|
return {
|
|
48
48
|
name: k,
|
|
49
|
-
fn:
|
|
50
|
-
|
|
49
|
+
fn: vues.withCtx(() => [
|
|
50
|
+
vues.renderSlot(_ctx.$slots, k)
|
|
51
51
|
])
|
|
52
52
|
};
|
|
53
53
|
})
|
|
54
54
|
]), 1040, ["class", "modelValue", "placeholder"])), [
|
|
55
|
-
[
|
|
55
|
+
[vues.unref(index$3.default), {}]
|
|
56
56
|
])
|
|
57
57
|
], 16);
|
|
58
58
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const
|
|
3
|
+
const vues = require("vue");
|
|
4
4
|
const data = require("./data.cjs");
|
|
5
5
|
const index = require("../../../hooks/cssname/index.cjs");
|
|
6
6
|
const index$1 = require("element-plus/es/components/input-number/index");
|
|
7
|
-
const _sfc_main = /* @__PURE__ */
|
|
7
|
+
const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
8
8
|
__name: "index",
|
|
9
9
|
props: data.dataProps,
|
|
10
10
|
emits: data.dataEmits,
|
|
11
11
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
12
|
-
const attrs =
|
|
13
|
-
const slots =
|
|
12
|
+
const attrs = vues.useAttrs();
|
|
13
|
+
const slots = vues.useSlots();
|
|
14
14
|
const cs = index.useCssName("input-number");
|
|
15
15
|
const props = __props;
|
|
16
16
|
const emit = __emit;
|
|
@@ -18,14 +18,14 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
18
18
|
...data.dataExpose
|
|
19
19
|
});
|
|
20
20
|
return (_ctx, _cache) => {
|
|
21
|
-
return
|
|
22
|
-
class:
|
|
23
|
-
},
|
|
24
|
-
|
|
21
|
+
return vues.openBlock(), vues.createBlock(vues.unref(index$1.ElInputNumber), vues.mergeProps({
|
|
22
|
+
class: vues.unref(cs).z()
|
|
23
|
+
}, vues.unref(attrs)), vues.createSlots({ _: 2 }, [
|
|
24
|
+
vues.renderList(Object.keys(vues.unref(slots)), (k) => {
|
|
25
25
|
return {
|
|
26
26
|
name: k,
|
|
27
|
-
fn:
|
|
28
|
-
|
|
27
|
+
fn: vues.withCtx((scope) => [
|
|
28
|
+
vues.renderSlot(_ctx.$slots, k, vues.normalizeProps(vues.guardReactiveProps(scope)))
|
|
29
29
|
])
|
|
30
30
|
};
|
|
31
31
|
})
|