bm-admin-ui 1.0.66-alpha → 1.0.67-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/form-create/index.js +28 -16
- package/es/components/input-tags-display/index.js +3 -3
- package/lib/components/form-create/index.js +28 -16
- package/lib/components/input-tags-display/index.js +2 -2
- package/package.json +1 -1
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/input-tags-display.css +1 -1
|
@@ -245,6 +245,7 @@ var radio = {
|
|
|
245
245
|
title: data.title.title,
|
|
246
246
|
props: {
|
|
247
247
|
placeholder: data.props.placeholder,
|
|
248
|
+
allowClear: true,
|
|
248
249
|
},
|
|
249
250
|
options: data.options,
|
|
250
251
|
effect: {
|
|
@@ -265,6 +266,7 @@ var radio = {
|
|
|
265
266
|
title: data.title.title,
|
|
266
267
|
props: {
|
|
267
268
|
placeholder: data.props.placeholder,
|
|
269
|
+
allowClear: true,
|
|
268
270
|
},
|
|
269
271
|
options: data.options,
|
|
270
272
|
effect: {
|
|
@@ -290,6 +292,7 @@ var radio = {
|
|
|
290
292
|
placeholder: data.props.placeholder,
|
|
291
293
|
options: data.options,
|
|
292
294
|
disabled: data.disabled,
|
|
295
|
+
allowClear: true,
|
|
293
296
|
getPopupContainer: getContainer,
|
|
294
297
|
'onUpdate:value': (value) => {
|
|
295
298
|
row[field] = value;
|
|
@@ -309,7 +312,7 @@ var checkbox = {
|
|
|
309
312
|
type: data.type,
|
|
310
313
|
field: data.field,
|
|
311
314
|
title: data.title.title,
|
|
312
|
-
props: Object.assign({ placeholder: data.props.placeholder }, extraProps),
|
|
315
|
+
props: Object.assign({ placeholder: data.props.placeholder, allowClear: true }, extraProps),
|
|
313
316
|
options: data.options,
|
|
314
317
|
effect: {
|
|
315
318
|
required: data.effect.required && '请选择',
|
|
@@ -328,7 +331,7 @@ var checkbox = {
|
|
|
328
331
|
type: data.type,
|
|
329
332
|
field: data.field,
|
|
330
333
|
title: data.title.title,
|
|
331
|
-
props: Object.assign({ placeholder: data.props.placeholder }, extraProps),
|
|
334
|
+
props: Object.assign({ placeholder: data.props.placeholder, allowClear: true }, extraProps),
|
|
332
335
|
options: data.options,
|
|
333
336
|
effect: {
|
|
334
337
|
required: data.effect.required && '请选择',
|
|
@@ -353,6 +356,7 @@ var checkbox = {
|
|
|
353
356
|
placeholder: data.props.placeholder,
|
|
354
357
|
options: data.options,
|
|
355
358
|
mode: 'multiple',
|
|
359
|
+
allowClear: true,
|
|
356
360
|
getPopupContainer: getContainer,
|
|
357
361
|
disabled: data.disabled,
|
|
358
362
|
'onUpdate:value': (value) => {
|
|
@@ -19174,7 +19178,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
19174
19178
|
);
|
|
19175
19179
|
let index = 2;
|
|
19176
19180
|
const measrueDicts = ref([]);
|
|
19177
|
-
const formData = computed(() => props.formCreateInject.api.
|
|
19181
|
+
const formData = computed(() => props.formCreateInject.api.bind());
|
|
19178
19182
|
function selectTemp() {
|
|
19179
19183
|
visible.value = true;
|
|
19180
19184
|
}
|
|
@@ -19403,6 +19407,9 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
19403
19407
|
panes.splice(0);
|
|
19404
19408
|
activeKey.value = "\u7D20\u67501";
|
|
19405
19409
|
panes.push(initPane("\u7D20\u67501"));
|
|
19410
|
+
},
|
|
19411
|
+
{
|
|
19412
|
+
immediate: false
|
|
19406
19413
|
}
|
|
19407
19414
|
);
|
|
19408
19415
|
watch(
|
|
@@ -19411,7 +19418,6 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
19411
19418
|
emitChange();
|
|
19412
19419
|
},
|
|
19413
19420
|
{
|
|
19414
|
-
immediate: true,
|
|
19415
19421
|
deep: true
|
|
19416
19422
|
}
|
|
19417
19423
|
);
|
|
@@ -19785,15 +19791,13 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
19785
19791
|
if (Object.keys(result).length) {
|
|
19786
19792
|
emitChange(value);
|
|
19787
19793
|
} else {
|
|
19788
|
-
|
|
19789
|
-
inputValue.value = "";
|
|
19794
|
+
reset();
|
|
19790
19795
|
}
|
|
19791
19796
|
}).catch(() => {
|
|
19792
|
-
|
|
19793
|
-
inputValue.value = "";
|
|
19797
|
+
reset();
|
|
19794
19798
|
});
|
|
19795
19799
|
} else {
|
|
19796
|
-
|
|
19800
|
+
reset();
|
|
19797
19801
|
}
|
|
19798
19802
|
}
|
|
19799
19803
|
function handleChange(evt) {
|
|
@@ -19808,6 +19812,11 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
19808
19812
|
function inputDisbale(shopField) {
|
|
19809
19813
|
return shopField && !formData.value[shopField];
|
|
19810
19814
|
}
|
|
19815
|
+
function reset() {
|
|
19816
|
+
emitChange("");
|
|
19817
|
+
inputValue.value = "";
|
|
19818
|
+
productInfo.value = {};
|
|
19819
|
+
}
|
|
19811
19820
|
watch(
|
|
19812
19821
|
() => props.defalutValue,
|
|
19813
19822
|
(val) => {
|
|
@@ -19821,8 +19830,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
19821
19830
|
() => formData.value[props.dataFiltering],
|
|
19822
19831
|
() => {
|
|
19823
19832
|
if (inputValue.value) {
|
|
19824
|
-
|
|
19825
|
-
inputValue.value = "";
|
|
19833
|
+
reset();
|
|
19826
19834
|
}
|
|
19827
19835
|
}
|
|
19828
19836
|
);
|
|
@@ -20026,11 +20034,14 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
20026
20034
|
});
|
|
20027
20035
|
}
|
|
20028
20036
|
function handleChange(val, option) {
|
|
20029
|
-
emits(
|
|
20030
|
-
|
|
20031
|
-
|
|
20032
|
-
|
|
20033
|
-
|
|
20037
|
+
emits(
|
|
20038
|
+
"change",
|
|
20039
|
+
option ? {
|
|
20040
|
+
[fieldNames.value]: option.value,
|
|
20041
|
+
[fieldNames.label]: option.label,
|
|
20042
|
+
...option
|
|
20043
|
+
} : void 0
|
|
20044
|
+
);
|
|
20034
20045
|
}
|
|
20035
20046
|
function handleChangeConfirm(val, option) {
|
|
20036
20047
|
if (isAssociated.value) {
|
|
@@ -20061,6 +20072,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
20061
20072
|
options: options.value,
|
|
20062
20073
|
"get-popup-container": unref(getContainer),
|
|
20063
20074
|
disabled: __props.disabled,
|
|
20075
|
+
"allow-clear": "",
|
|
20064
20076
|
onChange: handleChangeConfirm,
|
|
20065
20077
|
onSearch: handleSearch
|
|
20066
20078
|
}, null, 8, ["value", "options", "get-popup-container", "disabled"]);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { withInstall } from 'bm-admin-ui/es/utils/with-install';
|
|
2
|
-
import { defineComponent, ref, watch, resolveComponent, openBlock, createElementBlock, createVNode, normalizeProps, guardReactiveProps, withCtx, createElementVNode, createTextVNode, toDisplayString, withModifiers, Fragment, renderList, createBlock, createCommentVNode } from 'vue';
|
|
2
|
+
import { defineComponent, ref, watch, resolveComponent, openBlock, createElementBlock, createVNode, normalizeProps, guardReactiveProps, withCtx, createElementVNode, createTextVNode, toDisplayString, withModifiers, Fragment, renderList, createBlock, createCommentVNode, normalizeClass } from 'vue';
|
|
3
3
|
import ToolTip from 'ant-design-vue/lib/tooltip';
|
|
4
4
|
import Button from 'ant-design-vue/lib/button';
|
|
5
5
|
import Tag from 'ant-design-vue/lib/tag';
|
|
@@ -212,9 +212,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
212
212
|
])) : createCommentVNode("v-if", true),
|
|
213
213
|
_ctx.showEmpty && !_ctx.list.length ? (openBlock(), createElementBlock("div", _hoisted_6, [
|
|
214
214
|
createElementVNode("div", {
|
|
215
|
-
class: "selector-empty-input",
|
|
215
|
+
class: normalizeClass(["selector-empty-input", { "empty-disabled": _ctx.disabled }]),
|
|
216
216
|
onClick: _cache[5] || (_cache[5] = withModifiers((...args) => _ctx.toAddTags && _ctx.toAddTags(...args), ["stop"]))
|
|
217
|
-
}, " \xA0\xA0" + toDisplayString(_ctx.placeholder),
|
|
217
|
+
}, " \xA0\xA0" + toDisplayString(_ctx.placeholder), 3)
|
|
218
218
|
])) : createCommentVNode("v-if", true),
|
|
219
219
|
_hoisted_7
|
|
220
220
|
]);
|
|
@@ -256,6 +256,7 @@ var radio = {
|
|
|
256
256
|
title: data.title.title,
|
|
257
257
|
props: {
|
|
258
258
|
placeholder: data.props.placeholder,
|
|
259
|
+
allowClear: true,
|
|
259
260
|
},
|
|
260
261
|
options: data.options,
|
|
261
262
|
effect: {
|
|
@@ -276,6 +277,7 @@ var radio = {
|
|
|
276
277
|
title: data.title.title,
|
|
277
278
|
props: {
|
|
278
279
|
placeholder: data.props.placeholder,
|
|
280
|
+
allowClear: true,
|
|
279
281
|
},
|
|
280
282
|
options: data.options,
|
|
281
283
|
effect: {
|
|
@@ -301,6 +303,7 @@ var radio = {
|
|
|
301
303
|
placeholder: data.props.placeholder,
|
|
302
304
|
options: data.options,
|
|
303
305
|
disabled: data.disabled,
|
|
306
|
+
allowClear: true,
|
|
304
307
|
getPopupContainer: getContainer,
|
|
305
308
|
'onUpdate:value': (value) => {
|
|
306
309
|
row[field] = value;
|
|
@@ -320,7 +323,7 @@ var checkbox = {
|
|
|
320
323
|
type: data.type,
|
|
321
324
|
field: data.field,
|
|
322
325
|
title: data.title.title,
|
|
323
|
-
props: Object.assign({ placeholder: data.props.placeholder }, extraProps),
|
|
326
|
+
props: Object.assign({ placeholder: data.props.placeholder, allowClear: true }, extraProps),
|
|
324
327
|
options: data.options,
|
|
325
328
|
effect: {
|
|
326
329
|
required: data.effect.required && '请选择',
|
|
@@ -339,7 +342,7 @@ var checkbox = {
|
|
|
339
342
|
type: data.type,
|
|
340
343
|
field: data.field,
|
|
341
344
|
title: data.title.title,
|
|
342
|
-
props: Object.assign({ placeholder: data.props.placeholder }, extraProps),
|
|
345
|
+
props: Object.assign({ placeholder: data.props.placeholder, allowClear: true }, extraProps),
|
|
343
346
|
options: data.options,
|
|
344
347
|
effect: {
|
|
345
348
|
required: data.effect.required && '请选择',
|
|
@@ -364,6 +367,7 @@ var checkbox = {
|
|
|
364
367
|
placeholder: data.props.placeholder,
|
|
365
368
|
options: data.options,
|
|
366
369
|
mode: 'multiple',
|
|
370
|
+
allowClear: true,
|
|
367
371
|
getPopupContainer: getContainer,
|
|
368
372
|
disabled: data.disabled,
|
|
369
373
|
'onUpdate:value': (value) => {
|
|
@@ -19185,7 +19189,7 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
|
|
|
19185
19189
|
);
|
|
19186
19190
|
let index = 2;
|
|
19187
19191
|
const measrueDicts = vue.ref([]);
|
|
19188
|
-
const formData = vue.computed(() => props.formCreateInject.api.
|
|
19192
|
+
const formData = vue.computed(() => props.formCreateInject.api.bind());
|
|
19189
19193
|
function selectTemp() {
|
|
19190
19194
|
visible.value = true;
|
|
19191
19195
|
}
|
|
@@ -19414,6 +19418,9 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
|
|
|
19414
19418
|
panes.splice(0);
|
|
19415
19419
|
activeKey.value = "\u7D20\u67501";
|
|
19416
19420
|
panes.push(initPane("\u7D20\u67501"));
|
|
19421
|
+
},
|
|
19422
|
+
{
|
|
19423
|
+
immediate: false
|
|
19417
19424
|
}
|
|
19418
19425
|
);
|
|
19419
19426
|
vue.watch(
|
|
@@ -19422,7 +19429,6 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
|
|
|
19422
19429
|
emitChange();
|
|
19423
19430
|
},
|
|
19424
19431
|
{
|
|
19425
|
-
immediate: true,
|
|
19426
19432
|
deep: true
|
|
19427
19433
|
}
|
|
19428
19434
|
);
|
|
@@ -19796,15 +19802,13 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
|
19796
19802
|
if (Object.keys(result).length) {
|
|
19797
19803
|
emitChange(value);
|
|
19798
19804
|
} else {
|
|
19799
|
-
|
|
19800
|
-
inputValue.value = "";
|
|
19805
|
+
reset();
|
|
19801
19806
|
}
|
|
19802
19807
|
}).catch(() => {
|
|
19803
|
-
|
|
19804
|
-
inputValue.value = "";
|
|
19808
|
+
reset();
|
|
19805
19809
|
});
|
|
19806
19810
|
} else {
|
|
19807
|
-
|
|
19811
|
+
reset();
|
|
19808
19812
|
}
|
|
19809
19813
|
}
|
|
19810
19814
|
function handleChange(evt) {
|
|
@@ -19819,6 +19823,11 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
|
19819
19823
|
function inputDisbale(shopField) {
|
|
19820
19824
|
return shopField && !formData.value[shopField];
|
|
19821
19825
|
}
|
|
19826
|
+
function reset() {
|
|
19827
|
+
emitChange("");
|
|
19828
|
+
inputValue.value = "";
|
|
19829
|
+
productInfo.value = {};
|
|
19830
|
+
}
|
|
19822
19831
|
vue.watch(
|
|
19823
19832
|
() => props.defalutValue,
|
|
19824
19833
|
(val) => {
|
|
@@ -19832,8 +19841,7 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
|
19832
19841
|
() => formData.value[props.dataFiltering],
|
|
19833
19842
|
() => {
|
|
19834
19843
|
if (inputValue.value) {
|
|
19835
|
-
|
|
19836
|
-
inputValue.value = "";
|
|
19844
|
+
reset();
|
|
19837
19845
|
}
|
|
19838
19846
|
}
|
|
19839
19847
|
);
|
|
@@ -20037,11 +20045,14 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
|
|
|
20037
20045
|
});
|
|
20038
20046
|
}
|
|
20039
20047
|
function handleChange(val, option) {
|
|
20040
|
-
emits(
|
|
20041
|
-
|
|
20042
|
-
|
|
20043
|
-
|
|
20044
|
-
|
|
20048
|
+
emits(
|
|
20049
|
+
"change",
|
|
20050
|
+
option ? {
|
|
20051
|
+
[fieldNames.value]: option.value,
|
|
20052
|
+
[fieldNames.label]: option.label,
|
|
20053
|
+
...option
|
|
20054
|
+
} : void 0
|
|
20055
|
+
);
|
|
20045
20056
|
}
|
|
20046
20057
|
function handleChangeConfirm(val, option) {
|
|
20047
20058
|
if (isAssociated.value) {
|
|
@@ -20072,6 +20083,7 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
|
|
|
20072
20083
|
options: options.value,
|
|
20073
20084
|
"get-popup-container": vue.unref(getContainer),
|
|
20074
20085
|
disabled: __props.disabled,
|
|
20086
|
+
"allow-clear": "",
|
|
20075
20087
|
onChange: handleChangeConfirm,
|
|
20076
20088
|
onSearch: handleSearch
|
|
20077
20089
|
}, null, 8, ["value", "options", "get-popup-container", "disabled"]);
|
|
@@ -222,9 +222,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
222
222
|
])) : vue.createCommentVNode("v-if", true),
|
|
223
223
|
_ctx.showEmpty && !_ctx.list.length ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6, [
|
|
224
224
|
vue.createElementVNode("div", {
|
|
225
|
-
class: "selector-empty-input",
|
|
225
|
+
class: vue.normalizeClass(["selector-empty-input", { "empty-disabled": _ctx.disabled }]),
|
|
226
226
|
onClick: _cache[5] || (_cache[5] = vue.withModifiers((...args) => _ctx.toAddTags && _ctx.toAddTags(...args), ["stop"]))
|
|
227
|
-
}, " \xA0\xA0" + vue.toDisplayString(_ctx.placeholder),
|
|
227
|
+
}, " \xA0\xA0" + vue.toDisplayString(_ctx.placeholder), 3)
|
|
228
228
|
])) : vue.createCommentVNode("v-if", true),
|
|
229
229
|
_hoisted_7
|
|
230
230
|
]);
|