bm-admin-ui 1.0.40-alpha → 1.0.41-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/breadcrumb/index.d.ts +162 -0
- package/es/components/breadcrumb/index.js +158 -0
- package/es/components/breadcrumb/src/breadcrumb.vue.d.ts +161 -0
- package/es/components/button/index.d.ts +303 -1
- package/es/components/editor/index.d.ts +305 -0
- package/es/components/editor/index.js +12543 -0
- package/es/components/editor/src/editor.vue.d.ts +304 -0
- package/es/components/editor/src/props.d.ts +31 -0
- package/es/components/feedback/index.d.ts +1028 -2
- package/es/components/float-table/index.d.ts +68 -1
- package/es/components/flow-designer/index.d.ts +5 -1
- package/es/components/form-create/index.js +77 -156
- package/es/components/form-designer/index.js +33 -131
- package/es/components/index.d.ts +2 -0
- package/es/components/index.js +2 -0
- package/es/components/input-tags-display/index.d.ts +138 -1
- package/es/components/input-tags-display/src/input-tags-display.vue.d.ts +1 -1
- package/es/components/over-tooltips/index.d.ts +33 -1
- package/es/components/search-filter/index.d.ts +233 -1
- package/es/components/search-filter/src/search-filter.vue.d.ts +3 -3
- package/es/components/select-all/index.d.ts +752 -1
- package/es/components/select-all/src/selectAll.vue.d.ts +5 -5
- package/es/components/shops-filter/index.d.ts +97 -1
- package/es/components/shops-filter/src/shops-filter.vue.d.ts +1 -1
- package/es/components/staffs-selector/index.d.ts +1095 -1
- package/es/components/staffs-selector/index.js +535 -505
- package/es/components/staffs-selector/src/action.d.ts +66 -0
- package/es/components/staffs-selector/src/multipleCmp.vue.d.ts +11 -49
- package/es/components/staffs-selector/src/staffs-selector.vue.d.ts +998 -10
- package/es/components/staffs-selector/src/variedCmp.vue.d.ts +18 -11
- package/es/components/timeline/index.d.ts +111 -2
- package/es/components/upload/index.d.ts +139 -2
- package/es/components/upload/index.js +207 -170
- package/es/components/upload/src/props.d.ts +50 -0
- package/es/components/upload/src/upload.vue.d.ts +44 -11
- package/es/utils/bm-admin-ui-resolver.d.ts +1 -3
- package/es/utils/bm-admin-ui-resolver.js +1 -1
- package/es/utils/with-install.d.ts +7 -1
- package/es/utils/with-install.js +1 -0
- package/index.esm.js +81188 -71499
- package/index.js +81186 -71495
- package/lib/components/breadcrumb/index.d.ts +162 -0
- package/lib/components/breadcrumb/index.js +168 -0
- package/lib/components/breadcrumb/src/breadcrumb.vue.d.ts +161 -0
- package/lib/components/button/index.d.ts +303 -1
- package/lib/components/editor/index.d.ts +305 -0
- package/lib/components/editor/index.js +12548 -0
- package/lib/components/editor/src/editor.vue.d.ts +304 -0
- package/lib/components/editor/src/props.d.ts +31 -0
- package/lib/components/feedback/index.d.ts +1028 -2
- package/lib/components/float-table/index.d.ts +68 -1
- package/lib/components/flow-designer/index.d.ts +5 -1
- package/lib/components/form-create/index.js +76 -155
- package/lib/components/form-designer/index.js +32 -130
- package/lib/components/index.d.ts +2 -0
- package/lib/components/index.js +14 -0
- package/lib/components/input-tags-display/index.d.ts +138 -1
- package/lib/components/input-tags-display/src/input-tags-display.vue.d.ts +1 -1
- package/lib/components/over-tooltips/index.d.ts +33 -1
- package/lib/components/search-filter/index.d.ts +233 -1
- package/lib/components/search-filter/src/search-filter.vue.d.ts +3 -3
- package/lib/components/select-all/index.d.ts +752 -1
- package/lib/components/select-all/src/selectAll.vue.d.ts +5 -5
- package/lib/components/shops-filter/index.d.ts +97 -1
- package/lib/components/shops-filter/src/shops-filter.vue.d.ts +1 -1
- package/lib/components/staffs-selector/index.d.ts +1095 -1
- package/lib/components/staffs-selector/index.js +536 -506
- package/lib/components/staffs-selector/src/action.d.ts +66 -0
- package/lib/components/staffs-selector/src/multipleCmp.vue.d.ts +11 -49
- package/lib/components/staffs-selector/src/staffs-selector.vue.d.ts +998 -10
- package/lib/components/staffs-selector/src/variedCmp.vue.d.ts +18 -11
- package/lib/components/timeline/index.d.ts +111 -2
- package/lib/components/upload/index.d.ts +139 -2
- package/lib/components/upload/index.js +205 -168
- package/lib/components/upload/src/props.d.ts +50 -0
- package/lib/components/upload/src/upload.vue.d.ts +44 -11
- package/lib/utils/bm-admin-ui-resolver.d.ts +1 -3
- package/lib/utils/bm-admin-ui-resolver.js +1 -1
- package/lib/utils/with-install.d.ts +7 -1
- package/lib/utils/with-install.js +1 -0
- package/package.json +2 -2
- package/theme-chalk/breadcrumb.css +1 -0
- package/theme-chalk/editor.css +16 -0
- package/theme-chalk/form-create.css +1 -1
- package/theme-chalk/index.css +16 -1
- package/theme-chalk/staffs-selector.css +1 -1
- package/theme-chalk/upload.css +1 -1
- package/types/components/breadcrumb/index.d.ts +162 -0
- package/types/components/breadcrumb/src/breadcrumb.vue.d.ts +161 -0
- package/types/components/button/index.d.ts +303 -1
- package/types/components/editor/index.d.ts +305 -0
- package/types/components/editor/src/editor.vue.d.ts +304 -0
- package/types/components/editor/src/props.d.ts +31 -0
- package/types/components/feedback/index.d.ts +1028 -2
- package/types/components/float-table/index.d.ts +68 -1
- package/types/components/flow-designer/index.d.ts +5 -1
- package/types/components/index.d.ts +2 -0
- package/types/components/input-tags-display/index.d.ts +138 -1
- package/types/components/input-tags-display/src/input-tags-display.vue.d.ts +1 -1
- package/types/components/over-tooltips/index.d.ts +33 -1
- package/types/components/search-filter/index.d.ts +233 -1
- package/types/components/search-filter/src/search-filter.vue.d.ts +3 -3
- package/types/components/select-all/index.d.ts +752 -1
- package/types/components/select-all/src/selectAll.vue.d.ts +5 -5
- package/types/components/shops-filter/index.d.ts +97 -1
- package/types/components/shops-filter/src/shops-filter.vue.d.ts +1 -1
- package/types/components/staffs-selector/index.d.ts +1095 -1
- package/types/components/staffs-selector/src/action.d.ts +66 -0
- package/types/components/staffs-selector/src/multipleCmp.vue.d.ts +11 -49
- package/types/components/staffs-selector/src/staffs-selector.vue.d.ts +998 -10
- package/types/components/staffs-selector/src/variedCmp.vue.d.ts +18 -11
- package/types/components/timeline/index.d.ts +111 -2
- package/types/components/upload/index.d.ts +139 -2
- package/types/components/upload/src/props.d.ts +50 -0
- package/types/components/upload/src/upload.vue.d.ts +44 -11
- package/types/utils/bm-admin-ui-resolver.d.ts +1 -3
- package/types/utils/with-install.d.ts +7 -1
|
@@ -476,7 +476,7 @@ var input = {
|
|
|
476
476
|
},
|
|
477
477
|
},
|
|
478
478
|
effect: {
|
|
479
|
-
required:
|
|
479
|
+
required: true,
|
|
480
480
|
formRule: 'formRule',
|
|
481
481
|
},
|
|
482
482
|
props: {
|
|
@@ -509,7 +509,6 @@ var input = {
|
|
|
509
509
|
field: fieldsMap$g['props.placeholder'],
|
|
510
510
|
props: {
|
|
511
511
|
placeholder: '请输入',
|
|
512
|
-
maxlength: 30,
|
|
513
512
|
},
|
|
514
513
|
value: rule.props.placeholder,
|
|
515
514
|
},
|
|
@@ -519,7 +518,6 @@ var input = {
|
|
|
519
518
|
field: fieldsMap$g['value'],
|
|
520
519
|
props: {
|
|
521
520
|
placeholder: '请输入',
|
|
522
|
-
maxlength: 200,
|
|
523
521
|
},
|
|
524
522
|
value: rule.value,
|
|
525
523
|
},
|
|
@@ -579,7 +577,7 @@ var textarea = {
|
|
|
579
577
|
},
|
|
580
578
|
},
|
|
581
579
|
effect: {
|
|
582
|
-
required:
|
|
580
|
+
required: true,
|
|
583
581
|
formRule: 'formRule',
|
|
584
582
|
},
|
|
585
583
|
props: {
|
|
@@ -613,7 +611,6 @@ var textarea = {
|
|
|
613
611
|
field: fieldsMap$f['props.placeholder'],
|
|
614
612
|
props: {
|
|
615
613
|
placeholder: '请输入',
|
|
616
|
-
maxlength: 30,
|
|
617
614
|
},
|
|
618
615
|
value: rule.props.placeholder,
|
|
619
616
|
},
|
|
@@ -623,7 +620,6 @@ var textarea = {
|
|
|
623
620
|
field: fieldsMap$f['value'],
|
|
624
621
|
props: {
|
|
625
622
|
placeholder: '请输入',
|
|
626
|
-
maxlength: 5000,
|
|
627
623
|
},
|
|
628
624
|
value: rule.value,
|
|
629
625
|
},
|
|
@@ -684,7 +680,7 @@ var numInput = {
|
|
|
684
680
|
},
|
|
685
681
|
},
|
|
686
682
|
effect: {
|
|
687
|
-
required:
|
|
683
|
+
required: true,
|
|
688
684
|
formRule: 'formRule',
|
|
689
685
|
},
|
|
690
686
|
props: {
|
|
@@ -719,7 +715,6 @@ var numInput = {
|
|
|
719
715
|
field: fieldsMap$e['props.placeholder'],
|
|
720
716
|
props: {
|
|
721
717
|
placeholder: '请输入',
|
|
722
|
-
maxlength: 30,
|
|
723
718
|
},
|
|
724
719
|
value: rule.props.placeholder,
|
|
725
720
|
},
|
|
@@ -793,7 +788,6 @@ const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
|
|
|
793
788
|
const visible = vue.ref(false);
|
|
794
789
|
const text = vue.ref("");
|
|
795
790
|
const repeatOption = vue.ref([]);
|
|
796
|
-
const maxlength = 500;
|
|
797
791
|
function edit() {
|
|
798
792
|
visible.value = true;
|
|
799
793
|
text.value = makeText(props.options);
|
|
@@ -815,7 +809,6 @@ const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
|
|
|
815
809
|
function handleOk() {
|
|
816
810
|
const options = text.value.split("\n").reduce((pre, cur) => {
|
|
817
811
|
if (cur) {
|
|
818
|
-
cur = cur.substring(0, maxlength - 1);
|
|
819
812
|
pre.push({ value: cur, label: cur });
|
|
820
813
|
}
|
|
821
814
|
return pre;
|
|
@@ -884,7 +877,6 @@ const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
|
|
|
884
877
|
"bm-handle-options__input",
|
|
885
878
|
repeatOption.value.length && repeatOption.value.includes(element.value) ? "is-error" : ""
|
|
886
879
|
]),
|
|
887
|
-
maxlength,
|
|
888
880
|
onBlur: ($event) => handleBlur(element)
|
|
889
881
|
}, null, 8, ["value", "onUpdate:value", "class", "onBlur"])
|
|
890
882
|
]),
|
|
@@ -981,7 +973,7 @@ var radio = {
|
|
|
981
973
|
},
|
|
982
974
|
},
|
|
983
975
|
effect: {
|
|
984
|
-
required:
|
|
976
|
+
required: true,
|
|
985
977
|
formRule: 'formRule',
|
|
986
978
|
},
|
|
987
979
|
options: [
|
|
@@ -1027,7 +1019,6 @@ var radio = {
|
|
|
1027
1019
|
field: fieldsMap$d['props.placeholder'],
|
|
1028
1020
|
props: {
|
|
1029
1021
|
placeholder: '请输入',
|
|
1030
|
-
maxlength: 30,
|
|
1031
1022
|
},
|
|
1032
1023
|
value: rule.props.placeholder,
|
|
1033
1024
|
},
|
|
@@ -1120,7 +1111,7 @@ var checkbox = {
|
|
|
1120
1111
|
},
|
|
1121
1112
|
},
|
|
1122
1113
|
effect: {
|
|
1123
|
-
required:
|
|
1114
|
+
required: true,
|
|
1124
1115
|
formRule: 'formRule',
|
|
1125
1116
|
},
|
|
1126
1117
|
options: [
|
|
@@ -1166,7 +1157,6 @@ var checkbox = {
|
|
|
1166
1157
|
field: fieldsMap$c['props.placeholder'],
|
|
1167
1158
|
props: {
|
|
1168
1159
|
placeholder: '请输入',
|
|
1169
|
-
maxlength: 30,
|
|
1170
1160
|
},
|
|
1171
1161
|
value: rule.props.placeholder,
|
|
1172
1162
|
},
|
|
@@ -1328,7 +1318,7 @@ var date = {
|
|
|
1328
1318
|
},
|
|
1329
1319
|
},
|
|
1330
1320
|
effect: {
|
|
1331
|
-
required:
|
|
1321
|
+
required: true,
|
|
1332
1322
|
formRule: 'formRule',
|
|
1333
1323
|
},
|
|
1334
1324
|
props: {
|
|
@@ -1391,7 +1381,6 @@ var date = {
|
|
|
1391
1381
|
field: fieldsMap$b['props.placeholder'],
|
|
1392
1382
|
props: {
|
|
1393
1383
|
placeholder: '请输入',
|
|
1394
|
-
maxlength: 30,
|
|
1395
1384
|
},
|
|
1396
1385
|
value: rule.props.placeholder,
|
|
1397
1386
|
},
|
|
@@ -1473,7 +1462,7 @@ var dateRange = {
|
|
|
1473
1462
|
},
|
|
1474
1463
|
},
|
|
1475
1464
|
effect: {
|
|
1476
|
-
required:
|
|
1465
|
+
required: true,
|
|
1477
1466
|
formRule: 'formRule',
|
|
1478
1467
|
},
|
|
1479
1468
|
props: {
|
|
@@ -1538,7 +1527,6 @@ var dateRange = {
|
|
|
1538
1527
|
field: fieldsMap$a['props.placeholder.0'],
|
|
1539
1528
|
props: {
|
|
1540
1529
|
placeholder: '请输入',
|
|
1541
|
-
maxlength: 30,
|
|
1542
1530
|
},
|
|
1543
1531
|
value: rule.props.placeholder[0],
|
|
1544
1532
|
},
|
|
@@ -1548,7 +1536,6 @@ var dateRange = {
|
|
|
1548
1536
|
field: fieldsMap$a['props.placeholder.1'],
|
|
1549
1537
|
props: {
|
|
1550
1538
|
placeholder: '请输入',
|
|
1551
|
-
maxlength: 30,
|
|
1552
1539
|
},
|
|
1553
1540
|
value: rule.props.placeholder[1],
|
|
1554
1541
|
},
|
|
@@ -1622,23 +1609,10 @@ var instruction = {
|
|
|
1622
1609
|
title: label$9,
|
|
1623
1610
|
field: fieldsMap$9.value,
|
|
1624
1611
|
value: rule.value,
|
|
1625
|
-
inject: true,
|
|
1626
1612
|
prefix: {
|
|
1627
1613
|
type: 'TextColor',
|
|
1628
|
-
on: {
|
|
1629
|
-
change({ api, self }, color) {
|
|
1630
|
-
api.emit('change', 'style.color', color, self, api, true);
|
|
1631
|
-
},
|
|
1632
|
-
},
|
|
1633
1614
|
props: {
|
|
1634
|
-
|
|
1635
|
-
},
|
|
1636
|
-
},
|
|
1637
|
-
on: {
|
|
1638
|
-
change({ api, self }, list) {
|
|
1639
|
-
vue.nextTick(() => {
|
|
1640
|
-
api.refresh();
|
|
1641
|
-
});
|
|
1615
|
+
rule,
|
|
1642
1616
|
},
|
|
1643
1617
|
},
|
|
1644
1618
|
},
|
|
@@ -1681,7 +1655,7 @@ var picture = {
|
|
|
1681
1655
|
},
|
|
1682
1656
|
},
|
|
1683
1657
|
effect: {
|
|
1684
|
-
required:
|
|
1658
|
+
required: true,
|
|
1685
1659
|
formRule: 'formRule',
|
|
1686
1660
|
},
|
|
1687
1661
|
props: {
|
|
@@ -2030,15 +2004,7 @@ var table = {
|
|
|
2030
2004
|
effect: {
|
|
2031
2005
|
required: true,
|
|
2032
2006
|
},
|
|
2033
|
-
inject: true,
|
|
2034
2007
|
value: rule.config.childRules,
|
|
2035
|
-
on: {
|
|
2036
|
-
change({ api, self }, list) {
|
|
2037
|
-
vue.nextTick(() => {
|
|
2038
|
-
api.validate();
|
|
2039
|
-
});
|
|
2040
|
-
},
|
|
2041
|
-
},
|
|
2042
2008
|
},
|
|
2043
2009
|
{
|
|
2044
2010
|
type: 'checkbox',
|
|
@@ -2101,7 +2067,7 @@ var file = {
|
|
|
2101
2067
|
},
|
|
2102
2068
|
},
|
|
2103
2069
|
effect: {
|
|
2104
|
-
required:
|
|
2070
|
+
required: true,
|
|
2105
2071
|
formRule: 'formRule',
|
|
2106
2072
|
},
|
|
2107
2073
|
config: {
|
|
@@ -2172,7 +2138,7 @@ var people = {
|
|
|
2172
2138
|
},
|
|
2173
2139
|
},
|
|
2174
2140
|
effect: {
|
|
2175
|
-
required:
|
|
2141
|
+
required: true,
|
|
2176
2142
|
formRule: 'formRule',
|
|
2177
2143
|
},
|
|
2178
2144
|
props: {
|
|
@@ -2205,7 +2171,6 @@ var people = {
|
|
|
2205
2171
|
field: fieldsMap$5['props.placeholder'],
|
|
2206
2172
|
props: {
|
|
2207
2173
|
placeholder: '请输入',
|
|
2208
|
-
maxlength: 30,
|
|
2209
2174
|
},
|
|
2210
2175
|
value: rule.props.placeholder,
|
|
2211
2176
|
},
|
|
@@ -2294,7 +2259,7 @@ var department = {
|
|
|
2294
2259
|
},
|
|
2295
2260
|
},
|
|
2296
2261
|
effect: {
|
|
2297
|
-
required:
|
|
2262
|
+
required: true,
|
|
2298
2263
|
formRule: 'formRule',
|
|
2299
2264
|
},
|
|
2300
2265
|
props: {
|
|
@@ -2327,7 +2292,6 @@ var department = {
|
|
|
2327
2292
|
field: fieldsMap$4['props.placeholder'],
|
|
2328
2293
|
props: {
|
|
2329
2294
|
placeholder: '请输入',
|
|
2330
|
-
maxlength: 30,
|
|
2331
2295
|
},
|
|
2332
2296
|
value: rule.props.placeholder,
|
|
2333
2297
|
},
|
|
@@ -3600,8 +3564,7 @@ const _hoisted_2$1 = { class: "bm-table-column-btn-wrap" };
|
|
|
3600
3564
|
const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
|
|
3601
3565
|
__name: "table-column",
|
|
3602
3566
|
props: ["formCreateInject"],
|
|
3603
|
-
|
|
3604
|
-
setup(__props, { emit: emits }) {
|
|
3567
|
+
setup(__props) {
|
|
3605
3568
|
const props = __props;
|
|
3606
3569
|
const handleClass = "bm-table-column__drag-icon";
|
|
3607
3570
|
const btnCom = vue.ref();
|
|
@@ -3626,15 +3589,6 @@ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
|
|
|
3626
3589
|
function getPopupContainer() {
|
|
3627
3590
|
return document.body;
|
|
3628
3591
|
}
|
|
3629
|
-
vue.watch(
|
|
3630
|
-
childRules,
|
|
3631
|
-
(val) => {
|
|
3632
|
-
emits("change", val);
|
|
3633
|
-
},
|
|
3634
|
-
{
|
|
3635
|
-
deep: true
|
|
3636
|
-
}
|
|
3637
|
-
);
|
|
3638
3592
|
return (_ctx, _cache) => {
|
|
3639
3593
|
const _component_Delete = vue.resolveComponent("Delete");
|
|
3640
3594
|
const _component_ARow = vue.resolveComponent("ARow");
|
|
@@ -3715,17 +3669,12 @@ var TableColumn = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__file", "table-co
|
|
|
3715
3669
|
|
|
3716
3670
|
const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
3717
3671
|
__name: "text-color",
|
|
3718
|
-
props: ["
|
|
3719
|
-
|
|
3720
|
-
setup(__props, { emit: emits }) {
|
|
3672
|
+
props: ["rule"],
|
|
3673
|
+
setup(__props) {
|
|
3721
3674
|
const props = __props;
|
|
3722
|
-
const color = vue.ref(props.color);
|
|
3723
|
-
function getColor(curColor) {
|
|
3724
|
-
return curColor === Colors.Black ? Colors.Blue : Colors.Black;
|
|
3725
|
-
}
|
|
3726
3675
|
function handleClick() {
|
|
3727
|
-
|
|
3728
|
-
|
|
3676
|
+
const rule = props.rule;
|
|
3677
|
+
rule.style.color = rule.style.color === Colors.Black ? Colors.Blue : Colors.Black;
|
|
3729
3678
|
}
|
|
3730
3679
|
return (_ctx, _cache) => {
|
|
3731
3680
|
const _component_ColorPanel = vue.resolveComponent("ColorPanel");
|
|
@@ -3737,11 +3686,16 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
|
3737
3686
|
width: "1em",
|
|
3738
3687
|
height: "1em",
|
|
3739
3688
|
fontSize: "20px",
|
|
3740
|
-
color:
|
|
3689
|
+
color: __props.rule.style.color,
|
|
3741
3690
|
cursor: "pointer"
|
|
3742
3691
|
}),
|
|
3743
3692
|
onClick: vue.withModifiers(handleClick, ["prevent", "stop"])
|
|
3744
|
-
},
|
|
3693
|
+
}, {
|
|
3694
|
+
default: vue.withCtx(() => [
|
|
3695
|
+
vue.createTextVNode("change")
|
|
3696
|
+
]),
|
|
3697
|
+
_: 1
|
|
3698
|
+
}, 8, ["style", "onClick"]);
|
|
3745
3699
|
};
|
|
3746
3700
|
}
|
|
3747
3701
|
});
|
|
@@ -4039,7 +3993,6 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
4039
3993
|
return rule.config.config.parse(rule);
|
|
4040
3994
|
}
|
|
4041
3995
|
function edit(formRules) {
|
|
4042
|
-
widgetFormRules.splice(0);
|
|
4043
3996
|
formRules.forEach((item) => {
|
|
4044
3997
|
const rule = makeRule(ruleList[item.name]);
|
|
4045
3998
|
delete item.name;
|
|
@@ -4057,73 +4010,22 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
4057
4010
|
function getRule(name) {
|
|
4058
4011
|
return makeRule(ruleList[name]);
|
|
4059
4012
|
}
|
|
4060
|
-
function validate() {
|
|
4061
|
-
let pass = true;
|
|
4062
|
-
for (const rule of widgetFormRules) {
|
|
4063
|
-
const config = rule.config.config || {};
|
|
4064
|
-
const childRules = rule.config.childRules || [];
|
|
4065
|
-
if (!rule?.title?.title && config.name !== "instruction") {
|
|
4066
|
-
pass = false;
|
|
4067
|
-
}
|
|
4068
|
-
if (config.name === "table" && !childRules.length) {
|
|
4069
|
-
pass = false;
|
|
4070
|
-
}
|
|
4071
|
-
if (!pass && rule.field !== activeRule.value.field) {
|
|
4072
|
-
setActiveRule(rule);
|
|
4073
|
-
}
|
|
4074
|
-
if (pass && childRules.length) {
|
|
4075
|
-
for (const childRule of childRules) {
|
|
4076
|
-
if (!childRule?.title?.title) {
|
|
4077
|
-
pass = false;
|
|
4078
|
-
if (childRule.field !== activeRule.value.field) {
|
|
4079
|
-
setActiveRule(childRule, rule);
|
|
4080
|
-
}
|
|
4081
|
-
break;
|
|
4082
|
-
}
|
|
4083
|
-
}
|
|
4084
|
-
}
|
|
4085
|
-
if (!pass) {
|
|
4086
|
-
vue.nextTick(() => {
|
|
4087
|
-
fApi.value.validate();
|
|
4088
|
-
});
|
|
4089
|
-
break;
|
|
4090
|
-
}
|
|
4091
|
-
}
|
|
4092
|
-
return pass;
|
|
4093
|
-
}
|
|
4094
|
-
function flowConditionEffect(activeProps2, flowCondition) {
|
|
4095
|
-
const requiredRule = activeProps2?.find(
|
|
4096
|
-
(rule) => rule.field === "effect.required"
|
|
4097
|
-
);
|
|
4098
|
-
if (requiredRule) {
|
|
4099
|
-
if (!requiredRule.props) {
|
|
4100
|
-
requiredRule.props = {};
|
|
4101
|
-
}
|
|
4102
|
-
requiredRule.props.disabled = !!flowCondition[activeRule.value.field];
|
|
4103
|
-
}
|
|
4104
|
-
}
|
|
4105
4013
|
vue.watch(
|
|
4106
4014
|
() => props.presetRules,
|
|
4107
4015
|
(presetRules) => {
|
|
4108
4016
|
widgetFormRules.push(...presetRules);
|
|
4017
|
+
},
|
|
4018
|
+
{
|
|
4019
|
+
immediate: true
|
|
4109
4020
|
}
|
|
4110
4021
|
);
|
|
4111
4022
|
vue.watch(
|
|
4112
4023
|
() => props.formRules,
|
|
4113
4024
|
(formRules) => {
|
|
4114
|
-
|
|
4115
|
-
}
|
|
4116
|
-
);
|
|
4117
|
-
vue.watch(activeProps, (activeProps2) => {
|
|
4118
|
-
flowConditionEffect(activeProps2, props.flowCondition);
|
|
4119
|
-
});
|
|
4120
|
-
vue.watch(
|
|
4121
|
-
() => props.flowCondition,
|
|
4122
|
-
(flowCondition) => {
|
|
4123
|
-
flowConditionEffect(activeProps.value, flowCondition);
|
|
4025
|
+
edit(formRules);
|
|
4124
4026
|
},
|
|
4125
4027
|
{
|
|
4126
|
-
|
|
4028
|
+
immediate: true
|
|
4127
4029
|
}
|
|
4128
4030
|
);
|
|
4129
4031
|
vue.onBeforeUnmount(() => {
|
|
@@ -4131,8 +4033,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
4131
4033
|
});
|
|
4132
4034
|
expose({
|
|
4133
4035
|
getFormRule,
|
|
4134
|
-
getRule
|
|
4135
|
-
validate
|
|
4036
|
+
getRule
|
|
4136
4037
|
});
|
|
4137
4038
|
return (_ctx, _cache) => {
|
|
4138
4039
|
const _component_ACol = vue.resolveComponent("ACol");
|
|
@@ -4175,6 +4076,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
4175
4076
|
move: moveMenuItem,
|
|
4176
4077
|
"force-fallback": true,
|
|
4177
4078
|
"scroll-sensitivity": 100,
|
|
4079
|
+
delay: 50,
|
|
4178
4080
|
onStart: handleMenuItemDragStart,
|
|
4179
4081
|
onEnd: handleMenuItemDragEnd
|
|
4180
4082
|
}, {
|
|
@@ -4239,7 +4141,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
4239
4141
|
]),
|
|
4240
4142
|
_: 1
|
|
4241
4143
|
}, 8, ["list"]),
|
|
4242
|
-
showDragTip.value && !_ctx.formRules
|
|
4144
|
+
showDragTip.value && !_ctx.formRules.length ? (vue.openBlock(), vue.createBlock(NoDataTip, {
|
|
4243
4145
|
key: 0,
|
|
4244
4146
|
class: "bm-no-data-tip"
|
|
4245
4147
|
})) : vue.createCommentVNode("v-if", true)
|
package/lib/components/index.js
CHANGED
|
@@ -16,6 +16,8 @@ var upload = require('./upload');
|
|
|
16
16
|
var timeline = require('./timeline');
|
|
17
17
|
var inputTagsDisplay = require('./input-tags-display');
|
|
18
18
|
var selectAll = require('./select-all');
|
|
19
|
+
var breadcrumb = require('./breadcrumb');
|
|
20
|
+
var editor = require('./editor');
|
|
19
21
|
|
|
20
22
|
|
|
21
23
|
|
|
@@ -103,3 +105,15 @@ Object.keys(selectAll).forEach(function (k) {
|
|
|
103
105
|
get: function () { return selectAll[k]; }
|
|
104
106
|
});
|
|
105
107
|
});
|
|
108
|
+
Object.keys(breadcrumb).forEach(function (k) {
|
|
109
|
+
if (k !== 'default' && !exports.hasOwnProperty(k)) Object.defineProperty(exports, k, {
|
|
110
|
+
enumerable: true,
|
|
111
|
+
get: function () { return breadcrumb[k]; }
|
|
112
|
+
});
|
|
113
|
+
});
|
|
114
|
+
Object.keys(editor).forEach(function (k) {
|
|
115
|
+
if (k !== 'default' && !exports.hasOwnProperty(k)) Object.defineProperty(exports, k, {
|
|
116
|
+
enumerable: true,
|
|
117
|
+
get: function () { return editor[k]; }
|
|
118
|
+
});
|
|
119
|
+
});
|
|
@@ -1,3 +1,140 @@
|
|
|
1
|
-
declare const BmTagsDisplay:
|
|
1
|
+
declare const BmTagsDisplay: import("bm-admin-ui/es/utils/with-install").SFCWithInstall<import("vue").DefineComponent<{
|
|
2
|
+
disabled: {
|
|
3
|
+
type: BooleanConstructor;
|
|
4
|
+
default: boolean;
|
|
5
|
+
};
|
|
6
|
+
list: {
|
|
7
|
+
type: ArrayConstructor;
|
|
8
|
+
default: () => {
|
|
9
|
+
key: any;
|
|
10
|
+
title: string;
|
|
11
|
+
}[];
|
|
12
|
+
};
|
|
13
|
+
showEmpty: {
|
|
14
|
+
type: BooleanConstructor;
|
|
15
|
+
default: boolean;
|
|
16
|
+
};
|
|
17
|
+
placeholder: {
|
|
18
|
+
type: StringConstructor;
|
|
19
|
+
default: string;
|
|
20
|
+
};
|
|
21
|
+
showEmptyBtn: {
|
|
22
|
+
type: BooleanConstructor;
|
|
23
|
+
default: boolean;
|
|
24
|
+
};
|
|
25
|
+
unitStr: {
|
|
26
|
+
type: StringConstructor;
|
|
27
|
+
default: string;
|
|
28
|
+
};
|
|
29
|
+
btnText: {
|
|
30
|
+
type: StringConstructor;
|
|
31
|
+
default: string;
|
|
32
|
+
};
|
|
33
|
+
toolTipProps: {
|
|
34
|
+
type: ObjectConstructor;
|
|
35
|
+
default: () => {};
|
|
36
|
+
};
|
|
37
|
+
placement: {
|
|
38
|
+
type: StringConstructor;
|
|
39
|
+
default: string;
|
|
40
|
+
};
|
|
41
|
+
fieldNames: {
|
|
42
|
+
type: ObjectConstructor;
|
|
43
|
+
default: () => {
|
|
44
|
+
key: string;
|
|
45
|
+
title: string;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
alwaysInvoke: {
|
|
49
|
+
type: BooleanConstructor;
|
|
50
|
+
default: boolean;
|
|
51
|
+
};
|
|
52
|
+
}, {
|
|
53
|
+
containId: string;
|
|
54
|
+
clear: () => void;
|
|
55
|
+
toAddTags: () => void;
|
|
56
|
+
tooltipConfig: import("vue").Ref<{
|
|
57
|
+
align: undefined;
|
|
58
|
+
arrowPointAtCenter: boolean;
|
|
59
|
+
autoAdjustOverflow: boolean;
|
|
60
|
+
color: string;
|
|
61
|
+
defaultVisible: boolean;
|
|
62
|
+
destroyTooltipOnHide: boolean;
|
|
63
|
+
getPopupContainer: () => HTMLElement;
|
|
64
|
+
mouseEnterDelay: number;
|
|
65
|
+
mouseLeaveDelay: number;
|
|
66
|
+
overlayClassName: string;
|
|
67
|
+
overlayStyle: null;
|
|
68
|
+
placement: string;
|
|
69
|
+
trigger: string;
|
|
70
|
+
}>;
|
|
71
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "update:list" | "addClick")[], "clear" | "update:list" | "addClick", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
72
|
+
disabled: {
|
|
73
|
+
type: BooleanConstructor;
|
|
74
|
+
default: boolean;
|
|
75
|
+
};
|
|
76
|
+
list: {
|
|
77
|
+
type: ArrayConstructor;
|
|
78
|
+
default: () => {
|
|
79
|
+
key: any;
|
|
80
|
+
title: string;
|
|
81
|
+
}[];
|
|
82
|
+
};
|
|
83
|
+
showEmpty: {
|
|
84
|
+
type: BooleanConstructor;
|
|
85
|
+
default: boolean;
|
|
86
|
+
};
|
|
87
|
+
placeholder: {
|
|
88
|
+
type: StringConstructor;
|
|
89
|
+
default: string;
|
|
90
|
+
};
|
|
91
|
+
showEmptyBtn: {
|
|
92
|
+
type: BooleanConstructor;
|
|
93
|
+
default: boolean;
|
|
94
|
+
};
|
|
95
|
+
unitStr: {
|
|
96
|
+
type: StringConstructor;
|
|
97
|
+
default: string;
|
|
98
|
+
};
|
|
99
|
+
btnText: {
|
|
100
|
+
type: StringConstructor;
|
|
101
|
+
default: string;
|
|
102
|
+
};
|
|
103
|
+
toolTipProps: {
|
|
104
|
+
type: ObjectConstructor;
|
|
105
|
+
default: () => {};
|
|
106
|
+
};
|
|
107
|
+
placement: {
|
|
108
|
+
type: StringConstructor;
|
|
109
|
+
default: string;
|
|
110
|
+
};
|
|
111
|
+
fieldNames: {
|
|
112
|
+
type: ObjectConstructor;
|
|
113
|
+
default: () => {
|
|
114
|
+
key: string;
|
|
115
|
+
title: string;
|
|
116
|
+
};
|
|
117
|
+
};
|
|
118
|
+
alwaysInvoke: {
|
|
119
|
+
type: BooleanConstructor;
|
|
120
|
+
default: boolean;
|
|
121
|
+
};
|
|
122
|
+
}>> & {
|
|
123
|
+
onClear?: ((...args: any[]) => any) | undefined;
|
|
124
|
+
"onUpdate:list"?: ((...args: any[]) => any) | undefined;
|
|
125
|
+
onAddClick?: ((...args: any[]) => any) | undefined;
|
|
126
|
+
}, {
|
|
127
|
+
disabled: boolean;
|
|
128
|
+
list: unknown[];
|
|
129
|
+
placeholder: string;
|
|
130
|
+
placement: string;
|
|
131
|
+
showEmpty: boolean;
|
|
132
|
+
showEmptyBtn: boolean;
|
|
133
|
+
unitStr: string;
|
|
134
|
+
btnText: string;
|
|
135
|
+
toolTipProps: Record<string, any>;
|
|
136
|
+
fieldNames: Record<string, any>;
|
|
137
|
+
alwaysInvoke: boolean;
|
|
138
|
+
}>>;
|
|
2
139
|
export { BmTagsDisplay };
|
|
3
140
|
export default BmTagsDisplay;
|
|
@@ -123,9 +123,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
123
123
|
onAddClick?: ((...args: any[]) => any) | undefined;
|
|
124
124
|
}, {
|
|
125
125
|
disabled: boolean;
|
|
126
|
+
list: unknown[];
|
|
126
127
|
placeholder: string;
|
|
127
128
|
placement: string;
|
|
128
|
-
list: unknown[];
|
|
129
129
|
showEmpty: boolean;
|
|
130
130
|
showEmptyBtn: boolean;
|
|
131
131
|
unitStr: string;
|
|
@@ -1,3 +1,35 @@
|
|
|
1
|
-
declare const BmOverTooltips:
|
|
1
|
+
declare const BmOverTooltips: import("bm-admin-ui/es/utils/with-install").SFCWithInstall<{
|
|
2
|
+
name: string;
|
|
3
|
+
props: {
|
|
4
|
+
title: {
|
|
5
|
+
type: StringConstructor;
|
|
6
|
+
default: undefined;
|
|
7
|
+
};
|
|
8
|
+
labelTitle: {
|
|
9
|
+
type: StringConstructor;
|
|
10
|
+
default: undefined;
|
|
11
|
+
};
|
|
12
|
+
line: {
|
|
13
|
+
type: NumberConstructor;
|
|
14
|
+
default: number;
|
|
15
|
+
};
|
|
16
|
+
width: {
|
|
17
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
18
|
+
default: number;
|
|
19
|
+
};
|
|
20
|
+
showAlways: {
|
|
21
|
+
type: BooleanConstructor;
|
|
22
|
+
default: boolean;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
setup(props: any, context: any): {
|
|
26
|
+
mySelf: import("vue").Ref<any>;
|
|
27
|
+
handleVisibleChange: (val: any) => void;
|
|
28
|
+
getPopupContainer: () => HTMLElement;
|
|
29
|
+
mSlots: import("vue").Ref<{}>;
|
|
30
|
+
isShow: import("vue").Ref<boolean>;
|
|
31
|
+
openShow: import("vue").Ref<boolean>;
|
|
32
|
+
};
|
|
33
|
+
}>;
|
|
2
34
|
export { BmOverTooltips };
|
|
3
35
|
export default BmOverTooltips;
|