bm-admin-ui 1.0.50-alpha → 1.0.51-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.
|
@@ -1537,6 +1537,15 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
1537
1537
|
createElementVNode("span", _hoisted_3$3, toDisplayString(unref(countText)), 1),
|
|
1538
1538
|
createElementVNode("div", _hoisted_4$3, [
|
|
1539
1539
|
unref(importFeature) && !__props.hidden ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
1540
|
+
createElementVNode("input", {
|
|
1541
|
+
ref_key: "inputRef",
|
|
1542
|
+
ref: inputRef,
|
|
1543
|
+
style: { "display": "none" },
|
|
1544
|
+
name: "file",
|
|
1545
|
+
type: "file",
|
|
1546
|
+
accept: "text/csv",
|
|
1547
|
+
onChange: handleChange
|
|
1548
|
+
}, null, 544),
|
|
1540
1549
|
createVNode(unref(Button), {
|
|
1541
1550
|
disabled: __props.disabled,
|
|
1542
1551
|
onClick: handleDownload
|
|
@@ -1554,16 +1563,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
1554
1563
|
createTextVNode("\u6279\u91CF\u5BFC\u5165")
|
|
1555
1564
|
]),
|
|
1556
1565
|
_: 1
|
|
1557
|
-
}, 8, ["disabled"])
|
|
1558
|
-
createElementVNode("input", {
|
|
1559
|
-
ref_key: "inputRef",
|
|
1560
|
-
ref: inputRef,
|
|
1561
|
-
style: { "display": "none" },
|
|
1562
|
-
name: "file",
|
|
1563
|
-
type: "file",
|
|
1564
|
-
accept: "text/csv",
|
|
1565
|
-
onChange: handleChange
|
|
1566
|
-
}, null, 544)
|
|
1566
|
+
}, 8, ["disabled"])
|
|
1567
1567
|
], 64)) : createCommentVNode("v-if", true),
|
|
1568
1568
|
unref(deleteFeature) && !__props.hidden ? (openBlock(), createBlock(unref(Button), {
|
|
1569
1569
|
key: 1,
|
|
@@ -3152,7 +3152,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
3152
3152
|
} else if (name === "materialTemp") {
|
|
3153
3153
|
rule2.props.disabled = formPermission.disabled;
|
|
3154
3154
|
} else {
|
|
3155
|
-
rule2.props
|
|
3155
|
+
if (!rule2.props) {
|
|
3156
|
+
rule2.props = {
|
|
3157
|
+
disabled: true
|
|
3158
|
+
};
|
|
3159
|
+
} else {
|
|
3160
|
+
rule2.props.disabled = true;
|
|
3161
|
+
}
|
|
3156
3162
|
}
|
|
3157
3163
|
}
|
|
3158
3164
|
if (formPermission.hidden) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { withInstall } from 'bm-admin-ui/es/utils/with-install';
|
|
2
|
-
import { defineComponent, openBlock, createElementBlock, normalizeStyle, toDisplayString, computed, resolveComponent, normalizeClass, unref, createBlock, createCommentVNode, withCtx, createVNode, createTextVNode, withModifiers, ref, watch, createElementVNode, nextTick, Fragment, isRef, renderList, renderSlot, createStaticVNode, reactive, onBeforeUnmount, resolveDynamicComponent } from 'vue';
|
|
2
|
+
import { defineComponent, openBlock, createElementBlock, normalizeStyle, toDisplayString, computed, resolveComponent, normalizeClass, unref, createBlock, createCommentVNode, withCtx, createVNode, createTextVNode, withModifiers, ref, watch as watch$1, createElementVNode, nextTick, Fragment, isRef, renderList, renderSlot, createStaticVNode, reactive, onBeforeUnmount, resolveDynamicComponent } from 'vue';
|
|
3
3
|
import uniqueId from 'bm-admin-ui/es/utils/uniqueId';
|
|
4
4
|
import Draggable from 'vuedraggable';
|
|
5
5
|
import { Tooltip, FormItemRest, Input, Button, RadioGroup, Radio, DatePicker, Checkbox, Tabs, TabPane, Row, Col, Dropdown, Menu, CheckboxGroup, MenuItem, Divider, Switch, Select, Layout, LayoutSider, LayoutContent, message } from 'ant-design-vue';
|
|
@@ -848,7 +848,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
848
848
|
function emitSetValue(val) {
|
|
849
849
|
emits("setValue", val);
|
|
850
850
|
}
|
|
851
|
-
watch(
|
|
851
|
+
watch$1(
|
|
852
852
|
props.options,
|
|
853
853
|
(val) => {
|
|
854
854
|
handleRepeatOption(val);
|
|
@@ -1235,10 +1235,21 @@ var checkbox = {
|
|
|
1235
1235
|
const _hoisted_1$b = { class: "bm-default-date" };
|
|
1236
1236
|
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
1237
1237
|
__name: "default-date",
|
|
1238
|
-
props: [
|
|
1238
|
+
props: [
|
|
1239
|
+
"defaultRadioValue",
|
|
1240
|
+
"defalueDateValue",
|
|
1241
|
+
"formCreateInject"
|
|
1242
|
+
],
|
|
1239
1243
|
emits: ["change"],
|
|
1240
1244
|
setup(__props, { emit: emits }) {
|
|
1241
1245
|
const props = __props;
|
|
1246
|
+
const format = computed(
|
|
1247
|
+
() => props.formCreateInject.api.getRule("props.format").value
|
|
1248
|
+
);
|
|
1249
|
+
const extraProps = computed(() => ({
|
|
1250
|
+
picker: format.value === "YYYY-MM" ? "month" : "",
|
|
1251
|
+
showTime: format.value === "YYYY-MM-DD HH:mm"
|
|
1252
|
+
}));
|
|
1242
1253
|
const radioValue = ref(props.defaultRadioValue);
|
|
1243
1254
|
const dateValue = ref(props.defalueDateValue);
|
|
1244
1255
|
function emitChange(dateValue2) {
|
|
@@ -1253,6 +1264,9 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
1253
1264
|
dateValue.value = date;
|
|
1254
1265
|
emitChange(date);
|
|
1255
1266
|
}
|
|
1267
|
+
watch(format, () => {
|
|
1268
|
+
handleDateChange("");
|
|
1269
|
+
});
|
|
1256
1270
|
return (_ctx, _cache) => {
|
|
1257
1271
|
return openBlock(), createElementBlock("div", _hoisted_1$b, [
|
|
1258
1272
|
createVNode(unref(FormItemRest), null, {
|
|
@@ -1290,11 +1304,13 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
1290
1304
|
key: 0,
|
|
1291
1305
|
style: { width: "100%", marginTop: "8px" },
|
|
1292
1306
|
value: dateValue.value,
|
|
1293
|
-
format:
|
|
1294
|
-
"value-format":
|
|
1307
|
+
format: unref(format),
|
|
1308
|
+
"value-format": unref(format),
|
|
1309
|
+
picker: unref(extraProps).picker,
|
|
1310
|
+
"show-time": unref(extraProps).showTime,
|
|
1295
1311
|
placeholder: "\u8BF7\u9009\u62E9",
|
|
1296
1312
|
onChange: handleDateChange
|
|
1297
|
-
}, null, 8, ["value"])) : createCommentVNode("v-if", true)
|
|
1313
|
+
}, null, 8, ["value", "format", "value-format", "picker", "show-time"])) : createCommentVNode("v-if", true)
|
|
1298
1314
|
]),
|
|
1299
1315
|
_: 1
|
|
1300
1316
|
})
|
|
@@ -2509,7 +2525,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
2509
2525
|
uploadPicRule.hidden = uploadPictureRule.hidden;
|
|
2510
2526
|
rules.value = [...rules.value];
|
|
2511
2527
|
}
|
|
2512
|
-
watch(
|
|
2528
|
+
watch$1(
|
|
2513
2529
|
() => props.formCreateInject.rule.config.uploadPictureRule,
|
|
2514
2530
|
handleUploadPicRule,
|
|
2515
2531
|
{
|
|
@@ -2728,8 +2744,15 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
2728
2744
|
__name: "product-info",
|
|
2729
2745
|
props: ["formCreateInject"],
|
|
2730
2746
|
setup(__props) {
|
|
2747
|
+
const props = __props;
|
|
2748
|
+
const isInTable = computed(
|
|
2749
|
+
() => props.formCreateInject.api.config.parentType === "TableWidget"
|
|
2750
|
+
);
|
|
2731
2751
|
return (_ctx, _cache) => {
|
|
2732
|
-
return openBlock(), createBlock(unref(
|
|
2752
|
+
return unref(isInTable) ? (openBlock(), createBlock(unref(Input), {
|
|
2753
|
+
key: 0,
|
|
2754
|
+
placeholder: "\u8BF7\u8F93\u5165"
|
|
2755
|
+
})) : (openBlock(), createBlock(unref(Row), { key: 1 }, {
|
|
2733
2756
|
default: withCtx(() => [
|
|
2734
2757
|
createVNode(unref(Col), {
|
|
2735
2758
|
class: "bm-product-info-item",
|
|
@@ -2758,7 +2781,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
2758
2781
|
}), 128))
|
|
2759
2782
|
]),
|
|
2760
2783
|
_: 1
|
|
2761
|
-
});
|
|
2784
|
+
}));
|
|
2762
2785
|
};
|
|
2763
2786
|
}
|
|
2764
2787
|
});
|
|
@@ -2826,7 +2849,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
2826
2849
|
emitChangeEvt();
|
|
2827
2850
|
}
|
|
2828
2851
|
init();
|
|
2829
|
-
watch(visible, (val) => {
|
|
2852
|
+
watch$1(visible, (val) => {
|
|
2830
2853
|
visibleChange(val);
|
|
2831
2854
|
});
|
|
2832
2855
|
return (_ctx, _cache) => {
|
|
@@ -2993,10 +3016,10 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
2993
3016
|
}
|
|
2994
3017
|
});
|
|
2995
3018
|
}
|
|
2996
|
-
watch(checkedValue, (checkedValue2) => {
|
|
3019
|
+
watch$1(checkedValue, (checkedValue2) => {
|
|
2997
3020
|
checkedValueChange(checkedValue2);
|
|
2998
3021
|
});
|
|
2999
|
-
watch(selectValue, (selectValue2, oldSelectValue) => {
|
|
3022
|
+
watch$1(selectValue, (selectValue2, oldSelectValue) => {
|
|
3000
3023
|
selectValueChange(selectValue2);
|
|
3001
3024
|
shopLinkProduct(selectValue2, oldSelectValue);
|
|
3002
3025
|
handleChange(selectValue2);
|
|
@@ -3649,7 +3672,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
3649
3672
|
function getPopupContainer() {
|
|
3650
3673
|
return document.body;
|
|
3651
3674
|
}
|
|
3652
|
-
watch(
|
|
3675
|
+
watch$1(
|
|
3653
3676
|
childRules,
|
|
3654
3677
|
(val) => {
|
|
3655
3678
|
emits("change", val);
|
|
@@ -3807,11 +3830,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
3807
3830
|
rule.props.autoSize = true;
|
|
3808
3831
|
}
|
|
3809
3832
|
if (rule.config.config.name === "product" && parentType === WidgetType.TableWidget) {
|
|
3810
|
-
rule.type = "input";
|
|
3811
|
-
delete rule.component;
|
|
3812
3833
|
rule.title.title = "\u5546\u54C1\u7F16\u53F7";
|
|
3813
|
-
rule.props = {};
|
|
3814
|
-
rule.props.placeholder = "\u8BF7\u8F93\u5165";
|
|
3815
3834
|
}
|
|
3816
3835
|
}
|
|
3817
3836
|
});
|
|
@@ -4126,7 +4145,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
4126
4145
|
requiredRule.props.disabled = !!flowCondition[activeRule.value.field];
|
|
4127
4146
|
}
|
|
4128
4147
|
}
|
|
4129
|
-
watch(
|
|
4148
|
+
watch$1(
|
|
4130
4149
|
() => props.formRules,
|
|
4131
4150
|
(formRules) => {
|
|
4132
4151
|
formRules && edit(formRules);
|
|
@@ -4135,10 +4154,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
4135
4154
|
immediate: true
|
|
4136
4155
|
}
|
|
4137
4156
|
);
|
|
4138
|
-
watch(activeProps, (activeProps2) => {
|
|
4157
|
+
watch$1(activeProps, (activeProps2) => {
|
|
4139
4158
|
flowConditionEffect(activeProps2, props.flowCondition);
|
|
4140
4159
|
});
|
|
4141
|
-
watch(
|
|
4160
|
+
watch$1(
|
|
4142
4161
|
() => props.flowCondition,
|
|
4143
4162
|
(flowCondition) => {
|
|
4144
4163
|
flowConditionEffect(activeProps.value, flowCondition);
|
|
@@ -1547,6 +1547,15 @@ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
|
|
|
1547
1547
|
vue.createElementVNode("span", _hoisted_3$3, vue.toDisplayString(vue.unref(countText)), 1),
|
|
1548
1548
|
vue.createElementVNode("div", _hoisted_4$3, [
|
|
1549
1549
|
vue.unref(importFeature) && !__props.hidden ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
1550
|
+
vue.createElementVNode("input", {
|
|
1551
|
+
ref_key: "inputRef",
|
|
1552
|
+
ref: inputRef,
|
|
1553
|
+
style: { "display": "none" },
|
|
1554
|
+
name: "file",
|
|
1555
|
+
type: "file",
|
|
1556
|
+
accept: "text/csv",
|
|
1557
|
+
onChange: handleChange
|
|
1558
|
+
}, null, 544),
|
|
1550
1559
|
vue.createVNode(vue.unref(antDesignVue.Button), {
|
|
1551
1560
|
disabled: __props.disabled,
|
|
1552
1561
|
onClick: handleDownload
|
|
@@ -1564,16 +1573,7 @@ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
|
|
|
1564
1573
|
vue.createTextVNode("\u6279\u91CF\u5BFC\u5165")
|
|
1565
1574
|
]),
|
|
1566
1575
|
_: 1
|
|
1567
|
-
}, 8, ["disabled"])
|
|
1568
|
-
vue.createElementVNode("input", {
|
|
1569
|
-
ref_key: "inputRef",
|
|
1570
|
-
ref: inputRef,
|
|
1571
|
-
style: { "display": "none" },
|
|
1572
|
-
name: "file",
|
|
1573
|
-
type: "file",
|
|
1574
|
-
accept: "text/csv",
|
|
1575
|
-
onChange: handleChange
|
|
1576
|
-
}, null, 544)
|
|
1576
|
+
}, 8, ["disabled"])
|
|
1577
1577
|
], 64)) : vue.createCommentVNode("v-if", true),
|
|
1578
1578
|
vue.unref(deleteFeature) && !__props.hidden ? (vue.openBlock(), vue.createBlock(vue.unref(antDesignVue.Button), {
|
|
1579
1579
|
key: 1,
|
|
@@ -3162,7 +3162,13 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
3162
3162
|
} else if (name === "materialTemp") {
|
|
3163
3163
|
rule2.props.disabled = formPermission.disabled;
|
|
3164
3164
|
} else {
|
|
3165
|
-
rule2.props
|
|
3165
|
+
if (!rule2.props) {
|
|
3166
|
+
rule2.props = {
|
|
3167
|
+
disabled: true
|
|
3168
|
+
};
|
|
3169
|
+
} else {
|
|
3170
|
+
rule2.props.disabled = true;
|
|
3171
|
+
}
|
|
3166
3172
|
}
|
|
3167
3173
|
}
|
|
3168
3174
|
if (formPermission.hidden) {
|
|
@@ -1245,10 +1245,21 @@ var checkbox = {
|
|
|
1245
1245
|
const _hoisted_1$b = { class: "bm-default-date" };
|
|
1246
1246
|
const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
|
|
1247
1247
|
__name: "default-date",
|
|
1248
|
-
props: [
|
|
1248
|
+
props: [
|
|
1249
|
+
"defaultRadioValue",
|
|
1250
|
+
"defalueDateValue",
|
|
1251
|
+
"formCreateInject"
|
|
1252
|
+
],
|
|
1249
1253
|
emits: ["change"],
|
|
1250
1254
|
setup(__props, { emit: emits }) {
|
|
1251
1255
|
const props = __props;
|
|
1256
|
+
const format = vue.computed(
|
|
1257
|
+
() => props.formCreateInject.api.getRule("props.format").value
|
|
1258
|
+
);
|
|
1259
|
+
const extraProps = vue.computed(() => ({
|
|
1260
|
+
picker: format.value === "YYYY-MM" ? "month" : "",
|
|
1261
|
+
showTime: format.value === "YYYY-MM-DD HH:mm"
|
|
1262
|
+
}));
|
|
1252
1263
|
const radioValue = vue.ref(props.defaultRadioValue);
|
|
1253
1264
|
const dateValue = vue.ref(props.defalueDateValue);
|
|
1254
1265
|
function emitChange(dateValue2) {
|
|
@@ -1263,6 +1274,9 @@ const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
|
|
|
1263
1274
|
dateValue.value = date;
|
|
1264
1275
|
emitChange(date);
|
|
1265
1276
|
}
|
|
1277
|
+
watch(format, () => {
|
|
1278
|
+
handleDateChange("");
|
|
1279
|
+
});
|
|
1266
1280
|
return (_ctx, _cache) => {
|
|
1267
1281
|
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$b, [
|
|
1268
1282
|
vue.createVNode(vue.unref(antDesignVue.FormItemRest), null, {
|
|
@@ -1300,11 +1314,13 @@ const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
|
|
|
1300
1314
|
key: 0,
|
|
1301
1315
|
style: { width: "100%", marginTop: "8px" },
|
|
1302
1316
|
value: dateValue.value,
|
|
1303
|
-
format:
|
|
1304
|
-
"value-format":
|
|
1317
|
+
format: vue.unref(format),
|
|
1318
|
+
"value-format": vue.unref(format),
|
|
1319
|
+
picker: vue.unref(extraProps).picker,
|
|
1320
|
+
"show-time": vue.unref(extraProps).showTime,
|
|
1305
1321
|
placeholder: "\u8BF7\u9009\u62E9",
|
|
1306
1322
|
onChange: handleDateChange
|
|
1307
|
-
}, null, 8, ["value"])) : vue.createCommentVNode("v-if", true)
|
|
1323
|
+
}, null, 8, ["value", "format", "value-format", "picker", "show-time"])) : vue.createCommentVNode("v-if", true)
|
|
1308
1324
|
]),
|
|
1309
1325
|
_: 1
|
|
1310
1326
|
})
|
|
@@ -2738,8 +2754,15 @@ const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
|
|
|
2738
2754
|
__name: "product-info",
|
|
2739
2755
|
props: ["formCreateInject"],
|
|
2740
2756
|
setup(__props) {
|
|
2757
|
+
const props = __props;
|
|
2758
|
+
const isInTable = vue.computed(
|
|
2759
|
+
() => props.formCreateInject.api.config.parentType === "TableWidget"
|
|
2760
|
+
);
|
|
2741
2761
|
return (_ctx, _cache) => {
|
|
2742
|
-
return vue.openBlock(), vue.createBlock(vue.unref(antDesignVue.
|
|
2762
|
+
return vue.unref(isInTable) ? (vue.openBlock(), vue.createBlock(vue.unref(antDesignVue.Input), {
|
|
2763
|
+
key: 0,
|
|
2764
|
+
placeholder: "\u8BF7\u8F93\u5165"
|
|
2765
|
+
})) : (vue.openBlock(), vue.createBlock(vue.unref(antDesignVue.Row), { key: 1 }, {
|
|
2743
2766
|
default: vue.withCtx(() => [
|
|
2744
2767
|
vue.createVNode(vue.unref(antDesignVue.Col), {
|
|
2745
2768
|
class: "bm-product-info-item",
|
|
@@ -2768,7 +2791,7 @@ const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
|
|
|
2768
2791
|
}), 128))
|
|
2769
2792
|
]),
|
|
2770
2793
|
_: 1
|
|
2771
|
-
});
|
|
2794
|
+
}));
|
|
2772
2795
|
};
|
|
2773
2796
|
}
|
|
2774
2797
|
});
|
|
@@ -3817,11 +3840,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
3817
3840
|
rule.props.autoSize = true;
|
|
3818
3841
|
}
|
|
3819
3842
|
if (rule.config.config.name === "product" && parentType === WidgetType.TableWidget) {
|
|
3820
|
-
rule.type = "input";
|
|
3821
|
-
delete rule.component;
|
|
3822
3843
|
rule.title.title = "\u5546\u54C1\u7F16\u53F7";
|
|
3823
|
-
rule.props = {};
|
|
3824
|
-
rule.props.placeholder = "\u8BF7\u8F93\u5165";
|
|
3825
3844
|
}
|
|
3826
3845
|
}
|
|
3827
3846
|
});
|