3h1-ui 1.0.28 → 1.0.31
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/es/index.js +405 -104
- package/es/lib/lib/index.d.ts +3 -1
- package/es/lib/lib/lib/index.d.ts +10 -0
- package/es/lib/lib/lib/lib/index.d.ts +10 -0
- package/es/lib/lib/lib/lib/lib/index.d.ts +10 -0
- package/es/lib/lib/lib/lib/lib/src/ShyPage/IndexView.vue.d.ts +701 -0
- package/es/lib/lib/lib/lib/lib/src/ShyTable/ButtonGroup.vue.d.ts +25 -0
- package/es/lib/lib/lib/lib/lib/src/ShyTable/IndexView.vue.d.ts +2 -0
- package/es/lib/lib/lib/lib/src/ShyPage/IndexView.vue.d.ts +701 -0
- package/es/lib/lib/lib/lib/src/ShyTable/ButtonGroup.vue.d.ts +25 -0
- package/es/lib/lib/lib/lib/src/ShyTable/IndexView.vue.d.ts +2 -0
- package/es/lib/lib/lib/src/ShyPage/IndexView.vue.d.ts +701 -0
- package/es/lib/lib/lib/src/ShyTable/ButtonGroup.vue.d.ts +25 -0
- package/es/lib/lib/lib/src/ShyTable/IndexView.vue.d.ts +2 -0
- package/es/lib/lib/src/ShyPage/IndexView.vue.d.ts +2 -2
- package/es/lib/src/ShyTable/IndexView.vue.d.ts +22 -11
- package/es/src/ShyTable/IndexView.vue.d.ts +22 -11
- package/es/style.css +63 -20
- package/lib/index.js +404 -103
- package/lib/lib/lib/index.d.ts +3 -1
- package/lib/lib/lib/lib/index.d.ts +10 -0
- package/lib/lib/lib/lib/lib/index.d.ts +10 -0
- package/lib/lib/lib/lib/lib/lib/index.d.ts +10 -0
- package/lib/lib/lib/lib/lib/lib/src/ShyPage/IndexView.vue.d.ts +701 -0
- package/lib/lib/lib/lib/lib/lib/src/ShyTable/ButtonGroup.vue.d.ts +25 -0
- package/lib/lib/lib/lib/lib/lib/src/ShyTable/IndexView.vue.d.ts +2 -0
- package/lib/lib/lib/lib/lib/src/ShyPage/IndexView.vue.d.ts +701 -0
- package/lib/lib/lib/lib/lib/src/ShyTable/ButtonGroup.vue.d.ts +25 -0
- package/lib/lib/lib/lib/lib/src/ShyTable/IndexView.vue.d.ts +2 -0
- package/lib/lib/lib/lib/src/ShyPage/IndexView.vue.d.ts +701 -0
- package/lib/lib/lib/lib/src/ShyTable/ButtonGroup.vue.d.ts +25 -0
- package/lib/lib/lib/lib/src/ShyTable/IndexView.vue.d.ts +2 -0
- package/lib/lib/lib/src/ShyPage/IndexView.vue.d.ts +2 -2
- package/lib/lib/src/ShyTable/IndexView.vue.d.ts +22 -11
- package/lib/src/ShyTable/IndexView.vue.d.ts +22 -11
- package/package.json +1 -1
package/es/index.js
CHANGED
|
@@ -1,10 +1,86 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { defineComponent, reactive, watch, resolveComponent, openBlock, createElementBlock, createVNode, withCtx, unref, Fragment, renderList, createBlock, h, nextTick, ref, computed, watchEffect, createElementVNode, createTextVNode, createCommentVNode, normalizeStyle, toDisplayString, withModifiers, pushScopeId, popScopeId, createSlots, renderSlot, normalizeProps, guardReactiveProps } from "vue";
|
|
2
|
+
import { Form, Row, Col, Select, Input, ConfigProvider, Pagination, Modal, Button, Tag, Tabs, TabPane, Tree, CheckboxGroup, Checkbox } from "ant-design-vue";
|
|
2
3
|
import "xe-utils";
|
|
3
4
|
import { VxeTable, VxeColumn } from "vxe-table";
|
|
4
5
|
import zhCN from "ant-design-vue/es/locale/zh_CN";
|
|
5
|
-
import { ConfigProvider, Pagination, Modal, Button, Tag, Tabs, TabPane, Input, Tree, CheckboxGroup, Checkbox } from "ant-design-vue";
|
|
6
6
|
import "ant-design-vue/dist/antd.css";
|
|
7
|
-
const
|
|
7
|
+
const _hoisted_1$4 = { class: "shy-form" };
|
|
8
|
+
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
9
|
+
__name: "IndexView",
|
|
10
|
+
props: {
|
|
11
|
+
column: { default: () => [] },
|
|
12
|
+
form: { default: {} }
|
|
13
|
+
},
|
|
14
|
+
emits: ["update:form"],
|
|
15
|
+
setup(__props, { expose, emit }) {
|
|
16
|
+
const props = __props;
|
|
17
|
+
const form = reactive({});
|
|
18
|
+
watch(
|
|
19
|
+
() => props.form,
|
|
20
|
+
(value) => {
|
|
21
|
+
Object.keys(value).forEach((key) => {
|
|
22
|
+
form[key] = value[key];
|
|
23
|
+
});
|
|
24
|
+
},
|
|
25
|
+
{ immediate: true }
|
|
26
|
+
);
|
|
27
|
+
const changeEvent = () => {
|
|
28
|
+
emit("update:form", { ...form });
|
|
29
|
+
};
|
|
30
|
+
const rules = reactive({});
|
|
31
|
+
const { resetFields, validate, validateInfos } = Form.useForm(form, rules, {});
|
|
32
|
+
expose({ resetFields });
|
|
33
|
+
return (_ctx, _cache) => {
|
|
34
|
+
const _component_a_form_item = resolveComponent("a-form-item");
|
|
35
|
+
const _component_a_form = resolveComponent("a-form");
|
|
36
|
+
return openBlock(), createElementBlock("div", _hoisted_1$4, [
|
|
37
|
+
createVNode(_component_a_form, {
|
|
38
|
+
"label-col": { span: 6 },
|
|
39
|
+
"wrapper-col": { span: 18 }
|
|
40
|
+
}, {
|
|
41
|
+
default: withCtx(() => [
|
|
42
|
+
createVNode(unref(Row), null, {
|
|
43
|
+
default: withCtx(() => [
|
|
44
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(props.column || [], (item, index2) => {
|
|
45
|
+
return openBlock(), createBlock(unref(Col), {
|
|
46
|
+
key: index2,
|
|
47
|
+
span: (item == null ? void 0 : item.span) || 12
|
|
48
|
+
}, {
|
|
49
|
+
default: withCtx(() => [
|
|
50
|
+
createVNode(_component_a_form_item, {
|
|
51
|
+
label: item.label
|
|
52
|
+
}, {
|
|
53
|
+
default: withCtx(() => [
|
|
54
|
+
(item == null ? void 0 : item.type) === "select" ? (openBlock(), createBlock(unref(Select), {
|
|
55
|
+
key: 0,
|
|
56
|
+
onChange: changeEvent,
|
|
57
|
+
value: form[item.prop],
|
|
58
|
+
"onUpdate:value": ($event) => form[item.prop] = $event,
|
|
59
|
+
options: item.dicData
|
|
60
|
+
}, null, 8, ["value", "onUpdate:value", "options"])) : (openBlock(), createBlock(unref(Input), {
|
|
61
|
+
key: 1,
|
|
62
|
+
onChange: changeEvent,
|
|
63
|
+
value: form[item.prop],
|
|
64
|
+
"onUpdate:value": ($event) => form[item.prop] = $event,
|
|
65
|
+
size: "middle"
|
|
66
|
+
}, null, 8, ["value", "onUpdate:value"]))
|
|
67
|
+
]),
|
|
68
|
+
_: 2
|
|
69
|
+
}, 1032, ["label"])
|
|
70
|
+
]),
|
|
71
|
+
_: 2
|
|
72
|
+
}, 1032, ["span"]);
|
|
73
|
+
}), 128))
|
|
74
|
+
]),
|
|
75
|
+
_: 1
|
|
76
|
+
})
|
|
77
|
+
]),
|
|
78
|
+
_: 1
|
|
79
|
+
})
|
|
80
|
+
]);
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
});
|
|
8
84
|
function bound01(n, max) {
|
|
9
85
|
if (isOnePointZero(n)) {
|
|
10
86
|
n = "100%";
|
|
@@ -649,7 +725,7 @@ function insertCss(css, options) {
|
|
|
649
725
|
}
|
|
650
726
|
return styleElement;
|
|
651
727
|
}
|
|
652
|
-
function _objectSpread$
|
|
728
|
+
function _objectSpread$7(target) {
|
|
653
729
|
for (var i = 1; i < arguments.length; i++) {
|
|
654
730
|
var source = arguments[i] != null ? Object(arguments[i]) : {};
|
|
655
731
|
var ownKeys = Object.keys(source);
|
|
@@ -659,12 +735,12 @@ function _objectSpread$4(target) {
|
|
|
659
735
|
}));
|
|
660
736
|
}
|
|
661
737
|
ownKeys.forEach(function(key) {
|
|
662
|
-
_defineProperty$
|
|
738
|
+
_defineProperty$7(target, key, source[key]);
|
|
663
739
|
});
|
|
664
740
|
}
|
|
665
741
|
return target;
|
|
666
742
|
}
|
|
667
|
-
function _defineProperty$
|
|
743
|
+
function _defineProperty$7(obj, key, value) {
|
|
668
744
|
if (key in obj) {
|
|
669
745
|
Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
|
|
670
746
|
} else {
|
|
@@ -685,13 +761,13 @@ function isIconDefinition(target) {
|
|
|
685
761
|
}
|
|
686
762
|
function generate(node, key, rootProps) {
|
|
687
763
|
if (!rootProps) {
|
|
688
|
-
return h(node.tag, _objectSpread$
|
|
764
|
+
return h(node.tag, _objectSpread$7({
|
|
689
765
|
key
|
|
690
766
|
}, node.attrs), (node.children || []).map(function(child, index2) {
|
|
691
767
|
return generate(child, "".concat(key, "-").concat(node.tag, "-").concat(index2));
|
|
692
768
|
}));
|
|
693
769
|
}
|
|
694
|
-
return h(node.tag, _objectSpread$
|
|
770
|
+
return h(node.tag, _objectSpread$7({
|
|
695
771
|
key
|
|
696
772
|
}, rootProps, node.attrs), (node.children || []).map(function(child, index2) {
|
|
697
773
|
return generate(child, "".concat(key, "-").concat(node.tag, "-").concat(index2));
|
|
@@ -754,7 +830,7 @@ function _objectWithoutPropertiesLoose$1(source, excluded) {
|
|
|
754
830
|
}
|
|
755
831
|
return target;
|
|
756
832
|
}
|
|
757
|
-
function _objectSpread$
|
|
833
|
+
function _objectSpread$6(target) {
|
|
758
834
|
for (var i = 1; i < arguments.length; i++) {
|
|
759
835
|
var source = arguments[i] != null ? Object(arguments[i]) : {};
|
|
760
836
|
var ownKeys = Object.keys(source);
|
|
@@ -764,12 +840,12 @@ function _objectSpread$3(target) {
|
|
|
764
840
|
}));
|
|
765
841
|
}
|
|
766
842
|
ownKeys.forEach(function(key) {
|
|
767
|
-
_defineProperty$
|
|
843
|
+
_defineProperty$6(target, key, source[key]);
|
|
768
844
|
});
|
|
769
845
|
}
|
|
770
846
|
return target;
|
|
771
847
|
}
|
|
772
|
-
function _defineProperty$
|
|
848
|
+
function _defineProperty$6(obj, key, value) {
|
|
773
849
|
if (key in obj) {
|
|
774
850
|
Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
|
|
775
851
|
} else {
|
|
@@ -789,10 +865,10 @@ function setTwoToneColors(_ref) {
|
|
|
789
865
|
twoToneColorPalette.calculated = !!secondaryColor;
|
|
790
866
|
}
|
|
791
867
|
function getTwoToneColors() {
|
|
792
|
-
return _objectSpread$
|
|
868
|
+
return _objectSpread$6({}, twoToneColorPalette);
|
|
793
869
|
}
|
|
794
870
|
var IconBase = function IconBase2(props, context) {
|
|
795
|
-
var _props$context$attrs = _objectSpread$
|
|
871
|
+
var _props$context$attrs = _objectSpread$6({}, props, context.attrs), icon = _props$context$attrs.icon, primaryColor = _props$context$attrs.primaryColor, secondaryColor = _props$context$attrs.secondaryColor, restProps = _objectWithoutProperties$1(_props$context$attrs, _excluded$1);
|
|
796
872
|
var colors = twoToneColorPalette;
|
|
797
873
|
if (primaryColor) {
|
|
798
874
|
colors = {
|
|
@@ -807,11 +883,11 @@ var IconBase = function IconBase2(props, context) {
|
|
|
807
883
|
}
|
|
808
884
|
var target = icon;
|
|
809
885
|
if (target && typeof target.icon === "function") {
|
|
810
|
-
target = _objectSpread$
|
|
886
|
+
target = _objectSpread$6({}, target, {
|
|
811
887
|
icon: target.icon(colors.primaryColor, colors.secondaryColor)
|
|
812
888
|
});
|
|
813
889
|
}
|
|
814
|
-
return generate(target.icon, "svg-".concat(target.name), _objectSpread$
|
|
890
|
+
return generate(target.icon, "svg-".concat(target.name), _objectSpread$6({}, restProps, {
|
|
815
891
|
"data-icon": target.name,
|
|
816
892
|
width: "1em",
|
|
817
893
|
height: "1em",
|
|
@@ -963,7 +1039,7 @@ function _arrayWithHoles(arr) {
|
|
|
963
1039
|
if (Array.isArray(arr))
|
|
964
1040
|
return arr;
|
|
965
1041
|
}
|
|
966
|
-
function _objectSpread$
|
|
1042
|
+
function _objectSpread$5(target) {
|
|
967
1043
|
for (var i = 1; i < arguments.length; i++) {
|
|
968
1044
|
var source = arguments[i] != null ? Object(arguments[i]) : {};
|
|
969
1045
|
var ownKeys = Object.keys(source);
|
|
@@ -973,12 +1049,12 @@ function _objectSpread$2(target) {
|
|
|
973
1049
|
}));
|
|
974
1050
|
}
|
|
975
1051
|
ownKeys.forEach(function(key) {
|
|
976
|
-
_defineProperty$
|
|
1052
|
+
_defineProperty$5(target, key, source[key]);
|
|
977
1053
|
});
|
|
978
1054
|
}
|
|
979
1055
|
return target;
|
|
980
1056
|
}
|
|
981
|
-
function _defineProperty$
|
|
1057
|
+
function _defineProperty$5(obj, key, value) {
|
|
982
1058
|
if (key in obj) {
|
|
983
1059
|
Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
|
|
984
1060
|
} else {
|
|
@@ -1021,10 +1097,10 @@ function _objectWithoutPropertiesLoose(source, excluded) {
|
|
|
1021
1097
|
setTwoToneColor("#1890ff");
|
|
1022
1098
|
var Icon = function Icon2(props, context) {
|
|
1023
1099
|
var _classObj;
|
|
1024
|
-
var _props$context$attrs = _objectSpread$
|
|
1100
|
+
var _props$context$attrs = _objectSpread$5({}, props, context.attrs), cls = _props$context$attrs["class"], icon = _props$context$attrs.icon, spin = _props$context$attrs.spin, rotate = _props$context$attrs.rotate, tabindex = _props$context$attrs.tabindex, twoToneColor = _props$context$attrs.twoToneColor, onClick = _props$context$attrs.onClick, restProps = _objectWithoutProperties(_props$context$attrs, _excluded);
|
|
1025
1101
|
var classObj = (_classObj = {
|
|
1026
1102
|
anticon: true
|
|
1027
|
-
}, _defineProperty$
|
|
1103
|
+
}, _defineProperty$5(_classObj, "anticon-".concat(icon.name), Boolean(icon.name)), _defineProperty$5(_classObj, cls, cls), _classObj);
|
|
1028
1104
|
var svgClassString = spin === "" || !!spin || icon.name === "loading" ? "anticon-spin" : "";
|
|
1029
1105
|
var iconTabIndex = tabindex;
|
|
1030
1106
|
if (iconTabIndex === void 0 && onClick) {
|
|
@@ -1036,7 +1112,7 @@ var Icon = function Icon2(props, context) {
|
|
|
1036
1112
|
transform: "rotate(".concat(rotate, "deg)")
|
|
1037
1113
|
} : void 0;
|
|
1038
1114
|
var _normalizeTwoToneColo = normalizeTwoToneColors(twoToneColor), _normalizeTwoToneColo2 = _slicedToArray(_normalizeTwoToneColo, 2), primaryColor = _normalizeTwoToneColo2[0], secondaryColor = _normalizeTwoToneColo2[1];
|
|
1039
|
-
return createVNode("span", _objectSpread$
|
|
1115
|
+
return createVNode("span", _objectSpread$5({
|
|
1040
1116
|
"role": "img",
|
|
1041
1117
|
"aria-label": icon.name
|
|
1042
1118
|
}, restProps, {
|
|
@@ -1061,9 +1137,43 @@ Icon.inheritAttrs = false;
|
|
|
1061
1137
|
Icon.getTwoToneColor = getTwoToneColor;
|
|
1062
1138
|
Icon.setTwoToneColor = setTwoToneColor;
|
|
1063
1139
|
const AntdIcon = Icon;
|
|
1140
|
+
var ClearOutlined$2 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "defs", "attrs": {}, "children": [{ "tag": "style", "attrs": {} }] }, { "tag": "path", "attrs": { "d": "M899.1 869.6l-53-305.6H864c14.4 0 26-11.6 26-26V346c0-14.4-11.6-26-26-26H618V138c0-14.4-11.6-26-26-26H432c-14.4 0-26 11.6-26 26v182H160c-14.4 0-26 11.6-26 26v192c0 14.4 11.6 26 26 26h17.9l-53 305.6a25.95 25.95 0 0025.6 30.4h723c1.5 0 3-.1 4.4-.4a25.88 25.88 0 0021.2-30zM204 390h272V182h72v208h272v104H204V390zm468 440V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H416V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H202.8l45.1-260H776l45.1 260H672z" } }] }, "name": "clear", "theme": "outlined" };
|
|
1141
|
+
const ClearOutlinedSvg = ClearOutlined$2;
|
|
1142
|
+
function _objectSpread$4(target) {
|
|
1143
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
1144
|
+
var source = arguments[i] != null ? Object(arguments[i]) : {};
|
|
1145
|
+
var ownKeys = Object.keys(source);
|
|
1146
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
1147
|
+
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
1148
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
1149
|
+
}));
|
|
1150
|
+
}
|
|
1151
|
+
ownKeys.forEach(function(key) {
|
|
1152
|
+
_defineProperty$4(target, key, source[key]);
|
|
1153
|
+
});
|
|
1154
|
+
}
|
|
1155
|
+
return target;
|
|
1156
|
+
}
|
|
1157
|
+
function _defineProperty$4(obj, key, value) {
|
|
1158
|
+
if (key in obj) {
|
|
1159
|
+
Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
|
|
1160
|
+
} else {
|
|
1161
|
+
obj[key] = value;
|
|
1162
|
+
}
|
|
1163
|
+
return obj;
|
|
1164
|
+
}
|
|
1165
|
+
var ClearOutlined = function ClearOutlined2(props, context) {
|
|
1166
|
+
var p = _objectSpread$4({}, props, context.attrs);
|
|
1167
|
+
return createVNode(AntdIcon, _objectSpread$4({}, p, {
|
|
1168
|
+
"icon": ClearOutlinedSvg
|
|
1169
|
+
}), null);
|
|
1170
|
+
};
|
|
1171
|
+
ClearOutlined.displayName = "ClearOutlined";
|
|
1172
|
+
ClearOutlined.inheritAttrs = false;
|
|
1173
|
+
const ClearOutlined$1 = ClearOutlined;
|
|
1064
1174
|
var DownOutlined$2 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" } }] }, "name": "down", "theme": "outlined" };
|
|
1065
1175
|
const DownOutlinedSvg = DownOutlined$2;
|
|
1066
|
-
function _objectSpread$
|
|
1176
|
+
function _objectSpread$3(target) {
|
|
1067
1177
|
for (var i = 1; i < arguments.length; i++) {
|
|
1068
1178
|
var source = arguments[i] != null ? Object(arguments[i]) : {};
|
|
1069
1179
|
var ownKeys = Object.keys(source);
|
|
@@ -1073,12 +1183,12 @@ function _objectSpread$1(target) {
|
|
|
1073
1183
|
}));
|
|
1074
1184
|
}
|
|
1075
1185
|
ownKeys.forEach(function(key) {
|
|
1076
|
-
_defineProperty$
|
|
1186
|
+
_defineProperty$3(target, key, source[key]);
|
|
1077
1187
|
});
|
|
1078
1188
|
}
|
|
1079
1189
|
return target;
|
|
1080
1190
|
}
|
|
1081
|
-
function _defineProperty$
|
|
1191
|
+
function _defineProperty$3(obj, key, value) {
|
|
1082
1192
|
if (key in obj) {
|
|
1083
1193
|
Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
|
|
1084
1194
|
} else {
|
|
@@ -1087,8 +1197,8 @@ function _defineProperty$1(obj, key, value) {
|
|
|
1087
1197
|
return obj;
|
|
1088
1198
|
}
|
|
1089
1199
|
var DownOutlined = function DownOutlined2(props, context) {
|
|
1090
|
-
var p = _objectSpread$
|
|
1091
|
-
return createVNode(AntdIcon, _objectSpread$
|
|
1200
|
+
var p = _objectSpread$3({}, props, context.attrs);
|
|
1201
|
+
return createVNode(AntdIcon, _objectSpread$3({}, p, {
|
|
1092
1202
|
"icon": DownOutlinedSvg
|
|
1093
1203
|
}), null);
|
|
1094
1204
|
};
|
|
@@ -1097,7 +1207,7 @@ DownOutlined.inheritAttrs = false;
|
|
|
1097
1207
|
const DownOutlined$1 = DownOutlined;
|
|
1098
1208
|
var MinusOutlined$2 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M872 474H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z" } }] }, "name": "minus", "theme": "outlined" };
|
|
1099
1209
|
const MinusOutlinedSvg = MinusOutlined$2;
|
|
1100
|
-
function _objectSpread(target) {
|
|
1210
|
+
function _objectSpread$2(target) {
|
|
1101
1211
|
for (var i = 1; i < arguments.length; i++) {
|
|
1102
1212
|
var source = arguments[i] != null ? Object(arguments[i]) : {};
|
|
1103
1213
|
var ownKeys = Object.keys(source);
|
|
@@ -1107,12 +1217,12 @@ function _objectSpread(target) {
|
|
|
1107
1217
|
}));
|
|
1108
1218
|
}
|
|
1109
1219
|
ownKeys.forEach(function(key) {
|
|
1110
|
-
_defineProperty(target, key, source[key]);
|
|
1220
|
+
_defineProperty$2(target, key, source[key]);
|
|
1111
1221
|
});
|
|
1112
1222
|
}
|
|
1113
1223
|
return target;
|
|
1114
1224
|
}
|
|
1115
|
-
function _defineProperty(obj, key, value) {
|
|
1225
|
+
function _defineProperty$2(obj, key, value) {
|
|
1116
1226
|
if (key in obj) {
|
|
1117
1227
|
Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
|
|
1118
1228
|
} else {
|
|
@@ -1121,14 +1231,211 @@ function _defineProperty(obj, key, value) {
|
|
|
1121
1231
|
return obj;
|
|
1122
1232
|
}
|
|
1123
1233
|
var MinusOutlined = function MinusOutlined2(props, context) {
|
|
1124
|
-
var p = _objectSpread({}, props, context.attrs);
|
|
1125
|
-
return createVNode(AntdIcon, _objectSpread({}, p, {
|
|
1234
|
+
var p = _objectSpread$2({}, props, context.attrs);
|
|
1235
|
+
return createVNode(AntdIcon, _objectSpread$2({}, p, {
|
|
1126
1236
|
"icon": MinusOutlinedSvg
|
|
1127
1237
|
}), null);
|
|
1128
1238
|
};
|
|
1129
1239
|
MinusOutlined.displayName = "MinusOutlined";
|
|
1130
1240
|
MinusOutlined.inheritAttrs = false;
|
|
1131
1241
|
const MinusOutlined$1 = MinusOutlined;
|
|
1242
|
+
var SearchOutlined$2 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z" } }] }, "name": "search", "theme": "outlined" };
|
|
1243
|
+
const SearchOutlinedSvg = SearchOutlined$2;
|
|
1244
|
+
function _objectSpread$1(target) {
|
|
1245
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
1246
|
+
var source = arguments[i] != null ? Object(arguments[i]) : {};
|
|
1247
|
+
var ownKeys = Object.keys(source);
|
|
1248
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
1249
|
+
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
1250
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
1251
|
+
}));
|
|
1252
|
+
}
|
|
1253
|
+
ownKeys.forEach(function(key) {
|
|
1254
|
+
_defineProperty$1(target, key, source[key]);
|
|
1255
|
+
});
|
|
1256
|
+
}
|
|
1257
|
+
return target;
|
|
1258
|
+
}
|
|
1259
|
+
function _defineProperty$1(obj, key, value) {
|
|
1260
|
+
if (key in obj) {
|
|
1261
|
+
Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
|
|
1262
|
+
} else {
|
|
1263
|
+
obj[key] = value;
|
|
1264
|
+
}
|
|
1265
|
+
return obj;
|
|
1266
|
+
}
|
|
1267
|
+
var SearchOutlined = function SearchOutlined2(props, context) {
|
|
1268
|
+
var p = _objectSpread$1({}, props, context.attrs);
|
|
1269
|
+
return createVNode(AntdIcon, _objectSpread$1({}, p, {
|
|
1270
|
+
"icon": SearchOutlinedSvg
|
|
1271
|
+
}), null);
|
|
1272
|
+
};
|
|
1273
|
+
SearchOutlined.displayName = "SearchOutlined";
|
|
1274
|
+
SearchOutlined.inheritAttrs = false;
|
|
1275
|
+
const SearchOutlined$1 = SearchOutlined;
|
|
1276
|
+
var UpOutlined$2 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z" } }] }, "name": "up", "theme": "outlined" };
|
|
1277
|
+
const UpOutlinedSvg = UpOutlined$2;
|
|
1278
|
+
function _objectSpread(target) {
|
|
1279
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
1280
|
+
var source = arguments[i] != null ? Object(arguments[i]) : {};
|
|
1281
|
+
var ownKeys = Object.keys(source);
|
|
1282
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
1283
|
+
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
1284
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
1285
|
+
}));
|
|
1286
|
+
}
|
|
1287
|
+
ownKeys.forEach(function(key) {
|
|
1288
|
+
_defineProperty(target, key, source[key]);
|
|
1289
|
+
});
|
|
1290
|
+
}
|
|
1291
|
+
return target;
|
|
1292
|
+
}
|
|
1293
|
+
function _defineProperty(obj, key, value) {
|
|
1294
|
+
if (key in obj) {
|
|
1295
|
+
Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
|
|
1296
|
+
} else {
|
|
1297
|
+
obj[key] = value;
|
|
1298
|
+
}
|
|
1299
|
+
return obj;
|
|
1300
|
+
}
|
|
1301
|
+
var UpOutlined = function UpOutlined2(props, context) {
|
|
1302
|
+
var p = _objectSpread({}, props, context.attrs);
|
|
1303
|
+
return createVNode(AntdIcon, _objectSpread({}, p, {
|
|
1304
|
+
"icon": UpOutlinedSvg
|
|
1305
|
+
}), null);
|
|
1306
|
+
};
|
|
1307
|
+
UpOutlined.displayName = "UpOutlined";
|
|
1308
|
+
UpOutlined.inheritAttrs = false;
|
|
1309
|
+
const UpOutlined$1 = UpOutlined;
|
|
1310
|
+
const _hoisted_1$3 = { class: "shy-search" };
|
|
1311
|
+
const _hoisted_2$2 = { class: "button-wrapper" };
|
|
1312
|
+
const _hoisted_3$2 = { class: "expand-line" };
|
|
1313
|
+
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
1314
|
+
__name: "IndexView",
|
|
1315
|
+
props: {
|
|
1316
|
+
column: { default: () => [] }
|
|
1317
|
+
},
|
|
1318
|
+
emits: ["search-change"],
|
|
1319
|
+
setup(__props, { expose, emit }) {
|
|
1320
|
+
const props = __props;
|
|
1321
|
+
const form = ref({});
|
|
1322
|
+
const searchColumn = computed(() => {
|
|
1323
|
+
return props.column.map((item) => {
|
|
1324
|
+
item.span = 8;
|
|
1325
|
+
return item;
|
|
1326
|
+
});
|
|
1327
|
+
});
|
|
1328
|
+
const baseColumn = computed(() => {
|
|
1329
|
+
return searchColumn.value.length >= 3 ? searchColumn.value.slice(0, 3) : searchColumn.value;
|
|
1330
|
+
});
|
|
1331
|
+
const currentColumn = ref();
|
|
1332
|
+
const isExpanded = ref(false);
|
|
1333
|
+
const expandEvent = () => {
|
|
1334
|
+
isExpanded.value = !isExpanded.value;
|
|
1335
|
+
};
|
|
1336
|
+
watchEffect(() => {
|
|
1337
|
+
if (isExpanded.value) {
|
|
1338
|
+
currentColumn.value = searchColumn.value;
|
|
1339
|
+
} else {
|
|
1340
|
+
currentColumn.value = baseColumn.value;
|
|
1341
|
+
}
|
|
1342
|
+
});
|
|
1343
|
+
const isExpandFlag = computed(() => {
|
|
1344
|
+
return searchColumn.value.length > 3 ? true : false;
|
|
1345
|
+
});
|
|
1346
|
+
const iconStyle = {
|
|
1347
|
+
fontSize: "7px",
|
|
1348
|
+
color: "#919191"
|
|
1349
|
+
};
|
|
1350
|
+
const getForm = () => {
|
|
1351
|
+
return form.value;
|
|
1352
|
+
};
|
|
1353
|
+
const searchChangeEvent = () => {
|
|
1354
|
+
emit("search-change", form.value);
|
|
1355
|
+
};
|
|
1356
|
+
const searchResetEvent = () => {
|
|
1357
|
+
form.value = {};
|
|
1358
|
+
emit("search-change", {});
|
|
1359
|
+
};
|
|
1360
|
+
expose({ getForm });
|
|
1361
|
+
return (_ctx, _cache) => {
|
|
1362
|
+
const _component_a_col = resolveComponent("a-col");
|
|
1363
|
+
const _component_a_button = resolveComponent("a-button");
|
|
1364
|
+
const _component_a_row = resolveComponent("a-row");
|
|
1365
|
+
return openBlock(), createElementBlock("div", _hoisted_1$3, [
|
|
1366
|
+
createVNode(_component_a_row, null, {
|
|
1367
|
+
default: withCtx(() => [
|
|
1368
|
+
createVNode(_component_a_col, { span: 18 }, {
|
|
1369
|
+
default: withCtx(() => [
|
|
1370
|
+
createVNode(_sfc_main$6, {
|
|
1371
|
+
form: form.value,
|
|
1372
|
+
"onUpdate:form": _cache[0] || (_cache[0] = ($event) => form.value = $event),
|
|
1373
|
+
column: currentColumn.value
|
|
1374
|
+
}, null, 8, ["form", "column"])
|
|
1375
|
+
]),
|
|
1376
|
+
_: 1
|
|
1377
|
+
}),
|
|
1378
|
+
createVNode(_component_a_col, { span: 6 }, {
|
|
1379
|
+
default: withCtx(() => [
|
|
1380
|
+
createElementVNode("div", _hoisted_2$2, [
|
|
1381
|
+
createVNode(_component_a_button, {
|
|
1382
|
+
class: "button-search",
|
|
1383
|
+
type: "primary",
|
|
1384
|
+
onClick: searchChangeEvent
|
|
1385
|
+
}, {
|
|
1386
|
+
icon: withCtx(() => [
|
|
1387
|
+
createVNode(unref(SearchOutlined$1))
|
|
1388
|
+
]),
|
|
1389
|
+
default: withCtx(() => [
|
|
1390
|
+
createTextVNode(" \u67E5\u8BE2 ")
|
|
1391
|
+
]),
|
|
1392
|
+
_: 1
|
|
1393
|
+
}),
|
|
1394
|
+
createVNode(_component_a_button, { onClick: searchResetEvent }, {
|
|
1395
|
+
icon: withCtx(() => [
|
|
1396
|
+
createVNode(unref(ClearOutlined$1))
|
|
1397
|
+
]),
|
|
1398
|
+
default: withCtx(() => [
|
|
1399
|
+
createTextVNode(" \u91CD\u7F6E ")
|
|
1400
|
+
]),
|
|
1401
|
+
_: 1
|
|
1402
|
+
})
|
|
1403
|
+
])
|
|
1404
|
+
]),
|
|
1405
|
+
_: 1
|
|
1406
|
+
})
|
|
1407
|
+
]),
|
|
1408
|
+
_: 1
|
|
1409
|
+
}),
|
|
1410
|
+
createElementVNode("div", _hoisted_3$2, [
|
|
1411
|
+
unref(isExpandFlag) ? (openBlock(), createElementBlock("div", {
|
|
1412
|
+
key: 0,
|
|
1413
|
+
class: "expand-flag",
|
|
1414
|
+
onClick: expandEvent
|
|
1415
|
+
}, [
|
|
1416
|
+
isExpanded.value ? (openBlock(), createBlock(unref(UpOutlined$1), {
|
|
1417
|
+
key: 0,
|
|
1418
|
+
style: iconStyle
|
|
1419
|
+
})) : (openBlock(), createBlock(unref(DownOutlined$1), {
|
|
1420
|
+
key: 1,
|
|
1421
|
+
style: iconStyle
|
|
1422
|
+
}))
|
|
1423
|
+
])) : createCommentVNode("", true)
|
|
1424
|
+
])
|
|
1425
|
+
]);
|
|
1426
|
+
};
|
|
1427
|
+
}
|
|
1428
|
+
});
|
|
1429
|
+
const IndexView_vue_vue_type_style_index_0_scoped_8e35f1f3_lang = "";
|
|
1430
|
+
const _export_sfc = (sfc, props) => {
|
|
1431
|
+
const target = sfc.__vccOpts || sfc;
|
|
1432
|
+
for (const [key, val] of props) {
|
|
1433
|
+
target[key] = val;
|
|
1434
|
+
}
|
|
1435
|
+
return target;
|
|
1436
|
+
};
|
|
1437
|
+
const ShySearch = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-8e35f1f3"]]);
|
|
1438
|
+
const style = "";
|
|
1132
1439
|
const _withScopeId = (n) => (pushScopeId("data-v-68169e62"), n = n(), popScopeId(), n);
|
|
1133
1440
|
const _hoisted_1$2 = { class: "button-group" };
|
|
1134
1441
|
const _hoisted_2$1 = { class: "flex-button" };
|
|
@@ -1236,24 +1543,18 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
1236
1543
|
}
|
|
1237
1544
|
});
|
|
1238
1545
|
const ButtonGroup_vue_vue_type_style_index_0_scoped_68169e62_lang = "";
|
|
1239
|
-
const _export_sfc = (sfc, props) => {
|
|
1240
|
-
const target = sfc.__vccOpts || sfc;
|
|
1241
|
-
for (const [key, val] of props) {
|
|
1242
|
-
target[key] = val;
|
|
1243
|
-
}
|
|
1244
|
-
return target;
|
|
1245
|
-
};
|
|
1246
1546
|
const ButtonGroup = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-68169e62"]]);
|
|
1247
1547
|
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
1248
1548
|
__name: "IndexView",
|
|
1249
1549
|
props: {
|
|
1250
1550
|
isCheckbox: { type: Boolean, default: true },
|
|
1551
|
+
isIndex: { type: Boolean, default: true },
|
|
1552
|
+
isMenu: { type: Boolean, default: true },
|
|
1251
1553
|
column: null,
|
|
1252
1554
|
data: { default: () => [] },
|
|
1253
1555
|
rowHeight: { default: 40 },
|
|
1254
1556
|
height: { default: void 0 },
|
|
1255
|
-
menuWidth: { default: 160 }
|
|
1256
|
-
isMenu: { type: Boolean, default: false }
|
|
1557
|
+
menuWidth: { default: 160 }
|
|
1257
1558
|
},
|
|
1258
1559
|
emits: [
|
|
1259
1560
|
"page-change",
|
|
@@ -1309,29 +1610,30 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
1309
1610
|
size: "small"
|
|
1310
1611
|
}, {
|
|
1311
1612
|
default: withCtx(() => [
|
|
1312
|
-
|
|
1613
|
+
props.isCheckbox ? (openBlock(), createBlock(unref(VxeColumn), {
|
|
1313
1614
|
key: 0,
|
|
1314
1615
|
type: "checkbox",
|
|
1315
1616
|
width: "60"
|
|
1316
1617
|
})) : createCommentVNode("", true),
|
|
1317
|
-
|
|
1618
|
+
props.isIndex ? (openBlock(), createBlock(unref(VxeColumn), {
|
|
1619
|
+
key: 1,
|
|
1318
1620
|
type: "seq",
|
|
1319
1621
|
width: "60",
|
|
1320
1622
|
title: "\u5E8F\u53F7",
|
|
1321
1623
|
align: "center"
|
|
1322
|
-
}),
|
|
1624
|
+
})) : createCommentVNode("", true),
|
|
1323
1625
|
(openBlock(true), createElementBlock(Fragment, null, renderList(props.column, (column, index2) => {
|
|
1324
1626
|
return openBlock(), createBlock(unref(VxeColumn), {
|
|
1325
1627
|
key: index2,
|
|
1326
|
-
field: column.
|
|
1327
|
-
title: column.
|
|
1628
|
+
field: column.prop,
|
|
1629
|
+
title: column.label,
|
|
1328
1630
|
width: (column == null ? void 0 : column.width) || void 0,
|
|
1329
1631
|
align: "center"
|
|
1330
1632
|
}, createSlots({ _: 2 }, [
|
|
1331
1633
|
(column == null ? void 0 : column.slot) === true ? {
|
|
1332
1634
|
name: "default",
|
|
1333
1635
|
fn: withCtx(({ row }) => [
|
|
1334
|
-
renderSlot(_ctx.$slots, column.
|
|
1636
|
+
renderSlot(_ctx.$slots, column.prop, normalizeProps(guardReactiveProps({ row })), () => [
|
|
1335
1637
|
createTextVNode("\u63D2\u69FD\u5DF2\u5F00\u542F")
|
|
1336
1638
|
], true)
|
|
1337
1639
|
]),
|
|
@@ -1340,7 +1642,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
1340
1642
|
]), 1032, ["field", "title", "width"]);
|
|
1341
1643
|
}), 128)),
|
|
1342
1644
|
props.isMenu ? (openBlock(), createBlock(unref(VxeColumn), {
|
|
1343
|
-
key:
|
|
1645
|
+
key: 2,
|
|
1344
1646
|
align: "center",
|
|
1345
1647
|
title: "\u64CD\u4F5C",
|
|
1346
1648
|
width: props.menuWidth
|
|
@@ -1359,8 +1661,8 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
1359
1661
|
};
|
|
1360
1662
|
}
|
|
1361
1663
|
});
|
|
1362
|
-
const
|
|
1363
|
-
const ShyTable = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-
|
|
1664
|
+
const IndexView_vue_vue_type_style_index_0_scoped_fdb6331b_lang = "";
|
|
1665
|
+
const ShyTable = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-fdb6331b"]]);
|
|
1364
1666
|
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
1365
1667
|
__name: "IndexView",
|
|
1366
1668
|
props: {
|
|
@@ -1368,7 +1670,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
1368
1670
|
return {
|
|
1369
1671
|
current: 1,
|
|
1370
1672
|
pageSize: 10,
|
|
1371
|
-
total:
|
|
1673
|
+
total: 100
|
|
1372
1674
|
};
|
|
1373
1675
|
} }
|
|
1374
1676
|
},
|
|
@@ -1398,6 +1700,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
1398
1700
|
return openBlock(), createBlock(unref(ConfigProvider), { locale: unref(zhCN) }, {
|
|
1399
1701
|
default: withCtx(() => [
|
|
1400
1702
|
createVNode(unref(Pagination), {
|
|
1703
|
+
class: "shy-page",
|
|
1401
1704
|
current: current.value,
|
|
1402
1705
|
"onUpdate:current": _cache[0] || (_cache[0] = ($event) => current.value = $event),
|
|
1403
1706
|
pageSize: pageSize.value,
|
|
@@ -1414,22 +1717,31 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
1414
1717
|
};
|
|
1415
1718
|
}
|
|
1416
1719
|
});
|
|
1720
|
+
const IndexView_vue_vue_type_style_index_0_scoped_c1bd6b49_lang = "";
|
|
1721
|
+
const ShyPage = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-c1bd6b49"]]);
|
|
1417
1722
|
const _hoisted_1$1 = { class: "dialog-footer" };
|
|
1418
1723
|
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
1419
1724
|
__name: "indexView",
|
|
1420
1725
|
props: {
|
|
1421
1726
|
isButton: { type: Boolean, default: true }
|
|
1422
1727
|
},
|
|
1423
|
-
|
|
1424
|
-
|
|
1728
|
+
emits: ["confirm", "cancel"],
|
|
1729
|
+
setup(__props, { expose, emit }) {
|
|
1730
|
+
const visible = ref(false);
|
|
1731
|
+
const open = () => {
|
|
1732
|
+
visible.value = true;
|
|
1733
|
+
};
|
|
1734
|
+
const close = () => {
|
|
1735
|
+
cancelEvent();
|
|
1736
|
+
};
|
|
1425
1737
|
const confirmEvent = () => {
|
|
1738
|
+
emit("confirm", { close });
|
|
1426
1739
|
};
|
|
1427
1740
|
const cancelEvent = () => {
|
|
1741
|
+
emit("cancel");
|
|
1742
|
+
visible.value = false;
|
|
1428
1743
|
};
|
|
1429
|
-
|
|
1430
|
-
visible.value = true;
|
|
1431
|
-
};
|
|
1432
|
-
expose({ open });
|
|
1744
|
+
expose({ open, close });
|
|
1433
1745
|
return (_ctx, _cache) => {
|
|
1434
1746
|
return openBlock(), createBlock(unref(Modal), {
|
|
1435
1747
|
visible: visible.value,
|
|
@@ -1467,8 +1779,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
1467
1779
|
};
|
|
1468
1780
|
}
|
|
1469
1781
|
});
|
|
1470
|
-
const
|
|
1471
|
-
const ShyDialog = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-
|
|
1782
|
+
const indexView_vue_vue_type_style_index_0_scoped_350b63a4_lang = "";
|
|
1783
|
+
const ShyDialog = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-350b63a4"]]);
|
|
1472
1784
|
const _hoisted_1 = { class: "user-select" };
|
|
1473
1785
|
const _hoisted_2 = { class: "tags-selected" };
|
|
1474
1786
|
const _hoisted_3 = { class: "user-body" };
|
|
@@ -1491,20 +1803,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1491
1803
|
__name: "IndexView",
|
|
1492
1804
|
props: {
|
|
1493
1805
|
userFun: { default: () => {
|
|
1494
|
-
return [
|
|
1495
|
-
{
|
|
1496
|
-
name: "\u5305\u78CA",
|
|
1497
|
-
id: 1
|
|
1498
|
-
},
|
|
1499
|
-
{
|
|
1500
|
-
name: "\u674E\u91D1\u7389",
|
|
1501
|
-
id: 2
|
|
1502
|
-
},
|
|
1503
|
-
{
|
|
1504
|
-
name: "\u9A6C\u5A77\u5A77",
|
|
1505
|
-
id: 3
|
|
1506
|
-
}
|
|
1507
|
-
];
|
|
1806
|
+
return [];
|
|
1508
1807
|
} },
|
|
1509
1808
|
deptFun: { default: () => {
|
|
1510
1809
|
return [
|
|
@@ -1512,33 +1811,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1512
1811
|
title: "\u56FD\u8425\u673A\u68B0\u5382",
|
|
1513
1812
|
key: "0-0",
|
|
1514
1813
|
id: "0-0",
|
|
1515
|
-
children: [
|
|
1516
|
-
{
|
|
1517
|
-
title: "\u6570\u7BA1\u4E2D\u5FC3",
|
|
1518
|
-
key: "0-0-0",
|
|
1519
|
-
id: "0-0-0",
|
|
1520
|
-
children: [
|
|
1521
|
-
{
|
|
1522
|
-
title: "leaf",
|
|
1523
|
-
key: "0-0-0-0",
|
|
1524
|
-
id: "0-0-0-0"
|
|
1525
|
-
},
|
|
1526
|
-
{ title: "leaf", key: "0-0-0-1", id: "0-0-0-1" }
|
|
1527
|
-
]
|
|
1528
|
-
},
|
|
1529
|
-
{
|
|
1530
|
-
title: "\u63A7\u5236\u4E2D\u5FC3",
|
|
1531
|
-
key: "0-0-1",
|
|
1532
|
-
id: "0-0-1",
|
|
1533
|
-
children: [{ key: "0-0-1-0", id: "0-0-1-0", title: "sss" }]
|
|
1534
|
-
}
|
|
1535
|
-
]
|
|
1814
|
+
children: []
|
|
1536
1815
|
}
|
|
1537
1816
|
];
|
|
1538
1817
|
} }
|
|
1539
1818
|
},
|
|
1540
|
-
emits: ["confirm"],
|
|
1541
|
-
setup(__props, { emit }) {
|
|
1819
|
+
emits: ["confirm", "cancel"],
|
|
1820
|
+
setup(__props, { expose, emit }) {
|
|
1542
1821
|
const props = __props;
|
|
1543
1822
|
const activeKey = ref("1");
|
|
1544
1823
|
const format = (list) => {
|
|
@@ -1579,7 +1858,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1579
1858
|
};
|
|
1580
1859
|
const titleMap = computed(() => {
|
|
1581
1860
|
const obj = {};
|
|
1582
|
-
|
|
1861
|
+
allUserList.value.forEach((item) => {
|
|
1583
1862
|
obj[item.id] = item.name;
|
|
1584
1863
|
});
|
|
1585
1864
|
const organizationObj = getOrganizationName(organization.value);
|
|
@@ -1590,7 +1869,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1590
1869
|
};
|
|
1591
1870
|
const selectedKeys = ref([]);
|
|
1592
1871
|
const userSelected = ref([]);
|
|
1593
|
-
const userList = ref([
|
|
1872
|
+
const userList = ref([]);
|
|
1594
1873
|
const organization = ref([]);
|
|
1595
1874
|
const loadUser = async (deptId) => {
|
|
1596
1875
|
try {
|
|
@@ -1653,14 +1932,34 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1653
1932
|
});
|
|
1654
1933
|
});
|
|
1655
1934
|
});
|
|
1656
|
-
const
|
|
1935
|
+
const dialogRef = ref();
|
|
1936
|
+
const open = () => {
|
|
1937
|
+
dialogRef.value.open();
|
|
1938
|
+
};
|
|
1939
|
+
const confirmEvent = ({ close }) => {
|
|
1657
1940
|
emit("confirm", tagList.value);
|
|
1941
|
+
close();
|
|
1658
1942
|
};
|
|
1943
|
+
const cancelEvent = () => {
|
|
1944
|
+
resetFields();
|
|
1945
|
+
emit("cancel");
|
|
1946
|
+
};
|
|
1947
|
+
const resetFields = () => {
|
|
1948
|
+
nextTick(() => {
|
|
1949
|
+
userSelected.value = [];
|
|
1950
|
+
allUserSelected.value = [];
|
|
1951
|
+
organizationChecked.value = [];
|
|
1952
|
+
});
|
|
1953
|
+
};
|
|
1954
|
+
expose({ open });
|
|
1659
1955
|
return (_ctx, _cache) => {
|
|
1660
1956
|
return openBlock(), createBlock(ShyDialog, {
|
|
1957
|
+
ref_key: "dialogRef",
|
|
1958
|
+
ref: dialogRef,
|
|
1661
1959
|
width: "50vw",
|
|
1662
1960
|
title: "\u4EFB\u52A1\u9009\u62E9\u5668",
|
|
1663
|
-
onConfirm: confirmEvent
|
|
1961
|
+
onConfirm: confirmEvent,
|
|
1962
|
+
onCancel: cancelEvent
|
|
1664
1963
|
}, {
|
|
1665
1964
|
default: withCtx(() => [
|
|
1666
1965
|
createElementVNode("div", _hoisted_1, [
|
|
@@ -1774,23 +2073,25 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1774
2073
|
])
|
|
1775
2074
|
]),
|
|
1776
2075
|
_: 1
|
|
1777
|
-
});
|
|
2076
|
+
}, 512);
|
|
1778
2077
|
};
|
|
1779
2078
|
}
|
|
1780
2079
|
});
|
|
1781
|
-
const
|
|
1782
|
-
const UserSelect = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
2080
|
+
const IndexView_vue_vue_type_style_index_0_scoped_27cdf083_lang = "";
|
|
2081
|
+
const UserSelect = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-27cdf083"]]);
|
|
1783
2082
|
const index = {
|
|
1784
2083
|
install(app) {
|
|
2084
|
+
app.component("s-search", ShySearch);
|
|
2085
|
+
app.component("s-form", _sfc_main$6);
|
|
1785
2086
|
app.component("s-table", ShyTable);
|
|
1786
|
-
app.component("s-page",
|
|
2087
|
+
app.component("s-page", ShyPage);
|
|
1787
2088
|
app.component("s-dialog", ShyDialog);
|
|
1788
2089
|
app.component("user-select", UserSelect);
|
|
1789
2090
|
}
|
|
1790
2091
|
};
|
|
1791
2092
|
export {
|
|
1792
2093
|
ShyDialog,
|
|
1793
|
-
|
|
2094
|
+
ShyPage,
|
|
1794
2095
|
ShyTable,
|
|
1795
2096
|
UserSelect,
|
|
1796
2097
|
index as default
|