bm-admin-ui 1.0.49-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.
|
@@ -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);
|