lw-cdp-ui 1.0.50 → 1.0.51

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.
@@ -106,6 +106,7 @@
106
106
  default-first-option
107
107
  :placeholder="item.options?.placeholder || ''"
108
108
  :clearable="item.options?.clearable"
109
+ :disabled="item.options.disabled"
109
110
  filterable
110
111
  style="width: 100%;">
111
112
  <el-option v-for="option in item.options.items"
@@ -121,6 +122,7 @@
121
122
  default-first-option
122
123
  :placeholder="item.options?.placeholder || ''"
123
124
  :clearable="item.options?.clearable"
125
+ :disabled="item.options.disabled"
124
126
  filterable
125
127
  style="width: 100%;">
126
128
  <el-option v-for="option in item.options.items"
@@ -332,12 +332,16 @@ export default {
332
332
  this.menu = this.filterUrl(menu);
333
333
  this.showThis()
334
334
  this.$store.commit("LOAD_USER_FROM_LOCAL_STORAGE")
335
+
336
+ // 挂载菜单订阅
337
+ this.$bus.$on('setMenu', (menu) => {
338
+ this.menu = this.filterUrl(menu)
339
+ console.log(this.menu)
340
+ })
335
341
  },
336
342
  watch: {
337
343
  async $route() {
338
344
  this.showThis()
339
- var menu = this.$router.sc_getMenu();
340
- this.menu = this.filterUrl(menu);
341
345
  },
342
346
  '$i18n.locale'() {
343
347
  var menu = this.$router.sc_getMenu();