@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,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$2 = require("../../../hooks/cssname/index.cjs");
|
|
6
6
|
const index$1 = require("../../../hooks/inherit/index.cjs");
|
|
@@ -9,14 +9,14 @@ const index$4 = require("../../dates-divide/index.cjs");
|
|
|
9
9
|
const index$3 = require("../../selects/index.cjs");
|
|
10
10
|
const index$5 = require("element-plus/es/components/date-picker/index");
|
|
11
11
|
const index = require("../../../hooks/locale/index.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
17
|
const { getLocale } = index.useLocale();
|
|
18
|
-
const attrs = index$1.useInherit(
|
|
19
|
-
const slots =
|
|
18
|
+
const attrs = index$1.useInherit(vues.useAttrs());
|
|
19
|
+
const slots = vues.useSlots();
|
|
20
20
|
const cs = index$2.useCssName("dates2");
|
|
21
21
|
const props = __props;
|
|
22
22
|
const emit = __emit;
|
|
@@ -27,7 +27,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
27
27
|
const onChange = (v, obj) => {
|
|
28
28
|
value.value = getValue(obj[0].value());
|
|
29
29
|
};
|
|
30
|
-
const types =
|
|
30
|
+
const types = vues.computed(() => {
|
|
31
31
|
return util.getType(props.type || "date");
|
|
32
32
|
});
|
|
33
33
|
const listFuObj = data.dataHandle(props, emit, {
|
|
@@ -35,7 +35,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
35
35
|
});
|
|
36
36
|
const value = listFuObj.value;
|
|
37
37
|
const multiple = listFuObj.multiple;
|
|
38
|
-
const type =
|
|
38
|
+
const type = vues.computed(() => {
|
|
39
39
|
var _a, _b;
|
|
40
40
|
if (multiple.value) {
|
|
41
41
|
return ((_a = types.value) == null ? void 0 : _a.double) || props.type;
|
|
@@ -54,43 +54,43 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
54
54
|
});
|
|
55
55
|
return (_ctx, _cache) => {
|
|
56
56
|
var _a, _b, _c;
|
|
57
|
-
return
|
|
58
|
-
class: [
|
|
59
|
-
},
|
|
60
|
-
|
|
61
|
-
props.separate &&
|
|
57
|
+
return vues.openBlock(), vues.createElementBlock("div", vues.mergeProps({
|
|
58
|
+
class: [vues.unref(cs).z()]
|
|
59
|
+
}, vues.unref(attrs).root), [
|
|
60
|
+
vues.renderSlot(_ctx.$slots, vues.unref(data.dataSlot).prefix),
|
|
61
|
+
props.separate && vues.unref(multiple) ? (vues.openBlock(), vues.createElementBlock("div", {
|
|
62
62
|
key: 0,
|
|
63
|
-
class:
|
|
63
|
+
class: vues.normalizeClass([vues.unref(cs).z("separate")])
|
|
64
64
|
}, [
|
|
65
|
-
props.shortcuts && props.shortcuts.length > 0 ? (
|
|
65
|
+
props.shortcuts && props.shortcuts.length > 0 ? (vues.openBlock(), vues.createBlock(vues.unref(index$3.Selects), {
|
|
66
66
|
key: 0,
|
|
67
67
|
options: props.shortcuts,
|
|
68
68
|
optobj: "",
|
|
69
|
-
placeholder:
|
|
69
|
+
placeholder: vues.unref(getLocale)("quick"),
|
|
70
70
|
onChange,
|
|
71
71
|
label: "text",
|
|
72
72
|
prop: "text"
|
|
73
|
-
}, null, 8, ["options", "placeholder"])) :
|
|
74
|
-
|
|
73
|
+
}, null, 8, ["options", "placeholder"])) : vues.createCommentVNode("", true),
|
|
74
|
+
vues.createVNode(vues.unref(index$4.DatesDivide), vues.mergeProps(vues.unref(attrs).assem, {
|
|
75
75
|
type: ((_a = types.value) == null ? void 0 : _a.type) || props.type,
|
|
76
76
|
format: props.format || ((_b = types.value) == null ? void 0 : _b.format),
|
|
77
77
|
"default-time": defaultTime,
|
|
78
|
-
modelValue:
|
|
79
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) =>
|
|
78
|
+
modelValue: vues.unref(value),
|
|
79
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vues.isRef(value) ? value.value = $event : null)
|
|
80
80
|
}), null, 16, ["type", "format", "modelValue"])
|
|
81
|
-
], 2)) : (
|
|
81
|
+
], 2)) : (vues.openBlock(), vues.createBlock(vues.unref(index$5.ElDatePicker), vues.mergeProps({ key: 1 }, vues.unref(attrs).assem, {
|
|
82
82
|
type: type.value,
|
|
83
83
|
format: props.format || ((_c = types.value) == null ? void 0 : _c.format),
|
|
84
|
-
"default-time":
|
|
84
|
+
"default-time": vues.unref(multiple) ? defaultTime : void 0,
|
|
85
85
|
shortcuts: props.shortcuts,
|
|
86
|
-
modelValue:
|
|
87
|
-
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) =>
|
|
88
|
-
}),
|
|
89
|
-
|
|
86
|
+
modelValue: vues.unref(value),
|
|
87
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => vues.isRef(value) ? value.value = $event : null)
|
|
88
|
+
}), vues.createSlots({ _: 2 }, [
|
|
89
|
+
vues.renderList(Object.keys(vues.unref(slots)), (k, index2) => {
|
|
90
90
|
return {
|
|
91
91
|
name: k,
|
|
92
|
-
fn:
|
|
93
|
-
|
|
92
|
+
fn: vues.withCtx((scope) => [
|
|
93
|
+
vues.renderSlot(_ctx.$slots, k, vues.normalizeProps(vues.guardReactiveProps(scope)))
|
|
94
94
|
])
|
|
95
95
|
};
|
|
96
96
|
})
|
|
@@ -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$4 = require("../../../directives/expose/index.cjs");
|
|
6
6
|
require("../../../hooks/index.cjs");
|
|
@@ -8,7 +8,7 @@ const index$3 = require("../../tree-select-box/index.cjs");
|
|
|
8
8
|
const index = require("../../../hooks/locale/index.cjs");
|
|
9
9
|
const index$1 = require("../../../hooks/inherit/index.cjs");
|
|
10
10
|
const index$2 = require("../../../hooks/cssname/index.cjs");
|
|
11
|
-
const _sfc_main = /* @__PURE__ */
|
|
11
|
+
const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
12
12
|
...{ inheritAttrs: false },
|
|
13
13
|
__name: "index",
|
|
14
14
|
props: data.dataProps,
|
|
@@ -19,10 +19,10 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
19
19
|
const cs = index$2.useCssName("department-select");
|
|
20
20
|
const propss = __props;
|
|
21
21
|
const emit = __emit;
|
|
22
|
-
const psprops =
|
|
22
|
+
const psprops = vues.computed(() => {
|
|
23
23
|
return Object.assign({}, data.roleSelect, propss.props);
|
|
24
24
|
});
|
|
25
|
-
const value =
|
|
25
|
+
const value = vues.computed({
|
|
26
26
|
get() {
|
|
27
27
|
let v = propss.modelValue;
|
|
28
28
|
return v;
|
|
@@ -35,22 +35,22 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
35
35
|
...data.dataExpose
|
|
36
36
|
});
|
|
37
37
|
return (_ctx, _cache) => {
|
|
38
|
-
return
|
|
39
|
-
class:
|
|
40
|
-
},
|
|
41
|
-
|
|
38
|
+
return vues.openBlock(), vues.createElementBlock("div", vues.mergeProps({
|
|
39
|
+
class: vues.unref(cs).z()
|
|
40
|
+
}, vues.unref(attrs).root), [
|
|
41
|
+
vues.withDirectives((vues.openBlock(), vues.createBlock(vues.unref(index$3.TreeSelectBox), vues.mergeProps({ ...vues.unref(attrs).assem, ...propss }, {
|
|
42
42
|
modelValue: value.value,
|
|
43
43
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event),
|
|
44
44
|
width: _ctx.width,
|
|
45
45
|
props: psprops.value,
|
|
46
46
|
title: _ctx.title
|
|
47
47
|
}), {
|
|
48
|
-
suffix:
|
|
49
|
-
|
|
48
|
+
suffix: vues.withCtx(() => [
|
|
49
|
+
vues.renderSlot(_ctx.$slots, "suffix")
|
|
50
50
|
]),
|
|
51
51
|
_: 3
|
|
52
52
|
}, 16, ["modelValue", "width", "props", "title"])), [
|
|
53
|
-
[
|
|
53
|
+
[vues.unref(index$4.default), {}]
|
|
54
54
|
])
|
|
55
55
|
], 16);
|
|
56
56
|
};
|
|
@@ -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/dialog/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("dialog");
|
|
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.ElDialog), 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,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 data = require("./data.cjs");
|
|
5
5
|
const index$2 = require("element-plus/es/components/dialog/index");
|
|
6
6
|
const index$3 = require("element-plus/es/components/button/index");
|
|
7
7
|
const index$1 = require("../../../hooks/cssname/index.cjs");
|
|
8
8
|
const index = require("../../../hooks/locale/index.cjs");
|
|
9
9
|
const use = require("../../common/use.cjs");
|
|
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,
|
|
@@ -23,10 +23,10 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
23
23
|
return getLocale("form.confirm");
|
|
24
24
|
}
|
|
25
25
|
});
|
|
26
|
-
const attrs =
|
|
27
|
-
const slots =
|
|
26
|
+
const attrs = vues.useAttrs();
|
|
27
|
+
const slots = vues.useSlots();
|
|
28
28
|
const emit = __emit;
|
|
29
|
-
const value =
|
|
29
|
+
const value = vues.computed({
|
|
30
30
|
get() {
|
|
31
31
|
return props.modelValue;
|
|
32
32
|
},
|
|
@@ -43,41 +43,41 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
43
43
|
};
|
|
44
44
|
__expose({});
|
|
45
45
|
return (_ctx, _cache) => {
|
|
46
|
-
return
|
|
47
|
-
class:
|
|
46
|
+
return vues.openBlock(), vues.createBlock(vues.unref(index$2.ElDialog), vues.mergeProps(vues.unref(attrs), {
|
|
47
|
+
class: vues.unref(cs).z(),
|
|
48
48
|
modelValue: value.value,
|
|
49
49
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event),
|
|
50
|
-
width:
|
|
51
|
-
}),
|
|
52
|
-
|
|
50
|
+
width: vues.unref(props).width
|
|
51
|
+
}), vues.createSlots({ _: 2 }, [
|
|
52
|
+
vues.renderList(Object.keys(vues.unref(slots)).filter(
|
|
53
53
|
(v) => !["footer"].includes(v)
|
|
54
54
|
), (k) => {
|
|
55
55
|
return {
|
|
56
56
|
name: k,
|
|
57
|
-
fn:
|
|
58
|
-
|
|
57
|
+
fn: vues.withCtx(() => [
|
|
58
|
+
vues.renderSlot(_ctx.$slots, k)
|
|
59
59
|
])
|
|
60
60
|
};
|
|
61
61
|
}),
|
|
62
|
-
!
|
|
62
|
+
!vues.unref(props).noFooter ? {
|
|
63
63
|
name: "footer",
|
|
64
|
-
fn:
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
class:
|
|
64
|
+
fn: vues.withCtx(() => [
|
|
65
|
+
vues.renderSlot(_ctx.$slots, "footer", {}, () => [
|
|
66
|
+
vues.createElementVNode("div", {
|
|
67
|
+
class: vues.normalizeClass(vues.unref(cs).z("footer"))
|
|
68
68
|
}, [
|
|
69
|
-
|
|
70
|
-
default:
|
|
71
|
-
|
|
69
|
+
vues.createVNode(vues.unref(index$3.ElButton), { onClick: onClose }, {
|
|
70
|
+
default: vues.withCtx(() => [
|
|
71
|
+
vues.createTextVNode(vues.toDisplayString(vues.unref(props).closeName), 1)
|
|
72
72
|
]),
|
|
73
73
|
_: 1
|
|
74
74
|
}),
|
|
75
|
-
|
|
75
|
+
vues.createVNode(vues.unref(index$3.ElButton), {
|
|
76
76
|
type: "primary",
|
|
77
77
|
onClick: onSubmit
|
|
78
78
|
}, {
|
|
79
|
-
default:
|
|
80
|
-
|
|
79
|
+
default: vues.withCtx(() => [
|
|
80
|
+
vues.createTextVNode(vues.toDisplayString(vues.unref(props).submitName), 1)
|
|
81
81
|
]),
|
|
82
82
|
_: 1
|
|
83
83
|
})
|
|
@@ -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/divider/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("divider");
|
|
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.ElDivider), 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,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/drawer/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("drawer");
|
|
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.ElDrawer), 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,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/dropdown/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("dropdown");
|
|
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.ElDropdown), 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,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/dropdown/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("dropdown-item");
|
|
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.ElDropdownItem), 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,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/dropdown/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("dropdown-menu");
|
|
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.ElDropdownMenu), 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,12 +1,12 @@
|
|
|
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$2 = require("../../icon/index.cjs");
|
|
5
5
|
const edit = require("../../../icons/vue/edit.cjs");
|
|
6
6
|
const data = require("./data.cjs");
|
|
7
7
|
const index$1 = require("../../inputs/index.cjs");
|
|
8
8
|
const index = require("../../../hooks/cssname/index.cjs");
|
|
9
|
-
const _sfc_main = /* @__PURE__ */
|
|
9
|
+
const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
10
10
|
__name: "index",
|
|
11
11
|
props: data.dataProps,
|
|
12
12
|
emits: data.dataEmits,
|
|
@@ -14,19 +14,19 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
14
14
|
const cs = index.useCssName("edit");
|
|
15
15
|
const props = __props;
|
|
16
16
|
const emit = __emit;
|
|
17
|
-
const isInput =
|
|
18
|
-
const isIcon =
|
|
19
|
-
const refEditInput =
|
|
20
|
-
const refEdit =
|
|
21
|
-
const width =
|
|
22
|
-
const display =
|
|
17
|
+
const isInput = vues.ref(false);
|
|
18
|
+
const isIcon = vues.ref(false);
|
|
19
|
+
const refEditInput = vues.ref();
|
|
20
|
+
const refEdit = vues.ref();
|
|
21
|
+
const width = vues.ref("");
|
|
22
|
+
const display = vues.ref("");
|
|
23
23
|
const getWidth = () => {
|
|
24
24
|
const dom = refEdit.value;
|
|
25
25
|
if (dom) {
|
|
26
26
|
width.value = (dom.clientWidth || dom.offsetWidth) + 40 + "px";
|
|
27
27
|
}
|
|
28
28
|
};
|
|
29
|
-
const value =
|
|
29
|
+
const value = vues.computed({
|
|
30
30
|
get() {
|
|
31
31
|
let v = props.modelValue;
|
|
32
32
|
if (!v && props.noEmpty) {
|
|
@@ -62,7 +62,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
62
62
|
refEditInput.value.focus();
|
|
63
63
|
});
|
|
64
64
|
}
|
|
65
|
-
|
|
65
|
+
vues.onMounted(() => {
|
|
66
66
|
let dom = refEdit.value;
|
|
67
67
|
dom.onmouseenter = (event) => {
|
|
68
68
|
isIcon.value = true;
|
|
@@ -79,14 +79,14 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
79
79
|
...data.dataExpose
|
|
80
80
|
});
|
|
81
81
|
return (_ctx, _cache) => {
|
|
82
|
-
return
|
|
82
|
+
return vues.openBlock(), vues.createElementBlock("span", {
|
|
83
83
|
ref_key: "refEdit",
|
|
84
84
|
ref: refEdit,
|
|
85
|
-
class:
|
|
85
|
+
class: vues.normalizeClass(vues.unref(cs).z())
|
|
86
86
|
}, [
|
|
87
|
-
isInput.value ? (
|
|
87
|
+
isInput.value ? (vues.openBlock(), vues.createBlock(vues.unref(index$1.Inputs), {
|
|
88
88
|
key: 0,
|
|
89
|
-
style:
|
|
89
|
+
style: vues.normalizeStyle({ width: width.value, display: display.value }),
|
|
90
90
|
modelValue: value.value,
|
|
91
91
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event),
|
|
92
92
|
ref_key: "refEditInput",
|
|
@@ -94,22 +94,22 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
94
94
|
type: props.textarea ? "textarea" : "text",
|
|
95
95
|
clearable: _ctx.clearable,
|
|
96
96
|
onBlur,
|
|
97
|
-
class:
|
|
98
|
-
}, null, 8, ["style", "modelValue", "type", "clearable", "class"])) : (
|
|
97
|
+
class: vues.normalizeClass(vues.unref(cs).z("input"))
|
|
98
|
+
}, null, 8, ["style", "modelValue", "type", "clearable", "class"])) : (vues.openBlock(), vues.createElementBlock("span", {
|
|
99
99
|
key: 1,
|
|
100
|
-
onDblclick:
|
|
101
|
-
class:
|
|
102
|
-
},
|
|
103
|
-
isIcon.value && !isInput.value ? (
|
|
100
|
+
onDblclick: vues.withModifiers(onDblclick, ["stop"]),
|
|
101
|
+
class: vues.normalizeClass(vues.unref(cs).z("value"))
|
|
102
|
+
}, vues.toDisplayString(value.value), 35)),
|
|
103
|
+
isIcon.value && !isInput.value ? (vues.openBlock(), vues.createBlock(vues.unref(index$2.Icon), {
|
|
104
104
|
key: 2,
|
|
105
105
|
onClick,
|
|
106
|
-
class:
|
|
106
|
+
class: vues.normalizeClass(vues.unref(cs).z("icon"))
|
|
107
107
|
}, {
|
|
108
|
-
default:
|
|
109
|
-
|
|
108
|
+
default: vues.withCtx(() => [
|
|
109
|
+
vues.createVNode(edit.default)
|
|
110
110
|
]),
|
|
111
111
|
_: 1
|
|
112
|
-
}, 8, ["class"])) :
|
|
112
|
+
}, 8, ["class"])) : vues.createCommentVNode("", true)
|
|
113
113
|
], 2);
|
|
114
114
|
};
|
|
115
115
|
}
|