bm-admin-ui 1.0.2-alpha → 1.0.3-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/multi-cascader-compose/index.d.ts +35 -6
- package/es/components/multi-cascader-compose/index.js +47 -36
- package/es/components/multi-cascader-compose/src/multi-cascader-compose.vue.d.ts +35 -6
- package/es/components/multi-cascader-compose/src/props.d.ts +10 -2
- package/es/components/search-filter/index.d.ts +1 -1
- package/es/components/search-filter/index.js +47 -36
- 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 +57 -23
- package/index.esm.js +173 -128
- package/index.js +173 -128
- package/lib/components/multi-cascader-compose/index.d.ts +35 -6
- package/lib/components/multi-cascader-compose/index.js +46 -35
- package/lib/components/multi-cascader-compose/src/multi-cascader-compose.vue.d.ts +35 -6
- package/lib/components/multi-cascader-compose/src/props.d.ts +10 -2
- package/lib/components/search-filter/index.d.ts +1 -1
- package/lib/components/search-filter/index.js +46 -35
- 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 +57 -23
- package/package.json +2 -3
- package/types/components/multi-cascader-compose/index.d.ts +35 -6
- package/types/components/multi-cascader-compose/src/multi-cascader-compose.vue.d.ts +35 -6
- package/types/components/multi-cascader-compose/src/props.d.ts +10 -2
- 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/pnpm-global/5/node_modules/.pnpm/lock.yaml +0 -3
- package/pnpm-global/5/pnpm-lock.yaml +0 -4
|
@@ -857,9 +857,9 @@ function insertCss(css, options) {
|
|
|
857
857
|
return styleElement;
|
|
858
858
|
}
|
|
859
859
|
|
|
860
|
-
function _objectSpread$
|
|
860
|
+
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; }
|
|
861
861
|
|
|
862
|
-
function _defineProperty$
|
|
862
|
+
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; }
|
|
863
863
|
function warn(valid, message) {
|
|
864
864
|
// Support uglify
|
|
865
865
|
if (process.env.NODE_ENV !== 'production' && !valid && console !== undefined) {
|
|
@@ -875,14 +875,14 @@ function isIconDefinition(target) {
|
|
|
875
875
|
}
|
|
876
876
|
function generate(node, key, rootProps) {
|
|
877
877
|
if (!rootProps) {
|
|
878
|
-
return h(node.tag, _objectSpread$
|
|
878
|
+
return h(node.tag, _objectSpread$4({
|
|
879
879
|
key: key
|
|
880
880
|
}, node.attrs), (node.children || []).map(function (child, index) {
|
|
881
881
|
return generate(child, "".concat(key, "-").concat(node.tag, "-").concat(index));
|
|
882
882
|
}));
|
|
883
883
|
}
|
|
884
884
|
|
|
885
|
-
return h(node.tag, _objectSpread$
|
|
885
|
+
return h(node.tag, _objectSpread$4({
|
|
886
886
|
key: key
|
|
887
887
|
}, rootProps, node.attrs), (node.children || []).map(function (child, index) {
|
|
888
888
|
return generate(child, "".concat(key, "-").concat(node.tag, "-").concat(index));
|
|
@@ -922,9 +922,9 @@ function _objectWithoutProperties$1(source, excluded) { if (source == null) retu
|
|
|
922
922
|
|
|
923
923
|
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; }
|
|
924
924
|
|
|
925
|
-
function _objectSpread$
|
|
925
|
+
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; }
|
|
926
926
|
|
|
927
|
-
function _defineProperty$
|
|
927
|
+
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; }
|
|
928
928
|
var twoToneColorPalette = {
|
|
929
929
|
primaryColor: '#333',
|
|
930
930
|
secondaryColor: '#E6E6E6',
|
|
@@ -940,11 +940,11 @@ function setTwoToneColors(_ref) {
|
|
|
940
940
|
}
|
|
941
941
|
|
|
942
942
|
function getTwoToneColors() {
|
|
943
|
-
return _objectSpread$
|
|
943
|
+
return _objectSpread$3({}, twoToneColorPalette);
|
|
944
944
|
}
|
|
945
945
|
|
|
946
946
|
var IconBase = function IconBase(props, context) {
|
|
947
|
-
var _props$context$attrs = _objectSpread$
|
|
947
|
+
var _props$context$attrs = _objectSpread$3({}, props, context.attrs),
|
|
948
948
|
icon = _props$context$attrs.icon,
|
|
949
949
|
primaryColor = _props$context$attrs.primaryColor,
|
|
950
950
|
secondaryColor = _props$context$attrs.secondaryColor,
|
|
@@ -969,12 +969,12 @@ var IconBase = function IconBase(props, context) {
|
|
|
969
969
|
var target = icon;
|
|
970
970
|
|
|
971
971
|
if (target && typeof target.icon === 'function') {
|
|
972
|
-
target = _objectSpread$
|
|
972
|
+
target = _objectSpread$3({}, target, {
|
|
973
973
|
icon: target.icon(colors.primaryColor, colors.secondaryColor)
|
|
974
974
|
});
|
|
975
975
|
}
|
|
976
976
|
|
|
977
|
-
return generate(target.icon, "svg-".concat(target.name), _objectSpread$
|
|
977
|
+
return generate(target.icon, "svg-".concat(target.name), _objectSpread$3({}, restProps, {
|
|
978
978
|
'data-icon': target.name,
|
|
979
979
|
width: '1em',
|
|
980
980
|
height: '1em',
|
|
@@ -1041,9 +1041,9 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
1041
1041
|
|
|
1042
1042
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
1043
1043
|
|
|
1044
|
-
function _objectSpread$
|
|
1044
|
+
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; }
|
|
1045
1045
|
|
|
1046
|
-
function _defineProperty$
|
|
1046
|
+
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; }
|
|
1047
1047
|
|
|
1048
1048
|
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; }
|
|
1049
1049
|
|
|
@@ -1054,7 +1054,7 @@ setTwoToneColor('#1890ff');
|
|
|
1054
1054
|
var Icon = function Icon(props, context) {
|
|
1055
1055
|
var _classObj;
|
|
1056
1056
|
|
|
1057
|
-
var _props$context$attrs = _objectSpread$
|
|
1057
|
+
var _props$context$attrs = _objectSpread$2({}, props, context.attrs),
|
|
1058
1058
|
cls = _props$context$attrs["class"],
|
|
1059
1059
|
icon = _props$context$attrs.icon,
|
|
1060
1060
|
spin = _props$context$attrs.spin,
|
|
@@ -1066,7 +1066,7 @@ var Icon = function Icon(props, context) {
|
|
|
1066
1066
|
|
|
1067
1067
|
var classObj = (_classObj = {
|
|
1068
1068
|
anticon: true
|
|
1069
|
-
}, _defineProperty$
|
|
1069
|
+
}, _defineProperty$2(_classObj, "anticon-".concat(icon.name), Boolean(icon.name)), _defineProperty$2(_classObj, cls, cls), _classObj);
|
|
1070
1070
|
var svgClassString = spin === '' || !!spin || icon.name === 'loading' ? 'anticon-spin' : '';
|
|
1071
1071
|
var iconTabIndex = tabindex;
|
|
1072
1072
|
|
|
@@ -1085,7 +1085,7 @@ var Icon = function Icon(props, context) {
|
|
|
1085
1085
|
primaryColor = _normalizeTwoToneColo2[0],
|
|
1086
1086
|
secondaryColor = _normalizeTwoToneColo2[1];
|
|
1087
1087
|
|
|
1088
|
-
return createVNode("span", _objectSpread$
|
|
1088
|
+
return createVNode("span", _objectSpread$2({
|
|
1089
1089
|
"role": "img",
|
|
1090
1090
|
"aria-label": icon.name
|
|
1091
1091
|
}, restProps, {
|
|
@@ -1116,14 +1116,14 @@ var AntdIcon = Icon;
|
|
|
1116
1116
|
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" };
|
|
1117
1117
|
var CloseCircleFilledSvg = CloseCircleFilled$2;
|
|
1118
1118
|
|
|
1119
|
-
function _objectSpread(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(target, key, source[key]); }); } return target; }
|
|
1119
|
+
function _objectSpread$1(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$1(target, key, source[key]); }); } return target; }
|
|
1120
1120
|
|
|
1121
|
-
function _defineProperty(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; }
|
|
1121
|
+
function _defineProperty$1(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; }
|
|
1122
1122
|
|
|
1123
1123
|
var CloseCircleFilled = function CloseCircleFilled(props, context) {
|
|
1124
|
-
var p = _objectSpread({}, props, context.attrs);
|
|
1124
|
+
var p = _objectSpread$1({}, props, context.attrs);
|
|
1125
1125
|
|
|
1126
|
-
return createVNode(AntdIcon, _objectSpread({}, p, {
|
|
1126
|
+
return createVNode(AntdIcon, _objectSpread$1({}, p, {
|
|
1127
1127
|
"icon": CloseCircleFilledSvg
|
|
1128
1128
|
}), null);
|
|
1129
1129
|
};
|
|
@@ -1132,6 +1132,26 @@ CloseCircleFilled.displayName = 'CloseCircleFilled';
|
|
|
1132
1132
|
CloseCircleFilled.inheritAttrs = false;
|
|
1133
1133
|
var CloseCircleFilled$1 = CloseCircleFilled;
|
|
1134
1134
|
|
|
1135
|
+
// This icon file is generated automatically.
|
|
1136
|
+
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" };
|
|
1137
|
+
var SearchOutlinedSvg = SearchOutlined$2;
|
|
1138
|
+
|
|
1139
|
+
function _objectSpread(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(target, key, source[key]); }); } return target; }
|
|
1140
|
+
|
|
1141
|
+
function _defineProperty(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; }
|
|
1142
|
+
|
|
1143
|
+
var SearchOutlined = function SearchOutlined(props, context) {
|
|
1144
|
+
var p = _objectSpread({}, props, context.attrs);
|
|
1145
|
+
|
|
1146
|
+
return createVNode(AntdIcon, _objectSpread({}, p, {
|
|
1147
|
+
"icon": SearchOutlinedSvg
|
|
1148
|
+
}), null);
|
|
1149
|
+
};
|
|
1150
|
+
|
|
1151
|
+
SearchOutlined.displayName = 'SearchOutlined';
|
|
1152
|
+
SearchOutlined.inheritAttrs = false;
|
|
1153
|
+
var SearchOutlined$1 = SearchOutlined;
|
|
1154
|
+
|
|
1135
1155
|
var _export_sfc = (sfc, props) => {
|
|
1136
1156
|
const target = sfc.__vccOpts || sfc;
|
|
1137
1157
|
for (const [key, val] of props) {
|
|
@@ -1141,7 +1161,14 @@ var _export_sfc = (sfc, props) => {
|
|
|
1141
1161
|
};
|
|
1142
1162
|
|
|
1143
1163
|
const _sfc_main$3 = defineComponent({
|
|
1144
|
-
components: {
|
|
1164
|
+
components: {
|
|
1165
|
+
CloseCircleFilled: CloseCircleFilled$1,
|
|
1166
|
+
SearchOutlined: SearchOutlined$1,
|
|
1167
|
+
Empty,
|
|
1168
|
+
AInput,
|
|
1169
|
+
Checkbox,
|
|
1170
|
+
ATree
|
|
1171
|
+
},
|
|
1145
1172
|
props: {
|
|
1146
1173
|
limit: {
|
|
1147
1174
|
type: Number,
|
|
@@ -1403,7 +1430,7 @@ var multipleCmp = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_rend
|
|
|
1403
1430
|
|
|
1404
1431
|
const _sfc_main$2 = defineComponent({
|
|
1405
1432
|
name: "RadioCmp",
|
|
1406
|
-
components: { ARadio, AInput, ARadioGroup: Group },
|
|
1433
|
+
components: { ARadio, AInput, ARadioGroup: Group, Empty, SearchOutlined: SearchOutlined$1 },
|
|
1407
1434
|
props: {
|
|
1408
1435
|
list: {
|
|
1409
1436
|
type: Array,
|
|
@@ -1501,7 +1528,14 @@ var radioCmp = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$
|
|
|
1501
1528
|
|
|
1502
1529
|
const _sfc_main$1 = defineComponent({
|
|
1503
1530
|
name: "VariedCmp",
|
|
1504
|
-
components: {
|
|
1531
|
+
components: {
|
|
1532
|
+
CloseCircleFilled: CloseCircleFilled$1,
|
|
1533
|
+
SearchOutlined: SearchOutlined$1,
|
|
1534
|
+
AInput,
|
|
1535
|
+
Checkbox,
|
|
1536
|
+
ATree,
|
|
1537
|
+
Empty
|
|
1538
|
+
},
|
|
1505
1539
|
props: {
|
|
1506
1540
|
list: {
|
|
1507
1541
|
type: Array,
|
|
@@ -1906,7 +1940,7 @@ const _sfc_main = defineComponent({
|
|
|
1906
1940
|
},
|
|
1907
1941
|
summitSelect() {
|
|
1908
1942
|
if (typeof state.selected === "string") {
|
|
1909
|
-
emit("update:select", state.dataMap.get(state.selected));
|
|
1943
|
+
emit("update:select", [state.dataMap.get(state.selected)]);
|
|
1910
1944
|
} else if (state.selected instanceof Array) {
|
|
1911
1945
|
emit("update:select", state.selected.map((item) => state.dataMap.get(item)));
|
|
1912
1946
|
}
|