@kaiyinchem/ky-uniui 1.0.21 → 1.0.22

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.
@@ -52,7 +52,7 @@
52
52
  api: {
53
53
  type: String,
54
54
  default: '',
55
- required: true,
55
+ required: false,
56
56
  },
57
57
  // status 1:请求成功, -1:暂无数据, -2:请求失败, -3: 无网络
58
58
  status: {
@@ -121,7 +121,7 @@
121
121
  },
122
122
  },
123
123
  mounted() {
124
- if (!this.manual) {
124
+ if (!this.manual || !this.api) {
125
125
  this.init()
126
126
  }
127
127
  this.msg = this.errMsg
@@ -167,6 +167,9 @@
167
167
  this.filter = obj
168
168
  },
169
169
  async getList(noReload) {
170
+ if (!this.api) {
171
+ return
172
+ }
170
173
  this.loading = true
171
174
  this.setFilters(this.condition)
172
175
  let rows = []
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "style"
8
8
  ],
9
9
  "description": "an uniapp ui",
10
- "version": "1.0.21",
10
+ "version": "1.0.22",
11
11
  "repository": {
12
12
  "type": "git",
13
13
  "url": "git+https://github.com/yezipi/ky-uniui.git"