@fangzhongya/fang-ui 0.0.70 → 0.0.71
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/alert/src/index2.cjs +10 -10
- package/dist/components/array/src/index2.cjs +45 -45
- package/dist/components/autocomplete/src/index2.cjs +10 -10
- package/dist/components/box/src/index2.cjs +21 -21
- package/dist/components/box-adjust/src/index2.cjs +27 -27
- package/dist/components/box-local/src/index2.cjs +20 -20
- package/dist/components/box-mask/src/index2.cjs +5 -5
- package/dist/components/box-teleport/src/index2.cjs +5 -5
- package/dist/components/box-title/src/index2.cjs +15 -15
- package/dist/components/button/src/index2.cjs +9 -9
- package/dist/components/buttons/src/index2.cjs +20 -20
- package/dist/components/card/src/index2.cjs +10 -10
- package/dist/components/cascader/src/index2.cjs +10 -10
- package/dist/components/cascader-panel/src/index2.cjs +10 -10
- package/dist/components/cascaders/src/index2.cjs +17 -17
- package/dist/components/checkbox/src/index2.cjs +10 -10
- package/dist/components/checkbox-group/src/index2.cjs +10 -10
- package/dist/components/checks/src/index2.cjs +31 -31
- package/dist/components/choice-select/src/index2.cjs +5 -5
- package/dist/components/collapse/src/index2.cjs +10 -10
- package/dist/components/collapse-item/src/index2.cjs +10 -10
- package/dist/components/color-picker/src/index2.cjs +10 -10
- package/dist/components/common/list.cjs +5 -5
- package/dist/components/common/use.cjs +5 -5
- package/dist/components/company-select/src/index2.cjs +19 -19
- package/dist/components/config-provider/src/index2.cjs +10 -10
- package/dist/components/date-picker/src/index2.cjs +10 -10
- package/dist/components/dates/src/index2.cjs +12 -12
- package/dist/components/dates-divide/src/index2.cjs +20 -20
- package/dist/components/dates-picker/src/index2.cjs +15 -15
- package/dist/components/dates2/src/index2.cjs +26 -26
- package/dist/components/department-select/src/index2.cjs +11 -11
- package/dist/components/dialog/src/index2.cjs +10 -10
- package/dist/components/dialogs/src/index2.cjs +23 -23
- package/dist/components/divider/src/index2.cjs +10 -10
- package/dist/components/drawer/src/index2.cjs +10 -10
- package/dist/components/dropdown/src/index2.cjs +10 -10
- package/dist/components/dropdown-item/src/index2.cjs +10 -10
- package/dist/components/dropdown-menu/src/index2.cjs +10 -10
- package/dist/components/edit/src/index2.cjs +24 -24
- package/dist/components/edit-float/src/index2.cjs +40 -40
- package/dist/components/form/src/index2.cjs +10 -10
- package/dist/components/form-item/src/index2.cjs +10 -10
- package/dist/components/forms/src/index2.cjs +65 -65
- package/dist/components/forms/src/setup.cjs +12 -12
- package/dist/components/forms-div/src/index2.cjs +11 -11
- package/dist/components/forms-drag/src/index2.cjs +73 -73
- package/dist/components/forms-item/src/index2.cjs +45 -45
- package/dist/components/forms-item/src/label.cjs +4 -4
- package/dist/components/forms-items/src/index2.cjs +23 -23
- package/dist/components/global-config/src/index.cjs +5 -5
- package/dist/components/history/src/index2.cjs +26 -26
- package/dist/components/icon/src/index2.cjs +23 -23
- package/dist/components/icon-picker/src/index2.cjs +52 -52
- package/dist/components/iframe/src/index2.cjs +10 -10
- package/dist/components/image/src/index2.cjs +10 -10
- package/dist/components/images/src/index2.cjs +16 -16
- package/dist/components/input/src/index2.cjs +10 -10
- package/dist/components/input-array/src/index2.cjs +38 -38
- package/dist/components/input-history/src/index2.cjs +48 -48
- package/dist/components/input-history/src/util.cjs +4 -4
- package/dist/components/input-num/src/index2.cjs +17 -17
- package/dist/components/input-number/src/index2.cjs +10 -10
- package/dist/components/input-select/src/index2.cjs +51 -51
- package/dist/components/input-tag/src/index2.cjs +10 -10
- package/dist/components/inputs/src/index2.cjs +17 -17
- package/dist/components/keep-com/src/index2.cjs +16 -16
- package/dist/components/labels/src/index2.cjs +13 -13
- package/dist/components/list/src/index2.cjs +24 -24
- package/dist/components/lists/src/index2.cjs +51 -51
- package/dist/components/listsp/src/index2.cjs +34 -34
- package/dist/components/mention/src/index2.cjs +10 -10
- package/dist/components/menus/src/index2.cjs +16 -16
- package/dist/components/menus/src/menu-ll2.cjs +11 -11
- package/dist/components/no-data/src/index2.cjs +5 -5
- package/dist/components/option/src/index2.cjs +9 -9
- package/dist/components/option-group/src/index2.cjs +10 -10
- package/dist/components/page/src/index2.cjs +77 -77
- package/dist/components/page/src/set-column2.cjs +54 -54
- package/dist/components/pagination/src/index2.cjs +10 -10
- package/dist/components/paging/src/index2.cjs +13 -13
- package/dist/components/popconfirm/src/index2.cjs +10 -10
- package/dist/components/popover/src/index2.cjs +10 -10
- package/dist/components/popup/src/index2.cjs +29 -29
- package/dist/components/radio/src/index2.cjs +10 -10
- package/dist/components/radio-group/src/index2.cjs +10 -10
- package/dist/components/retract/src/index2.cjs +14 -14
- package/dist/components/right-key/src/index2.cjs +30 -30
- package/dist/components/role-select/src/index2.cjs +38 -38
- package/dist/components/seamless-scroll/src/index2.cjs +24 -24
- package/dist/components/select/src/index2.cjs +10 -10
- package/dist/components/select-dialog/src/index2.cjs +65 -65
- package/dist/components/select-popover/src/index2.cjs +42 -42
- package/dist/components/select-scroll/src/index2.cjs +30 -30
- package/dist/components/selector/src/index2.cjs +39 -39
- package/dist/components/selects/src/index2.cjs +20 -20
- package/dist/components/slider/src/index2.cjs +10 -10
- package/dist/components/stick-div/src/index2.cjs +17 -17
- package/dist/components/stick-edge/src/index2.cjs +10 -10
- package/dist/components/stick-window/src/index2.cjs +22 -22
- package/dist/components/switch/src/index2.cjs +10 -10
- package/dist/components/switchs/src/index2.cjs +15 -15
- package/dist/components/tab-pane/src/index2.cjs +10 -10
- package/dist/components/tables/common/img2.cjs +7 -7
- package/dist/components/tables/common/pagin.cjs +16 -16
- package/dist/components/tables/common/table-but2.cjs +10 -10
- package/dist/components/tables/common/table-color2.cjs +7 -7
- package/dist/components/tables/common/table-list2.cjs +9 -9
- package/dist/components/tables/common/util.cjs +2 -2
- package/dist/components/tables/src/column.cjs +5 -5
- package/dist/components/tables/src/columns2.cjs +2 -2
- package/dist/components/tables/src/columns3.cjs +2 -2
- package/dist/components/tables/src/index2.cjs +29 -29
- package/dist/components/tablesp/src/index2.cjs +35 -35
- package/dist/components/tabless/src/index2.cjs +48 -48
- package/dist/components/tablesv/src/column.cjs +16 -16
- package/dist/components/tablesv/src/columns2.cjs +2 -2
- package/dist/components/tablesv/src/columns3.cjs +2 -2
- package/dist/components/tablesv/src/index2.cjs +30 -30
- package/dist/components/tablesvp/src/index2.cjs +30 -30
- package/dist/components/tabs/src/index2.cjs +10 -10
- package/dist/components/text/src/index2.cjs +8 -8
- package/dist/components/time-picker/src/index2.cjs +10 -10
- package/dist/components/time-select/src/index2.cjs +10 -10
- package/dist/components/tooltip/src/index2.cjs +10 -10
- package/dist/components/transfer/src/index2.cjs +10 -10
- package/dist/components/tree/src/index2.cjs +10 -10
- package/dist/components/tree-select/src/index2.cjs +10 -10
- package/dist/components/tree-select-box/src/index2.cjs +29 -29
- package/dist/components/upload/src/index2.cjs +10 -10
- package/dist/components/user-select/src/index2.cjs +99 -99
- package/dist/components/window/src/index2.cjs +61 -61
- package/dist/directives/scroll/index.cjs +24 -6
- package/dist/directives/scroll/index.js +3 -1
- package/dist/hooks/event-aliass/index.cjs +2 -2
- package/dist/hooks/global-config/index.cjs +8 -8
- package/dist/hooks/inherit/index.cjs +2 -2
- package/dist/hooks/locale/index.cjs +7 -7
- package/dist/icons/iconify.cjs +3 -3
- package/dist/icons/index.css +39 -39
- package/dist/icons/index.json +10 -10
- package/dist/icons/vue/bar.cjs +3 -3
- package/dist/icons/vue/below.cjs +3 -3
- package/dist/icons/vue/bicycle.cjs +3 -3
- package/dist/icons/vue/bottom-left.cjs +4 -4
- package/dist/icons/vue/bottom-right.cjs +4 -4
- package/dist/icons/vue/bottom.cjs +3 -3
- package/dist/icons/vue/clear.cjs +5 -5
- package/dist/icons/vue/close.cjs +3 -3
- package/dist/icons/vue/edit.cjs +5 -5
- package/dist/icons/vue/frame.cjs +3 -3
- package/dist/icons/vue/left.cjs +3 -3
- package/dist/icons/vue/right.cjs +3 -3
- package/dist/icons/vue/star.cjs +4 -4
- package/dist/utils/vues/common.cjs +2 -2
- package/package.json +5 -5
- /package/dist/components/{forms-item → forms-items}/index.css +0 -0
- /package/dist/css/{forms-item.css → forms-items.css} +0 -0
|
@@ -1,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/transfer/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("transfer");
|
|
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.ElTransfer), 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/tree/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("tree");
|
|
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.ElTree), 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 ElTreeSelect = require("element-plus/es/components/tree-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("tree-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(ElTreeSelect.ElTreeSelect), 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$3 = require("../../input/index.cjs");
|
|
@@ -8,7 +8,7 @@ const index$4 = require("../../tree/index.cjs");
|
|
|
8
8
|
const index$2 = require("../../select-dialog/index.cjs");
|
|
9
9
|
const index = require("../../../hooks/locale/index.cjs");
|
|
10
10
|
const index$1 = require("../../../hooks/cssname/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,
|
|
@@ -17,15 +17,15 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
17
17
|
const cs = index$1.useCssName("tree-select-box");
|
|
18
18
|
const propss = __props;
|
|
19
19
|
const emit = __emit;
|
|
20
|
-
const refSelectDialog =
|
|
21
|
-
const refTree =
|
|
22
|
-
const psprops =
|
|
20
|
+
const refSelectDialog = vues.ref();
|
|
21
|
+
const refTree = vues.ref();
|
|
22
|
+
const psprops = vues.computed(() => {
|
|
23
23
|
return Object.assign({}, data.roleSelect, propss.props);
|
|
24
24
|
});
|
|
25
|
-
const search =
|
|
26
|
-
const nodes =
|
|
27
|
-
const list =
|
|
28
|
-
|
|
25
|
+
const search = vues.ref("");
|
|
26
|
+
const nodes = vues.ref({});
|
|
27
|
+
const list = vues.ref([]);
|
|
28
|
+
vues.watch(
|
|
29
29
|
() => propss.modelValue,
|
|
30
30
|
() => {
|
|
31
31
|
if (propss.modelValue) {
|
|
@@ -37,7 +37,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
37
37
|
},
|
|
38
38
|
{ immediate: true, deep: true }
|
|
39
39
|
);
|
|
40
|
-
const listData =
|
|
40
|
+
const listData = vues.ref([]);
|
|
41
41
|
function lazyLoad(data2, callback) {
|
|
42
42
|
onInput(data2, callback);
|
|
43
43
|
}
|
|
@@ -170,10 +170,10 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
170
170
|
}
|
|
171
171
|
});
|
|
172
172
|
return (_ctx, _cache) => {
|
|
173
|
-
return
|
|
174
|
-
class:
|
|
173
|
+
return vues.openBlock(), vues.createElementBlock("div", {
|
|
174
|
+
class: vues.normalizeClass(vues.unref(cs).z())
|
|
175
175
|
}, [
|
|
176
|
-
|
|
176
|
+
vues.createVNode(vues.unref(index$2.SelectDialog), {
|
|
177
177
|
"get-name": getName,
|
|
178
178
|
"get-name-explain": getNameExplain,
|
|
179
179
|
placeholder: propss.placeholder,
|
|
@@ -191,34 +191,34 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
191
191
|
onDialog,
|
|
192
192
|
onConfirm: onDialogffirm
|
|
193
193
|
}, {
|
|
194
|
-
suffix:
|
|
195
|
-
|
|
194
|
+
suffix: vues.withCtx(() => [
|
|
195
|
+
vues.renderSlot(_ctx.$slots, "suffix")
|
|
196
196
|
]),
|
|
197
|
-
default:
|
|
198
|
-
|
|
199
|
-
class:
|
|
197
|
+
default: vues.withCtx(() => [
|
|
198
|
+
vues.createElementVNode("div", {
|
|
199
|
+
class: vues.normalizeClass(vues.unref(cs).z("dialog-li"))
|
|
200
200
|
}, [
|
|
201
|
-
|
|
202
|
-
class:
|
|
201
|
+
vues.createElementVNode("div", {
|
|
202
|
+
class: vues.normalizeClass(vues.unref(cs).z("dialog-li-top"))
|
|
203
203
|
}, [
|
|
204
|
-
|
|
204
|
+
vues.createVNode(vues.unref(index$3.Input), {
|
|
205
205
|
placeholder: psprops.value.searchPlaceholder,
|
|
206
206
|
modelValue: search.value,
|
|
207
207
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => search.value = $event),
|
|
208
208
|
clearable: "",
|
|
209
|
-
onKeyup:
|
|
209
|
+
onKeyup: vues.withKeys(onInput, ["enter", "native"])
|
|
210
210
|
}, null, 8, ["placeholder", "modelValue"])
|
|
211
211
|
], 2),
|
|
212
|
-
|
|
213
|
-
class:
|
|
212
|
+
vues.createElementVNode("div", {
|
|
213
|
+
class: vues.normalizeClass(vues.unref(cs).z("dialog-gap"))
|
|
214
214
|
}, null, 2),
|
|
215
|
-
|
|
216
|
-
class:
|
|
215
|
+
vues.createElementVNode("div", {
|
|
216
|
+
class: vues.normalizeClass([vues.unref(cs).z("dialog-li-div"), vues.unref(cs).z("dialog-li-tree")])
|
|
217
217
|
}, [
|
|
218
|
-
|
|
219
|
-
class:
|
|
218
|
+
vues.createElementVNode("div", {
|
|
219
|
+
class: vues.normalizeClass([vues.unref(cs).z("dialog-div-tree")])
|
|
220
220
|
}, [
|
|
221
|
-
|
|
221
|
+
vues.createVNode(vues.unref(index$4.Tree), {
|
|
222
222
|
data: listData.value,
|
|
223
223
|
"highlight-current": "",
|
|
224
224
|
"node-key": psprops.value.value,
|
|
@@ -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/upload/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("upload");
|
|
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.ElUpload), 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$3 = require("../../tabs/index.cjs");
|
|
@@ -15,7 +15,7 @@ const index$2 = require("../../select-dialog/index.cjs");
|
|
|
15
15
|
const index = require("../../../hooks/locale/index.cjs");
|
|
16
16
|
const index$1 = require("../../../hooks/cssname/index.cjs");
|
|
17
17
|
const _hoisted_1 = ["placeholder"];
|
|
18
|
-
const _sfc_main = /* @__PURE__ */
|
|
18
|
+
const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
19
19
|
__name: "index",
|
|
20
20
|
props: data.dataProps,
|
|
21
21
|
emits: data.dataEmits,
|
|
@@ -24,17 +24,17 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
24
24
|
const cs = index$1.useCssName("user-select");
|
|
25
25
|
const propss = __props;
|
|
26
26
|
const emit = __emit;
|
|
27
|
-
const refSelectDialog =
|
|
28
|
-
const refTree =
|
|
29
|
-
const psprops =
|
|
27
|
+
const refSelectDialog = vues.ref();
|
|
28
|
+
const refTree = vues.ref();
|
|
29
|
+
const psprops = vues.computed(() => {
|
|
30
30
|
return Object.assign({}, data.roleSelect, propss.props);
|
|
31
31
|
});
|
|
32
|
-
const search =
|
|
33
|
-
const treeObj =
|
|
34
|
-
const tabName =
|
|
35
|
-
const nodes =
|
|
36
|
-
const list =
|
|
37
|
-
|
|
32
|
+
const search = vues.ref("");
|
|
33
|
+
const treeObj = vues.ref({});
|
|
34
|
+
const tabName = vues.ref("1");
|
|
35
|
+
const nodes = vues.ref({});
|
|
36
|
+
const list = vues.ref([]);
|
|
37
|
+
vues.watch(
|
|
38
38
|
() => propss.modelValue,
|
|
39
39
|
() => {
|
|
40
40
|
if (propss.modelValue) {
|
|
@@ -45,7 +45,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
45
45
|
},
|
|
46
46
|
{ immediate: true, deep: true }
|
|
47
47
|
);
|
|
48
|
-
const listData =
|
|
48
|
+
const listData = vues.ref([]);
|
|
49
49
|
function onInput() {
|
|
50
50
|
if (psprops.value.lazyLoad) {
|
|
51
51
|
const prop = psprops.value.value;
|
|
@@ -99,7 +99,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
99
99
|
return obj[name];
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
|
-
|
|
102
|
+
vues.watch(
|
|
103
103
|
() => propss.options,
|
|
104
104
|
() => {
|
|
105
105
|
if (propss.options && propss.options.length > 0) {
|
|
@@ -111,7 +111,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
111
111
|
}
|
|
112
112
|
);
|
|
113
113
|
function setCurrentNode() {
|
|
114
|
-
|
|
114
|
+
vues.nextTick(() => {
|
|
115
115
|
if (propss.options[0] && refTree.value && refTree.value.refEl) {
|
|
116
116
|
refTree.value.refEl.setCurrentNode(propss.options[0], true);
|
|
117
117
|
handleTreeClick(propss.options[0]);
|
|
@@ -119,7 +119,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
119
119
|
});
|
|
120
120
|
}
|
|
121
121
|
function onTabClick() {
|
|
122
|
-
|
|
122
|
+
vues.nextTick(() => {
|
|
123
123
|
emit("tab-click", tabName.value);
|
|
124
124
|
});
|
|
125
125
|
}
|
|
@@ -167,10 +167,10 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
167
167
|
}
|
|
168
168
|
});
|
|
169
169
|
return (_ctx, _cache) => {
|
|
170
|
-
return
|
|
171
|
-
class:
|
|
170
|
+
return vues.openBlock(), vues.createElementBlock("div", {
|
|
171
|
+
class: vues.normalizeClass(vues.unref(cs).z())
|
|
172
172
|
}, [
|
|
173
|
-
|
|
173
|
+
vues.createVNode(vues.unref(index$2.SelectDialog), {
|
|
174
174
|
"get-name": getName,
|
|
175
175
|
"get-name-explain": getNameExplain,
|
|
176
176
|
disabled: propss.disabled,
|
|
@@ -186,39 +186,39 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
186
186
|
onDialog,
|
|
187
187
|
onConfirm: onDialogffirm
|
|
188
188
|
}, {
|
|
189
|
-
suffix:
|
|
190
|
-
|
|
189
|
+
suffix: vues.withCtx(() => [
|
|
190
|
+
vues.renderSlot(_ctx.$slots, "suffix")
|
|
191
191
|
]),
|
|
192
|
-
default:
|
|
193
|
-
|
|
194
|
-
class:
|
|
192
|
+
default: vues.withCtx(() => [
|
|
193
|
+
vues.createElementVNode("div", {
|
|
194
|
+
class: vues.normalizeClass([vues.unref(cs).z("dialog-div"), vues.unref(cs).z("dialog-tabs")])
|
|
195
195
|
}, [
|
|
196
|
-
|
|
196
|
+
vues.createVNode(vues.unref(index$3.Tabs), {
|
|
197
197
|
modelValue: tabName.value,
|
|
198
198
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => tabName.value = $event),
|
|
199
199
|
stretch: "",
|
|
200
|
-
class:
|
|
200
|
+
class: vues.normalizeClass(vues.unref(cs).z("dialog-li-tabs")),
|
|
201
201
|
onTabClick
|
|
202
202
|
}, {
|
|
203
|
-
default:
|
|
204
|
-
|
|
203
|
+
default: vues.withCtx(() => [
|
|
204
|
+
vues.createVNode(vues.unref(index$4.TabPane), {
|
|
205
205
|
label: "部门",
|
|
206
206
|
name: "1"
|
|
207
207
|
}),
|
|
208
|
-
|
|
208
|
+
vues.createVNode(vues.unref(index$4.TabPane), {
|
|
209
209
|
label: "角色",
|
|
210
210
|
name: "2"
|
|
211
211
|
})
|
|
212
212
|
]),
|
|
213
213
|
_: 1
|
|
214
214
|
}, 8, ["modelValue", "class"]),
|
|
215
|
-
|
|
216
|
-
class:
|
|
215
|
+
vues.createElementVNode("div", {
|
|
216
|
+
class: vues.normalizeClass([vues.unref(cs).z("dialog-tabs-tree")])
|
|
217
217
|
}, [
|
|
218
|
-
|
|
219
|
-
class:
|
|
218
|
+
vues.createElementVNode("div", {
|
|
219
|
+
class: vues.normalizeClass([vues.unref(cs).z("dialog-div-tree")])
|
|
220
220
|
}, [
|
|
221
|
-
|
|
221
|
+
vues.createVNode(vues.unref(index$5.Tree), {
|
|
222
222
|
data: propss.options,
|
|
223
223
|
"highlight-current": "",
|
|
224
224
|
"default-expand-all": propss.expandAll,
|
|
@@ -239,72 +239,72 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
239
239
|
], 2)
|
|
240
240
|
], 2)
|
|
241
241
|
], 2),
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
class:
|
|
242
|
+
vues.createElementVNode("div", null, [
|
|
243
|
+
vues.createElementVNode("div", {
|
|
244
|
+
class: vues.normalizeClass(vues.unref(cs).z("dialog-li-top"))
|
|
245
245
|
}, [
|
|
246
|
-
|
|
246
|
+
vues.withDirectives(vues.createElementVNode("input", {
|
|
247
247
|
placeholder: psprops.value.searchPlaceholder,
|
|
248
248
|
clearable: "",
|
|
249
249
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => search.value = $event),
|
|
250
|
-
onKeyup:
|
|
250
|
+
onKeyup: vues.withKeys(onInput, ["enter", "native"])
|
|
251
251
|
}, null, 40, _hoisted_1), [
|
|
252
|
-
[
|
|
252
|
+
[vues.vModelText, search.value]
|
|
253
253
|
])
|
|
254
254
|
], 2),
|
|
255
|
-
|
|
256
|
-
class:
|
|
255
|
+
vues.createElementVNode("div", {
|
|
256
|
+
class: vues.normalizeClass(vues.unref(cs).z("dialog-gap"))
|
|
257
257
|
}, null, 2),
|
|
258
|
-
|
|
259
|
-
class:
|
|
258
|
+
vues.createElementVNode("div", {
|
|
259
|
+
class: vues.normalizeClass([vues.unref(cs).z("dialog-div"), vues.unref(cs).z("dialog-personnel")])
|
|
260
260
|
}, [
|
|
261
|
-
psprops.value.multiple ? (
|
|
261
|
+
psprops.value.multiple ? (vues.openBlock(), vues.createBlock(vues.unref(index$6.CheckboxGroup), {
|
|
262
262
|
key: 0,
|
|
263
263
|
"model-value": list.value
|
|
264
264
|
}, {
|
|
265
|
-
default:
|
|
266
|
-
(
|
|
267
|
-
return
|
|
268
|
-
item[psprops.value.label] ? (
|
|
265
|
+
default: vues.withCtx(() => [
|
|
266
|
+
(vues.openBlock(true), vues.createElementBlock(vues.Fragment, null, vues.renderList(listData.value, (item, index2) => {
|
|
267
|
+
return vues.openBlock(), vues.createElementBlock(vues.Fragment, { key: index2 }, [
|
|
268
|
+
item[psprops.value.label] ? (vues.openBlock(), vues.createElementBlock("div", {
|
|
269
269
|
key: 0,
|
|
270
|
-
class:
|
|
270
|
+
class: vues.normalizeClass(vues.unref(cs).z("dialog-personnel-top"))
|
|
271
271
|
}, [
|
|
272
|
-
|
|
273
|
-
class:
|
|
274
|
-
|
|
272
|
+
vues.createElementVNode("div", {
|
|
273
|
+
class: vues.normalizeClass(
|
|
274
|
+
vues.unref(cs).z("dialog-personnel-top-userbg")
|
|
275
275
|
)
|
|
276
|
-
},
|
|
277
|
-
|
|
278
|
-
class:
|
|
279
|
-
|
|
276
|
+
}, vues.toDisplayString((item[psprops.value.label] || "").substring(0, 1)), 3),
|
|
277
|
+
vues.createElementVNode("div", {
|
|
278
|
+
class: vues.normalizeClass(
|
|
279
|
+
vues.unref(cs).z("dialog-personnel-top-rfont")
|
|
280
280
|
)
|
|
281
281
|
}, [
|
|
282
|
-
|
|
283
|
-
class:
|
|
284
|
-
|
|
282
|
+
vues.createElementVNode("div", {
|
|
283
|
+
class: vues.normalizeClass(
|
|
284
|
+
vues.unref(cs).z("dialog-personnel-top-p1")
|
|
285
285
|
)
|
|
286
|
-
},
|
|
287
|
-
psprops.value.explain ? (
|
|
286
|
+
}, vues.toDisplayString(item[psprops.value.label]), 3),
|
|
287
|
+
psprops.value.explain ? (vues.openBlock(), vues.createElementBlock("div", {
|
|
288
288
|
key: 0,
|
|
289
|
-
class:
|
|
290
|
-
|
|
289
|
+
class: vues.normalizeClass(
|
|
290
|
+
vues.unref(cs).z("dialog-personnel-top-p2")
|
|
291
291
|
)
|
|
292
|
-
},
|
|
292
|
+
}, vues.toDisplayString(item[psprops.value.explain]), 3)) : vues.createCommentVNode("", true)
|
|
293
293
|
], 2)
|
|
294
|
-
], 2)) :
|
|
295
|
-
|
|
296
|
-
class:
|
|
294
|
+
], 2)) : vues.createCommentVNode("", true),
|
|
295
|
+
vues.createElementVNode("div", {
|
|
296
|
+
class: vues.normalizeClass(vues.unref(cs).z("dialog-personnel-checkboxs"))
|
|
297
297
|
}, [
|
|
298
|
-
(
|
|
299
|
-
return
|
|
298
|
+
(vues.openBlock(true), vues.createElementBlock(vues.Fragment, null, vues.renderList(item[psprops.value.yhs], (obj, key) => {
|
|
299
|
+
return vues.openBlock(), vues.createBlock(vues.unref(index$7.Checkbox), {
|
|
300
300
|
key,
|
|
301
301
|
label: obj[psprops.value.yhid],
|
|
302
302
|
onChange: (is) => {
|
|
303
303
|
onChangeCheckbox(is, obj);
|
|
304
304
|
}
|
|
305
305
|
}, {
|
|
306
|
-
default:
|
|
307
|
-
|
|
306
|
+
default: vues.withCtx(() => [
|
|
307
|
+
vues.createTextVNode(vues.toDisplayString(obj[psprops.value.yhmc]), 1)
|
|
308
308
|
]),
|
|
309
309
|
_: 2
|
|
310
310
|
}, 1032, ["label", "onChange"]);
|
|
@@ -314,53 +314,53 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
314
314
|
}), 128))
|
|
315
315
|
]),
|
|
316
316
|
_: 1
|
|
317
|
-
}, 8, ["model-value"])) : (
|
|
317
|
+
}, 8, ["model-value"])) : (vues.openBlock(), vues.createBlock(vues.unref(index$8.RadioGroup), {
|
|
318
318
|
key: 1,
|
|
319
319
|
"model-value": list.value[0]
|
|
320
320
|
}, {
|
|
321
|
-
default:
|
|
322
|
-
(
|
|
323
|
-
return
|
|
324
|
-
item[psprops.value.label] ? (
|
|
321
|
+
default: vues.withCtx(() => [
|
|
322
|
+
(vues.openBlock(true), vues.createElementBlock(vues.Fragment, null, vues.renderList(listData.value, (item, index2) => {
|
|
323
|
+
return vues.openBlock(), vues.createElementBlock(vues.Fragment, { key: index2 }, [
|
|
324
|
+
item[psprops.value.label] ? (vues.openBlock(), vues.createElementBlock("div", {
|
|
325
325
|
key: 0,
|
|
326
|
-
class:
|
|
326
|
+
class: vues.normalizeClass(vues.unref(cs).z("dialog-personnel-top"))
|
|
327
327
|
}, [
|
|
328
|
-
|
|
329
|
-
class:
|
|
330
|
-
|
|
328
|
+
vues.createElementVNode("div", {
|
|
329
|
+
class: vues.normalizeClass(
|
|
330
|
+
vues.unref(cs).z("dialog-personnel-top-userbg")
|
|
331
331
|
)
|
|
332
|
-
},
|
|
333
|
-
|
|
334
|
-
class:
|
|
335
|
-
|
|
332
|
+
}, vues.toDisplayString((item[psprops.value.label] || "").substring(0, 1)), 3),
|
|
333
|
+
vues.createElementVNode("div", {
|
|
334
|
+
class: vues.normalizeClass(
|
|
335
|
+
vues.unref(cs).z("dialog-personnel-top-rfont")
|
|
336
336
|
)
|
|
337
337
|
}, [
|
|
338
|
-
|
|
339
|
-
class:
|
|
340
|
-
|
|
338
|
+
vues.createElementVNode("div", {
|
|
339
|
+
class: vues.normalizeClass(
|
|
340
|
+
vues.unref(cs).z("dialog-personnel-top-p1")
|
|
341
341
|
)
|
|
342
|
-
},
|
|
343
|
-
psprops.value.explain ? (
|
|
342
|
+
}, vues.toDisplayString(item[psprops.value.label]), 3),
|
|
343
|
+
psprops.value.explain ? (vues.openBlock(), vues.createElementBlock("div", {
|
|
344
344
|
key: 0,
|
|
345
|
-
class:
|
|
346
|
-
|
|
345
|
+
class: vues.normalizeClass(
|
|
346
|
+
vues.unref(cs).z("dialog-personnel-top-p2")
|
|
347
347
|
)
|
|
348
|
-
},
|
|
348
|
+
}, vues.toDisplayString(item[psprops.value.explain]), 3)) : vues.createCommentVNode("", true)
|
|
349
349
|
], 2)
|
|
350
|
-
], 2)) :
|
|
351
|
-
|
|
352
|
-
class:
|
|
350
|
+
], 2)) : vues.createCommentVNode("", true),
|
|
351
|
+
vues.createElementVNode("div", {
|
|
352
|
+
class: vues.normalizeClass(vues.unref(cs).z("dialog-personnel-checkboxs"))
|
|
353
353
|
}, [
|
|
354
|
-
(
|
|
355
|
-
return
|
|
354
|
+
(vues.openBlock(true), vues.createElementBlock(vues.Fragment, null, vues.renderList(item[psprops.value.yhs], (obj, key) => {
|
|
355
|
+
return vues.openBlock(), vues.createBlock(vues.unref(index$9.Radio), {
|
|
356
356
|
key,
|
|
357
357
|
label: obj[psprops.value.yhid],
|
|
358
358
|
onChange: (is) => {
|
|
359
359
|
onChangeCheckbox(is, obj);
|
|
360
360
|
}
|
|
361
361
|
}, {
|
|
362
|
-
default:
|
|
363
|
-
|
|
362
|
+
default: vues.withCtx(() => [
|
|
363
|
+
vues.createTextVNode(vues.toDisplayString(obj[psprops.value.yhmc]), 1)
|
|
364
364
|
]),
|
|
365
365
|
_: 2
|
|
366
366
|
}, 1032, ["label", "onChange"]);
|