lw-cdp-ui 1.2.13 → 1.2.14

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.
@@ -3,6 +3,7 @@
3
3
  title="节点编辑"
4
4
  direction="rtl"
5
5
  :append-to-body="true"
6
+ :size="600"
6
7
  :before-close="close">
7
8
  <div class="drawer-form">
8
9
  <el-collapse v-model="activeName"
@@ -177,8 +177,9 @@ export default {
177
177
  display: flex;
178
178
  flex-wrap: wrap;
179
179
  // gap: 10px;
180
+ padding-bottom: 10px;
180
181
  > div {
181
- margin-bottom: 10px;
182
+
182
183
  .title-name {
183
184
  margin-top: 0;
184
185
  }
@@ -128,6 +128,7 @@ export default {
128
128
  return {
129
129
  form: {},
130
130
  curItem: {},
131
+ menuList: [],
131
132
  scrollObserverEnabled: true,
132
133
  renderLoading: false,
133
134
  activeNames: '布局组件'
@@ -151,6 +152,29 @@ export default {
151
152
  immediate: true,
152
153
  deep: true
153
154
  },
155
+ custom: {
156
+ handler(val) {
157
+ this.menuList = []
158
+ if (val && val.length > 0) {
159
+ let menuIndex = MenuList.findIndex((item) => {
160
+ return item.title == '自定义组件'
161
+ })
162
+
163
+ if (menuIndex > -1) {
164
+ MenuList[menuIndex].list = val
165
+ } else {
166
+ let custom = {
167
+ title: '自定义组件',
168
+ list: val
169
+ }
170
+ MenuList.push(custom)
171
+ }
172
+ }
173
+ this.menuList = MenuList
174
+ },
175
+ immediate: true,
176
+ deep: true
177
+ },
154
178
  },
155
179
  computed: {
156
180
  hasConfig() {
@@ -158,26 +182,6 @@ export default {
158
182
  },
159
183
  hasValue() {
160
184
  return Object.keys(this.modelValue).length > 0
161
- },
162
- // 合并自定义组件
163
- menuList() {
164
- let custom = {}
165
- if (this.custom && this.custom.length > 0) {
166
- let menuIndex = MenuList.findIndex((item) => {
167
- return item.title == '自定义组件'
168
- })
169
-
170
- if (menuIndex > -1) {
171
- MenuList[menuIndex].list = this.custom
172
- } else {
173
- custom = {
174
- title: '自定义组件',
175
- list: this.custom
176
- }
177
- MenuList.push(custom)
178
- }
179
- }
180
- return MenuList
181
185
  }
182
186
  },
183
187
  mounted() {
@@ -8466,7 +8466,7 @@ function Yy(e, t, n, a, r, o) {
8466
8466
  _: 3
8467
8467
  }, 8, ["list", "disabled", "class"]);
8468
8468
  }
8469
- const $y = /* @__PURE__ */ be(Ky, [["render", Yy], ["__scopeId", "data-v-202f0c7c"]]), Wy = {
8469
+ const $y = /* @__PURE__ */ be(Ky, [["render", Yy], ["__scopeId", "data-v-e7e0739b"]]), Wy = {
8470
8470
  name: "TreeItem",
8471
8471
  components: {
8472
8472
  draggable: Tn
@@ -9791,6 +9791,7 @@ const v_ = /* @__PURE__ */ be(o_, [["render", g_], ["__scopeId", "data-v-ef9d371
9791
9791
  return {
9792
9792
  form: {},
9793
9793
  curItem: {},
9794
+ menuList: [],
9794
9795
  scrollObserverEnabled: !0,
9795
9796
  renderLoading: !1,
9796
9797
  activeNames: "布局组件"
@@ -9810,6 +9811,25 @@ const v_ = /* @__PURE__ */ be(o_, [["render", g_], ["__scopeId", "data-v-ef9d371
9810
9811
  },
9811
9812
  immediate: !0,
9812
9813
  deep: !0
9814
+ },
9815
+ custom: {
9816
+ handler(e) {
9817
+ if (this.menuList = [], e && e.length > 0) {
9818
+ let t = gn.findIndex((n) => n.title == "自定义组件");
9819
+ if (t > -1)
9820
+ gn[t].list = e;
9821
+ else {
9822
+ let n = {
9823
+ title: "自定义组件",
9824
+ list: e
9825
+ };
9826
+ gn.push(n);
9827
+ }
9828
+ }
9829
+ this.menuList = gn;
9830
+ },
9831
+ immediate: !0,
9832
+ deep: !0
9813
9833
  }
9814
9834
  },
9815
9835
  computed: {
@@ -9818,18 +9838,6 @@ const v_ = /* @__PURE__ */ be(o_, [["render", g_], ["__scopeId", "data-v-ef9d371
9818
9838
  },
9819
9839
  hasValue() {
9820
9840
  return Object.keys(this.modelValue).length > 0;
9821
- },
9822
- // 合并自定义组件
9823
- menuList() {
9824
- let e = {};
9825
- if (this.custom && this.custom.length > 0) {
9826
- let t = gn.findIndex((n) => n.title == "自定义组件");
9827
- t > -1 ? gn[t].list = this.custom : (e = {
9828
- title: "自定义组件",
9829
- list: this.custom
9830
- }, gn.push(e));
9831
- }
9832
- return gn;
9833
9841
  }
9834
9842
  },
9835
9843
  mounted() {
@@ -9920,7 +9928,7 @@ function w_(e, t, n, a, r, o) {
9920
9928
  "onUpdate:modelValue": t[0] || (t[0] = (B) => r.activeNames = B)
9921
9929
  }, {
9922
9930
  default: _(() => [
9923
- (g(!0), T(j, null, re(o.menuList, (B) => (g(), I(i, {
9931
+ (g(!0), T(j, null, re(r.menuList, (B) => (g(), I(i, {
9924
9932
  title: B.title,
9925
9933
  name: B.title,
9926
9934
  class: "menu-list-title"
@@ -10012,7 +10020,7 @@ function w_(e, t, n, a, r, o) {
10012
10020
  _: 3
10013
10021
  }, 8, ["style"]);
10014
10022
  }
10015
- const k_ = /* @__PURE__ */ be(b_, [["render", w_], ["__scopeId", "data-v-3752ecb4"]]), S_ = {
10023
+ const k_ = /* @__PURE__ */ be(b_, [["render", w_], ["__scopeId", "data-v-65cb0380"]]), S_ = {
10016
10024
  props: {
10017
10025
  modelValue: { type: String, default: "" },
10018
10026
  // 传入的字符串
@@ -18347,6 +18355,7 @@ function _V(e, t, n, a, r, o) {
18347
18355
  title: "节点编辑",
18348
18356
  direction: "rtl",
18349
18357
  "append-to-body": !0,
18358
+ size: 600,
18350
18359
  "before-close": o.close
18351
18360
  }, {
18352
18361
  footer: _(() => [
@@ -18440,7 +18449,7 @@ function _V(e, t, n, a, r, o) {
18440
18449
  _: 1
18441
18450
  }, 8, ["modelValue", "before-close"]);
18442
18451
  }
18443
- const wV = /* @__PURE__ */ be(bV, [["render", _V], ["__scopeId", "data-v-6dfcf21e"]]), jh = [
18452
+ const wV = /* @__PURE__ */ be(bV, [["render", _V], ["__scopeId", "data-v-5aff8d01"]]), jh = [
18444
18453
  {
18445
18454
  title: "ET2L节点",
18446
18455
  list: [