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
|
@@ -2814,7 +2814,7 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
|
2814
2814
|
props: ["info"],
|
|
2815
2815
|
setup(__props) {
|
|
2816
2816
|
return (_ctx, _cache) => {
|
|
2817
|
-
return vue.openBlock(), vue.createElementBlock(
|
|
2817
|
+
return vue.openBlock(), vue.createElementBlock("div", null, [
|
|
2818
2818
|
!__props.info?.status ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1, "\u5BA1\u6279\u72B6\u6001")) : (vue.openBlock(), vue.createBlock(ApprovalStatus, {
|
|
2819
2819
|
key: 1,
|
|
2820
2820
|
class: "bm-form-basic-info__approval-status",
|
|
@@ -2823,7 +2823,7 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
|
2823
2823
|
_hoisted_2,
|
|
2824
2824
|
_hoisted_3,
|
|
2825
2825
|
_hoisted_4
|
|
2826
|
-
]
|
|
2826
|
+
]);
|
|
2827
2827
|
};
|
|
2828
2828
|
}
|
|
2829
2829
|
});
|
|
@@ -2892,7 +2892,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
2892
2892
|
return (_ctx, _cache) => {
|
|
2893
2893
|
const _component_formCreate = vue.resolveComponent("formCreate", true);
|
|
2894
2894
|
return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
|
|
2895
|
-
vue.createVNode(FormBasicInfo),
|
|
2895
|
+
vue.createVNode(FormBasicInfo, { class: "bm-fc-form-basic-info" }),
|
|
2896
2896
|
vue.createVNode(_component_formCreate, {
|
|
2897
2897
|
api: fApi.value,
|
|
2898
2898
|
"onUpdate:api": _cache[0] || (_cache[0] = ($event) => fApi.value = $event),
|
|
@@ -4019,6 +4019,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
4019
4019
|
return rule.config.config.parse(rule);
|
|
4020
4020
|
}
|
|
4021
4021
|
function edit(formRules) {
|
|
4022
|
+
widgetFormRules.splice(0);
|
|
4022
4023
|
formRules.forEach((item) => {
|
|
4023
4024
|
const rule = makeRule(ruleList[item.name]);
|
|
4024
4025
|
delete item.name;
|
|
@@ -4040,18 +4041,12 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
4040
4041
|
() => props.presetRules,
|
|
4041
4042
|
(presetRules) => {
|
|
4042
4043
|
widgetFormRules.push(...presetRules);
|
|
4043
|
-
},
|
|
4044
|
-
{
|
|
4045
|
-
immediate: true
|
|
4046
4044
|
}
|
|
4047
4045
|
);
|
|
4048
4046
|
vue.watch(
|
|
4049
4047
|
() => props.formRules,
|
|
4050
4048
|
(formRules) => {
|
|
4051
4049
|
edit(formRules);
|
|
4052
|
-
},
|
|
4053
|
-
{
|
|
4054
|
-
immediate: true
|
|
4055
4050
|
}
|
|
4056
4051
|
);
|
|
4057
4052
|
vue.onBeforeUnmount(() => {
|
|
@@ -6,12 +6,14 @@ var withInstall = require('bm-admin-ui/lib/utils/with-install');
|
|
|
6
6
|
var vue = require('vue');
|
|
7
7
|
var ToolTip = require('ant-design-vue/lib/tooltip');
|
|
8
8
|
var Button = require('ant-design-vue/lib/button');
|
|
9
|
+
var Tag = require('ant-design-vue/lib/tag');
|
|
9
10
|
var iconsVue = require('@ant-design/icons-vue');
|
|
10
11
|
|
|
11
12
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
12
13
|
|
|
13
14
|
var ToolTip__default = /*#__PURE__*/_interopDefaultLegacy(ToolTip);
|
|
14
15
|
var Button__default = /*#__PURE__*/_interopDefaultLegacy(Button);
|
|
16
|
+
var Tag__default = /*#__PURE__*/_interopDefaultLegacy(Tag);
|
|
15
17
|
|
|
16
18
|
var _export_sfc = (sfc, props) => {
|
|
17
19
|
const target = sfc.__vccOpts || sfc;
|
|
@@ -22,7 +24,7 @@ var _export_sfc = (sfc, props) => {
|
|
|
22
24
|
};
|
|
23
25
|
|
|
24
26
|
const _sfc_main = vue.defineComponent({
|
|
25
|
-
components: { ToolTip: ToolTip__default["default"], CloseCircleFilled: iconsVue.CloseCircleFilled, Button: Button__default["default"] },
|
|
27
|
+
components: { ToolTip: ToolTip__default["default"], CloseCircleFilled: iconsVue.CloseCircleFilled, Button: Button__default["default"], Tag: Tag__default["default"] },
|
|
26
28
|
props: {
|
|
27
29
|
list: {
|
|
28
30
|
type: Array,
|
|
@@ -133,7 +135,7 @@ const _hoisted_8 = { key: 1 };
|
|
|
133
135
|
const _hoisted_9 = { key: 2 };
|
|
134
136
|
const _hoisted_10 = /* @__PURE__ */ vue.createElementVNode("div", null, null, -1);
|
|
135
137
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
136
|
-
const
|
|
138
|
+
const _component_Tag = vue.resolveComponent("Tag");
|
|
137
139
|
const _component_CloseCircleFilled = vue.resolveComponent("CloseCircleFilled");
|
|
138
140
|
const _component_ToolTip = vue.resolveComponent("ToolTip");
|
|
139
141
|
const _component_Button = vue.resolveComponent("Button");
|
|
@@ -158,7 +160,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
158
160
|
}, ["stop"]))
|
|
159
161
|
}, [
|
|
160
162
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.list, (item) => {
|
|
161
|
-
return vue.openBlock(), vue.createBlock(
|
|
163
|
+
return vue.openBlock(), vue.createBlock(_component_Tag, {
|
|
162
164
|
key: item[_ctx.fieldNames.key],
|
|
163
165
|
class: "pop-seleted-item"
|
|
164
166
|
}, {
|
|
@@ -173,7 +175,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
173
175
|
default: vue.withCtx(() => [
|
|
174
176
|
vue.createElementVNode("div", _hoisted_7, [
|
|
175
177
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.list, (item) => {
|
|
176
|
-
return vue.openBlock(), vue.createBlock(
|
|
178
|
+
return vue.openBlock(), vue.createBlock(_component_Tag, {
|
|
177
179
|
key: item[_ctx.fieldNames.key]
|
|
178
180
|
}, {
|
|
179
181
|
default: vue.withCtx(() => [
|
|
@@ -5,7 +5,7 @@ function kebabCase(key) {
|
|
|
5
5
|
const result = key.replace(/([A-Z])/g, ' $1').trim();
|
|
6
6
|
return result.split(' ').join('-').toLowerCase();
|
|
7
7
|
}
|
|
8
|
-
function BmAdminUiResolver(options) {
|
|
8
|
+
function BmAdminUiResolver(options = { importStyle: false }) {
|
|
9
9
|
return [
|
|
10
10
|
{
|
|
11
11
|
type: 'component',
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.bm-fc-material-temp__add{display:inline-block;width:24px;height:24px;background:#fafafa;border-radius:2px;border:1px solid #e8e8e8;text-align:center;color:#bcbcc6}.bm-fc-module-widget{width:100%;margin:24px 0}.bm-fc-module-widget+.bm-fc-module-widget{margin-top:0}.bm-fc-head-line{width:100%;margin-bottom:24px;font-weight:700}.bm-fc-form-item-label{display:inline-block;line-height:32px;width:127px;text-align:right}.bm-fc-form-item-label.is-required::before{display:inline-block;margin-right:4px;color:#ff4d4f;font-size:14px;font-family:SimSun,sans-serif;line-height:1;content:'*'}.bm-fc-form-item{line-height:32px;color:#9393a3}.bm-fc-form-item__cover{width:170px;height:170px;-o-object-position:center;object-position:center;-o-object-fit:contain;object-fit:contain}.bm-fc-form-item__temp-content{width:170px;height:170px!important}.bm-fc-row-widget{margin-bottom:24px}.bm-fc-row-widget .ant-form-item{margin-bottom:0}.bm-dc-table-widget__title{line-height:32px;font-size:16px;font-weight:700;overflow:hidden}.bm-dc-table-widget__title-samll{font-size:14px;font-weight:initial}.bm-dc-table-widget__top-bar{float:right}.bm-dc-table-widget__top-bar .ant-btn+.ant-btn{margin-left:8px}.bm-dc-table-widget__table{margin-top:16px}.bm-dc-table-widget .vxe-header--column.is-required .vxe-cell--title::before{display:inline-block;margin-right:4px;color:#ff4d4f;font-size:14px;font-family:SimSun,sans-serif;line-height:1;content:'*'}.bm-fc-select-material-temp__sider{width:225px;height:612px;padding:20px 24px;background-color:#fff;border-right:1px solid rgba(0,0,0,.06);overflow:auto}.bm-fc-select-material-temp__content{padding:24px;background-color:#fff}.bm-fc-select-material-temp__content__input{width:432px}.bm-fc-select-material-temp__content__btn{margin-left:8px}.bm-fc-select-material-temp__content__item-info{padding:10px}.bm-fc-select-material-temp__content__item-info__cover{width:170px;height:170px}.bm-fc-select-material-temp__content__item-info__cover__img{width:100%;height:100%;-o-object-position:center;object-position:center;-o-object-fit:contain;object-fit:contain}.bm-fc-select-material-temp__content__item-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}.bm-fc-select-material-temp__content__item-name:hover{color:#2f4eed}.bm-fc-select-material-temp__content__circle{vertical-align:-.125em;display:inline-block;width:14px;height:14px;border:1px solid #e8e8e8;border-radius:50%}.bm-fc-select-material-temp__content__check-icon{color:#2f4eed}.bm-fc-select-material-temp__content__item-time{color:#9393a3;font-size:12px}.bm-fc-select-material-temp__content__name{margin-left:4px}.bm-fc-rect-outer{position:relative;height:100%;background-size:cover;background-position:center;background-repeat:no-repeat}.bm-fc-rect-outer .bm-fc-rect{position:absolute;border:1px solid #2f4eed;background-repeat:no-repeat;background-size:cover;background-position:center}.bm-fc-rect-outer .bm-fc-rect.is-ele{border:unset}.bm-form-basic-info__title{font-size:16px;font-weight:700;color:#242633}.bm-form-basic-info__summary{font-size:12px;color:#9393a3;margin-top:15px}.bm-form-basic-info__summary.mt10{margin-top:10px}.bm-form-basic-info__status{float:right;padding:0 12px;margin-top:8px;background:#f5f5f5;border-radius:2px;opacity:.9;border:1px solid #d9d9d9;color:#242633}.bm-form-basic-info__approval-status{float:right;margin-top:3px}
|
|
1
|
+
.bm-fc-material-temp__add{display:inline-block;width:24px;height:24px;background:#fafafa;border-radius:2px;border:1px solid #e8e8e8;text-align:center;color:#bcbcc6}.bm-fc-module-widget{width:100%;margin:24px 0}.bm-fc-module-widget+.bm-fc-module-widget{margin-top:0}.bm-fc-head-line{width:100%;margin-bottom:24px;font-weight:700}.bm-fc-form-item-label{display:inline-block;line-height:32px;width:127px;text-align:right}.bm-fc-form-item-label.is-required::before{display:inline-block;margin-right:4px;color:#ff4d4f;font-size:14px;font-family:SimSun,sans-serif;line-height:1;content:'*'}.bm-fc-form-item{line-height:32px;color:#9393a3}.bm-fc-form-item__cover{width:170px;height:170px;-o-object-position:center;object-position:center;-o-object-fit:contain;object-fit:contain}.bm-fc-form-item__temp-content{width:170px;height:170px!important}.bm-fc-row-widget{margin-bottom:24px}.bm-fc-row-widget .ant-form-item{margin-bottom:0}.bm-dc-table-widget__title{line-height:32px;font-size:16px;font-weight:700;overflow:hidden}.bm-dc-table-widget__title-samll{font-size:14px;font-weight:initial}.bm-dc-table-widget__top-bar{float:right}.bm-dc-table-widget__top-bar .ant-btn+.ant-btn{margin-left:8px}.bm-dc-table-widget__table{margin-top:16px}.bm-dc-table-widget .vxe-header--column.is-required .vxe-cell--title::before{display:inline-block;margin-right:4px;color:#ff4d4f;font-size:14px;font-family:SimSun,sans-serif;line-height:1;content:'*'}.bm-fc-select-material-temp__sider{width:225px;height:612px;padding:20px 24px;background-color:#fff;border-right:1px solid rgba(0,0,0,.06);overflow:auto}.bm-fc-select-material-temp__content{padding:24px;background-color:#fff}.bm-fc-select-material-temp__content__input{width:432px}.bm-fc-select-material-temp__content__btn{margin-left:8px}.bm-fc-select-material-temp__content__item-info{padding:10px}.bm-fc-select-material-temp__content__item-info__cover{width:170px;height:170px}.bm-fc-select-material-temp__content__item-info__cover__img{width:100%;height:100%;-o-object-position:center;object-position:center;-o-object-fit:contain;object-fit:contain}.bm-fc-select-material-temp__content__item-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}.bm-fc-select-material-temp__content__item-name:hover{color:#2f4eed}.bm-fc-select-material-temp__content__circle{vertical-align:-.125em;display:inline-block;width:14px;height:14px;border:1px solid #e8e8e8;border-radius:50%}.bm-fc-select-material-temp__content__check-icon{color:#2f4eed}.bm-fc-select-material-temp__content__item-time{color:#9393a3;font-size:12px}.bm-fc-select-material-temp__content__name{margin-left:4px}.bm-fc-rect-outer{position:relative;height:100%;background-size:cover;background-position:center;background-repeat:no-repeat}.bm-fc-rect-outer .bm-fc-rect{position:absolute;border:1px solid #2f4eed;background-repeat:no-repeat;background-size:cover;background-position:center}.bm-fc-rect-outer .bm-fc-rect.is-ele{border:unset}.bm-form-basic-info__title{font-size:16px;font-weight:700;color:#242633}.bm-form-basic-info__summary{font-size:12px;color:#9393a3;margin-top:15px}.bm-form-basic-info__summary.mt10{margin-top:10px}.bm-form-basic-info__status{float:right;padding:0 12px;margin-top:8px;background:#f5f5f5;border-radius:2px;opacity:.9;border:1px solid #d9d9d9;color:#242633}.bm-form-basic-info__approval-status{float:right;margin-top:3px}.bm-fc-form-basic-info{margin-bottom:48px}
|