bm-admin-ui 1.0.35-alpha → 1.0.36-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 +3 -3
- package/es/components/form-designer/index.js +1 -6
- package/es/components/input-tags-display/index.js +5 -4
- package/es/utils/bm-admin-ui-resolver.js +1 -1
- package/index.esm.js +1816 -1582
- package/index.js +1816 -1582
- package/lib/components/form-create/index.js +3 -3
- package/lib/components/form-designer/index.js +1 -6
- package/lib/components/input-tags-display/index.js +6 -4
- package/lib/utils/bm-admin-ui-resolver.js +1 -1
- package/package.json +1 -1
- package/theme-chalk/form-create.css +1 -1
- package/theme-chalk/index.css +1 -1
|
@@ -2803,7 +2803,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
2803
2803
|
props: ["info"],
|
|
2804
2804
|
setup(__props) {
|
|
2805
2805
|
return (_ctx, _cache) => {
|
|
2806
|
-
return openBlock(), createElementBlock(
|
|
2806
|
+
return openBlock(), createElementBlock("div", null, [
|
|
2807
2807
|
!__props.info?.status ? (openBlock(), createElementBlock("div", _hoisted_1, "\u5BA1\u6279\u72B6\u6001")) : (openBlock(), createBlock(ApprovalStatus, {
|
|
2808
2808
|
key: 1,
|
|
2809
2809
|
class: "bm-form-basic-info__approval-status",
|
|
@@ -2812,7 +2812,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
2812
2812
|
_hoisted_2,
|
|
2813
2813
|
_hoisted_3,
|
|
2814
2814
|
_hoisted_4
|
|
2815
|
-
]
|
|
2815
|
+
]);
|
|
2816
2816
|
};
|
|
2817
2817
|
}
|
|
2818
2818
|
});
|
|
@@ -2881,7 +2881,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2881
2881
|
return (_ctx, _cache) => {
|
|
2882
2882
|
const _component_formCreate = resolveComponent("formCreate", true);
|
|
2883
2883
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
2884
|
-
createVNode(FormBasicInfo),
|
|
2884
|
+
createVNode(FormBasicInfo, { class: "bm-fc-form-basic-info" }),
|
|
2885
2885
|
createVNode(_component_formCreate, {
|
|
2886
2886
|
api: fApi.value,
|
|
2887
2887
|
"onUpdate:api": _cache[0] || (_cache[0] = ($event) => fApi.value = $event),
|
|
@@ -4009,6 +4009,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
4009
4009
|
return rule.config.config.parse(rule);
|
|
4010
4010
|
}
|
|
4011
4011
|
function edit(formRules) {
|
|
4012
|
+
widgetFormRules.splice(0);
|
|
4012
4013
|
formRules.forEach((item) => {
|
|
4013
4014
|
const rule = makeRule(ruleList[item.name]);
|
|
4014
4015
|
delete item.name;
|
|
@@ -4030,18 +4031,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
4030
4031
|
() => props.presetRules,
|
|
4031
4032
|
(presetRules) => {
|
|
4032
4033
|
widgetFormRules.push(...presetRules);
|
|
4033
|
-
},
|
|
4034
|
-
{
|
|
4035
|
-
immediate: true
|
|
4036
4034
|
}
|
|
4037
4035
|
);
|
|
4038
4036
|
watch(
|
|
4039
4037
|
() => props.formRules,
|
|
4040
4038
|
(formRules) => {
|
|
4041
4039
|
edit(formRules);
|
|
4042
|
-
},
|
|
4043
|
-
{
|
|
4044
|
-
immediate: true
|
|
4045
4040
|
}
|
|
4046
4041
|
);
|
|
4047
4042
|
onBeforeUnmount(() => {
|
|
@@ -2,6 +2,7 @@ import { withInstall } from 'bm-admin-ui/es/utils/with-install';
|
|
|
2
2
|
import { defineComponent, ref, watch, resolveComponent, openBlock, createElementBlock, createVNode, normalizeProps, guardReactiveProps, withCtx, createElementVNode, toDisplayString, withModifiers, Fragment, renderList, createBlock, createTextVNode, createCommentVNode } from 'vue';
|
|
3
3
|
import ToolTip from 'ant-design-vue/lib/tooltip';
|
|
4
4
|
import Button from 'ant-design-vue/lib/button';
|
|
5
|
+
import Tag from 'ant-design-vue/lib/tag';
|
|
5
6
|
import { CloseCircleFilled } from '@ant-design/icons-vue';
|
|
6
7
|
|
|
7
8
|
var _export_sfc = (sfc, props) => {
|
|
@@ -13,7 +14,7 @@ var _export_sfc = (sfc, props) => {
|
|
|
13
14
|
};
|
|
14
15
|
|
|
15
16
|
const _sfc_main = defineComponent({
|
|
16
|
-
components: { ToolTip, CloseCircleFilled, Button },
|
|
17
|
+
components: { ToolTip, CloseCircleFilled, Button, Tag },
|
|
17
18
|
props: {
|
|
18
19
|
list: {
|
|
19
20
|
type: Array,
|
|
@@ -124,7 +125,7 @@ const _hoisted_8 = { key: 1 };
|
|
|
124
125
|
const _hoisted_9 = { key: 2 };
|
|
125
126
|
const _hoisted_10 = /* @__PURE__ */ createElementVNode("div", null, null, -1);
|
|
126
127
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
127
|
-
const
|
|
128
|
+
const _component_Tag = resolveComponent("Tag");
|
|
128
129
|
const _component_CloseCircleFilled = resolveComponent("CloseCircleFilled");
|
|
129
130
|
const _component_ToolTip = resolveComponent("ToolTip");
|
|
130
131
|
const _component_Button = resolveComponent("Button");
|
|
@@ -149,7 +150,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
149
150
|
}, ["stop"]))
|
|
150
151
|
}, [
|
|
151
152
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.list, (item) => {
|
|
152
|
-
return openBlock(), createBlock(
|
|
153
|
+
return openBlock(), createBlock(_component_Tag, {
|
|
153
154
|
key: item[_ctx.fieldNames.key],
|
|
154
155
|
class: "pop-seleted-item"
|
|
155
156
|
}, {
|
|
@@ -164,7 +165,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
164
165
|
default: withCtx(() => [
|
|
165
166
|
createElementVNode("div", _hoisted_7, [
|
|
166
167
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.list, (item) => {
|
|
167
|
-
return openBlock(), createBlock(
|
|
168
|
+
return openBlock(), createBlock(_component_Tag, {
|
|
168
169
|
key: item[_ctx.fieldNames.key]
|
|
169
170
|
}, {
|
|
170
171
|
default: withCtx(() => [
|
|
@@ -2,7 +2,7 @@ function kebabCase(key) {
|
|
|
2
2
|
const result = key.replace(/([A-Z])/g, ' $1').trim();
|
|
3
3
|
return result.split(' ').join('-').toLowerCase();
|
|
4
4
|
}
|
|
5
|
-
export function BmAdminUiResolver(options) {
|
|
5
|
+
export function BmAdminUiResolver(options = { importStyle: false }) {
|
|
6
6
|
return [
|
|
7
7
|
{
|
|
8
8
|
type: 'component',
|