@truenewx/tnxvue3 3.0.8 → 3.0.9

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@truenewx/tnxvue3",
3
- "version": "3.0.8",
3
+ "version": "3.0.9",
4
4
  "description": "互联网技术解决方案:Vue3扩展支持",
5
5
  "private": false,
6
6
  "publishConfig": {
@@ -25,7 +25,7 @@
25
25
  "vue-router": "~4.4.0"
26
26
  },
27
27
  "dependencies": {
28
- "@truenewx/tnxcore": "3.0.6",
28
+ "@truenewx/tnxcore": "3.0.7",
29
29
  "@element-plus/icons-vue": "2.3.1",
30
30
  "async-validator": "4.2.5",
31
31
  "mitt": "3.0.1"
@@ -93,7 +93,7 @@ export default {
93
93
  this.initModel();
94
94
  } else {
95
95
  let vm = this;
96
- window.tnx.app.rpc.loadEnumItems(this.type, this.subtype, function (items) {
96
+ window.tnx.app.rpc.resolveEnumItems(this.type, this.subtype, function (items) {
97
97
  vm.items = items;
98
98
  vm.initModel();
99
99
  }, {
@@ -19,6 +19,7 @@
19
19
  <template v-if="items">
20
20
  <BDropdownItem v-for="(item, index) of items" :key="index"
21
21
  :active="isSelected(item[valueName])"
22
+ :disabled="item.disabled"
22
23
  @click="select(item[valueName])"
23
24
  >
24
25
  <slot name="option" :item="item" v-if="$slots.option"></slot>
@@ -116,7 +116,7 @@ export default {
116
116
  this.initModel();
117
117
  } else {
118
118
  let vm = this;
119
- window.tnx.app.rpc.loadEnumItems(this.type, this.subtype, function (items) {
119
+ window.tnx.app.rpc.resolveEnumItems(this.type, this.subtype, function (items) {
120
120
  vm.items = items;
121
121
  vm.initModel();
122
122
  }, {
@@ -26,7 +26,7 @@ export default {
26
26
  };
27
27
  },
28
28
  mounted() {
29
- window.tnx.app.rpc.loadEnumType(this.type, this.subtype, enumType => {
29
+ window.tnx.app.rpc.resolveEnumType(this.type, this.subtype, enumType => {
30
30
  this.item = enumType.items.find(item => item.key === this.itemKey);
31
31
  }, {
32
32
  app: this.app,
package/src/tnxvue.js CHANGED
@@ -2,8 +2,8 @@
2
2
  /**
3
3
  * 基于Vue 3的扩展支持
4
4
  */
5
- import tnxcore from '@truenewx/tnxcore';
6
- // import tnxcore from '../../core/src/tnxcore';
5
+ // import tnxcore from '@truenewx/tnxcore';
6
+ import tnxcore from '../../core/src/tnxcore';
7
7
  import validator from './tnxvue-validator';
8
8
  import createRouter from './tnxvue-router';
9
9
  import Text from './text/Text.vue';