bm-admin-ui 1.2.42-alpha → 1.2.44-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.
@@ -14,71 +14,71 @@ var _export_sfc = (sfc, props) => {
14
14
  return target;
15
15
  };
16
16
 
17
- const _sfc_main = vue.defineComponent({
18
- name: 'BmCascader',
19
- components: { DownOutlined: iconsVue.DownOutlined },
20
- props: {
21
- tipType: {
22
- type: String,
23
- default: () => {
24
- return 'none'
25
- },
26
- },
27
- width: {
28
- type: Number,
29
- default: () => {
30
- return 200
31
- },
32
- },
33
- },
34
- setup(props, { emit, attrs }) {
35
- const nameArr = (arr) => {
36
- return arr.reduce(
37
- (acc, cur) => acc.concat(Array.isArray(cur) ? nameArr(cur) : cur),
38
- []
39
- )
40
- };
41
- const state = vue.reactive({
42
- labelNameList: '',
43
- visible: false,
44
- });
45
- const methods = {
46
- onmouseover() {
47
- state.labelNameList.length && (state.visible = true);
48
- },
49
- onmouseout() {
50
- state.labelNameList.length && (state.visible = false);
51
- },
52
- onchange(value, selectedOptions) {
53
- if (attrs.multiple === '' || attrs.multiple) {
54
- let res = selectedOptions.map((v, k) => {
55
- return v.map((e, i) => {
56
- return e.label
57
- })
58
- });
59
- state.labelNameList = nameArr(res).join(',');
60
- }
61
- },
62
- };
63
- vue.watch(
64
- () => state.labelNameList.length,
65
- (val) => {
66
- if (!val) {
67
- state.visible = false;
68
- }
69
- },
70
- { deep: true }
71
- );
72
- vue.onMounted(() => {
73
- attrs.value?.length &&
74
- (state.labelNameList = nameArr(attrs.value).join(','));
75
- });
76
- return {
77
- ...vue.toRefs(state),
78
- ...methods,
79
- }
80
- },
81
- });
17
+ const _sfc_main = vue.defineComponent({
18
+ name: 'BmCascader',
19
+ components: { DownOutlined: iconsVue.DownOutlined },
20
+ props: {
21
+ tipType: {
22
+ type: String,
23
+ default: () => {
24
+ return 'none'
25
+ },
26
+ },
27
+ width: {
28
+ type: Number,
29
+ default: () => {
30
+ return 200
31
+ },
32
+ },
33
+ },
34
+ setup(props, { emit, attrs }) {
35
+ const nameArr = (arr) => {
36
+ return arr.reduce(
37
+ (acc, cur) => acc.concat(Array.isArray(cur) ? nameArr(cur) : cur),
38
+ []
39
+ )
40
+ };
41
+ const state = vue.reactive({
42
+ labelNameList: '',
43
+ visible: false,
44
+ });
45
+ const methods = {
46
+ onmouseover() {
47
+ state.labelNameList.length && (state.visible = true);
48
+ },
49
+ onmouseout() {
50
+ state.labelNameList.length && (state.visible = false);
51
+ },
52
+ onchange(value, selectedOptions) {
53
+ if (attrs.multiple === '' || attrs.multiple) {
54
+ let res = selectedOptions.map((v, k) => {
55
+ return v.map((e, i) => {
56
+ return e.label
57
+ })
58
+ });
59
+ state.labelNameList = nameArr(res).join(',');
60
+ }
61
+ },
62
+ };
63
+ vue.watch(
64
+ () => state.labelNameList.length,
65
+ (val) => {
66
+ if (!val) {
67
+ state.visible = false;
68
+ }
69
+ },
70
+ { deep: true }
71
+ );
72
+ vue.onMounted(() => {
73
+ attrs.value?.length &&
74
+ (state.labelNameList = nameArr(attrs.value).join(','));
75
+ });
76
+ return {
77
+ ...vue.toRefs(state),
78
+ ...methods,
79
+ }
80
+ },
81
+ });
82
82
 
