@fangzhongya/fang-ui 0.0.70 → 0.0.72
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/index.scss +2 -2
- package/dist/components/index2.scss +2 -2
- 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/css/index.css +22 -23
- package/dist/directives/expose/index.cjs +3 -2
- package/dist/directives/expose/index.js +3 -2
- 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 +34 -34
- package/dist/icons/index.json +9 -9
- 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/index.css +22 -23
- 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,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/alert/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("alert");
|
|
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.ElAlert), 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
|
})
|
|
@@ -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 data = require("./data.cjs");
|
|
5
5
|
const index$1 = require("../../../hooks/cssname/index.cjs");
|
|
6
6
|
const index$2 = require("../../icon/index.cjs");
|
|
@@ -8,14 +8,14 @@ const clear = require("../../../icons/vue/clear.cjs");
|
|
|
8
8
|
const use = require("../../common/use.cjs");
|
|
9
9
|
const lineToLargeHump = require("@fangzhongya/utils/name/lineToLargeHump");
|
|
10
10
|
const index = require("../../../hooks/locale/index.cjs");
|
|
11
|
-
const _sfc_main = /* @__PURE__ */
|
|
11
|
+
const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
12
12
|
__name: "index",
|
|
13
13
|
props: data.dataProps,
|
|
14
14
|
emits: data.dataEmits,
|
|
15
15
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
16
16
|
const { getLocale } = index.useLocale();
|
|
17
|
-
const compons =
|
|
18
|
-
const pcompon =
|
|
17
|
+
const compons = vues.inject("forms-compons", {});
|
|
18
|
+
const pcompon = vues.computed(() => {
|
|
19
19
|
if (typeof props.compon == "string") {
|
|
20
20
|
const tcom = lineToLargeHump.lineToLargeHump(props.compon);
|
|
21
21
|
return compons[tcom] || props.compon;
|
|
@@ -37,12 +37,12 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
37
37
|
}
|
|
38
38
|
});
|
|
39
39
|
const emit = __emit;
|
|
40
|
-
const refInput =
|
|
41
|
-
const isfocus =
|
|
42
|
-
const start =
|
|
43
|
-
const end =
|
|
44
|
-
const emove =
|
|
45
|
-
const isclear =
|
|
40
|
+
const refInput = vues.ref();
|
|
41
|
+
const isfocus = vues.ref(false);
|
|
42
|
+
const start = vues.ref();
|
|
43
|
+
const end = vues.ref();
|
|
44
|
+
const emove = vues.ref(false);
|
|
45
|
+
const isclear = vues.computed(() => {
|
|
46
46
|
if (props.clearable) {
|
|
47
47
|
if (start.value || end.value) {
|
|
48
48
|
if (emove.value || isfocus.value) {
|
|
@@ -52,7 +52,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
52
52
|
}
|
|
53
53
|
return false;
|
|
54
54
|
});
|
|
55
|
-
const multiple =
|
|
55
|
+
const multiple = vues.computed(() => {
|
|
56
56
|
var _a;
|
|
57
57
|
let multiple2 = (_a = props.config) == null ? void 0 : _a.multiple;
|
|
58
58
|
if (props.multiple) {
|
|
@@ -62,7 +62,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
62
62
|
}
|
|
63
63
|
return multiple2;
|
|
64
64
|
});
|
|
65
|
-
|
|
65
|
+
vues.watch(
|
|
66
66
|
() => props.modelValue,
|
|
67
67
|
() => {
|
|
68
68
|
let v = props.modelValue;
|
|
@@ -89,7 +89,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
89
89
|
deep: true
|
|
90
90
|
}
|
|
91
91
|
);
|
|
92
|
-
|
|
92
|
+
vues.watch(
|
|
93
93
|
() => isfocus.value,
|
|
94
94
|
() => {
|
|
95
95
|
if (isfocus.value) {
|
|
@@ -105,7 +105,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
105
105
|
function onMouseleave() {
|
|
106
106
|
emove.value = false;
|
|
107
107
|
}
|
|
108
|
-
const errer =
|
|
108
|
+
const errer = vues.ref();
|
|
109
109
|
function onInput(type) {
|
|
110
110
|
var _a, _b;
|
|
111
111
|
if (props.check) {
|
|
@@ -189,7 +189,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
189
189
|
function clearBlur() {
|
|
190
190
|
clearTimeout(timeout);
|
|
191
191
|
}
|
|
192
|
-
|
|
192
|
+
vues.onMounted(() => {
|
|
193
193
|
if (window) {
|
|
194
194
|
console.log("onMounted");
|
|
195
195
|
window.addEventListener("click", () => {
|
|
@@ -203,67 +203,67 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
203
203
|
});
|
|
204
204
|
return (_ctx, _cache) => {
|
|
205
205
|
var _a, _b, _c, _d;
|
|
206
|
-
return
|
|
207
|
-
class:
|
|
206
|
+
return vues.openBlock(), vues.createElementBlock("div", {
|
|
207
|
+
class: vues.normalizeClass([vues.unref(cs).z(), vues.unref(cs).is("focus", isfocus.value)]),
|
|
208
208
|
onMouseenter,
|
|
209
209
|
onMouseleave,
|
|
210
|
-
onClick:
|
|
210
|
+
onClick: vues.withModifiers(onClick, ["stop"])
|
|
211
211
|
}, [
|
|
212
|
-
|
|
213
|
-
(
|
|
212
|
+
vues.renderSlot(_ctx.$slots, vues.unref(data.dataSlot).prefix),
|
|
213
|
+
(vues.openBlock(), vues.createBlock(vues.resolveDynamicComponent(pcompon.value), vues.mergeProps(vues.unref(props).config, {
|
|
214
214
|
multiple: multiple.value,
|
|
215
|
-
class: [
|
|
215
|
+
class: [vues.unref(cs).z("value"), vues.unref(cs).z("start")],
|
|
216
216
|
modelValue: start.value,
|
|
217
217
|
"onUpdate:modelValue": [
|
|
218
218
|
_cache[0] || (_cache[0] = ($event) => start.value = $event),
|
|
219
219
|
_cache[1] || (_cache[1] = ($event) => onInput(0))
|
|
220
220
|
],
|
|
221
|
-
placeholder:
|
|
222
|
-
onClick:
|
|
221
|
+
placeholder: vues.unref(props).startPlaceholder + (((_a = vues.unref(props).config) == null ? void 0 : _a.placeholder) ?? ""),
|
|
222
|
+
onClick: vues.withModifiers(onFocus, ["stop"]),
|
|
223
223
|
onBlur
|
|
224
224
|
}), null, 16, ["multiple", "class", "modelValue", "placeholder"])),
|
|
225
|
-
|
|
226
|
-
class:
|
|
227
|
-
},
|
|
228
|
-
(
|
|
225
|
+
vues.createElementVNode("span", {
|
|
226
|
+
class: vues.normalizeClass([vues.unref(cs).z("range")])
|
|
227
|
+
}, vues.toDisplayString(vues.unref(props).rangeSeparator), 3),
|
|
228
|
+
(vues.openBlock(), vues.createBlock(vues.resolveDynamicComponent(pcompon.value), vues.mergeProps(vues.unref(props).config, {
|
|
229
229
|
multiple: multiple.value,
|
|
230
|
-
class: [
|
|
230
|
+
class: [vues.unref(cs).z("value"), vues.unref(cs).z("end")],
|
|
231
231
|
modelValue: end.value,
|
|
232
232
|
"onUpdate:modelValue": [
|
|
233
233
|
_cache[2] || (_cache[2] = ($event) => end.value = $event),
|
|
234
234
|
_cache[3] || (_cache[3] = ($event) => onInput(1))
|
|
235
235
|
],
|
|
236
|
-
placeholder:
|
|
237
|
-
onClick:
|
|
236
|
+
placeholder: vues.unref(props).endPlaceholder + (((_b = vues.unref(props).config) == null ? void 0 : _b.placeholder) ?? ""),
|
|
237
|
+
onClick: vues.withModifiers(onFocus, ["stop"]),
|
|
238
238
|
onBlur
|
|
239
239
|
}), null, 16, ["multiple", "class", "modelValue", "placeholder"])),
|
|
240
|
-
errer.value ? (
|
|
240
|
+
errer.value ? (vues.openBlock(), vues.createElementBlock("span", {
|
|
241
241
|
key: 0,
|
|
242
|
-
class:
|
|
243
|
-
|
|
244
|
-
|
|
242
|
+
class: vues.normalizeClass([
|
|
243
|
+
vues.unref(cs).z("error"),
|
|
244
|
+
vues.unref(cs).is("clear", isclear.value),
|
|
245
245
|
"type-" + ((_c = errer.value) == null ? void 0 : _c.type)
|
|
246
246
|
])
|
|
247
|
-
},
|
|
248
|
-
|
|
249
|
-
class:
|
|
247
|
+
}, vues.toDisplayString(((_d = errer.value) == null ? void 0 : _d.message) ? errer.value.message : errer.value), 3)) : vues.createCommentVNode("", true),
|
|
248
|
+
vues.createElementVNode("input", {
|
|
249
|
+
class: vues.normalizeClass(vues.unref(cs).z("focus")),
|
|
250
250
|
ref_key: "refInput",
|
|
251
251
|
ref: refInput,
|
|
252
252
|
onBlur
|
|
253
253
|
}, null, 34),
|
|
254
|
-
isclear.value ? (
|
|
254
|
+
isclear.value ? (vues.openBlock(), vues.createElementBlock("span", {
|
|
255
255
|
key: 1,
|
|
256
|
-
class:
|
|
257
|
-
onClick:
|
|
256
|
+
class: vues.normalizeClass([vues.unref(cs).z("icon"), vues.unref(cs).z("clear")]),
|
|
257
|
+
onClick: vues.withModifiers(onClear, ["stop"])
|
|
258
258
|
}, [
|
|
259
|
-
|
|
260
|
-
default:
|
|
261
|
-
|
|
259
|
+
vues.createVNode(vues.unref(index$2.Icon), null, {
|
|
260
|
+
default: vues.withCtx(() => [
|
|
261
|
+
vues.createVNode(clear.default)
|
|
262
262
|
]),
|
|
263
263
|
_: 1
|
|
264
264
|
})
|
|
265
|
-
], 2)) :
|
|
266
|
-
|
|
265
|
+
], 2)) : vues.createCommentVNode("", true),
|
|
266
|
+
vues.renderSlot(_ctx.$slots, vues.unref(data.dataSlot).suffix)
|
|
267
267
|
], 34);
|
|
268
268
|
};
|
|
269
269
|
}
|
|
@@ -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/autocomplete/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("autocomplete");
|
|
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.ElAutocomplete), 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
|
})
|
|
@@ -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 data = require("./data.cjs");
|
|
5
5
|
const index$1 = require("../../../hooks/cssname/index.cjs");
|
|
6
6
|
const index = require("../../../hooks/locale/index.cjs");
|
|
@@ -8,17 +8,17 @@ const index$4 = require("../../box-title/index.cjs");
|
|
|
8
8
|
const index$3 = require("../../box-mask/index.cjs");
|
|
9
9
|
const index$2 = require("../../box-teleport/index.cjs");
|
|
10
10
|
const _hoisted_1 = ["name"];
|
|
11
|
-
const _sfc_main = /* @__PURE__ */
|
|
11
|
+
const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
12
12
|
__name: "index",
|
|
13
13
|
props: data.dataProps,
|
|
14
14
|
emits: data.dataEmits,
|
|
15
15
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
16
|
-
const isInit =
|
|
16
|
+
const isInit = vues.shallowRef(false);
|
|
17
17
|
const { getLocale } = index.useLocale();
|
|
18
18
|
const cs = index$1.useCssName("box");
|
|
19
19
|
const props = __props;
|
|
20
20
|
const emit = __emit;
|
|
21
|
-
|
|
21
|
+
vues.watch(
|
|
22
22
|
() => props.modelValue,
|
|
23
23
|
() => {
|
|
24
24
|
if (props.modelValue) {
|
|
@@ -35,39 +35,39 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
35
35
|
...data.dataExpose
|
|
36
36
|
});
|
|
37
37
|
return (_ctx, _cache) => {
|
|
38
|
-
return
|
|
38
|
+
return vues.openBlock(), vues.createBlock(vues.unref(index$2.BoxTeleport), {
|
|
39
39
|
disabled: props.disabled,
|
|
40
40
|
to: props.to
|
|
41
41
|
}, {
|
|
42
|
-
default:
|
|
43
|
-
isInit.value ?
|
|
42
|
+
default: vues.withCtx(() => [
|
|
43
|
+
isInit.value ? vues.withDirectives((vues.openBlock(), vues.createElementBlock("div", {
|
|
44
44
|
key: 0,
|
|
45
|
-
class:
|
|
45
|
+
class: vues.normalizeClass([vues.unref(cs).z(), props.boxClass])
|
|
46
46
|
}, [
|
|
47
|
-
|
|
47
|
+
vues.createVNode(vues.unref(index$3.BoxMask), {
|
|
48
48
|
onClick: onClose,
|
|
49
|
-
cssprefix: props.cssprefix ||
|
|
49
|
+
cssprefix: props.cssprefix || vues.unref(cs).z()
|
|
50
50
|
}, null, 8, ["cssprefix"]),
|
|
51
|
-
|
|
52
|
-
class:
|
|
51
|
+
vues.createElementVNode("div", {
|
|
52
|
+
class: vues.normalizeClass(vues.unref(cs).z("body"))
|
|
53
53
|
}, [
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
vues.renderSlot(_ctx.$slots, vues.unref(data.dataSlot).title, {}, () => [
|
|
55
|
+
vues.createVNode(vues.unref(index$4.BoxTitle), {
|
|
56
56
|
onClose,
|
|
57
57
|
title: props.title
|
|
58
58
|
}, null, 8, ["title"])
|
|
59
59
|
]),
|
|
60
|
-
|
|
61
|
-
name:
|
|
62
|
-
class:
|
|
60
|
+
vues.createElementVNode("div", {
|
|
61
|
+
name: vues.unref(data.dataSlot).default,
|
|
62
|
+
class: vues.normalizeClass(vues.unref(cs).z("body-div"))
|
|
63
63
|
}, [
|
|
64
|
-
|
|
64
|
+
vues.renderSlot(_ctx.$slots, "default")
|
|
65
65
|
], 10, _hoisted_1),
|
|
66
|
-
|
|
66
|
+
vues.renderSlot(_ctx.$slots, vues.unref(data.dataSlot).footer)
|
|
67
67
|
], 2)
|
|
68
68
|
], 2)), [
|
|
69
|
-
[
|
|
70
|
-
]) :
|
|
69
|
+
[vues.vShow, props.modelValue]
|
|
70
|
+
]) : vues.createCommentVNode("", true)
|
|
71
71
|
]),
|
|
72
72
|
_: 3
|
|
73
73
|
}, 8, ["disabled", "to"]);
|
|
@@ -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 data = require("./data.cjs");
|
|
5
5
|
const index = require("../../../hooks/cssname/index.cjs");
|
|
6
6
|
const index$3 = require("../../box-title/index.cjs");
|
|
@@ -9,12 +9,12 @@ const index$1 = require("../../box-teleport/index.cjs");
|
|
|
9
9
|
const index$5 = require("../../../directives/adjust/index.cjs");
|
|
10
10
|
const index$4 = require("../../../directives/drag/index.cjs");
|
|
11
11
|
const use = require("../../common/use.cjs");
|
|
12
|
-
const _sfc_main = /* @__PURE__ */
|
|
12
|
+
const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
13
13
|
__name: "index",
|
|
14
14
|
props: data.dataProps,
|
|
15
15
|
emits: data.dataEmits,
|
|
16
16
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
17
|
-
const isInit =
|
|
17
|
+
const isInit = vues.shallowRef(false);
|
|
18
18
|
const cs = index.useCssName("box-adjust");
|
|
19
19
|
const prs = __props;
|
|
20
20
|
const props = use.uesPropsDefault(prs, {
|
|
@@ -23,7 +23,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
23
23
|
}
|
|
24
24
|
});
|
|
25
25
|
const emit = __emit;
|
|
26
|
-
|
|
26
|
+
vues.watch(
|
|
27
27
|
() => props.modelValue,
|
|
28
28
|
() => {
|
|
29
29
|
if (props.modelValue) {
|
|
@@ -40,46 +40,46 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
40
40
|
...data.dataExpose
|
|
41
41
|
});
|
|
42
42
|
return (_ctx, _cache) => {
|
|
43
|
-
return
|
|
44
|
-
disabled:
|
|
45
|
-
to:
|
|
43
|
+
return vues.openBlock(), vues.createBlock(vues.unref(index$1.BoxTeleport), {
|
|
44
|
+
disabled: vues.unref(props).disabled,
|
|
45
|
+
to: vues.unref(props).to
|
|
46
46
|
}, {
|
|
47
|
-
default:
|
|
48
|
-
isInit.value ?
|
|
47
|
+
default: vues.withCtx(() => [
|
|
48
|
+
isInit.value ? vues.withDirectives((vues.openBlock(), vues.createElementBlock("div", {
|
|
49
49
|
key: 0,
|
|
50
|
-
class:
|
|
50
|
+
class: vues.normalizeClass(vues.unref(cs).z())
|
|
51
51
|
}, [
|
|
52
|
-
|
|
52
|
+
vues.createVNode(vues.unref(index$2.BoxMask), {
|
|
53
53
|
onClick: onClose,
|
|
54
|
-
cssprefix:
|
|
54
|
+
cssprefix: vues.unref(props).cssprefix || vues.unref(cs).z()
|
|
55
55
|
}, null, 8, ["cssprefix"]),
|
|
56
|
-
|
|
57
|
-
class:
|
|
56
|
+
vues.withDirectives((vues.openBlock(), vues.createElementBlock("div", {
|
|
57
|
+
class: vues.normalizeClass(vues.unref(cs).z("body"))
|
|
58
58
|
}, [
|
|
59
|
-
|
|
60
|
-
|
|
59
|
+
vues.renderSlot(_ctx.$slots, vues.unref(data.dataSlot).title, {}, () => [
|
|
60
|
+
vues.createVNode(vues.unref(index$3.BoxTitle), {
|
|
61
61
|
onClose,
|
|
62
|
-
title:
|
|
62
|
+
title: vues.unref(props).title
|
|
63
63
|
}, null, 8, ["title"])
|
|
64
64
|
]),
|
|
65
|
-
|
|
66
|
-
class:
|
|
65
|
+
vues.createElementVNode("div", {
|
|
66
|
+
class: vues.normalizeClass(vues.unref(cs).z("body-div"))
|
|
67
67
|
}, [
|
|
68
|
-
|
|
68
|
+
vues.renderSlot(_ctx.$slots, vues.unref(data.dataSlot).default)
|
|
69
69
|
], 2),
|
|
70
|
-
|
|
70
|
+
vues.renderSlot(_ctx.$slots, vues.unref(data.dataSlot).footer)
|
|
71
71
|
], 2)), [
|
|
72
|
-
[
|
|
73
|
-
dom:
|
|
72
|
+
[vues.unref(index$4.default), {
|
|
73
|
+
dom: vues.unref(props).drag
|
|
74
74
|
}],
|
|
75
|
-
[
|
|
76
|
-
often:
|
|
75
|
+
[vues.unref(index$5.default), {
|
|
76
|
+
often: vues.unref(props).often,
|
|
77
77
|
all: { position: true }
|
|
78
78
|
}]
|
|
79
79
|
])
|
|
80
80
|
], 2)), [
|
|
81
|
-
[
|
|
82
|
-
]) :
|
|
81
|
+
[vues.vShow, vues.unref(props).modelValue]
|
|
82
|
+
]) : vues.createCommentVNode("", true)
|
|
83
83
|
]),
|
|
84
84
|
_: 3
|
|
85
85
|
}, 8, ["disabled", "to"]);
|
|
@@ -1,11 +1,11 @@
|
|
|
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$1 = require("../../../hooks/cssname/index.cjs");
|
|
6
6
|
const index = require("../../../hooks/locale/index.cjs");
|
|
7
7
|
const index$2 = require("../../box/index.cjs");
|
|
8
|
-
const _sfc_main = /* @__PURE__ */
|
|
8
|
+
const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
9
9
|
__name: "index",
|
|
10
10
|
props: data.dataProps,
|
|
11
11
|
emits: data.dataEmits,
|
|
@@ -14,9 +14,9 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
14
14
|
const cs = index$1.useCssName("box-local");
|
|
15
15
|
const props = __props;
|
|
16
16
|
const filters = ["local"];
|
|
17
|
-
const bind =
|
|
17
|
+
const bind = vues.computed(() => {
|
|
18
18
|
const obj = {};
|
|
19
|
-
Object.keys(
|
|
19
|
+
Object.keys(vues.toRaw(props)).forEach((key) => {
|
|
20
20
|
const k = key;
|
|
21
21
|
if (filters.includes(k)) {
|
|
22
22
|
obj[key] = props[k];
|
|
@@ -24,10 +24,10 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
24
24
|
});
|
|
25
25
|
return obj;
|
|
26
26
|
});
|
|
27
|
-
const slots =
|
|
28
|
-
const attrs =
|
|
27
|
+
const slots = vues.useSlots();
|
|
28
|
+
const attrs = vues.useAttrs();
|
|
29
29
|
const emit = __emit;
|
|
30
|
-
const event =
|
|
30
|
+
const event = vues.computed(() => {
|
|
31
31
|
const obj = {};
|
|
32
32
|
let arr;
|
|
33
33
|
if (data.dataEmits instanceof Array) {
|
|
@@ -42,7 +42,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
42
42
|
});
|
|
43
43
|
return obj;
|
|
44
44
|
});
|
|
45
|
-
const value =
|
|
45
|
+
const value = vues.computed({
|
|
46
46
|
get() {
|
|
47
47
|
return props.modelValue;
|
|
48
48
|
},
|
|
@@ -65,7 +65,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
65
65
|
...data.dataExpose
|
|
66
66
|
});
|
|
67
67
|
return (_ctx, _cache) => {
|
|
68
|
-
return props.local ? (
|
|
68
|
+
return props.local ? (vues.openBlock(), vues.createBlock(vues.unref(index$2.Box), {
|
|
69
69
|
key: 0,
|
|
70
70
|
title: props.title,
|
|
71
71
|
disabled: props.disabled,
|
|
@@ -74,29 +74,29 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
74
74
|
modelValue: value.value,
|
|
75
75
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event),
|
|
76
76
|
onClose
|
|
77
|
-
},
|
|
78
|
-
[
|
|
79
|
-
|
|
80
|
-
class:
|
|
77
|
+
}, vues.createSlots({
|
|
78
|
+
[vues.unref(data.dataSlot).default]: vues.withCtx(() => [
|
|
79
|
+
vues.createElementVNode("div", {
|
|
80
|
+
class: vues.normalizeClass(vues.unref(cs).z())
|
|
81
81
|
}, [
|
|
82
|
-
|
|
82
|
+
vues.renderSlot(_ctx.$slots, "default")
|
|
83
83
|
], 2)
|
|
84
84
|
]),
|
|
85
85
|
_: 2
|
|
86
86
|
}, [
|
|
87
|
-
|
|
87
|
+
vues.renderList(Object.values(vues.unref(data.dataSlot)), (key, index2) => {
|
|
88
88
|
return {
|
|
89
89
|
name: key,
|
|
90
|
-
fn:
|
|
91
|
-
|
|
90
|
+
fn: vues.withCtx(() => [
|
|
91
|
+
vues.renderSlot(_ctx.$slots, key)
|
|
92
92
|
])
|
|
93
93
|
};
|
|
94
94
|
})
|
|
95
|
-
]), 1032, ["title", "disabled", "to", "cssprefix", "modelValue"])) : (
|
|
95
|
+
]), 1032, ["title", "disabled", "to", "cssprefix", "modelValue"])) : (vues.openBlock(), vues.createElementBlock("div", {
|
|
96
96
|
key: 1,
|
|
97
|
-
class:
|
|
97
|
+
class: vues.normalizeClass(vues.unref(cs).z())
|
|
98
98
|
}, [
|
|
99
|
-
|
|
99
|
+
vues.renderSlot(_ctx.$slots, "default")
|
|
100
100
|
], 2));
|
|
101
101
|
};
|
|
102
102
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
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
|
-
const _sfc_main = /* @__PURE__ */
|
|
6
|
+
const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
7
7
|
__name: "index",
|
|
8
8
|
props: data.dataProps,
|
|
9
9
|
emits: data.dataEmits,
|
|
@@ -11,7 +11,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
11
11
|
const cs = index.useCssName("box-mask");
|
|
12
12
|
const props = __props;
|
|
13
13
|
const emit = __emit;
|
|
14
|
-
const setCss =
|
|
14
|
+
const setCss = vues.computed(() => {
|
|
15
15
|
if (props.cssprefix) {
|
|
16
16
|
return props.cssprefix + "-mask";
|
|
17
17
|
} else {
|
|
@@ -22,8 +22,8 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
22
22
|
...data.dataExpose
|
|
23
23
|
});
|
|
24
24
|
return (_ctx, _cache) => {
|
|
25
|
-
return
|
|
26
|
-
class:
|
|
25
|
+
return vues.openBlock(), vues.createElementBlock("div", {
|
|
26
|
+
class: vues.normalizeClass([vues.unref(cs).z(), setCss.value])
|
|
27
27
|
}, null, 2);
|
|
28
28
|
};
|
|
29
29
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
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$1 = require("../../../hooks/cssname/index.cjs");
|
|
6
6
|
const index = require("../../../hooks/locale/index.cjs");
|
|
7
7
|
const enums = require("../../../utils/enums.cjs");
|
|
8
|
-
const _sfc_main = /* @__PURE__ */
|
|
8
|
+
const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
9
9
|
__name: "index",
|
|
10
10
|
props: data.dataProps,
|
|
11
11
|
emits: data.dataEmits,
|
|
@@ -28,12 +28,12 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
28
28
|
...data.dataExpose
|
|
29
29
|
});
|
|
30
30
|
return (_ctx, _cache) => {
|
|
31
|
-
return
|
|
32
|
-
class:
|
|
31
|
+
return vues.openBlock(), vues.createBlock(vues.Teleport, {
|
|
32
|
+
class: vues.normalizeClass(vues.unref(cs).z()),
|
|
33
33
|
disabled: props.disabled,
|
|
34
34
|
to: props.to
|
|
35
35
|
}, [
|
|
36
|
-
|
|
36
|
+
vues.renderSlot(_ctx.$slots, "default")
|
|
37
37
|
], 8, ["class", "disabled", "to"]);
|
|
38
38
|
};
|
|
39
39
|
}
|