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.
|
@@ -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
|
});
|