bri-components 1.2.64 → 1.2.66

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.
@@ -166,7 +166,7 @@
166
166
  v-else
167
167
  class="table-nodata"
168
168
  >
169
- <td :colspan="columns.length">暂无内容……</td>
169
+ <td :colspan="columns.length">暂无数据…</td>
170
170
  </tr>
171
171
  </tbody>
172
172
  </table>
@@ -69,7 +69,7 @@
69
69
  },
70
70
  mode: {
71
71
  type: String,
72
- default: "large" // small middle
72
+ default: "middle" // small middle
73
73
  },
74
74
  showLoadingText: {
75
75
  type: Boolean,
@@ -81,7 +81,7 @@
81
81
  v-else
82
82
  class="nodata"
83
83
  >
84
- 暂无内容
84
+ 暂无内容...
85
85
  </div>
86
86
  </div>
87
87
  </div>
@@ -6,7 +6,7 @@
6
6
  'DshFormUnit-required': canEdit && formItem._required,
7
7
  'DshFormUnit-line': formItem._line
8
8
  },
9
- formControlClass,
9
+ formControlClass
10
10
  ]"
11
11
  :style="{
12
12
  width: `calc(${(formItem._br ? (formItem._span || 24)/24 : 1) * 100}% - 12px)`,
@@ -155,7 +155,9 @@
155
155
  ? formItem._tipsRender.call(this, formItem, formData)
156
156
  : formItem._openTip
