bm-admin-ui 1.0.12-alpha → 1.0.15-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 +25 -21
- package/es/components/float-table/index.d.ts +2 -2
- package/es/components/float-table/index.js +36 -27
- package/es/components/float-table/src/float-table.vue.d.ts +2 -2
- package/es/components/index.d.ts +1 -0
- package/es/components/index.js +1 -0
- package/es/components/input-tags-display/index.d.ts +66 -0
- package/es/components/input-tags-display/index.js +1279 -0
- package/es/components/input-tags-display/src/input-tags-display.vue.d.ts +63 -0
- package/es/components/multi-cascader-compose/index.js +28 -25
- package/es/components/over-tooltips/index.js +27 -20
- package/es/components/search-filter/index.d.ts +1 -3
- package/es/components/search-filter/index.js +48 -36
- package/es/components/search-filter/src/search-filter.vue.d.ts +1 -3
- package/es/components/shops-filter/index.js +23 -30
- package/es/components/staffs-selector/index.d.ts +27 -0
- package/es/components/staffs-selector/index.js +150 -103
- package/es/components/staffs-selector/src/multipleCmp.vue.d.ts +21 -3
- package/es/components/staffs-selector/src/radioCmp.vue.d.ts +1 -1
- package/es/components/staffs-selector/src/staffs-selector.vue.d.ts +27 -0
- package/es/components/staffs-selector/src/variedCmp.vue.d.ts +1 -1
- package/es/components/timeline/index.js +6 -6
- package/es/components/upload/index.js +86 -76
- package/index.esm.js +37844 -1310
- package/index.js +37844 -1309
- package/lib/components/feedback/index.js +24 -20
- package/lib/components/float-table/index.d.ts +2 -2
- package/lib/components/float-table/index.js +36 -27
- package/lib/components/float-table/src/float-table.vue.d.ts +2 -2
- package/lib/components/index.d.ts +1 -0
- package/lib/components/index.js +7 -0
- package/lib/components/input-tags-display/index.d.ts +66 -0
- package/lib/components/input-tags-display/index.js +1289 -0
- package/lib/components/input-tags-display/src/input-tags-display.vue.d.ts +63 -0
- package/lib/components/multi-cascader-compose/index.js +28 -25
- package/lib/components/over-tooltips/index.js +27 -20
- package/lib/components/search-filter/index.d.ts +1 -3
- package/lib/components/search-filter/index.js +48 -36
- package/lib/components/search-filter/src/search-filter.vue.d.ts +1 -3
- package/lib/components/shops-filter/index.js +23 -30
- package/lib/components/staffs-selector/index.d.ts +27 -0
- package/lib/components/staffs-selector/index.js +150 -103
- package/lib/components/staffs-selector/src/multipleCmp.vue.d.ts +21 -3
- package/lib/components/staffs-selector/src/radioCmp.vue.d.ts +1 -1
- package/lib/components/staffs-selector/src/staffs-selector.vue.d.ts +27 -0
- package/lib/components/staffs-selector/src/variedCmp.vue.d.ts +1 -1
- package/lib/components/timeline/index.js +6 -6
- package/lib/components/upload/index.js +86 -76
- package/package.json +29 -29
- package/theme-chalk/button.css +1 -1
- package/theme-chalk/feedback.css +1 -1
- package/theme-chalk/float-table.css +1 -1
- package/theme-chalk/floating-vue.css +1 -1
- package/theme-chalk/flow-designer.css +1 -1
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/input-tags-display.css +1 -0
- package/theme-chalk/modal.css +1 -1
- package/theme-chalk/multi-cascader-compose.css +1 -1
- package/theme-chalk/over-tooltips.css +1 -1
- package/theme-chalk/search-filter.css +1 -1
- package/theme-chalk/staffs-selector.css +1 -1
- package/theme-chalk/timeline.css +1 -1
- package/theme-chalk/upload.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/index.d.ts +1 -0
- package/types/components/input-tags-display/index.d.ts +66 -0
- package/types/components/input-tags-display/src/input-tags-display.vue.d.ts +63 -0
- package/types/components/search-filter/index.d.ts +1 -3
- package/types/components/search-filter/src/search-filter.vue.d.ts +1 -3
- package/types/components/staffs-selector/index.d.ts +27 -0
- package/types/components/staffs-selector/src/multipleCmp.vue.d.ts +21 -3
- package/types/components/staffs-selector/src/radioCmp.vue.d.ts +1 -1
- package/types/components/staffs-selector/src/staffs-selector.vue.d.ts +27 -0
- package/types/components/staffs-selector/src/variedCmp.vue.d.ts +1 -1
|
@@ -65,7 +65,7 @@ function boundAlpha(a) {
|
|
|
65
65
|
*/
|
|
66
66
|
function convertToPercentage(n) {
|
|
67
67
|
if (n <= 1) {
|
|
68
|
-
return Number(n) * 100
|
|
68
|
+
return "".concat(Number(n) * 100, "%");
|
|
69
69
|
}
|
|
70
70
|
return n;
|
|
71
71
|
}
|
|
@@ -447,12 +447,12 @@ var CSS_INTEGER = '[-\\+]?\\d+%?';
|
|
|
447
447
|
// <http://www.w3.org/TR/css3-values/#number-value>
|
|
448
448
|
var CSS_NUMBER = '[-\\+]?\\d*\\.\\d+%?';
|
|
449
449
|
// Allow positive/negative integer/number. Don't capture the either/or, just the entire outcome.
|
|
450
|
-
var CSS_UNIT = "(?:"
|
|
450
|
+
var CSS_UNIT = "(?:".concat(CSS_NUMBER, ")|(?:").concat(CSS_INTEGER, ")");
|
|
451
451
|
// Actual matching.
|
|
452
452
|
// Parentheses and commas are optional, but not required.
|
|
453
453
|
// Whitespace can take the place of commas or opening paren
|
|
454
|
-
var PERMISSIVE_MATCH3 = "[\\s|\\(]+("
|
|
455
|
-
var PERMISSIVE_MATCH4 = "[\\s|\\(]+("
|
|
454
|
+
var PERMISSIVE_MATCH3 = "[\\s|\\(]+(".concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")\\s*\\)?");
|
|
455
|
+
var PERMISSIVE_MATCH4 = "[\\s|\\(]+(".concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")\\s*\\)?");
|
|
456
456
|
var matchers = {
|
|
457
457
|
CSS_UNIT: new RegExp(CSS_UNIT),
|
|
458
458
|
rgb: new RegExp('rgb' + PERMISSIVE_MATCH3),
|
|
@@ -777,19 +777,6 @@ Object.keys(presetPrimaryColors).forEach(function (key) {
|
|
|
777
777
|
});
|
|
778
778
|
presetDarkPalettes[key].primary = presetDarkPalettes[key][5];
|
|
779
779
|
});
|
|
780
|
-
presetPalettes.red;
|
|
781
|
-
presetPalettes.volcano;
|
|
782
|
-
presetPalettes.gold;
|
|
783
|
-
presetPalettes.orange;
|
|
784
|
-
presetPalettes.yellow;
|
|
785
|
-
presetPalettes.lime;
|
|
786
|
-
presetPalettes.green;
|
|
787
|
-
presetPalettes.cyan;
|
|
788
|
-
presetPalettes.blue;
|
|
789
|
-
presetPalettes.geekblue;
|
|
790
|
-
presetPalettes.purple;
|
|
791
|
-
presetPalettes.magenta;
|
|
792
|
-
presetPalettes.grey;
|
|
793
780
|
|
|
794
781
|
// https://github.com/substack/insert-css
|
|
795
782
|
var containers = []; // will store container HTMLElement references
|
|
@@ -1184,16 +1171,19 @@ const _sfc_main$1 = {
|
|
|
1184
1171
|
isShow: false,
|
|
1185
1172
|
openShow: false
|
|
1186
1173
|
});
|
|
1187
|
-
const observer = new IntersectionObserver(
|
|
1188
|
-
entries
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1174
|
+
const observer = new IntersectionObserver(
|
|
1175
|
+
(entries) => {
|
|
1176
|
+
entries.forEach((item) => {
|
|
1177
|
+
if (item.intersectionRatio > 0.3) {
|
|
1178
|
+
observerDom();
|
|
1179
|
+
observer.disconnect();
|
|
1180
|
+
}
|
|
1181
|
+
});
|
|
1182
|
+
},
|
|
1183
|
+
{
|
|
1184
|
+
threshold: 0.3
|
|
1185
|
+
}
|
|
1186
|
+
);
|
|
1197
1187
|
function observerDom() {
|
|
1198
1188
|
if (props.line === 1) {
|
|
1199
1189
|
if (mySelf.value.scrollWidth > mySelf.value.clientWidth) {
|
|
@@ -1209,16 +1199,20 @@ const _sfc_main$1 = {
|
|
|
1209
1199
|
observer.disconnect();
|
|
1210
1200
|
});
|
|
1211
1201
|
let mySelf = ref();
|
|
1212
|
-
watch(
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
mySelf.value && observer.
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1202
|
+
watch(
|
|
1203
|
+
() => props.showAlways,
|
|
1204
|
+
function(showAlways) {
|
|
1205
|
+
if (showAlways)
|
|
1206
|
+
state.openShow = showAlways;
|
|
1207
|
+
mySelf.value && observer.unobserve(mySelf.value);
|
|
1208
|
+
nextTick(function() {
|
|
1209
|
+
mySelf.value && observer.observe(mySelf.value);
|
|
1210
|
+
});
|
|
1211
|
+
},
|
|
1212
|
+
{
|
|
1213
|
+
immediate: true
|
|
1214
|
+
}
|
|
1215
|
+
);
|
|
1222
1216
|
const handleVisibleChange = (val) => {
|
|
1223
1217
|
state.isShow = !state.openShow ? false : val;
|
|
1224
1218
|
};
|
|
@@ -1394,10 +1388,14 @@ const _sfc_main = {
|
|
|
1394
1388
|
disabled: false,
|
|
1395
1389
|
async customRequest({ file, fileField, data }) {
|
|
1396
1390
|
if (file.size > state.extraConfigs.maxSize * 1024 * 1024) {
|
|
1397
|
-
return methods.uploadError(
|
|
1391
|
+
return methods.uploadError(
|
|
1392
|
+
new Error(`\u4E0D\u80FD\u4E0A\u4F20\u5927\u4E8E${state.extraConfigs.maxSize}M\u7684\u6587\u4EF6`)
|
|
1393
|
+
);
|
|
1398
1394
|
}
|
|
1399
1395
|
if (Object.keys(state.fileList).length >= state.extraConfigs.maxCount) {
|
|
1400
|
-
return methods.uploadError(
|
|
1396
|
+
return methods.uploadError(
|
|
1397
|
+
new Error(`\u4E0D\u80FD\u4E0A\u4F20\u591A\u4E8E${state.extraConfigs.maxCount}\u4E2A\u6587\u4EF6`)
|
|
1398
|
+
);
|
|
1401
1399
|
}
|
|
1402
1400
|
let name = file.name;
|
|
1403
1401
|
let fileFormat = name.split(".").pop();
|
|
@@ -1462,7 +1460,9 @@ const _sfc_main = {
|
|
|
1462
1460
|
emit("error", error);
|
|
1463
1461
|
},
|
|
1464
1462
|
async deleteFile(uid) {
|
|
1465
|
-
const index = state.uploadedList.findIndex(
|
|
1463
|
+
const index = state.uploadedList.findIndex(
|
|
1464
|
+
(ele) => state.extraConfigs.fileDetail ? ele === state.fileList[uid].url : ele.url === state.fileList[uid].url
|
|
1465
|
+
);
|
|
1466
1466
|
emit("deleteFile", state.fileList[uid]);
|
|
1467
1467
|
state.uploadedList.splice(index, 1);
|
|
1468
1468
|
delete state.fileList[uid];
|
|
@@ -1476,7 +1476,9 @@ const _sfc_main = {
|
|
|
1476
1476
|
state.onepViewImageHover[uid] = false;
|
|
1477
1477
|
},
|
|
1478
1478
|
viewOnePicture(item) {
|
|
1479
|
-
if (["img", "image", "png", "jpg", "jpeg"].includes(
|
|
1479
|
+
if (["img", "image", "png", "jpg", "jpeg"].includes(
|
|
1480
|
+
item.type.toLowerCase()
|
|
1481
|
+
)) {
|
|
1480
1482
|
state.previewVisible = true;
|
|
1481
1483
|
state.onepViewImage = item;
|
|
1482
1484
|
return;
|
|
@@ -1528,40 +1530,48 @@ const _sfc_main = {
|
|
|
1528
1530
|
}
|
|
1529
1531
|
}
|
|
1530
1532
|
};
|
|
1531
|
-
watch(
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1533
|
+
watch(
|
|
1534
|
+
() => props.defaultList,
|
|
1535
|
+
function(list) {
|
|
1536
|
+
if (list.length) {
|
|
1537
|
+
list.forEach(function(item) {
|
|
1538
|
+
let uid = utils.getuid();
|
|
1539
|
+
if (!item.url.includes("http") && !item.url.includes(CLOUND_PRE))
|
|
1540
|
+
item.url = props.cloudReadUrl + item.url;
|
|
1541
|
+
state.fileList[uid] = {
|
|
1542
|
+
uid,
|
|
1543
|
+
name: item.name,
|
|
1544
|
+
url: item.url,
|
|
1545
|
+
type: item.type || "png",
|
|
1546
|
+
progress: 100,
|
|
1547
|
+
isDoneDeloy: true
|
|
1548
|
+
};
|
|
1549
|
+
state.uploadedList.push(item);
|
|
1550
|
+
});
|
|
1551
|
+
}
|
|
1552
|
+
},
|
|
1553
|
+
{
|
|
1554
|
+
immediate: true
|
|
1547
1555
|
}
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1556
|
+
);
|
|
1557
|
+
watch(
|
|
1558
|
+
[() => props.uploadProps, () => props.extraProps],
|
|
1559
|
+
function([config, extra]) {
|
|
1560
|
+
state.uploadConfigs = {
|
|
1561
|
+
...state.uploadConfigs,
|
|
1562
|
+
...config,
|
|
1563
|
+
showUploadList: false
|
|
1564
|
+
};
|
|
1565
|
+
state.extraConfigs = {
|
|
1566
|
+
...state.extraConfigs,
|
|
1567
|
+
...extra
|
|
1568
|
+
};
|
|
1569
|
+
},
|
|
1570
|
+
{
|
|
1571
|
+
immediate: true,
|
|
1572
|
+
deep: true
|
|
1573
|
+
}
|
|
1574
|
+
);
|
|
1565
1575
|
const uploadDisabled = computed(() => {
|
|
1566
1576
|
if (Object.keys(state.fileList).length >= state.extraConfigs.maxCount) {
|
|
1567
1577
|
return true;
|
|
@@ -1724,7 +1734,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1724
1734
|
key: 1,
|
|
1725
1735
|
file: item
|
|
1726
1736
|
})
|
|
1727
|
-
],
|
|
1737
|
+
], 64)) : createCommentVNode("v-if", true),
|
|
1728
1738
|
createCommentVNode(" \u56FE\u7247\u9519\u8BEF\u5C55\u793A "),
|
|
1729
1739
|
item.status === "error" ? (openBlock(), createElementBlock("div", {
|
|
1730
1740
|
key: 2,
|
|
@@ -1770,7 +1780,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1770
1780
|
}, 8, ["class", "disabled"]),
|
|
1771
1781
|
_ctx.extraConfigs.tips && _ctx.extraConfigs.showTips ? (openBlock(), createElementBlock("div", _hoisted_23, toDisplayString(_ctx.extraConfigs.tips), 1)) : createCommentVNode("v-if", true)
|
|
1772
1782
|
])) : createCommentVNode("v-if", true)
|
|
1773
|
-
],
|
|
1783
|
+
], 64))
|
|
1774
1784
|
]),
|
|
1775
1785
|
_: 3
|
|
1776
1786
|
}, 16, ["class"])) : createCommentVNode("v-if", true),
|