@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,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("../../../directives/drag/index.cjs");
|
|
5
5
|
const attrValueSort = require("@fangzhongya/utils/basic/object/attrValueSort");
|
|
6
6
|
const data = require("./data.cjs");
|
|
7
7
|
const index$1 = require("../../../hooks/cssname/index.cjs");
|
|
8
8
|
const index = require("../../../hooks/locale/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,
|
|
@@ -21,9 +21,9 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
21
21
|
const cs = index$1.useCssName("stick-div");
|
|
22
22
|
const props = __props;
|
|
23
23
|
const emit = __emit;
|
|
24
|
-
const refDom =
|
|
25
|
-
const seat =
|
|
26
|
-
const flexDirection =
|
|
24
|
+
const refDom = vues.shallowRef();
|
|
25
|
+
const seat = vues.shallowRef(props.direction);
|
|
26
|
+
const flexDirection = vues.computed(() => {
|
|
27
27
|
return directions[seat.value];
|
|
28
28
|
});
|
|
29
29
|
function getDirection(obj) {
|
|
@@ -50,44 +50,44 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
50
50
|
setValue(j);
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
|
-
|
|
53
|
+
vues.onMounted(() => {
|
|
54
54
|
});
|
|
55
55
|
__expose({
|
|
56
56
|
...data.dataExpose
|
|
57
57
|
});
|
|
58
58
|
return (_ctx, _cache) => {
|
|
59
|
-
return
|
|
60
|
-
class:
|
|
61
|
-
style:
|
|
59
|
+
return vues.openBlock(), vues.createElementBlock("div", {
|
|
60
|
+
class: vues.normalizeClass(vues.unref(cs).z()),
|
|
61
|
+
style: vues.normalizeStyle({
|
|
62
62
|
display: "flex",
|
|
63
63
|
flexDirection: flexDirection.value
|
|
64
64
|
}),
|
|
65
65
|
ref_key: "refDom",
|
|
66
66
|
ref: refDom
|
|
67
67
|
}, [
|
|
68
|
-
|
|
69
|
-
style:
|
|
68
|
+
vues.withDirectives((vues.openBlock(), vues.createElementBlock("div", {
|
|
69
|
+
style: vues.normalizeStyle({
|
|
70
70
|
display: "flex",
|
|
71
71
|
flexDirection: seat.value == "left" || seat.value == "right" ? "column" : "row"
|
|
72
72
|
}),
|
|
73
|
-
class:
|
|
73
|
+
class: vues.normalizeClass(vues.unref(cs).z("stick"))
|
|
74
74
|
}, [
|
|
75
|
-
|
|
75
|
+
vues.renderSlot(_ctx.$slots, vues.unref(data.dataSlot).stick)
|
|
76
76
|
], 6)), [
|
|
77
|
-
[
|
|
77
|
+
[vues.unref(index$2.default), {
|
|
78
78
|
dom: props.drag,
|
|
79
79
|
onMousedown,
|
|
80
80
|
onMouseup,
|
|
81
81
|
onMouseMove
|
|
82
82
|
}]
|
|
83
83
|
]),
|
|
84
|
-
|
|
84
|
+
vues.createElementVNode("div", {
|
|
85
85
|
style: {
|
|
86
86
|
flex: "1"
|
|
87
87
|
},
|
|
88
|
-
class:
|
|
88
|
+
class: vues.normalizeClass(vues.unref(cs).z("body"))
|
|
89
89
|
}, [
|
|
90
|
-
|
|
90
|
+
vues.renderSlot(_ctx.$slots, vues.unref(data.dataSlot).default)
|
|
91
91
|
], 2)
|
|
92
92
|
], 6);
|
|
93
93
|
};
|
|
@@ -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 getPositionRelative = require("@fangzhongya/utils/css/getPositionRelative");
|
|
5
5
|
const attrValueSort = require("@fangzhongya/utils/basic/object/attrValueSort");
|
|
6
6
|
const setCss = require("@fangzhongya/utils/css/setCss");
|
|
@@ -9,7 +9,7 @@ const data = require("./data.cjs");
|
|
|
9
9
|
const index$1 = require("../../../hooks/cssname/index.cjs");
|
|
10
10
|
const index = require("../../../hooks/locale/index.cjs");
|
|
11
11
|
const index$2 = require("../../../directives/drag/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,
|
|
@@ -24,8 +24,8 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
24
24
|
const cs = index$1.useCssName("stick-edge");
|
|
25
25
|
const props = __props;
|
|
26
26
|
const emit = __emit;
|
|
27
|
-
const refDom =
|
|
28
|
-
const fRect =
|
|
27
|
+
const refDom = vues.shallowRef();
|
|
28
|
+
const fRect = vues.shallowRef({});
|
|
29
29
|
function onMousedown(e, p) {
|
|
30
30
|
setCss.setCss(refDom.value, {
|
|
31
31
|
left: p.left + "px",
|
|
@@ -69,7 +69,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
69
69
|
function getPosition(el, key) {
|
|
70
70
|
return Number(getCss.getCss(el, key).replace(/[a-z|A-Z]*$/, ""));
|
|
71
71
|
}
|
|
72
|
-
|
|
72
|
+
vues.onMounted(() => {
|
|
73
73
|
if (props.isFixed) {
|
|
74
74
|
fRect.value = {
|
|
75
75
|
width: window.innerWidth,
|
|
@@ -91,17 +91,17 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
91
91
|
...data.dataExpose
|
|
92
92
|
});
|
|
93
93
|
return (_ctx, _cache) => {
|
|
94
|
-
return
|
|
95
|
-
class:
|
|
96
|
-
style:
|
|
94
|
+
return vues.withDirectives((vues.openBlock(), vues.createElementBlock("div", {
|
|
95
|
+
class: vues.normalizeClass(vues.unref(cs).z()),
|
|
96
|
+
style: vues.normalizeStyle({
|
|
97
97
|
position: props.isFixed ? "fixed" : "absolute"
|
|
98
98
|
}),
|
|
99
99
|
ref_key: "refDom",
|
|
100
100
|
ref: refDom
|
|
101
101
|
}, [
|
|
102
|
-
|
|
102
|
+
vues.renderSlot(_ctx.$slots, vues.unref(data.dataSlot).default)
|
|
103
103
|
], 6)), [
|
|
104
|
-
[
|
|
104
|
+
[vues.unref(index$2.default), {
|
|
105
105
|
dom: props.drag,
|
|
106
106
|
onMousedown,
|
|
107
107
|
onMouseup
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const
|
|
3
|
+
const vues = require("vue");
|
|
4
4
|
const index$2 = require("../../box-teleport/index.cjs");
|
|
5
5
|
const data = require("./data.cjs");
|
|
6
6
|
const index$3 = require("../../icon/index.cjs");
|
|
@@ -9,7 +9,7 @@ const index$1 = require("../../../hooks/cssname/index.cjs");
|
|
|
9
9
|
const index = require("../../../hooks/locale/index.cjs");
|
|
10
10
|
const index$4 = require("../../../directives/stick/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("stick-window");
|
|
19
19
|
const props = __props;
|
|
20
20
|
const emit = __emit;
|
|
21
|
-
const windowObjs =
|
|
21
|
+
const windowObjs = vues.ref([]);
|
|
22
22
|
const stick = {
|
|
23
23
|
direction: props.direction,
|
|
24
24
|
directions: props.directions,
|
|
@@ -60,41 +60,41 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
60
60
|
remove
|
|
61
61
|
});
|
|
62
62
|
return (_ctx, _cache) => {
|
|
63
|
-
return
|
|
63
|
+
return vues.openBlock(), vues.createBlock(vues.unref(index$2.BoxTeleport), {
|
|
64
64
|
disabled: props.disabled,
|
|
65
65
|
to: props.to
|
|
66
66
|
}, {
|
|
67
|
-
default:
|
|
68
|
-
|
|
69
|
-
class:
|
|
67
|
+
default: vues.withCtx(() => [
|
|
68
|
+
vues.withDirectives((vues.openBlock(), vues.createElementBlock("div", {
|
|
69
|
+
class: vues.normalizeClass(vues.unref(cs).z())
|
|
70
70
|
}, [
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
(
|
|
74
|
-
return
|
|
75
|
-
class:
|
|
71
|
+
vues.renderSlot(_ctx.$slots, vues.unref(data.dataSlot).top),
|
|
72
|
+
vues.renderSlot(_ctx.$slots, vues.unref(data.dataSlot).default, { values: windowObjs.value }, () => [
|
|
73
|
+
(vues.openBlock(true), vues.createElementBlock(vues.Fragment, null, vues.renderList(windowObjs.value, (item, index2) => {
|
|
74
|
+
return vues.openBlock(), vues.createElementBlock("div", {
|
|
75
|
+
class: vues.normalizeClass(vues.unref(cs).z("window-li")),
|
|
76
76
|
key: index2
|
|
77
77
|
}, [
|
|
78
|
-
|
|
79
|
-
class:
|
|
78
|
+
vues.createElementVNode("span", {
|
|
79
|
+
class: vues.normalizeClass(vues.unref(cs).z("window-li-title")),
|
|
80
80
|
onClick: ($event) => onClick(item, index2)
|
|
81
|
-
},
|
|
82
|
-
|
|
81
|
+
}, vues.toDisplayString(item.title), 11, _hoisted_1),
|
|
82
|
+
vues.createVNode(vues.unref(index$3.Icon), {
|
|
83
83
|
onClick: ($event) => onClose(item, index2),
|
|
84
|
-
class:
|
|
85
|
-
title:
|
|
84
|
+
class: vues.normalizeClass(vues.unref(cs).z("window-li-close")),
|
|
85
|
+
title: vues.unref(getLocale)("close")
|
|
86
86
|
}, {
|
|
87
|
-
default:
|
|
88
|
-
|
|
87
|
+
default: vues.withCtx(() => [
|
|
88
|
+
vues.createVNode(close.default)
|
|
89
89
|
]),
|
|
90
90
|
_: 1
|
|
91
91
|
}, 8, ["onClick", "class", "title"])
|
|
92
92
|
], 2);
|
|
93
93
|
}), 128))
|
|
94
94
|
]),
|
|
95
|
-
|
|
95
|
+
vues.renderSlot(_ctx.$slots, vues.unref(data.dataSlot).bottom)
|
|
96
96
|
], 2)), [
|
|
97
|
-
[
|
|
97
|
+
[vues.unref(index$4.default), stick]
|
|
98
98
|
])
|
|
99
99
|
]),
|
|
100
100
|
_: 3
|
|
@@ -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/switch/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("switch");
|
|
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.ElSwitch), 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,25 +1,25 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const
|
|
3
|
+
const vues = require("vue");
|
|
4
4
|
const index$3 = require("../../../directives/expose/index.cjs");
|
|
5
5
|
const index$2 = require("element-plus/es/components/switch/index");
|
|
6
6
|
const index$1 = require("../../../hooks/inherit/index.cjs");
|
|
7
7
|
const use = require("../../common/use.cjs");
|
|
8
8
|
const index = require("../../../hooks/cssname/index.cjs");
|
|
9
9
|
const data = require("./data.cjs");
|
|
10
|
-
const _sfc_main = /* @__PURE__ */
|
|
10
|
+
const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
11
11
|
...{ inheritAttrs: false },
|
|
12
12
|
__name: "index",
|
|
13
13
|
props: data.dataProps,
|
|
14
14
|
emits: data.dataEmits,
|
|
15
15
|
setup(__props, { emit: __emit }) {
|
|
16
16
|
const cs = index.useCssName("switchs");
|
|
17
|
-
const attrs = index$1.useInherit(
|
|
17
|
+
const attrs = index$1.useInherit(vues.useAttrs());
|
|
18
18
|
const props = __props;
|
|
19
19
|
const emit = __emit;
|
|
20
|
-
const active =
|
|
21
|
-
const inactive =
|
|
22
|
-
|
|
20
|
+
const active = vues.ref({});
|
|
21
|
+
const inactive = vues.ref({});
|
|
22
|
+
vues.watch(
|
|
23
23
|
() => props.options,
|
|
24
24
|
() => {
|
|
25
25
|
if (props.options && props.options.length > 1) {
|
|
@@ -37,7 +37,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
37
37
|
},
|
|
38
38
|
{ immediate: true, deep: true }
|
|
39
39
|
);
|
|
40
|
-
const binds =
|
|
40
|
+
const binds = vues.computed(() => {
|
|
41
41
|
const obj = {};
|
|
42
42
|
for (let k in active.value) {
|
|
43
43
|
obj["active-" + k] = active.value[k];
|
|
@@ -48,7 +48,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
48
48
|
console.log("obj", obj);
|
|
49
49
|
return obj;
|
|
50
50
|
});
|
|
51
|
-
const value =
|
|
51
|
+
const value = vues.computed({
|
|
52
52
|
get() {
|
|
53
53
|
let v = props.modelValue;
|
|
54
54
|
return v;
|
|
@@ -66,15 +66,15 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
66
66
|
}
|
|
67
67
|
});
|
|
68
68
|
return (_ctx, _cache) => {
|
|
69
|
-
return
|
|
70
|
-
class:
|
|
71
|
-
},
|
|
72
|
-
|
|
73
|
-
class:
|
|
69
|
+
return vues.openBlock(), vues.createElementBlock("div", vues.mergeProps({
|
|
70
|
+
class: vues.unref(cs).z()
|
|
71
|
+
}, vues.unref(attrs).root), [
|
|
72
|
+
vues.withDirectives(vues.createVNode(vues.unref(index$2.ElSwitch), vues.mergeProps({
|
|
73
|
+
class: vues.unref(cs).z("switch"),
|
|
74
74
|
modelValue: value.value,
|
|
75
75
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event)
|
|
76
|
-
}, { ...binds.value, ...
|
|
77
|
-
[
|
|
76
|
+
}, { ...binds.value, ...vues.unref(attrs).assem }), null, 16, ["class", "modelValue"]), [
|
|
77
|
+
[vues.unref(index$3.default), {}]
|
|
78
78
|
])
|
|
79
79
|
], 16);
|
|
80
80
|
};
|
|
@@ -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/tabs/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("tab-pane");
|
|
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.ElTabPane), 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,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const
|
|
3
|
+
const vues = require("vue");
|
|
4
4
|
const index$1 = require("element-plus/es/components/image/index");
|
|
5
5
|
const index = require("../../../hooks/cssname/index.cjs");
|
|
6
|
-
const _sfc_main = /* @__PURE__ */
|
|
6
|
+
const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
7
7
|
__name: "img",
|
|
8
8
|
props: {
|
|
9
9
|
modelValue: String,
|
|
@@ -12,7 +12,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
12
12
|
setup(__props, { expose: __expose }) {
|
|
13
13
|
const cs = index.useCssName("lists-com");
|
|
14
14
|
const props = __props;
|
|
15
|
-
const value =
|
|
15
|
+
const value = vues.computed(() => {
|
|
16
16
|
if (props.modelValue) {
|
|
17
17
|
return props.prefix + "/" + props.modelValue;
|
|
18
18
|
} else {
|
|
@@ -21,12 +21,12 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
21
21
|
});
|
|
22
22
|
__expose({});
|
|
23
23
|
return (_ctx, _cache) => {
|
|
24
|
-
return
|
|
25
|
-
class:
|
|
24
|
+
return vues.openBlock(), vues.createElementBlock("div", {
|
|
25
|
+
class: vues.normalizeClass(vues.unref(cs).z())
|
|
26
26
|
}, [
|
|
27
|
-
|
|
27
|
+
vues.createVNode(vues.unref(index$1.ElImage), {
|
|
28
28
|
fit: "contain",
|
|
29
|
-
class:
|
|
29
|
+
class: vues.normalizeClass(vues.unref(cs).z("img")),
|
|
30
30
|
src: value.value,
|
|
31
31
|
"preview-src-list": [value.value]
|
|
32
32
|
}, null, 8, ["class", "src", "preview-src-list"])
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const
|
|
3
|
+
const vues = require("vue");
|
|
4
4
|
require("../../../utils/index.cjs");
|
|
5
5
|
const urls = require("../../common/urls.cjs");
|
|
6
6
|
const firstLower = require("@fangzhongya/utils/basic/string/firstLower");
|
|
@@ -52,7 +52,7 @@ const dataProps = {
|
|
|
52
52
|
const dataEmit = ["list-events", "selection"];
|
|
53
53
|
const useInit = (props2, emit, refTable, getLocale, isEl) => {
|
|
54
54
|
var _a, _b;
|
|
55
|
-
const loading =
|
|
55
|
+
const loading = vues.ref(false);
|
|
56
56
|
const mpagconfig = {
|
|
57
57
|
pageSize: 10,
|
|
58
58
|
pageSizes: [10, 20, 30, 40, 50, 100],
|
|
@@ -69,8 +69,8 @@ const useInit = (props2, emit, refTable, getLocale, isEl) => {
|
|
|
69
69
|
order: "sortType"
|
|
70
70
|
}
|
|
71
71
|
};
|
|
72
|
-
const pagconfig =
|
|
73
|
-
const paginat =
|
|
72
|
+
const pagconfig = vues.ref(mpagconfig);
|
|
73
|
+
const paginat = vues.reactive({
|
|
74
74
|
is: false,
|
|
75
75
|
cross: false,
|
|
76
76
|
front: false,
|
|
@@ -80,7 +80,7 @@ const useInit = (props2, emit, refTable, getLocale, isEl) => {
|
|
|
80
80
|
order: "",
|
|
81
81
|
prop: ""
|
|
82
82
|
});
|
|
83
|
-
const data =
|
|
83
|
+
const data = vues.reactive({
|
|
84
84
|
total: 0,
|
|
85
85
|
list: [],
|
|
86
86
|
is: false,
|
|
@@ -92,15 +92,15 @@ const useInit = (props2, emit, refTable, getLocale, isEl) => {
|
|
|
92
92
|
order: "",
|
|
93
93
|
prop: ""
|
|
94
94
|
});
|
|
95
|
-
const crossPageData =
|
|
95
|
+
const crossPageData = vues.ref([]);
|
|
96
96
|
const orderMap = {
|
|
97
97
|
asc: "asc",
|
|
98
98
|
ascending: "asc",
|
|
99
99
|
desc: "desc",
|
|
100
100
|
descending: "desc"
|
|
101
101
|
};
|
|
102
|
-
const tableList =
|
|
103
|
-
const tableConfig =
|
|
102
|
+
const tableList = vues.ref(((_a = props2.configs) == null ? void 0 : _a.list) ?? props2.list);
|
|
103
|
+
const tableConfig = vues.ref(((_b = props2.configs) == null ? void 0 : _b.config) ?? props2.config);
|
|
104
104
|
const width = {
|
|
105
105
|
index: 66,
|
|
106
106
|
selection: 46
|
|
@@ -182,7 +182,7 @@ const useInit = (props2, emit, refTable, getLocale, isEl) => {
|
|
|
182
182
|
pagconfig.value = Object.assign({}, mpagconfig, pagin.config || {});
|
|
183
183
|
tableConfig.value = config;
|
|
184
184
|
};
|
|
185
|
-
|
|
185
|
+
vues.watch(
|
|
186
186
|
[() => props2.configs, () => props2.config, () => props2.list],
|
|
187
187
|
() => {
|
|
188
188
|
setList();
|
|
@@ -190,7 +190,7 @@ const useInit = (props2, emit, refTable, getLocale, isEl) => {
|
|
|
190
190
|
},
|
|
191
191
|
{ immediate: true }
|
|
192
192
|
);
|
|
193
|
-
const formEvent =
|
|
193
|
+
const formEvent = vues.computed(() => {
|
|
194
194
|
const obj = {};
|
|
195
195
|
const es = tableConfig.value.events || {};
|
|
196
196
|
Object.keys(es).forEach((key) => {
|
|
@@ -205,7 +205,7 @@ const useInit = (props2, emit, refTable, getLocale, isEl) => {
|
|
|
205
205
|
});
|
|
206
206
|
return obj;
|
|
207
207
|
});
|
|
208
|
-
const istype =
|
|
208
|
+
const istype = vues.computed(() => {
|
|
209
209
|
if (isEl) {
|
|
210
210
|
return true;
|
|
211
211
|
} else {
|
|
@@ -303,7 +303,7 @@ const useInit = (props2, emit, refTable, getLocale, isEl) => {
|
|
|
303
303
|
const ts = datas.filter((v) => {
|
|
304
304
|
return iss.includes(v[cross]);
|
|
305
305
|
});
|
|
306
|
-
|
|
306
|
+
vues.nextTick(() => {
|
|
307
307
|
ts.forEach((v) => {
|
|
308
308
|
refTable.value.toggleRowSelection(v);
|
|
309
309
|
});
|
|
@@ -313,7 +313,7 @@ const useInit = (props2, emit, refTable, getLocale, isEl) => {
|
|
|
313
313
|
const ts = datas.filter((v) => {
|
|
314
314
|
return iss.includes(JSON.stringify(v));
|
|
315
315
|
});
|
|
316
|
-
|
|
316
|
+
vues.nextTick(() => {
|
|
317
317
|
ts.forEach((v) => {
|
|
318
318
|
refTable.value.toggleRowSelection(v);
|
|
319
319
|
});
|
|
@@ -586,7 +586,7 @@ const useInit = (props2, emit, refTable, getLocale, isEl) => {
|
|
|
586
586
|
if (props2.load || tableConfig.value.load) {
|
|
587
587
|
initData();
|
|
588
588
|
}
|
|
589
|
-
const height =
|
|
589
|
+
const height = vues.computed(() => {
|
|
590
590
|
var _a2;
|
|
591
591
|
return ((_a2 = tableConfig.value.config) == null ? void 0 : _a2.height) ?? "auto";
|
|
592
592
|
});
|
|
@@ -599,8 +599,8 @@ const useInit = (props2, emit, refTable, getLocale, isEl) => {
|
|
|
599
599
|
}
|
|
600
600
|
}
|
|
601
601
|
};
|
|
602
|
-
const scroll =
|
|
603
|
-
const end =
|
|
602
|
+
const scroll = vues.computed(() => {
|
|
603
|
+
const end = vues.computed(
|
|
604
604
|
() => Boolean(
|
|
605
605
|
data.total > 0 && data.pageSize * data.current >= data.total
|
|
606
606
|
)
|
|
@@ -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 = require("element-plus/es/components/button/index");
|
|
5
5
|
const util = require("./util.cjs");
|
|
6
6
|
const isObject = require("@fangzhongya/utils/basic/object/isObject");
|
|
7
7
|
const isArray = require("@fangzhongya/utils/basic/array/isArray");
|
|
8
8
|
const _hoisted_1 = { class: "table-but" };
|
|
9
|
-
const _sfc_main = /* @__PURE__ */
|
|
9
|
+
const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
10
10
|
__name: "table-but",
|
|
11
11
|
props: {
|
|
12
12
|
/**
|
|
@@ -72,7 +72,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
72
72
|
);
|
|
73
73
|
emit("scope-click", obj, props.tableScope, props.tableListObj, "but");
|
|
74
74
|
}
|
|
75
|
-
const valueArr =
|
|
75
|
+
const valueArr = vues.computed(() => {
|
|
76
76
|
var _a;
|
|
77
77
|
const prop = props.tableListObj.prop || "";
|
|
78
78
|
const row = props.tableScope.row || {};
|
|
@@ -89,19 +89,19 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
89
89
|
}
|
|
90
90
|
});
|
|
91
91
|
return (_ctx, _cache) => {
|
|
92
|
-
return
|
|
93
|
-
(
|
|
94
|
-
return
|
|
95
|
-
class:
|
|
92
|
+
return vues.openBlock(), vues.createElementBlock("span", _hoisted_1, [
|
|
93
|
+
(vues.openBlock(true), vues.createElementBlock(vues.Fragment, null, vues.renderList(valueArr.value, (item, index$1) => {
|
|
94
|
+
return vues.openBlock(), vues.createBlock(vues.unref(index.ElButton), {
|
|
95
|
+
class: vues.normalizeClass(["table-but-li", item.class]),
|
|
96
96
|
key: index$1,
|
|
97
|
-
style:
|
|
97
|
+
style: vues.normalizeStyle(item.style),
|
|
98
98
|
onClick: ($event) => onClick(item, $event),
|
|
99
99
|
type: item.type,
|
|
100
100
|
round: item.round,
|
|
101
101
|
text: typeof item.text == "undefined" ? true : item.text
|
|
102
102
|
}, {
|
|
103
|
-
default:
|
|
104
|
-
|
|
103
|
+
default: vues.withCtx(() => [
|
|
104
|
+
vues.createTextVNode(vues.toDisplayString(item.value), 1)
|
|
105
105
|
]),
|
|
106
106
|
_: 2
|
|
107
107
|
}, 1032, ["class", "style", "onClick", "type", "round", "text"]);
|
|
@@ -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 util = require("./util.cjs");
|
|
5
5
|
const isObject = require("@fangzhongya/utils/basic/object/isObject");
|
|
6
6
|
const _hoisted_1 = { class: "table-color-value" };
|
|
7
|
-
const _sfc_main = /* @__PURE__ */
|
|
7
|
+
const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
8
8
|
__name: "table-color",
|
|
9
9
|
props: {
|
|
10
10
|
/**
|
|
@@ -55,7 +55,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
55
55
|
return setValue(cellValue);
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
|
-
const valueObj =
|
|
58
|
+
const valueObj = vues.computed(() => {
|
|
59
59
|
var _a, _b, _c, _d;
|
|
60
60
|
const prop = props.tableListObj.prop || "";
|
|
61
61
|
const row = ((_a = props.tableScope) == null ? void 0 : _a.row) || {};
|
|
@@ -107,12 +107,12 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
107
107
|
emit("scope-click", obj, props.tableScope, props.tableListObj, "color");
|
|
108
108
|
}
|
|
109
109
|
return (_ctx, _cache) => {
|
|
110
|
-
return
|
|
111
|
-
class:
|
|
110
|
+
return vues.openBlock(), vues.createElementBlock("span", {
|
|
111
|
+
class: vues.normalizeClass(["table-color", valueObj.value.class]),
|
|
112
112
|
onClick: _cache[0] || (_cache[0] = ($event) => onClick($event)),
|
|
113
|
-
style:
|
|
113
|
+
style: vues.normalizeStyle(valueObj.value.style)
|
|
114
114
|
}, [
|
|
115
|
-
|
|
115
|
+
vues.createElementVNode("span", _hoisted_1, vues.toDisplayString(valueObj.value.value), 1)
|
|
116
116
|
], 6);
|
|
117
117
|
};
|
|
118
118
|
}
|