157
157
  ? (h) => {
158
- return h("span", {}, [
158
+ return h("span", {
159
+ class: "DshFormUnit-tip"
160
+ }, [
159
161
  h("Icon", {
160
162
  props: {
161
163
  type: "md-help-circle"
@@ -165,37 +167,18 @@
165
167
  },
166
168
  on: {
167
169
  click: () => {
168
- if (formItem._tipKind === "dynamic" && !formItem._tipContent) {
169
- if (formItem._tipUrl) {
170
- this.$https({
171
- url: {
172
- module: "customPage",
173
- name: formItem._tipUrl
174
- },
175
- params: {
176
- formData: formData,
177
- propsObj: formItem
178
- },
179
- callback: res => {
180
- this.showTipModal = true;
181
- formItem._tipContent = res;
182
- }
183
- });
184
- }
185
- } else {
186
- this.showTipModal = true;
187
- }
170
+ this.clickOpenTip(formItem, formData);
188
171
  }
189
172
  }
190
173
  }),
191
174
 
192
175
  h("dsh-modal", {
176
+ class: "DshFormUnit-tip-modal",
193
177
  props: {
194
178
  value: this.showTipModal,
195
179
  mode: "small",
196
180
  propsObj: {
197
181
  title: "温馨提示",
198
- class: "DshFormUnit-modal",
199
182
  showSlotClose: false,
200
183
  maskClosable: true
201
184
  }
@@ -234,6 +217,29 @@
234
217
  ]);
235
218
  }
236
219
  : undefined;
220
+ },
221
+ // 是否打开tip弹窗
222
+ clickOpenTip (formItem, formData) {
223
+ if (formItem._tipKind === "dynamic" && !formItem._tipContent) {
224
+ if (formItem._tipUrl) {
225
+ this.$https({
226
+ url: {
227
+ module: "customPage",
228
+ name: formItem._tipUrl
229
+ },
230
+ params: {
231
+ formData: formData,
232
+ propsObj: formItem
233
+ },
234
+ callback: res => {
235
+ this.showTipModal = true;
236
+ formItem._tipContent = res;
237
+ }
238
+ });
239
+ }
240
+ } else {
241
+ this.showTipModal = true;
242
+ }
237
243
  }
238
244
  }
239
245
  };
@@ -245,28 +251,28 @@
245
251
  padding: 0px 10px 10px;
246
252
 
247
253
  &-label {
248
- min-width: 50px;
249
- padding: 5px 0px 5px;
254
+ padding: 5px 0px;
250
255
  line-height: 20px;
251
256
  font-size: @smallSize;
257
+ position: relative;
252
258
  display: flex;
253
259
  align-items: center;
254
260
 
255
261
  &-left {
256
- flex: 2;
257
- min-width: 150px;
258
- position: relative;
262
+ flex: 3;
263
+ min-width: 0px;
259
264
  }
260
265
 
261
266
  &-right {
262
267
  flex: 1;
263
268
  min-width: 0px;
269
+ padding-left: 10px;
264
270
  text-align: right;
265
271
  }
266
272
 
267
273
  &-name {
268
- font-size: @textSize;
269
274
  .dsh-ellipsis();
275
+ font-size: @textSize;
270
276
 
271
277
  &-edit {
272
278
  color: @textColor;
@@ -288,13 +294,14 @@
288
294
  }
289
295
 
290
296
  &-control {
291
- overflow: hidden;
297
+ // overflow: hidden;
292
298
 
293
299
  &-component {
294
300
 
295
301
  }
296
302
  }
297
303
 
304
+ // 左右显示时
298
305
  &-line {
299
306
  display: flex;
300
307
  justify-content: space-between;
@@ -302,10 +309,9 @@
302
309
 
303
310
  .DshFormUnit-label {
304
311
  max-width: 280px;
305
- margin: 0px 8px 0px -10px; // fixedbug:line模式下显示必填
312
+ margin: 0px 8px 0px -10px; // line模式下显示必填
306
313
  padding-left: 10px;
307
314
  font-size: @textSize;
308
- overflow: hidden;
309
315
 
310
316
  &-left {
311
317
  flex: 1;
@@ -330,7 +336,7 @@
330
336
  }
331
337
 
332
338
  &-required {
333
- .DshFormUnit-label-name:before {
339
+ .DshFormUnit-label::before {
334
340
  position: absolute;
335
341
  left: -10px;
336
342
 
@@ -345,29 +351,32 @@
345
351
  }
346
352
  }
347
353
 
348
- &-modal {
349
- .wrap {
350
- width: 100%;
351
- height: 100%;
352
- display: flex;
353
- flex-direction: column;
354
-
355
- &-content {
356
- flex: 1;
357
- min-height: 0px;
358
- padding: 0px 12px;
359
- overflow: auto;
360
- }
354
+ // 提示框的
355
+ &-tip {
356
+ &-modal {
357
+ .wrap {
358
+ width: 100%;
359
+ height: 100%;
360
+ display: flex;
361
+ flex-direction: column;
362
+
363
+ &-content {
364
+ flex: 1;
365
+ min-height: 0px;
366
+ padding: 0px 12px;
367
+ overflow: auto;
368
+ }
361
369
 
362
- &-btns {
363
- margin: 10px 0px;
364
- text-align: right;
370
+ &-btns {
371
+ margin: 10px 0px;
372
+ text-align: right;
365
373
 
366
- .ivu-btn {
367
- font-size: 16px;
368
- font-family: Microsoft YaHei-Semibold, Microsoft YaHei;
369
- font-weight: 600;
370
- border-radius: 4px;
374
+ .ivu-btn {
375
+ font-size: 16px;
376
+ font-family: Microsoft YaHei-Semibold, Microsoft YaHei;
377
+ font-weight: 600;
378
+ border-radius: 4px;
379
+ }
371
380
  }
372
381
  }
373
382
  }
@@ -112,9 +112,8 @@
112
112
  }
113
113
  }
114
114
 
115
- &-noData {
116
- padding: 10px 0px;
117
- text-align: center;
115
+ &-nodata {
116
+ #dsh-nodata();
118
117
  }
119
118
  }
120
119
  }
@@ -6,13 +6,21 @@
6
6
  color: @textColor;
7
7
  }
8
8
 
9
- .dsh-tip {
9
+ #dsh-nodata {
10
10
  width: 100%;
11
11
  padding: 20px 10px;
12
12
  text-align: center;
13
13
  font-size: 14px;
14
14
  font-weight: 500;
15
- color: @textColor;
15
+ color: @placeholderColor;
16
+ }
17
+ #dsh-nodata-large {
18
+ width: 100%;
19
+ padding: 20px 10px;
20
+ text-align: center;
21
+ font-size: 16px;
22
+ font-weight: 500;
23
+ color: @placeholderColor;
16
24
  }
17
25
 
18
26
  .dsh-subtip {
@@ -21,7 +29,6 @@
21
29
  font-size: 12px;
22
30
  font-weight: 500;
23
31
  color: @placeholderColor;
24
- // background-color: #f3f3f3;
25
32
  }
26
33
 
27
34
  // 出现三个点