@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
|
require("../../../hooks/index.cjs");
|
|
6
6
|
const index$5 = require("element-plus/es/components/table/index");
|
|
@@ -10,7 +10,7 @@ const index$6 = require("../../checkbox/index.cjs");
|
|
|
10
10
|
const index$2 = require("../../select-dialog/index.cjs");
|
|
11
11
|
const index = require("../../../hooks/locale/index.cjs");
|
|
12
12
|
const index$1 = require("../../../hooks/cssname/index.cjs");
|
|
13
|
-
const _sfc_main = /* @__PURE__ */
|
|
13
|
+
const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
14
14
|
__name: "index",
|
|
15
15
|
props: data.dataProps,
|
|
16
16
|
emits: data.dataEmits,
|
|
@@ -19,11 +19,11 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
19
19
|
const cs = index$1.useCssName("role-select");
|
|
20
20
|
const propss = __props;
|
|
21
21
|
const emit = __emit;
|
|
22
|
-
const refSelectDialog =
|
|
23
|
-
const psprops =
|
|
22
|
+
const refSelectDialog = vues.ref();
|
|
23
|
+
const psprops = vues.computed(() => {
|
|
24
24
|
return Object.assign({}, data.roleSelect, propss.props);
|
|
25
25
|
});
|
|
26
|
-
const search =
|
|
26
|
+
const search = vues.ref("");
|
|
27
27
|
function onInput() {
|
|
28
28
|
const prop = psprops.value.value;
|
|
29
29
|
if (psprops.value.lazyLoad) {
|
|
@@ -36,8 +36,8 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
36
36
|
});
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
|
-
const list =
|
|
40
|
-
|
|
39
|
+
const list = vues.ref([]);
|
|
40
|
+
vues.watch(
|
|
41
41
|
() => propss.modelValue,
|
|
42
42
|
() => {
|
|
43
43
|
if (propss.modelValue) {
|
|
@@ -48,8 +48,8 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
48
48
|
},
|
|
49
49
|
{ immediate: true, deep: true }
|
|
50
50
|
);
|
|
51
|
-
const nodes =
|
|
52
|
-
const listData =
|
|
51
|
+
const nodes = vues.ref({});
|
|
52
|
+
const listData = vues.ref([]);
|
|
53
53
|
function onChange(obj) {
|
|
54
54
|
const prop = psprops.value.value;
|
|
55
55
|
if (!psprops.value.multiple) {
|
|
@@ -107,10 +107,10 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
107
107
|
}
|
|
108
108
|
});
|
|
109
109
|
return (_ctx, _cache) => {
|
|
110
|
-
return
|
|
111
|
-
class:
|
|
110
|
+
return vues.openBlock(), vues.createElementBlock("div", {
|
|
111
|
+
class: vues.normalizeClass(vues.unref(cs).z())
|
|
112
112
|
}, [
|
|
113
|
-
|
|
113
|
+
vues.createVNode(vues.unref(index$2.SelectDialog), {
|
|
114
114
|
"get-name": getName,
|
|
115
115
|
"get-name-explain": getNameExplain,
|
|
116
116
|
disabled: propss.disabled,
|
|
@@ -126,67 +126,67 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
126
126
|
onDialog,
|
|
127
127
|
onConfirm: onDialogffirm
|
|
128
128
|
}, {
|
|
129
|
-
suffix:
|
|
130
|
-
|
|
129
|
+
suffix: vues.withCtx(() => [
|
|
130
|
+
vues.renderSlot(_ctx.$slots, "suffix")
|
|
131
131
|
]),
|
|
132
|
-
default:
|
|
133
|
-
|
|
134
|
-
class:
|
|
132
|
+
default: vues.withCtx(() => [
|
|
133
|
+
vues.createElementVNode("div", {
|
|
134
|
+
class: vues.normalizeClass(vues.unref(cs).z("dialog-li"))
|
|
135
135
|
}, [
|
|
136
|
-
|
|
137
|
-
class:
|
|
136
|
+
vues.createElementVNode("div", {
|
|
137
|
+
class: vues.normalizeClass(vues.unref(cs).z("dialog-li-top"))
|
|
138
138
|
}, [
|
|
139
|
-
|
|
139
|
+
vues.createVNode(vues.unref(index$3.Input), {
|
|
140
140
|
placeholder: psprops.value.searchPlaceholder,
|
|
141
141
|
clearable: "",
|
|
142
142
|
modelValue: search.value,
|
|
143
143
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => search.value = $event),
|
|
144
|
-
onKeyup:
|
|
144
|
+
onKeyup: vues.withKeys(onInput, ["enter", "native"])
|
|
145
145
|
}, null, 8, ["placeholder", "modelValue"])
|
|
146
146
|
], 2),
|
|
147
|
-
|
|
148
|
-
class:
|
|
147
|
+
vues.createElementVNode("div", {
|
|
148
|
+
class: vues.normalizeClass(vues.unref(cs).z("dialog-gap"))
|
|
149
149
|
}, null, 2),
|
|
150
|
-
|
|
151
|
-
class:
|
|
150
|
+
vues.createElementVNode("div", {
|
|
151
|
+
class: vues.normalizeClass([vues.unref(cs).z("dialog-li-div"), vues.unref(cs).z("dialog-li-tree")])
|
|
152
152
|
}, [
|
|
153
|
-
|
|
154
|
-
class:
|
|
153
|
+
vues.createElementVNode("div", {
|
|
154
|
+
class: vues.normalizeClass([vues.unref(cs).z("dialog-div-tree")])
|
|
155
155
|
}, [
|
|
156
|
-
|
|
156
|
+
vues.createVNode(vues.unref(index$4.CheckboxGroup), {
|
|
157
157
|
modelValue: list.value,
|
|
158
158
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => list.value = $event)
|
|
159
159
|
}, {
|
|
160
|
-
default:
|
|
161
|
-
|
|
160
|
+
default: vues.withCtx(() => [
|
|
161
|
+
vues.createVNode(vues.unref(index$5.ElTable), {
|
|
162
162
|
data: listData.value,
|
|
163
163
|
height: "100%",
|
|
164
164
|
style: { "width": "100%" }
|
|
165
165
|
}, {
|
|
166
|
-
default:
|
|
167
|
-
|
|
166
|
+
default: vues.withCtx(() => [
|
|
167
|
+
vues.createVNode(vues.unref(index$5.ElTableColumn), {
|
|
168
168
|
type: "index",
|
|
169
169
|
label: "序号",
|
|
170
170
|
width: "60"
|
|
171
171
|
}),
|
|
172
|
-
|
|
172
|
+
vues.createVNode(vues.unref(index$5.ElTableColumn), {
|
|
173
173
|
prop: psprops.value.label,
|
|
174
174
|
label: "角色名称"
|
|
175
175
|
}, null, 8, ["prop"]),
|
|
176
|
-
|
|
176
|
+
vues.createVNode(vues.unref(index$5.ElTableColumn), {
|
|
177
177
|
width: "60",
|
|
178
178
|
label: "选择"
|
|
179
179
|
}, {
|
|
180
|
-
default:
|
|
181
|
-
|
|
180
|
+
default: vues.withCtx(({ row }) => [
|
|
181
|
+
vues.createVNode(vues.unref(index$6.Checkbox), {
|
|
182
182
|
onChange: () => {
|
|
183
183
|
onChange(row);
|
|
184
184
|
},
|
|
185
185
|
disabled: row[psprops.value.disabled],
|
|
186
186
|
label: row[psprops.value.value]
|
|
187
187
|
}, {
|
|
188
|
-
default:
|
|
189
|
-
|
|
188
|
+
default: vues.withCtx(() => [..._cache[3] || (_cache[3] = [
|
|
189
|
+
vues.createTextVNode(vues.toDisplayString(""), -1)
|
|
190
190
|
])]),
|
|
191
191
|
_: 1
|
|
192
192
|
}, 8, ["onChange", "disabled", "label"])
|
|
@@ -1,10 +1,10 @@
|
|
|
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 d3Timer = require("d3-timer");
|
|
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,
|
|
@@ -12,13 +12,13 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
12
12
|
const cs = index.useCssName("seamless-scroll");
|
|
13
13
|
const props = __props;
|
|
14
14
|
const emit = __emit;
|
|
15
|
-
const loopCount =
|
|
15
|
+
const loopCount = vues.ref(new Array(5));
|
|
16
16
|
let ties = null;
|
|
17
17
|
let tWatch = null;
|
|
18
|
-
const refDom =
|
|
19
|
-
const refLine =
|
|
20
|
-
const refWarp =
|
|
21
|
-
let parentHeight =
|
|
18
|
+
const refDom = vues.ref();
|
|
19
|
+
const refLine = vues.ref();
|
|
20
|
+
const refWarp = vues.ref();
|
|
21
|
+
let parentHeight = vues.ref(0);
|
|
22
22
|
const createTimer = (handle, fps = 32) => new Promise((resolve, reject) => {
|
|
23
23
|
resolve(
|
|
24
24
|
d3Timer.timer(() => {
|
|
@@ -31,8 +31,8 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
31
31
|
);
|
|
32
32
|
});
|
|
33
33
|
const getTime = () => (/* @__PURE__ */ new Date()).getTime();
|
|
34
|
-
const val =
|
|
35
|
-
const currentFps =
|
|
34
|
+
const val = vues.ref();
|
|
35
|
+
const currentFps = vues.ref(60);
|
|
36
36
|
let animation = true;
|
|
37
37
|
let lastTime = getTime();
|
|
38
38
|
const onStop = () => animation = false;
|
|
@@ -40,9 +40,9 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
40
40
|
animation = true;
|
|
41
41
|
lastTime = getTime();
|
|
42
42
|
};
|
|
43
|
-
const hideItemsIndex =
|
|
44
|
-
|
|
45
|
-
|
|
43
|
+
const hideItemsIndex = vues.ref([]);
|
|
44
|
+
vues.onMounted(() => {
|
|
45
|
+
vues.nextTick(() => {
|
|
46
46
|
if (!refDom.value) {
|
|
47
47
|
return false;
|
|
48
48
|
}
|
|
@@ -106,7 +106,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
106
106
|
});
|
|
107
107
|
});
|
|
108
108
|
});
|
|
109
|
-
|
|
109
|
+
vues.onUnmounted(() => {
|
|
110
110
|
ties == null ? void 0 : ties.stop();
|
|
111
111
|
tWatch == null ? void 0 : tWatch.stop();
|
|
112
112
|
if (refDom.value) {
|
|
@@ -118,30 +118,30 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
118
118
|
...data.dataExpose
|
|
119
119
|
});
|
|
120
120
|
return (_ctx, _cache) => {
|
|
121
|
-
return
|
|
121
|
+
return vues.openBlock(), vues.createElementBlock("div", {
|
|
122
122
|
ref_key: "refDom",
|
|
123
123
|
ref: refDom,
|
|
124
|
-
class:
|
|
125
|
-
style:
|
|
124
|
+
class: vues.normalizeClass(vues.unref(cs).z()),
|
|
125
|
+
style: vues.normalizeStyle({ height: vues.unref(parentHeight) + "px" })
|
|
126
126
|
}, [
|
|
127
|
-
|
|
127
|
+
vues.createElementVNode("div", {
|
|
128
128
|
ref_key: "refWarp",
|
|
129
129
|
ref: refWarp,
|
|
130
|
-
class:
|
|
130
|
+
class: vues.normalizeClass(vues.unref(cs).z("warp"))
|
|
131
131
|
}, [
|
|
132
|
-
(
|
|
133
|
-
return
|
|
132
|
+
(vues.openBlock(true), vues.createElementBlock(vues.Fragment, null, vues.renderList(loopCount.value.length, (i) => {
|
|
133
|
+
return vues.openBlock(), vues.createBlock(vues.KeepAlive, {
|
|
134
134
|
key: "ss_" + i
|
|
135
135
|
}, [
|
|
136
|
-
!hideItemsIndex.value.includes(i) ? (
|
|
136
|
+
!hideItemsIndex.value.includes(i) ? (vues.openBlock(), vues.createElementBlock("div", {
|
|
137
137
|
key: 0,
|
|
138
138
|
ref_for: true,
|
|
139
139
|
ref_key: "refLine",
|
|
140
140
|
ref: refLine,
|
|
141
|
-
class:
|
|
141
|
+
class: vues.normalizeClass(vues.unref(cs).z("warp-line"))
|
|
142
142
|
}, [
|
|
143
|
-
|
|
144
|
-
], 2)) :
|
|
143
|
+
vues.renderSlot(_ctx.$slots, "default")
|
|
144
|
+
], 2)) : vues.createCommentVNode("", true)
|
|
145
145
|
], 1024);
|
|
146
146
|
}), 128))
|
|
147
147
|
], 2)
|
|
@@ -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/select/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("select");
|
|
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.ElSelect), 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
|
require("../../../hooks/index.cjs");
|
|
6
6
|
const index$2 = require("../../input/index.cjs");
|
|
@@ -9,7 +9,7 @@ const index$4 = require("../../button/index.cjs");
|
|
|
9
9
|
const index = require("../../../hooks/locale/index.cjs");
|
|
10
10
|
const index$1 = require("../../../hooks/cssname/index.cjs");
|
|
11
11
|
const _hoisted_1 = ["onClick"];
|
|
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,
|
|
@@ -18,7 +18,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
18
18
|
const cs = index$1.useCssName("select-dialog");
|
|
19
19
|
const props = __props;
|
|
20
20
|
const emit = __emit;
|
|
21
|
-
const value =
|
|
21
|
+
const value = vues.computed({
|
|
22
22
|
get() {
|
|
23
23
|
return props.modelValue;
|
|
24
24
|
},
|
|
@@ -26,7 +26,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
26
26
|
emit("update:modelValue", value2);
|
|
27
27
|
}
|
|
28
28
|
});
|
|
29
|
-
const inputName =
|
|
29
|
+
const inputName = vues.computed(() => {
|
|
30
30
|
if (props.value) {
|
|
31
31
|
return props.value.map((v) => {
|
|
32
32
|
return props.setInputName ? props.setInputName(v) : props.getName(v);
|
|
@@ -35,10 +35,10 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
35
35
|
return "";
|
|
36
36
|
}
|
|
37
37
|
});
|
|
38
|
-
const dialogVisible =
|
|
38
|
+
const dialogVisible = vues.ref(false);
|
|
39
39
|
function onClear() {
|
|
40
40
|
value.value = [];
|
|
41
|
-
|
|
41
|
+
vues.nextTick(() => {
|
|
42
42
|
emit("update:modelValue", value.value);
|
|
43
43
|
emit("change", value.value);
|
|
44
44
|
});
|
|
@@ -49,7 +49,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
49
49
|
return o != key;
|
|
50
50
|
});
|
|
51
51
|
}
|
|
52
|
-
|
|
52
|
+
vues.nextTick(() => {
|
|
53
53
|
emit("update:modelValue", value.value);
|
|
54
54
|
emit("change", value.value);
|
|
55
55
|
});
|
|
@@ -80,32 +80,32 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
80
80
|
inputName
|
|
81
81
|
});
|
|
82
82
|
return (_ctx, _cache) => {
|
|
83
|
-
return
|
|
84
|
-
class:
|
|
83
|
+
return vues.openBlock(), vues.createElementBlock("div", {
|
|
84
|
+
class: vues.normalizeClass(vues.unref(cs).z())
|
|
85
85
|
}, [
|
|
86
|
-
|
|
86
|
+
vues.withDirectives(vues.createVNode(vues.unref(index$2.Input), {
|
|
87
87
|
disabled: "",
|
|
88
88
|
readonly: ""
|
|
89
89
|
}, null, 512), [
|
|
90
|
-
[
|
|
90
|
+
[vues.vShow, false]
|
|
91
91
|
]),
|
|
92
|
-
|
|
92
|
+
vues.createVNode(vues.unref(index$2.Input), {
|
|
93
93
|
modelValue: inputName.value,
|
|
94
94
|
onClick,
|
|
95
|
-
placeholder: props.placeholder ||
|
|
95
|
+
placeholder: props.placeholder || vues.unref(getLocale)("form.select"),
|
|
96
96
|
disabled: props.disabled,
|
|
97
97
|
readonly: ""
|
|
98
98
|
}, {
|
|
99
|
-
suffix:
|
|
100
|
-
|
|
99
|
+
suffix: vues.withCtx(() => [
|
|
100
|
+
vues.renderSlot(_ctx.$slots, "suffix")
|
|
101
101
|
]),
|
|
102
102
|
_: 3
|
|
103
103
|
}, 8, ["modelValue", "placeholder", "disabled"]),
|
|
104
|
-
|
|
104
|
+
vues.createVNode(vues.unref(index$3.Dialogs), {
|
|
105
105
|
modelValue: dialogVisible.value,
|
|
106
106
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => dialogVisible.value = $event),
|
|
107
|
-
class:
|
|
108
|
-
"custom-class":
|
|
107
|
+
class: vues.normalizeClass(vues.unref(cs).z("dialog")),
|
|
108
|
+
"custom-class": vues.unref(cs).z("dialog"),
|
|
109
109
|
title: props.title,
|
|
110
110
|
"append-to-body": props.appendToBody,
|
|
111
111
|
width: "calc(40px + " + props.width + ")",
|
|
@@ -113,103 +113,103 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
113
113
|
dialogVisible.value = false;
|
|
114
114
|
}
|
|
115
115
|
}, {
|
|
116
|
-
footer:
|
|
117
|
-
|
|
118
|
-
class:
|
|
116
|
+
footer: vues.withCtx(() => [
|
|
117
|
+
vues.createElementVNode("span", {
|
|
118
|
+
class: vues.normalizeClass([vues.unref(cs).z("dialog-footer")])
|
|
119
119
|
}, [
|
|
120
|
-
|
|
120
|
+
vues.createVNode(vues.unref(index$4.Button), {
|
|
121
121
|
onClick: _cache[0] || (_cache[0] = ($event) => dialogVisible.value = false)
|
|
122
122
|
}, {
|
|
123
|
-
default:
|
|
124
|
-
|
|
123
|
+
default: vues.withCtx(() => [
|
|
124
|
+
vues.createTextVNode(vues.toDisplayString(vues.unref(getLocale)("form.cancel")), 1)
|
|
125
125
|
]),
|
|
126
126
|
_: 1
|
|
127
127
|
}),
|
|
128
|
-
|
|
128
|
+
vues.createVNode(vues.unref(index$4.Button), {
|
|
129
129
|
type: "primary",
|
|
130
130
|
onClick: onDialogffirm
|
|
131
131
|
}, {
|
|
132
|
-
default:
|
|
133
|
-
|
|
132
|
+
default: vues.withCtx(() => [
|
|
133
|
+
vues.createTextVNode(vues.toDisplayString(vues.unref(getLocale)("form.confirm")), 1)
|
|
134
134
|
]),
|
|
135
135
|
_: 1
|
|
136
136
|
})
|
|
137
137
|
], 2)
|
|
138
138
|
]),
|
|
139
|
-
default:
|
|
140
|
-
|
|
141
|
-
class:
|
|
139
|
+
default: vues.withCtx(() => [
|
|
140
|
+
vues.createElementVNode("div", {
|
|
141
|
+
class: vues.normalizeClass(vues.unref(cs).z("dialog-list"))
|
|
142
142
|
}, [
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
class:
|
|
143
|
+
vues.renderSlot(_ctx.$slots, vues.unref(data.dataSlot).default),
|
|
144
|
+
vues.createElementVNode("div", {
|
|
145
|
+
class: vues.normalizeClass([vues.unref(cs).z("dialog-li")])
|
|
146
146
|
}, [
|
|
147
|
-
|
|
148
|
-
class:
|
|
149
|
-
|
|
150
|
-
|
|
147
|
+
vues.createElementVNode("div", {
|
|
148
|
+
class: vues.normalizeClass([
|
|
149
|
+
vues.unref(cs).z("dialog-li-top"),
|
|
150
|
+
vues.unref(cs).z("dialog-li-top-select")
|
|
151
151
|
])
|
|
152
152
|
}, [
|
|
153
|
-
_cache[3] || (_cache[3] =
|
|
154
|
-
|
|
153
|
+
_cache[3] || (_cache[3] = vues.createElementVNode("label", null, "已选择", -1)),
|
|
154
|
+
vues.createElementVNode("span", {
|
|
155
155
|
onClick: onClear,
|
|
156
|
-
class:
|
|
157
|
-
|
|
158
|
-
|
|
156
|
+
class: vues.normalizeClass([
|
|
157
|
+
vues.unref(cs).z("dialog-li-top"),
|
|
158
|
+
vues.unref(cs).z("dialog-li-top-clear")
|
|
159
159
|
])
|
|
160
160
|
}, [..._cache[2] || (_cache[2] = [
|
|
161
|
-
|
|
161
|
+
vues.createElementVNode("svg", {
|
|
162
162
|
viewBox: "0 0 1024 1024",
|
|
163
163
|
xmlns: "http://www.w3.org/2000/svg",
|
|
164
164
|
"data-v-ea893728": ""
|
|
165
165
|
}, [
|
|
166
|
-
|
|
166
|
+
vues.createElementVNode("path", {
|
|
167
167
|
fill: "currentColor",
|
|
168
168
|
d: "M896 448H128v192a64 64 0 0 0 64 64h192v192h256V704h192a64 64 0 0 0 64-64V448zm-770.752-64c0-47.552 5.248-90.24 15.552-128 14.72-54.016 42.496-107.392 83.2-160h417.28l-15.36 70.336L736 96h211.2c-24.832 42.88-41.92 96.256-51.2 160a663.872 663.872 0 0 0-6.144 128H960v256a128 128 0 0 1-128 128H704v160a32 32 0 0 1-32 32H352a32 32 0 0 1-32-32V768H192A128 128 0 0 1 64 640V384h61.248zm64 0h636.544c-2.048-45.824.256-91.584 6.848-137.216 4.48-30.848 10.688-59.776 18.688-86.784h-96.64l-221.12 141.248L561.92 160H256.512c-25.856 37.888-43.776 75.456-53.952 112.832-8.768 32.064-13.248 69.12-13.312 111.168z"
|
|
169
169
|
})
|
|
170
170
|
], -1)
|
|
171
171
|
])], 2)
|
|
172
172
|
], 2),
|
|
173
|
-
|
|
174
|
-
class:
|
|
173
|
+
vues.createElementVNode("div", {
|
|
174
|
+
class: vues.normalizeClass(vues.unref(cs).z("dialog-gap"))
|
|
175
175
|
}, null, 2),
|
|
176
|
-
|
|
177
|
-
class:
|
|
178
|
-
|
|
179
|
-
|
|
176
|
+
vues.createElementVNode("div", {
|
|
177
|
+
class: vues.normalizeClass([
|
|
178
|
+
vues.unref(cs).z("dialog-li-div"),
|
|
179
|
+
vues.unref(cs).z("dialog-li-select")
|
|
180
180
|
])
|
|
181
181
|
}, [
|
|
182
|
-
(
|
|
183
|
-
return
|
|
182
|
+
(vues.openBlock(true), vues.createElementBlock(vues.Fragment, null, vues.renderList(value.value, (item, index2) => {
|
|
183
|
+
return vues.openBlock(), vues.createElementBlock("div", {
|
|
184
184
|
key: index2,
|
|
185
|
-
class:
|
|
185
|
+
class: vues.normalizeClass([vues.unref(cs).z("dialog-li-select-li")])
|
|
186
186
|
}, [
|
|
187
|
-
|
|
188
|
-
class:
|
|
187
|
+
vues.createElementVNode("div", {
|
|
188
|
+
class: vues.normalizeClass([vues.unref(cs).z("dialog-li-top-select")])
|
|
189
189
|
}, [
|
|
190
|
-
|
|
191
|
-
class:
|
|
192
|
-
},
|
|
193
|
-
|
|
194
|
-
class:
|
|
190
|
+
vues.createElementVNode("span", {
|
|
191
|
+
class: vues.normalizeClass([vues.unref(cs).z("dialog-li-select-li-p1")])
|
|
192
|
+
}, vues.toDisplayString(props.getName(item)), 3),
|
|
193
|
+
vues.createElementVNode("span", {
|
|
194
|
+
class: vues.normalizeClass([vues.unref(cs).z("dialog-li-select-li-del")]),
|
|
195
195
|
onClick: ($event) => onDelete(item)
|
|
196
196
|
}, [..._cache[4] || (_cache[4] = [
|
|
197
|
-
|
|
197
|
+
vues.createElementVNode("svg", {
|
|
198
198
|
viewBox: "0 0 1024 1024",
|
|
199
199
|
xmlns: "http://www.w3.org/2000/svg",
|
|
200
200
|
"data-v-ea893728": ""
|
|
201
201
|
}, [
|
|
202
|
-
|
|
202
|
+
vues.createElementVNode("path", {
|
|
203
203
|
fill: "currentColor",
|
|
204
204
|
d: "M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"
|
|
205
205
|
})
|
|
206
206
|
], -1)
|
|
207
207
|
])], 10, _hoisted_1)
|
|
208
208
|
], 2),
|
|
209
|
-
props.getNameExplain ? (
|
|
209
|
+
props.getNameExplain ? (vues.openBlock(), vues.createElementBlock("div", {
|
|
210
210
|
key: 0,
|
|
211
|
-
class:
|
|
212
|
-
},
|
|
211
|
+
class: vues.normalizeClass([vues.unref(cs).z("dialog-li-select-li-p2")])
|
|
212
|
+
}, vues.toDisplayString(props.getNameExplain(item)), 3)) : vues.createCommentVNode("", true)
|
|
213
213
|
], 2);
|
|
214
214
|
}), 128))
|
|
215
215
|
], 2)
|