@kaiyinchem/ky-uniui 1.0.21 → 1.0.23

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.
@@ -276,8 +276,6 @@
276
276
  }
277
277
 
278
278
  &.textarea {
279
- display: block;
280
- justify-content: initial;
281
279
  &.left {
282
280
  .opt-item-main {
283
281
  align-items: flex-start;
@@ -285,6 +283,7 @@
285
283
  .opt-textarea {
286
284
  margin-top: 0;
287
285
  flex: 1;
286
+ text-align: left;
288
287
  }
289
288
  .opt-right {
290
289
  display: flex;
@@ -296,6 +295,7 @@
296
295
  display: flex;
297
296
  background-color: var(--bg-gray);
298
297
  border-radius: 12rpx;
298
+ flex: 1;
299
299
  .opt-uni-textarea {
300
300
  flex: 1;
301
301
  height: 120rpx;
@@ -304,14 +304,12 @@
304
304
  }
305
305
  }
306
306
  .opt-left {
307
- display: block;
308
- flex: none;
309
- }
310
- .opt-right {
311
- display: block;
312
- flex: none;
313
- justify-content: initial;
307
+ flex-shrink: 0;
314
308
  }
309
+ .opt-right {
310
+ display: flex;
311
+ flex: 1;
312
+ }
315
313
  }
316
314
 
317
315
  &:active {
@@ -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.23",
11
11
  "repository": {
12
12
  "type": "git",
13
13
  "url": "git+https://github.com/yezipi/ky-uniui.git"