bm-admin-ui 1.0.32-alpha → 1.0.33-alpha
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/components/feedback/index.js +1 -1
- package/es/components/float-table/index.d.ts +2 -2
- package/es/components/float-table/src/float-table.vue.d.ts +2 -2
- package/es/components/flow-designer/src/bm-nodes/AddCondition.d.ts +26 -0
- package/es/components/flow-designer/src/bm-nodes/AddFlowNode.d.ts +29 -0
- package/es/components/flow-designer/src/bm-nodes/BmConditionNode.vue.d.ts +249 -0
- package/es/components/flow-designer/src/bm-nodes/BmFlowHtmlNode.d.ts +19 -0
- package/es/components/flow-designer/src/bm-nodes/BmHtmlNode.vue.d.ts +15 -0
- package/es/components/flow-designer/src/bm-nodes/BmPolyLine.d.ts +21 -0
- package/es/components/flow-designer/src/bm-nodes/EndCircle.d.ts +19 -0
- package/es/components/flow-designer/src/config.d.ts +24 -0
- package/es/components/flow-designer/src/flow-designer-test.d.ts +20 -0
- package/es/components/flow-designer/src/flow-designer.d.ts +11 -0
- package/es/components/flow-designer/src/utils.d.ts +29 -0
- package/es/components/index.d.ts +0 -1
- package/es/components/index.js +0 -1
- package/es/components/input-tags-display/index.d.ts +22 -4
- package/es/components/input-tags-display/index.js +26 -22
- package/es/components/input-tags-display/src/input-tags-display.vue.d.ts +22 -4
- package/es/components/search-filter/index.d.ts +1 -1
- package/es/components/search-filter/index.js +28 -603
- package/es/components/search-filter/src/search-filter.vue.d.ts +1 -1
- package/es/components/shops-filter/index.d.ts +1 -1
- package/es/components/shops-filter/src/shops-filter.vue.d.ts +1 -1
- package/es/components/staffs-selector/index.js +4 -4
- package/es/components/staffs-selector/src/multipleCmp.vue.d.ts +2 -2
- package/es/components/upload/index.js +5 -8
- package/index.esm.js +170 -704
- package/index.js +168 -703
- package/lib/components/feedback/index.js +1 -1
- package/lib/components/float-table/index.d.ts +2 -2
- package/lib/components/float-table/src/float-table.vue.d.ts +2 -2
- package/lib/components/flow-designer/src/bm-nodes/AddCondition.d.ts +26 -0
- package/lib/components/flow-designer/src/bm-nodes/AddFlowNode.d.ts +29 -0
- package/lib/components/flow-designer/src/bm-nodes/BmConditionNode.vue.d.ts +249 -0
- package/lib/components/flow-designer/src/bm-nodes/BmFlowHtmlNode.d.ts +19 -0
- package/lib/components/flow-designer/src/bm-nodes/BmHtmlNode.vue.d.ts +15 -0
- package/lib/components/flow-designer/src/bm-nodes/BmPolyLine.d.ts +21 -0
- package/lib/components/flow-designer/src/bm-nodes/EndCircle.d.ts +19 -0
- package/lib/components/flow-designer/src/config.d.ts +24 -0
- package/lib/components/flow-designer/src/flow-designer-test.d.ts +20 -0
- package/lib/components/flow-designer/src/flow-designer.d.ts +11 -0
- package/lib/components/flow-designer/src/utils.d.ts +29 -0
- package/lib/components/index.d.ts +0 -1
- package/lib/components/index.js +0 -7
- package/lib/components/input-tags-display/index.d.ts +22 -4
- package/lib/components/input-tags-display/index.js +25 -21
- package/lib/components/input-tags-display/src/input-tags-display.vue.d.ts +22 -4
- package/lib/components/search-filter/index.d.ts +1 -1
- package/lib/components/search-filter/index.js +27 -602
- package/lib/components/search-filter/src/search-filter.vue.d.ts +1 -1
- package/lib/components/shops-filter/index.d.ts +1 -1
- package/lib/components/shops-filter/src/shops-filter.vue.d.ts +1 -1
- package/lib/components/staffs-selector/index.js +4 -4
- package/lib/components/staffs-selector/src/multipleCmp.vue.d.ts +2 -2
- package/lib/components/upload/index.js +4 -7
- package/package.json +1 -1
- package/theme-chalk/flow-designer.css +1 -1
- package/theme-chalk/index.css +1 -1
- package/types/components/float-table/index.d.ts +2 -2
- package/types/components/float-table/src/float-table.vue.d.ts +2 -2
- package/types/components/flow-designer/src/bm-nodes/AddCondition.d.ts +26 -0
- package/types/components/flow-designer/src/bm-nodes/AddFlowNode.d.ts +29 -0
- package/types/components/flow-designer/src/bm-nodes/BmConditionNode.vue.d.ts +249 -0
- package/types/components/flow-designer/src/bm-nodes/BmFlowHtmlNode.d.ts +19 -0
- package/types/components/flow-designer/src/bm-nodes/BmHtmlNode.vue.d.ts +15 -0
- package/types/components/flow-designer/src/bm-nodes/BmPolyLine.d.ts +21 -0
- package/types/components/flow-designer/src/bm-nodes/EndCircle.d.ts +19 -0
- package/types/components/flow-designer/src/config.d.ts +24 -0
- package/types/components/flow-designer/src/flow-designer-test.d.ts +20 -0
- package/types/components/flow-designer/src/flow-designer.d.ts +11 -0
- package/types/components/flow-designer/src/utils.d.ts +29 -0
- package/types/components/index.d.ts +0 -1
- package/types/components/input-tags-display/index.d.ts +22 -4
- package/types/components/input-tags-display/src/input-tags-display.vue.d.ts +22 -4
- package/types/components/search-filter/index.d.ts +1 -1
- package/types/components/search-filter/src/search-filter.vue.d.ts +1 -1
- package/types/components/shops-filter/index.d.ts +1 -1
- package/types/components/shops-filter/src/shops-filter.vue.d.ts +1 -1
- package/types/components/staffs-selector/src/multipleCmp.vue.d.ts +2 -2
- package/es/components/multi-cascader-compose/index.d.ts +0 -164
- package/es/components/multi-cascader-compose/index.js +0 -1710
- package/es/components/multi-cascader-compose/src/multi-cascader-compose.vue.d.ts +0 -164
- package/es/components/multi-cascader-compose/src/props.d.ts +0 -40
- package/es/components/multi-cascader-compose/types.d.ts +0 -10
- package/lib/components/multi-cascader-compose/index.d.ts +0 -164
- package/lib/components/multi-cascader-compose/index.js +0 -1715
- package/lib/components/multi-cascader-compose/src/multi-cascader-compose.vue.d.ts +0 -164
- package/lib/components/multi-cascader-compose/src/props.d.ts +0 -40
- package/lib/components/multi-cascader-compose/types.d.ts +0 -10
- package/theme-chalk/multi-cascader-compose.css +0 -1
- package/types/components/multi-cascader-compose/index.d.ts +0 -164
- package/types/components/multi-cascader-compose/src/multi-cascader-compose.vue.d.ts +0 -164
- package/types/components/multi-cascader-compose/src/props.d.ts +0 -40
- package/types/components/multi-cascader-compose/types.d.ts +0 -10
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { withInstall } from 'bm-admin-ui/es/utils/with-install';
|
|
2
|
-
import { h, nextTick, createVNode, defineComponent, ref, computed, resolveComponent, openBlock, createElementBlock, normalizeStyle, unref, createTextVNode, toDisplayString, createBlock, createCommentVNode, createElementVNode, withCtx,
|
|
2
|
+
import { h, nextTick, createVNode, defineComponent, ref, computed, resolveComponent, openBlock, createElementBlock, normalizeStyle, unref, createTextVNode, toDisplayString, createBlock, createCommentVNode, createElementVNode, withCtx, reactive, onBeforeUnmount, watch, normalizeClass } from 'vue';
|
|
3
3
|
import FormCreateCtr from '@form-create/ant-design-vue';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -852,9 +852,9 @@ function insertCss(css, options) {
|
|
|
852
852
|
return styleElement;
|
|
853
853
|
}
|
|
854
854
|
|
|
855
|
-
function _objectSpread$
|
|
855
|
+
function _objectSpread$5(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? Object(arguments[i]) : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty$5(target, key, source[key]); }); } return target; }
|
|
856
856
|
|
|
857
|
-
function _defineProperty$
|
|
857
|
+
function _defineProperty$5(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
858
858
|
function warn(valid, message) {
|
|
859
859
|
// Support uglify
|
|
860
860
|
if (process.env.NODE_ENV !== 'production' && !valid && console !== undefined) {
|
|
@@ -870,14 +870,14 @@ function isIconDefinition(target) {
|
|
|
870
870
|
}
|
|
871
871
|
function generate(node, key, rootProps) {
|
|
872
872
|
if (!rootProps) {
|
|
873
|
-
return h(node.tag, _objectSpread$
|
|
873
|
+
return h(node.tag, _objectSpread$5({
|
|
874
874
|
key: key
|
|
875
875
|
}, node.attrs), (node.children || []).map(function (child, index) {
|
|
876
876
|
return generate(child, "".concat(key, "-").concat(node.tag, "-").concat(index));
|
|
877
877
|
}));
|
|
878
878
|
}
|
|
879
879
|
|
|
880
|
-
return h(node.tag, _objectSpread$
|
|
880
|
+
return h(node.tag, _objectSpread$5({
|
|
881
881
|
key: key
|
|
882
882
|
}, rootProps, node.attrs), (node.children || []).map(function (child, index) {
|
|
883
883
|
return generate(child, "".concat(key, "-").concat(node.tag, "-").concat(index));
|
|
@@ -917,9 +917,9 @@ function _objectWithoutProperties$1(source, excluded) { if (source == null) retu
|
|
|
917
917
|
|
|
918
918
|
function _objectWithoutPropertiesLoose$1(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
919
919
|
|
|
920
|
-
function _objectSpread$
|
|
920
|
+
function _objectSpread$4(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? Object(arguments[i]) : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty$4(target, key, source[key]); }); } return target; }
|
|
921
921
|
|
|
922
|
-
function _defineProperty$
|
|
922
|
+
function _defineProperty$4(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
923
923
|
var twoToneColorPalette = {
|
|
924
924
|
primaryColor: '#333',
|
|
925
925
|
secondaryColor: '#E6E6E6',
|
|
@@ -935,11 +935,11 @@ function setTwoToneColors(_ref) {
|
|
|
935
935
|
}
|
|
936
936
|
|
|
937
937
|
function getTwoToneColors() {
|
|
938
|
-
return _objectSpread$
|
|
938
|
+
return _objectSpread$4({}, twoToneColorPalette);
|
|
939
939
|
}
|
|
940
940
|
|
|
941
941
|
var IconBase = function IconBase(props, context) {
|
|
942
|
-
var _props$context$attrs = _objectSpread$
|
|
942
|
+
var _props$context$attrs = _objectSpread$4({}, props, context.attrs),
|
|
943
943
|
icon = _props$context$attrs.icon,
|
|
944
944
|
primaryColor = _props$context$attrs.primaryColor,
|
|
945
945
|
secondaryColor = _props$context$attrs.secondaryColor,
|
|
@@ -964,12 +964,12 @@ var IconBase = function IconBase(props, context) {
|
|
|
964
964
|
var target = icon;
|
|
965
965
|
|
|
966
966
|
if (target && typeof target.icon === 'function') {
|
|
967
|
-
target = _objectSpread$
|
|
967
|
+
target = _objectSpread$4({}, target, {
|
|
968
968
|
icon: target.icon(colors.primaryColor, colors.secondaryColor)
|
|
969
969
|
});
|
|
970
970
|
}
|
|
971
971
|
|
|
972
|
-
return generate(target.icon, "svg-".concat(target.name), _objectSpread$
|
|
972
|
+
return generate(target.icon, "svg-".concat(target.name), _objectSpread$4({}, restProps, {
|
|
973
973
|
'data-icon': target.name,
|
|
974
974
|
width: '1em',
|
|
975
975
|
height: '1em',
|
|
@@ -1036,9 +1036,9 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
1036
1036
|
|
|
1037
1037
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
1038
1038
|
|
|
1039
|
-
function _objectSpread$
|
|
1039
|
+
function _objectSpread$3(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? Object(arguments[i]) : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty$3(target, key, source[key]); }); } return target; }
|
|
1040
1040
|
|
|
1041
|
-
function _defineProperty$
|
|
1041
|
+
function _defineProperty$3(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
1042
1042
|
|
|
1043
1043
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
1044
1044
|
|
|
@@ -1049,7 +1049,7 @@ setTwoToneColor('#1890ff');
|
|
|
1049
1049
|
var Icon = function Icon(props, context) {
|
|
1050
1050
|
var _classObj;
|
|
1051
1051
|
|
|
1052
|
-
var _props$context$attrs = _objectSpread$
|
|
1052
|
+
var _props$context$attrs = _objectSpread$3({}, props, context.attrs),
|
|
1053
1053
|
cls = _props$context$attrs["class"],
|
|
1054
1054
|
icon = _props$context$attrs.icon,
|
|
1055
1055
|
spin = _props$context$attrs.spin,
|
|
@@ -1061,7 +1061,7 @@ var Icon = function Icon(props, context) {
|
|
|
1061
1061
|
|
|
1062
1062
|
var classObj = (_classObj = {
|
|
1063
1063
|
anticon: true
|
|
1064
|
-
}, _defineProperty$
|
|
1064
|
+
}, _defineProperty$3(_classObj, "anticon-".concat(icon.name), Boolean(icon.name)), _defineProperty$3(_classObj, cls, cls), _classObj);
|
|
1065
1065
|
var svgClassString = spin === '' || !!spin || icon.name === 'loading' ? 'anticon-spin' : '';
|
|
1066
1066
|
var iconTabIndex = tabindex;
|
|
1067
1067
|
|
|
@@ -1080,7 +1080,7 @@ var Icon = function Icon(props, context) {
|
|
|
1080
1080
|
primaryColor = _normalizeTwoToneColo2[0],
|
|
1081
1081
|
secondaryColor = _normalizeTwoToneColo2[1];
|
|
1082
1082
|
|
|
1083
|
-
return createVNode("span", _objectSpread$
|
|
1083
|
+
return createVNode("span", _objectSpread$3({
|
|
1084
1084
|
"role": "img",
|
|
1085
1085
|
"aria-label": icon.name
|
|
1086
1086
|
}, restProps, {
|
|
@@ -1107,58 +1107,18 @@ Icon.getTwoToneColor = getTwoToneColor;
|
|
|
1107
1107
|
Icon.setTwoToneColor = setTwoToneColor;
|
|
1108
1108
|
var AntdIcon = Icon;
|
|
1109
1109
|
|
|
1110
|
-
// This icon file is generated automatically.
|
|
1111
|
-
var CloseCircleFilled$2 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm165.4 618.2l-66-.3L512 563.4l-99.3 118.4-66.1.3c-4.4 0-8-3.5-8-8 0-1.9.7-3.7 1.9-5.2l130.1-155L340.5 359a8.32 8.32 0 01-1.9-5.2c0-4.4 3.6-8 8-8l66.1.3L512 464.6l99.3-118.4 66-.3c4.4 0 8 3.5 8 8 0 1.9-.7 3.7-1.9 5.2L553.5 514l130 155c1.2 1.5 1.9 3.3 1.9 5.2 0 4.4-3.6 8-8 8z" } }] }, "name": "close-circle", "theme": "filled" };
|
|
1112
|
-
var CloseCircleFilledSvg = CloseCircleFilled$2;
|
|
1113
|
-
|
|
1114
|
-
function _objectSpread$5(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? Object(arguments[i]) : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty$5(target, key, source[key]); }); } return target; }
|
|
1115
|
-
|
|
1116
|
-
function _defineProperty$5(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
1117
|
-
|
|
1118
|
-
var CloseCircleFilled = function CloseCircleFilled(props, context) {
|
|
1119
|
-
var p = _objectSpread$5({}, props, context.attrs);
|
|
1120
|
-
|
|
1121
|
-
return createVNode(AntdIcon, _objectSpread$5({}, p, {
|
|
1122
|
-
"icon": CloseCircleFilledSvg
|
|
1123
|
-
}), null);
|
|
1124
|
-
};
|
|
1125
|
-
|
|
1126
|
-
CloseCircleFilled.displayName = 'CloseCircleFilled';
|
|
1127
|
-
CloseCircleFilled.inheritAttrs = false;
|
|
1128
|
-
var CloseCircleFilled$1 = CloseCircleFilled;
|
|
1129
|
-
|
|
1130
|
-
// This icon file is generated automatically.
|
|
1131
|
-
var CloseOutlined$2 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 00203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z" } }] }, "name": "close", "theme": "outlined" };
|
|
1132
|
-
var CloseOutlinedSvg = CloseOutlined$2;
|
|
1133
|
-
|
|
1134
|
-
function _objectSpread$4(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? Object(arguments[i]) : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty$4(target, key, source[key]); }); } return target; }
|
|
1135
|
-
|
|
1136
|
-
function _defineProperty$4(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
1137
|
-
|
|
1138
|
-
var CloseOutlined = function CloseOutlined(props, context) {
|
|
1139
|
-
var p = _objectSpread$4({}, props, context.attrs);
|
|
1140
|
-
|
|
1141
|
-
return createVNode(AntdIcon, _objectSpread$4({}, p, {
|
|
1142
|
-
"icon": CloseOutlinedSvg
|
|
1143
|
-
}), null);
|
|
1144
|
-
};
|
|
1145
|
-
|
|
1146
|
-
CloseOutlined.displayName = 'CloseOutlined';
|
|
1147
|
-
CloseOutlined.inheritAttrs = false;
|
|
1148
|
-
var CloseOutlined$1 = CloseOutlined;
|
|
1149
|
-
|
|
1150
1110
|
// This icon file is generated automatically.
|
|
1151
1111
|
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" };
|
|
1152
1112
|
var DownOutlinedSvg = DownOutlined$2;
|
|
1153
1113
|
|
|
1154
|
-
function _objectSpread$
|
|
1114
|
+
function _objectSpread$2(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? Object(arguments[i]) : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty$2(target, key, source[key]); }); } return target; }
|
|
1155
1115
|
|
|
1156
|
-
function _defineProperty$
|
|
1116
|
+
function _defineProperty$2(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
1157
1117
|
|
|
1158
1118
|
var DownOutlined = function DownOutlined(props, context) {
|
|
1159
|
-
var p = _objectSpread$
|
|
1119
|
+
var p = _objectSpread$2({}, props, context.attrs);
|
|
1160
1120
|
|
|
1161
|
-
return createVNode(AntdIcon, _objectSpread$
|
|
1121
|
+
return createVNode(AntdIcon, _objectSpread$2({}, p, {
|
|
1162
1122
|
"icon": DownOutlinedSvg
|
|
1163
1123
|
}), null);
|
|
1164
1124
|
};
|
|
@@ -1167,26 +1127,6 @@ DownOutlined.displayName = 'DownOutlined';
|
|
|
1167
1127
|
DownOutlined.inheritAttrs = false;
|
|
1168
1128
|
var DownOutlined$1 = DownOutlined;
|
|
1169
1129
|
|
|
1170
|
-
// This icon file is generated automatically.
|
|
1171
|
-
var RightOutlined$2 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z" } }] }, "name": "right", "theme": "outlined" };
|
|
1172
|
-
var RightOutlinedSvg = RightOutlined$2;
|
|
1173
|
-
|
|
1174
|
-
function _objectSpread$2(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? Object(arguments[i]) : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty$2(target, key, source[key]); }); } return target; }
|
|
1175
|
-
|
|
1176
|
-
function _defineProperty$2(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
1177
|
-
|
|
1178
|
-
var RightOutlined = function RightOutlined(props, context) {
|
|
1179
|
-
var p = _objectSpread$2({}, props, context.attrs);
|
|
1180
|
-
|
|
1181
|
-
return createVNode(AntdIcon, _objectSpread$2({}, p, {
|
|
1182
|
-
"icon": RightOutlinedSvg
|
|
1183
|
-
}), null);
|
|
1184
|
-
};
|
|
1185
|
-
|
|
1186
|
-
RightOutlined.displayName = 'RightOutlined';
|
|
1187
|
-
RightOutlined.inheritAttrs = false;
|
|
1188
|
-
var RightOutlined$1 = RightOutlined;
|
|
1189
|
-
|
|
1190
1130
|
// This icon file is generated automatically.
|
|
1191
1131
|
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" };
|
|
1192
1132
|
var SearchOutlinedSvg = SearchOutlined$2;
|
|
@@ -1295,10 +1235,10 @@ var _export_sfc = (sfc, props) => {
|
|
|
1295
1235
|
return target;
|
|
1296
1236
|
};
|
|
1297
1237
|
|
|
1298
|
-
const _hoisted_1
|
|
1299
|
-
const _hoisted_2
|
|
1300
|
-
const _hoisted_3
|
|
1301
|
-
const _sfc_main$
|
|
1238
|
+
const _hoisted_1 = { class: "bm-search-filter-actions" };
|
|
1239
|
+
const _hoisted_2 = /* @__PURE__ */ createTextVNode("\u91CD\u7F6E");
|
|
1240
|
+
const _hoisted_3 = /* @__PURE__ */ createTextVNode("\u67E5\u8BE2");
|
|
1241
|
+
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
1302
1242
|
props: searchResetBtnProps,
|
|
1303
1243
|
emits: ["submit", "reset", "expand"],
|
|
1304
1244
|
setup(__props, { emit: emits }) {
|
|
@@ -1332,10 +1272,10 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
1332
1272
|
createTextVNode(toDisplayString(isExpand.value ? props.collapseText : props.expandText), 1),
|
|
1333
1273
|
isExpand.value ? (openBlock(), createBlock(unref(UpOutlined$1), { key: 0 })) : (openBlock(), createBlock(unref(DownOutlined$1), { key: 1 }))
|
|
1334
1274
|
])) : createCommentVNode("v-if", true),
|
|
1335
|
-
createElementVNode("span", _hoisted_1
|
|
1275
|
+
createElementVNode("span", _hoisted_1, [
|
|
1336
1276
|
createVNode(_component_a_button, { onClick: handleReset }, {
|
|
1337
1277
|
default: withCtx(() => [
|
|
1338
|
-
_hoisted_2
|
|
1278
|
+
_hoisted_2
|
|
1339
1279
|
]),
|
|
1340
1280
|
_: 1
|
|
1341
1281
|
}),
|
|
@@ -1345,7 +1285,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
1345
1285
|
}, {
|
|
1346
1286
|
default: withCtx(() => [
|
|
1347
1287
|
props.showSearchIcon ? (openBlock(), createBlock(unref(SearchOutlined$1), { key: 0 })) : createCommentVNode("v-if", true),
|
|
1348
|
-
_hoisted_3
|
|
1288
|
+
_hoisted_3
|
|
1349
1289
|
]),
|
|
1350
1290
|
_: 1
|
|
1351
1291
|
})
|
|
@@ -1354,521 +1294,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
1354
1294
|
};
|
|
1355
1295
|
}
|
|
1356
1296
|
});
|
|
1357
|
-
var SearchResetBtn = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1358
|
-
|
|
1359
|
-
function multiCascaderComposeProps() {
|
|
1360
|
-
return {
|
|
1361
|
-
options: {
|
|
1362
|
-
type: Array,
|
|
1363
|
-
default() {
|
|
1364
|
-
return [];
|
|
1365
|
-
},
|
|
1366
|
-
},
|
|
1367
|
-
modelValue: {
|
|
1368
|
-
type: Array,
|
|
1369
|
-
default() {
|
|
1370
|
-
return [];
|
|
1371
|
-
},
|
|
1372
|
-
},
|
|
1373
|
-
optionValueName: {
|
|
1374
|
-
type: String,
|
|
1375
|
-
default: 'value',
|
|
1376
|
-
},
|
|
1377
|
-
optionLabelName: {
|
|
1378
|
-
type: String,
|
|
1379
|
-
default: 'label',
|
|
1380
|
-
},
|
|
1381
|
-
maxTagCount: {
|
|
1382
|
-
type: Number,
|
|
1383
|
-
default: 1,
|
|
1384
|
-
},
|
|
1385
|
-
placeholder: {
|
|
1386
|
-
type: String,
|
|
1387
|
-
default: '请选择',
|
|
1388
|
-
},
|
|
1389
|
-
allowClear: {
|
|
1390
|
-
type: Boolean,
|
|
1391
|
-
default: true,
|
|
1392
|
-
},
|
|
1393
|
-
emptyImage: {
|
|
1394
|
-
type: [String, Object],
|
|
1395
|
-
default: undefined,
|
|
1396
|
-
},
|
|
1397
|
-
};
|
|
1398
|
-
}
|
|
1399
|
-
|
|
1400
|
-
const _hoisted_1 = { class: "bm-multi-cascader-wrapper" };
|
|
1401
|
-
const _hoisted_2 = { class: "bm-multi-cascader" };
|
|
1402
|
-
const _hoisted_3 = { class: "bm-multi-cascader-inner" };
|
|
1403
|
-
const _hoisted_4 = {
|
|
1404
|
-
key: 0,
|
|
1405
|
-
class: "bm-multi-cascader-tags"
|
|
1406
|
-
};
|
|
1407
|
-
const _hoisted_5 = { class: "bm-multi-cascader-tag-text" };
|
|
1408
|
-
const _hoisted_6 = ["onClick"];
|
|
1409
|
-
const _hoisted_7 = {
|
|
1410
|
-
key: 0,
|
|
1411
|
-
class: "bm-multi-cascader-tag"
|
|
1412
|
-
};
|
|
1413
|
-
const _hoisted_8 = { class: "bm-multi-cascader-tag-text" };
|
|
1414
|
-
const _hoisted_9 = {
|
|
1415
|
-
key: 1,
|
|
1416
|
-
class: "bm-multi-cascader-placeholder"
|
|
1417
|
-
};
|
|
1418
|
-
const _hoisted_10 = { class: "bm-multi-cascader-action" };
|
|
1419
|
-
const _hoisted_11 = {
|
|
1420
|
-
key: 0,
|
|
1421
|
-
class: "bm-multi-cascader-popover"
|
|
1422
|
-
};
|
|
1423
|
-
const _hoisted_12 = { class: "bm-multi-cascader-moduler-container" };
|
|
1424
|
-
const _hoisted_13 = ["onClick"];
|
|
1425
|
-
const _hoisted_14 = /* @__PURE__ */ createElementVNode("span", { class: "bm-multi-cascader-item-desc" }, "\u5168\u9009", -1);
|
|
1426
|
-
const _hoisted_15 = ["onClick"];
|
|
1427
|
-
const _hoisted_16 = { class: "bm-multi-cascader-item-desc" };
|
|
1428
|
-
const _hoisted_17 = { class: "bm-multi-cascader-item-text" };
|
|
1429
|
-
const _hoisted_18 = {
|
|
1430
|
-
key: 1,
|
|
1431
|
-
class: "bm-multi-cascader-popover"
|
|
1432
|
-
};
|
|
1433
|
-
const _hoisted_19 = { class: "bm-multi-cascader-moduler" };
|
|
1434
|
-
const __default__$1 = {
|
|
1435
|
-
name: "BmMultiCascaderCompose"
|
|
1436
|
-
};
|
|
1437
|
-
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
1438
|
-
...__default__$1,
|
|
1439
|
-
props: multiCascaderComposeProps(),
|
|
1440
|
-
emits: ["update:modelValue", "change"],
|
|
1441
|
-
setup(__props, { emit: emits }) {
|
|
1442
|
-
const props = __props;
|
|
1443
|
-
const path = ref([]);
|
|
1444
|
-
const optionsMap = computed(() => {
|
|
1445
|
-
let res = {};
|
|
1446
|
-
const getValue = (list) => {
|
|
1447
|
-
list.forEach((row) => {
|
|
1448
|
-
let key = row[props.optionValueName];
|
|
1449
|
-
let value = row[props.optionLabelName];
|
|
1450
|
-
if (!res[key]) {
|
|
1451
|
-
res[key] = {
|
|
1452
|
-
[props.optionValueName]: key,
|
|
1453
|
-
[props.optionLabelName]: value
|
|
1454
|
-
};
|
|
1455
|
-
}
|
|
1456
|
-
if (row.children) {
|
|
1457
|
-
getValue(row.children);
|
|
1458
|
-
}
|
|
1459
|
-
});
|
|
1460
|
-
};
|
|
1461
|
-
getValue(props.options);
|
|
1462
|
-
return res;
|
|
1463
|
-
});
|
|
1464
|
-
const checkedMap = computed(() => {
|
|
1465
|
-
let res = [];
|
|
1466
|
-
props.modelValue.forEach((item) => {
|
|
1467
|
-
let temp = optionsMap.value[item] || {};
|
|
1468
|
-
temp = {
|
|
1469
|
-
[props.optionValueName]: item,
|
|
1470
|
-
[props.optionLabelName]: item,
|
|
1471
|
-
...temp
|
|
1472
|
-
};
|
|
1473
|
-
res.push(temp);
|
|
1474
|
-
});
|
|
1475
|
-
return res;
|
|
1476
|
-
});
|
|
1477
|
-
const checkedHideCount = computed(() => {
|
|
1478
|
-
if (props.maxTagCount && checkedMap.value.length > props.maxTagCount) {
|
|
1479
|
-
return checkedMap.value.length - props.maxTagCount;
|
|
1480
|
-
} else {
|
|
1481
|
-
return 0;
|
|
1482
|
-
}
|
|
1483
|
-
});
|
|
1484
|
-
const checkedShowMap = computed(() => {
|
|
1485
|
-
if (checkedHideCount.value > 0) {
|
|
1486
|
-
return checkedMap.value.slice(0, props.maxTagCount);
|
|
1487
|
-
} else {
|
|
1488
|
-
return checkedMap.value;
|
|
1489
|
-
}
|
|
1490
|
-
});
|
|
1491
|
-
const modulersOptions = computed(() => {
|
|
1492
|
-
let res = [{ children: props.options }];
|
|
1493
|
-
for (let i = 0; i < path.value.length; i++) {
|
|
1494
|
-
let parent = res[res.length - 1];
|
|
1495
|
-
let index = path.value[i].index;
|
|
1496
|
-
let next = parent.children?.[index];
|
|
1497
|
-
next && res.push(next);
|
|
1498
|
-
}
|
|
1499
|
-
return res;
|
|
1500
|
-
});
|
|
1501
|
-
const modulersStatusOptions = computed(() => {
|
|
1502
|
-
let res = [];
|
|
1503
|
-
let parentChecked = false;
|
|
1504
|
-
for (let i = 0; i < modulersOptions.value.length; i++) {
|
|
1505
|
-
let tempRes = [];
|
|
1506
|
-
let tempChildren = modulersOptions.value[i].children;
|
|
1507
|
-
if (tempChildren) {
|
|
1508
|
-
for (let j = 0; j < tempChildren.length; j++) {
|
|
1509
|
-
if (parentChecked) {
|
|
1510
|
-
tempRes.push({ checked: true });
|
|
1511
|
-
} else {
|
|
1512
|
-
let tempRes2 = tempChildren[j];
|
|
1513
|
-
let tempIndex2 = props.modelValue.indexOf(tempRes2[props.optionValueName]);
|
|
1514
|
-
if (tempIndex2 !== -1) {
|
|
1515
|
-
tempRes.push({ checked: true });
|
|
1516
|
-
} else {
|
|
1517
|
-
if (tempRes2.children) {
|
|
1518
|
-
let allSonValues = getAllSonValues(tempRes2.children);
|
|
1519
|
-
let indeterminate = false;
|
|
1520
|
-
for (let k = 0; k < allSonValues.length; k++) {
|
|
1521
|
-
if (props.modelValue.indexOf(allSonValues[k]) !== -1) {
|
|
1522
|
-
indeterminate = true;
|
|
1523
|
-
break;
|
|
1524
|
-
}
|
|
1525
|
-
}
|
|
1526
|
-
tempRes.push({ checked: false, indeterminate });
|
|
1527
|
-
} else {
|
|
1528
|
-
tempRes.push({ checked: false });
|
|
1529
|
-
}
|
|
1530
|
-
}
|
|
1531
|
-
}
|
|
1532
|
-
}
|
|
1533
|
-
}
|
|
1534
|
-
res.push(tempRes);
|
|
1535
|
-
if (!parentChecked) {
|
|
1536
|
-
if (tempChildren) {
|
|
1537
|
-
for (let j = 0; j < tempChildren.length; j++) {
|
|
1538
|
-
let tempRes2 = tempChildren[j];
|
|
1539
|
-
let tempIndex2 = props.modelValue.indexOf(tempRes2[props.optionValueName]);
|
|
1540
|
-
if (path.value[i] && tempRes2[props.optionValueName] === path.value[i][props.optionValueName] && tempIndex2 !== -1) {
|
|
1541
|
-
parentChecked = true;
|
|
1542
|
-
break;
|
|
1543
|
-
}
|
|
1544
|
-
}
|
|
1545
|
-
}
|
|
1546
|
-
}
|
|
1547
|
-
}
|
|
1548
|
-
return res;
|
|
1549
|
-
});
|
|
1550
|
-
const modulersAllStatusOptions = computed(() => {
|
|
1551
|
-
let res = [];
|
|
1552
|
-
for (let i = 0; i < modulersStatusOptions.value.length; i++) {
|
|
1553
|
-
let checked = true;
|
|
1554
|
-
let indeterminate = false;
|
|
1555
|
-
for (let j = 0; j < modulersStatusOptions.value[i].length; j++) {
|
|
1556
|
-
let tempRes2 = modulersStatusOptions.value[i][j];
|
|
1557
|
-
if (!tempRes2.checked) {
|
|
1558
|
-
checked = false;
|
|
1559
|
-
break;
|
|
1560
|
-
}
|
|
1561
|
-
}
|
|
1562
|
-
if (!checked) {
|
|
1563
|
-
for (let k = 0; k < modulersStatusOptions.value[i].length; k++) {
|
|
1564
|
-
let tempRes2 = modulersStatusOptions.value[i][k];
|
|
1565
|
-
if (tempRes2.indeterminate || tempRes2.checked) {
|
|
1566
|
-
indeterminate = true;
|
|
1567
|
-
break;
|
|
1568
|
-
}
|
|
1569
|
-
}
|
|
1570
|
-
}
|
|
1571
|
-
res.push({ checked, indeterminate });
|
|
1572
|
-
}
|
|
1573
|
-
return res;
|
|
1574
|
-
});
|
|
1575
|
-
const handleClick = (option, level, index) => {
|
|
1576
|
-
if (option.children) {
|
|
1577
|
-
path.value.splice(level);
|
|
1578
|
-
path.value[level] = { ...option, index };
|
|
1579
|
-
} else {
|
|
1580
|
-
path.value.splice(level);
|
|
1581
|
-
handleToggle(option, level, index);
|
|
1582
|
-
}
|
|
1583
|
-
};
|
|
1584
|
-
const handleClickCheckbox = (option, level, index) => {
|
|
1585
|
-
if (option.children) {
|
|
1586
|
-
path.value.splice(level);
|
|
1587
|
-
path.value[level] = { ...option, index };
|
|
1588
|
-
} else {
|
|
1589
|
-
path.value.splice(level);
|
|
1590
|
-
}
|
|
1591
|
-
handleToggle(option, level, index);
|
|
1592
|
-
};
|
|
1593
|
-
const handleToggle = (option, level, index) => {
|
|
1594
|
-
let checked = [...props.modelValue];
|
|
1595
|
-
let unChecked = [];
|
|
1596
|
-
let tempOption = modulersOptions.value[level].children?.[index];
|
|
1597
|
-
let tempStatus = modulersStatusOptions.value[level][index];
|
|
1598
|
-
if (tempStatus.checked) {
|
|
1599
|
-
unChecked.push(tempOption?.[props.optionValueName]);
|
|
1600
|
-
if (tempOption?.children) {
|
|
1601
|
-
let allSonValues = getAllSonValues(tempOption.children);
|
|
1602
|
-
unChecked = unChecked.concat(allSonValues);
|
|
1603
|
-
}
|
|
1604
|
-
if (level >= 0) {
|
|
1605
|
-
tempOption = modulersOptions.value[level];
|
|
1606
|
-
}
|
|
1607
|
-
for (let i = level; i >= 0; i--) {
|
|
1608
|
-
let tempOption2 = modulersOptions.value[i];
|
|
1609
|
-
let tempStatus2 = modulersAllStatusOptions.value[i];
|
|
1610
|
-
if (tempStatus2.checked) {
|
|
1611
|
-
let tempValues = tempOption2.children?.map((item) => item[props.optionValueName]).filter((item) => item !== tempOption?.[props.optionValueName]) || [];
|
|
1612
|
-
unChecked.push(tempOption2[props.optionValueName]);
|
|
1613
|
-
checked = checked.concat(tempValues);
|
|
1614
|
-
}
|
|
1615
|
-
tempOption = tempOption2;
|
|
1616
|
-
}
|
|
1617
|
-
} else {
|
|
1618
|
-
checked.push(tempOption?.[props.optionValueName]);
|
|
1619
|
-
if (tempOption?.children) {
|
|
1620
|
-
let allSonValues = getAllSonValues(tempOption.children);
|
|
1621
|
-
allSonValues = allSonValues.filter((item) => item !== tempOption?.[props.optionValueName]);
|
|
1622
|
-
unChecked = unChecked.concat(allSonValues);
|
|
1623
|
-
}
|
|
1624
|
-
for (let i = level; i > 0; i--) {
|
|
1625
|
-
let tempOption2 = modulersOptions.value[i];
|
|
1626
|
-
let allIsChecked = true;
|
|
1627
|
-
tempOption2.children?.forEach((item) => {
|
|
1628
|
-
if (checked.indexOf(item[props.optionValueName]) === -1) {
|
|
1629
|
-
allIsChecked = false;
|
|
1630
|
-
}
|
|
1631
|
-
});
|
|
1632
|
-
if (allIsChecked) {
|
|
1633
|
-
checked.push(tempOption2[props.optionValueName]);
|
|
1634
|
-
if (tempOption2.children) {
|
|
1635
|
-
let allSonValues = getAllSonValues(tempOption2.children);
|
|
1636
|
-
allSonValues = allSonValues.filter((item) => item !== tempOption2[props.optionValueName]);
|
|
1637
|
-
unChecked = unChecked.concat(allSonValues);
|
|
1638
|
-
}
|
|
1639
|
-
}
|
|
1640
|
-
}
|
|
1641
|
-
}
|
|
1642
|
-
unChecked = unChecked.filter((item, index2, arr) => {
|
|
1643
|
-
return item !== void 0 && arr.indexOf(item) === index2;
|
|
1644
|
-
});
|
|
1645
|
-
checked = checked.filter((item, index2, arr) => {
|
|
1646
|
-
return item !== void 0 && arr.indexOf(item) === index2;
|
|
1647
|
-
}).filter((item) => {
|
|
1648
|
-
return unChecked.indexOf(item) === -1;
|
|
1649
|
-
});
|
|
1650
|
-
emits("update:modelValue", checked);
|
|
1651
|
-
emits("change", checked);
|
|
1652
|
-
};
|
|
1653
|
-
const handleClickAll = (level) => {
|
|
1654
|
-
let checked = [...props.modelValue];
|
|
1655
|
-
let unChecked = [];
|
|
1656
|
-
let tempOption = modulersOptions.value[level];
|
|
1657
|
-
let tempStatus = modulersAllStatusOptions.value[level];
|
|
1658
|
-
if (level === 0) {
|
|
1659
|
-
if (tempStatus.checked) {
|
|
1660
|
-
checked = [];
|
|
1661
|
-
} else {
|
|
1662
|
-
checked = modulersOptions.value[level].children?.map((item) => item[props.optionValueName]) || [];
|
|
1663
|
-
}
|
|
1664
|
-
} else {
|
|
1665
|
-
if (tempStatus.checked) {
|
|
1666
|
-
unChecked.push(tempOption[props.optionValueName]);
|
|
1667
|
-
if (tempOption.children) {
|
|
1668
|
-
let allSonValues = getAllSonValues(tempOption.children);
|
|
1669
|
-
unChecked = unChecked.concat(allSonValues);
|
|
1670
|
-
}
|
|
1671
|
-
for (let i = level; i >= 0; i--) {
|
|
1672
|
-
let tempOption2 = modulersOptions.value[i];
|
|
1673
|
-
let tempStatus2 = modulersAllStatusOptions.value[i];
|
|
1674
|
-
if (tempStatus2.checked) {
|
|
1675
|
-
let tempValues = tempOption2.children?.map((item) => item[props.optionValueName]).filter((item) => item !== tempOption[props.optionValueName]) || [];
|
|
1676
|
-
unChecked.push(tempOption2[props.optionValueName]);
|
|
1677
|
-
checked = checked.concat(tempValues);
|
|
1678
|
-
}
|
|
1679
|
-
tempOption = tempOption2;
|
|
1680
|
-
}
|
|
1681
|
-
} else {
|
|
1682
|
-
checked.push(tempOption[props.optionValueName]);
|
|
1683
|
-
if (tempOption.children) {
|
|
1684
|
-
let allSonValues = getAllSonValues(tempOption.children);
|
|
1685
|
-
allSonValues = allSonValues.filter((item) => item !== tempOption[props.optionValueName]);
|
|
1686
|
-
unChecked = unChecked.concat(allSonValues);
|
|
1687
|
-
}
|
|
1688
|
-
for (let i = level; i > 0; i--) {
|
|
1689
|
-
let tempOption2 = modulersOptions.value[i];
|
|
1690
|
-
let allIsChecked = true;
|
|
1691
|
-
tempOption2.children?.forEach((item) => {
|
|
1692
|
-
if (checked.indexOf(item[props.optionValueName]) === -1) {
|
|
1693
|
-
allIsChecked = false;
|
|
1694
|
-
}
|
|
1695
|
-
});
|
|
1696
|
-
if (allIsChecked) {
|
|
1697
|
-
checked.push(tempOption2[props.optionValueName]);
|
|
1698
|
-
if (tempOption2.children) {
|
|
1699
|
-
let allSonValues = getAllSonValues(tempOption2.children);
|
|
1700
|
-
allSonValues = allSonValues.filter((item) => item !== tempOption2[props.optionValueName]);
|
|
1701
|
-
unChecked = unChecked.concat(allSonValues);
|
|
1702
|
-
}
|
|
1703
|
-
}
|
|
1704
|
-
}
|
|
1705
|
-
}
|
|
1706
|
-
}
|
|
1707
|
-
unChecked = unChecked.filter((item, index, arr) => {
|
|
1708
|
-
return item !== void 0 && arr.indexOf(item) === index;
|
|
1709
|
-
});
|
|
1710
|
-
checked = checked.filter((item, index, arr) => {
|
|
1711
|
-
return item !== void 0 && arr.indexOf(item) === index;
|
|
1712
|
-
}).filter((item) => {
|
|
1713
|
-
return unChecked.indexOf(item) === -1;
|
|
1714
|
-
});
|
|
1715
|
-
emits("update:modelValue", checked);
|
|
1716
|
-
emits("change", checked);
|
|
1717
|
-
};
|
|
1718
|
-
const getAllSonValues = (data) => {
|
|
1719
|
-
let res = [];
|
|
1720
|
-
const getValue = (list) => {
|
|
1721
|
-
list.forEach((row) => {
|
|
1722
|
-
if (row.children) {
|
|
1723
|
-
res.push(row[props.optionValueName]);
|
|
1724
|
-
getValue(row.children);
|
|
1725
|
-
} else {
|
|
1726
|
-
res.push(row[props.optionValueName]);
|
|
1727
|
-
}
|
|
1728
|
-
});
|
|
1729
|
-
};
|
|
1730
|
-
getValue(data);
|
|
1731
|
-
return res;
|
|
1732
|
-
};
|
|
1733
|
-
const removeItem = (value) => {
|
|
1734
|
-
let checked = [...props.modelValue];
|
|
1735
|
-
checked = checked.filter((item) => item !== value);
|
|
1736
|
-
emits("update:modelValue", checked);
|
|
1737
|
-
emits("change", checked);
|
|
1738
|
-
};
|
|
1739
|
-
const removeAll = () => {
|
|
1740
|
-
emits("update:modelValue", []);
|
|
1741
|
-
emits("change", []);
|
|
1742
|
-
};
|
|
1743
|
-
return (_ctx, _cache) => {
|
|
1744
|
-
const _component_a_checkbox = resolveComponent("a-checkbox");
|
|
1745
|
-
const _component_a_form_item_rest = resolveComponent("a-form-item-rest");
|
|
1746
|
-
const _component_a_empty = resolveComponent("a-empty");
|
|
1747
|
-
const _component_v_dropdown = resolveComponent("v-dropdown");
|
|
1748
|
-
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
1749
|
-
createVNode(_component_v_dropdown, {
|
|
1750
|
-
placement: "bottom-start",
|
|
1751
|
-
container: false,
|
|
1752
|
-
distance: 2
|
|
1753
|
-
}, {
|
|
1754
|
-
popper: withCtx(() => [
|
|
1755
|
-
props.options.length ? (openBlock(), createElementBlock("div", _hoisted_11, [
|
|
1756
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(modulersOptions), (moduler, level) => {
|
|
1757
|
-
return openBlock(), createElementBlock("div", {
|
|
1758
|
-
key: level,
|
|
1759
|
-
class: "bm-multi-cascader-moduler"
|
|
1760
|
-
}, [
|
|
1761
|
-
createCommentVNode(" container "),
|
|
1762
|
-
createElementVNode("section", _hoisted_12, [
|
|
1763
|
-
moduler.children && moduler.children.length > 0 ? (openBlock(), createElementBlock("div", {
|
|
1764
|
-
key: 0,
|
|
1765
|
-
class: "bm-multi-cascader-item bm-multi-cascader-all",
|
|
1766
|
-
onClick: ($event) => handleClickAll(level)
|
|
1767
|
-
}, [
|
|
1768
|
-
createVNode(_component_a_form_item_rest, null, {
|
|
1769
|
-
default: withCtx(() => [
|
|
1770
|
-
createVNode(_component_a_checkbox, {
|
|
1771
|
-
class: "bm-multi-cascader-item-checkbox",
|
|
1772
|
-
checked: unref(modulersAllStatusOptions)[level].checked,
|
|
1773
|
-
indeterminate: unref(modulersAllStatusOptions)[level].indeterminate,
|
|
1774
|
-
onChange: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
1775
|
-
}, ["stop"]))
|
|
1776
|
-
}, null, 8, ["checked", "indeterminate"])
|
|
1777
|
-
]),
|
|
1778
|
-
_: 2
|
|
1779
|
-
}, 1024),
|
|
1780
|
-
_hoisted_14
|
|
1781
|
-
], 8, _hoisted_13)) : createCommentVNode("v-if", true),
|
|
1782
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(moduler.children, (option, index) => {
|
|
1783
|
-
return openBlock(), createElementBlock("div", {
|
|
1784
|
-
key: index,
|
|
1785
|
-
class: normalizeClass(["bm-multi-cascader-item", {
|
|
1786
|
-
"is-active": path.value.find((item) => option[props.optionValueName] === item[props.optionValueName])
|
|
1787
|
-
}]),
|
|
1788
|
-
onClick: ($event) => handleClick(option, level, index)
|
|
1789
|
-
}, [
|
|
1790
|
-
createVNode(_component_a_form_item_rest, null, {
|
|
1791
|
-
default: withCtx(() => [
|
|
1792
|
-
createVNode(_component_a_checkbox, {
|
|
1793
|
-
class: "bm-multi-cascader-item-checkbox",
|
|
1794
|
-
checked: unref(modulersStatusOptions)[level][index].checked,
|
|
1795
|
-
indeterminate: unref(modulersStatusOptions)[level][index].indeterminate,
|
|
1796
|
-
onClick: withModifiers(($event) => handleClickCheckbox(option, level, index), ["stop"]),
|
|
1797
|
-
onChange: _cache[1] || (_cache[1] = withModifiers(() => {
|
|
1798
|
-
}, ["stop"]))
|
|
1799
|
-
}, null, 8, ["checked", "indeterminate", "onClick"])
|
|
1800
|
-
]),
|
|
1801
|
-
_: 2
|
|
1802
|
-
}, 1024),
|
|
1803
|
-
createElementVNode("span", _hoisted_16, [
|
|
1804
|
-
createElementVNode("span", _hoisted_17, toDisplayString(option[props.optionLabelName]), 1),
|
|
1805
|
-
option.children ? (openBlock(), createBlock(unref(RightOutlined$1), {
|
|
1806
|
-
key: 0,
|
|
1807
|
-
class: "bm-multi-cascader-item-caret"
|
|
1808
|
-
})) : createCommentVNode("v-if", true)
|
|
1809
|
-
])
|
|
1810
|
-
], 10, _hoisted_15);
|
|
1811
|
-
}), 128))
|
|
1812
|
-
])
|
|
1813
|
-
]);
|
|
1814
|
-
}), 128))
|
|
1815
|
-
])) : (openBlock(), createElementBlock("div", _hoisted_18, [
|
|
1816
|
-
createElementVNode("div", _hoisted_19, [
|
|
1817
|
-
renderSlot(_ctx.$slots, "empty", {}, () => [
|
|
1818
|
-
createVNode(_component_a_empty, {
|
|
1819
|
-
class: "bm-multi-cascader-popover-empty",
|
|
1820
|
-
image: props.emptyImage
|
|
1821
|
-
}, null, 8, ["image"])
|
|
1822
|
-
])
|
|
1823
|
-
])
|
|
1824
|
-
]))
|
|
1825
|
-
]),
|
|
1826
|
-
default: withCtx(() => [
|
|
1827
|
-
createElementVNode("div", _hoisted_2, [
|
|
1828
|
-
createCommentVNode(" container "),
|
|
1829
|
-
createElementVNode("section", _hoisted_3, [
|
|
1830
|
-
props.modelValue.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_4, [
|
|
1831
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(checkedShowMap), (item, index) => {
|
|
1832
|
-
return openBlock(), createElementBlock("div", {
|
|
1833
|
-
key: index,
|
|
1834
|
-
class: "bm-multi-cascader-tag"
|
|
1835
|
-
}, [
|
|
1836
|
-
createElementVNode("span", _hoisted_5, toDisplayString(item[props.optionLabelName]), 1),
|
|
1837
|
-
createElementVNode("span", {
|
|
1838
|
-
class: "bm-multi-cascader-tag-close",
|
|
1839
|
-
onClick: withModifiers(($event) => removeItem(item[props.optionValueName]), ["stop"])
|
|
1840
|
-
}, [
|
|
1841
|
-
createVNode(unref(CloseOutlined$1), { class: "bm-multi-cascader-tag-close-inner" })
|
|
1842
|
-
], 8, _hoisted_6)
|
|
1843
|
-
]);
|
|
1844
|
-
}), 128)),
|
|
1845
|
-
createCommentVNode(" \u66F4\u591A\u6570\u91CF\u9690\u85CF "),
|
|
1846
|
-
unref(checkedHideCount) ? (openBlock(), createElementBlock("div", _hoisted_7, [
|
|
1847
|
-
createElementVNode("span", _hoisted_8, "+ " + toDisplayString(unref(checkedHideCount)), 1)
|
|
1848
|
-
])) : createCommentVNode("v-if", true)
|
|
1849
|
-
])) : (openBlock(), createElementBlock("div", _hoisted_9, toDisplayString(props.placeholder), 1))
|
|
1850
|
-
]),
|
|
1851
|
-
createElementVNode("div", _hoisted_10, [
|
|
1852
|
-
props.allowClear && props.modelValue.length > 0 ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
1853
|
-
createVNode(unref(DownOutlined$1), { class: "bm-multi-cascader-icon bm-multi-cascader-caret" }),
|
|
1854
|
-
createVNode(unref(CloseCircleFilled$1), {
|
|
1855
|
-
class: "bm-multi-cascader-icon bm-multi-cascader-remove-all",
|
|
1856
|
-
onClick: withModifiers(removeAll, ["stop"])
|
|
1857
|
-
}, null, 8, ["onClick"])
|
|
1858
|
-
], 64)) : (openBlock(), createBlock(unref(DownOutlined$1), { key: 1 }))
|
|
1859
|
-
])
|
|
1860
|
-
])
|
|
1861
|
-
]),
|
|
1862
|
-
_: 3
|
|
1863
|
-
})
|
|
1864
|
-
]);
|
|
1865
|
-
};
|
|
1866
|
-
}
|
|
1867
|
-
});
|
|
1868
|
-
var MultiCascaderCompose = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__file", "multi-cascader-compose.vue"]]);
|
|
1869
|
-
|
|
1870
|
-
const BmMultiCascaderCompose = withInstall(MultiCascaderCompose);
|
|
1871
|
-
var BmMultiCascaderCompose$1 = BmMultiCascaderCompose;
|
|
1297
|
+
var SearchResetBtn = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__file", "search-reset-btn.vue"]]);
|
|
1872
1298
|
|
|
1873
1299
|
const __default__ = {
|
|
1874
1300
|
name: "BmSearchFilter"
|
|
@@ -1880,7 +1306,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1880
1306
|
setup(__props, { expose, emit: emits }) {
|
|
1881
1307
|
const props = __props;
|
|
1882
1308
|
FormCreateCtr.component("SearchResetBtn", SearchResetBtn);
|
|
1883
|
-
FormCreateCtr.component("BmMultiCascaderCompose", BmMultiCascaderCompose$1);
|
|
1884
1309
|
const isExpand = ref(false);
|
|
1885
1310
|
const searchResetBtnRule = reactive([
|
|
1886
1311
|
{
|