83
83
  const _hoisted_1 = {
84
84
  ref: "BmCascader",
@@ -99,18 +99,18 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
99
99
  ? (vue.openBlock(), vue.createBlock(_component_a_popover, {
100
100
  key: 0,
101
101
  visible: _ctx.visible,
102
- "get-popup-container":
103
- (triggerNode) => {
104
- return triggerNode.parentNode
105
- }
102
+ "get-popup-container":
103
+ (triggerNode) => {
104
+ return triggerNode.parentNode
105
+ }
106
106
 
107
107
  }, vue.createSlots({
108
108
  default: vue.withCtx(() => [
109
109
  vue.createVNode(_component_a_cascader, vue.mergeProps(_ctx.$attrs, {
110
- style: {
111
- width:
112
- _ctx.$attrs.multiple === '' || _ctx.$attrs.multiple ? _ctx.width + 'px' : 'auto',
113
- minWidth: _ctx.width + 'px',
110
+ style: {
111
+ width:
112
+ _ctx.$attrs.multiple === '' || _ctx.$attrs.multiple ? _ctx.width + 'px' : 'auto',
113
+ minWidth: _ctx.width + 'px',
114
114
  },
115
115
  "show-arrow": true,
116
116
  onMouseover: _ctx.onmouseover,
@@ -163,10 +163,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
163
163
  }, vue.createSlots({
164
164
  default: vue.withCtx(() => [
165
165
  vue.createVNode(_component_a_cascader, vue.mergeProps(_ctx.$attrs, {
166
- style: {
167
- width:
168
- _ctx.$attrs.multiple === '' || _ctx.$attrs.multiple ? _ctx.width + 'px' : 'auto',
169
- minWidth: _ctx.width + 'px',
166
+ style: {
167
+ width:
168
+ _ctx.$attrs.multiple === '' || _ctx.$attrs.multiple ? _ctx.width + 'px' : 'auto',
169
+ minWidth: _ctx.width + 'px',
170
170
  },
171
171
  "show-arrow": true,
172
172
  onMouseover: _ctx.onmouseover,
@@ -1078,7 +1078,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
1078
1078
  vue.createVNode(vue.unref(BmOverTooltips__default["default"]), {
1079
1079
  title: vue.unref(getShowValue)(item) || tmpForm.value[item.prop]
1080
1080
  }, null, 8, ["title"]),
1081
- vue.createCommentVNode(' <AutoTooltip\n :tooltip="getShowValue(item) || tmpForm[item.prop]"\n /> ')
1081
+ vue.createCommentVNode(' <AutoTooltip\r\n :tooltip="getShowValue(item) || tmpForm[item.prop]"\r\n /> ')
1082
1082
  ], 6)) : vue.createCommentVNode("v-if", true),
1083
1083
  item.type === "multiText" ? (vue.openBlock(), vue.createElementBlock("div", {
1084
1084
  key: 15,
@@ -287,7 +287,7 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
287
287
  vue.createElementVNode("span", {
288
288
  class: vue.normalizeClass(["opeator", { active: __props.isCustom }])
289
289
  }, [
290
- vue.createCommentVNode(' <CopyOutlined\n @click.stop="\n () => {\n copyCallback()\n }\n " />&nbsp;\u6682\u65F6\u5173\u95ED\u590D\u5236\u8282\u70B9 '),
290
+ vue.createCommentVNode(' <CopyOutlined\r\n @click.stop="\r\n () => {\r\n copyCallback()\r\n }\r\n " />&nbsp;\u6682\u65F6\u5173\u95ED\u590D\u5236\u8282\u70B9 '),
291
291
  vue.createVNode(vue.unref(iconsVue.CloseOutlined), {
292
292
  onClick: _cache[0] || (_cache[0] = vue.withModifiers(
293
293
  () => {