@tdesign/uniapp 0.7.1 → 0.7.2

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.
Files changed (96) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/action-sheet/action-sheet.vue +3 -5
  3. package/dist/avatar/avatar.vue +6 -6
  4. package/dist/avatar-group/avatar-group.vue +1 -3
  5. package/dist/back-top/back-top.vue +13 -15
  6. package/dist/badge/badge.vue +1 -3
  7. package/dist/button/button.vue +15 -14
  8. package/dist/calendar/README.en-US.md +1 -0
  9. package/dist/calendar/README.md +1 -0
  10. package/dist/calendar/calendar-header.vue +1 -3
  11. package/dist/calendar/calendar.vue +28 -19
  12. package/dist/calendar/props.ts +5 -0
  13. package/dist/calendar/template.vue +1 -3
  14. package/dist/calendar/type.ts +6 -0
  15. package/dist/cascader/cascader.vue +1 -3
  16. package/dist/cell/cell.vue +51 -35
  17. package/dist/cell-group/cell-group.vue +1 -3
  18. package/dist/check-tag/check-tag.vue +12 -15
  19. package/dist/checkbox/checkbox.vue +13 -15
  20. package/dist/col/col.vue +1 -3
  21. package/dist/collapse/collapse.vue +1 -3
  22. package/dist/collapse-panel/collapse-panel.vue +1 -3
  23. package/dist/color-picker/color-picker.vue +2 -4
  24. package/dist/color-picker/template.vue +1 -3
  25. package/dist/common/src/instantiationDecorator.js +6 -0
  26. package/dist/count-down/count-down.vue +2 -4
  27. package/dist/date-time-picker/date-time-picker.vue +1 -3
  28. package/dist/dialog/dialog.vue +67 -69
  29. package/dist/divider/divider.vue +1 -3
  30. package/dist/draggable/draggable.vue +1 -3
  31. package/dist/drawer/drawer.vue +1 -3
  32. package/dist/dropdown-item/dropdown-item.vue +1 -3
  33. package/dist/dropdown-menu/dropdown-menu.vue +12 -14
  34. package/dist/empty/empty.vue +1 -3
  35. package/dist/fab/fab.vue +1 -3
  36. package/dist/footer/footer.vue +1 -3
  37. package/dist/form/form.vue +1 -3
  38. package/dist/form-item/form-item.css +16 -11
  39. package/dist/form-item/form-item.vue +2 -7
  40. package/dist/grid/grid.vue +1 -3
  41. package/dist/grid-item/grid-item.vue +1 -3
  42. package/dist/guide/content.vue +1 -3
  43. package/dist/guide/guide.vue +3 -8
  44. package/dist/icon/icon.vue +1 -3
  45. package/dist/image/image.vue +1 -3
  46. package/dist/image-viewer/image-viewer.vue +27 -30
  47. package/dist/indexes/indexes.vue +5 -7
  48. package/dist/indexes-anchor/indexes-anchor.vue +1 -3
  49. package/dist/input/input.vue +31 -31
  50. package/dist/link/link.vue +25 -26
  51. package/dist/loading/loading.vue +2 -2
  52. package/dist/message/index.d.ts +1 -1
  53. package/dist/message/message.interface.ts +2 -1
  54. package/dist/message-item/message-item.vue +34 -36
  55. package/dist/mixins/page-scroll.js +1 -1
  56. package/dist/navbar/navbar.vue +46 -33
  57. package/dist/notice-bar/notice-bar.vue +24 -26
  58. package/dist/overlay/overlay.vue +5 -7
  59. package/dist/picker/picker.vue +3 -4
  60. package/dist/picker-item/picker-item.vue +2 -4
  61. package/dist/popover/popover.vue +1 -3
  62. package/dist/popup/popup.vue +1 -3
  63. package/dist/progress/progress.vue +1 -3
  64. package/dist/pull-down-refresh/pull-down-refresh.vue +13 -15
  65. package/dist/qrcode/components/qrcode-canvas/qrcode-canvas.vue +1 -3
  66. package/dist/qrcode/components/qrcode-status/qrcode-status.vue +1 -3
  67. package/dist/qrcode/qrcode.vue +1 -3
  68. package/dist/radio/radio.vue +17 -19
  69. package/dist/rate/rate.vue +1 -3
  70. package/dist/result/result.vue +1 -3
  71. package/dist/row/row.vue +1 -3
  72. package/dist/search/search.vue +8 -3
  73. package/dist/side-bar/side-bar.vue +1 -3
  74. package/dist/side-bar-item/side-bar-item.vue +12 -15
  75. package/dist/skeleton/skeleton.vue +2 -4
  76. package/dist/slider/slider.vue +1 -3
  77. package/dist/step-item/step-item.vue +1 -3
  78. package/dist/stepper/stepper.vue +1 -3
  79. package/dist/steps/steps.vue +1 -2
  80. package/dist/sticky/sticky.vue +1 -3
  81. package/dist/swipe-cell/swipe-cell.vue +2 -5
  82. package/dist/swiper/swiper.vue +1 -3
  83. package/dist/swiper-nav/swiper-nav.vue +1 -3
  84. package/dist/switch/switch.vue +1 -3
  85. package/dist/tab-bar/tab-bar.vue +2 -1
  86. package/dist/tab-bar-item/tab-bar-item.vue +22 -25
  87. package/dist/tab-panel/tab-panel.vue +1 -3
  88. package/dist/tabs/tabs.vue +1 -2
  89. package/dist/tag/tag.vue +23 -26
  90. package/dist/textarea/textarea.vue +1 -3
  91. package/dist/toast/toast.vue +12 -14
  92. package/dist/transition/transition.vue +1 -3
  93. package/dist/tree-select/tree-select.vue +6 -9
  94. package/dist/upload/upload.vue +1 -3
  95. package/dist/watermark/watermark.vue +1 -2
  96. package/package.json +1 -1
@@ -2,15 +2,15 @@
2
2
  <view
3
3
  :id="tId"
4
4
  :style="tools._style([customStyle])"
5
- :class="tools.cls(classPrefix, [placement, theme, ['checked', dataChecked], ['block', block], ['disabled', _disabled]]) + ' ' + tClass"
5
+ :class="tools.cls(classPrefix, [placement, theme, ['checked', dataChecked], ['block', block], ['disabled', iDisabled]]) + ' ' + tClass"
6
6
  aria-role="checkbox"
7
7
  :aria-checked="dataChecked ? (dataIndeterminate ? 'mixed' : true) : false"
8
- :aria-disabled="_disabled ? true : false"
8
+ :aria-disabled="iDisabled ? true : false"
9
9
  @click.stop="handleTap"
10
10
  >
11
11
  <view
12
12
  v-if="theme == 'default'"
13
- :class="tools.cls(classPrefix + '__icon', [placement, ['checked', dataChecked], ['disabled', _disabled]]) + ' ' + tClassIcon"
13
+ :class="tools.cls(classPrefix + '__icon', [placement, ['checked', dataChecked], ['disabled', iDisabled]]) + ' ' + tClassIcon"
14
14
  >
15
15
  <slot
16
16
  v-if="icon === 'slot'"
@@ -38,7 +38,7 @@
38
38
  />
39
39
  <view
40
40
  v-else-if="!dataChecked && (icon == 'circle' || icon == 'rectangle')"
41
- :class="tools.cls(classPrefix + '__icon-' + icon, [['disabled', _disabled]])"
41
+ :class="tools.cls(classPrefix + '__icon-' + icon, [['disabled', iDisabled]])"
42
42
  />
43
43
  <view
44
44
  v-if="!dataChecked && icon == 'line'"
@@ -54,7 +54,7 @@
54
54
  <view
55
55
  :class="
56
56
  tools.cls(classPrefix + '__title', [
57
- ['disabled', _disabled],
57
+ ['disabled', iDisabled],
58
58
  ['checked', dataChecked]
59
59
  ]) +
60
60
  ' ' +
@@ -69,7 +69,7 @@
69
69
  <slot name="label" />
70
70
  </view>
71
71
  <view
72
- :class="tools.cls(classPrefix + '__description', [['disabled', _disabled]]) + ' ' + tClassContent"
72
+ :class="tools.cls(classPrefix + '__description', [['disabled', iDisabled]]) + ' ' + tClassContent"
73
73
  :style="'-webkit-line-clamp:' + maxContentRow"
74
74
  >
75
75
  <block v-if="content">
@@ -132,7 +132,7 @@ export default uniComponent({
132
132
  return {
133
133
  prefix,
134
134
  classPrefix: name,
135
- _disabled: false,
135
+ iDisabled: false,
136
136
  tools,
137
137
 
138
138
  dataBorderless: this.borderless,
@@ -166,7 +166,7 @@ export default uniComponent({
166
166
  },
167
167
  disabled: {
168
168
  handler(v) {
169
- this._disabled = v;
169
+ this.iDisabled = v;
170
170
  },
171
171
  immediate: true,
172
172
  },
@@ -183,7 +183,7 @@ export default uniComponent({
183
183
  const valueSet = new Set(value);
184
184
  const checkedFromParent = valueSet.has(this.value);
185
185
  const data = {
186
- _disabled: this.disabled == null ? disabled : this.disabled,
186
+ iDisabled: this.disabled == null ? disabled : this.disabled,
187
187
  };
188
188
 
189
189
  data.dataBorderless = !!(coalesce(this.borderless, borderless));
@@ -210,10 +210,10 @@ export default uniComponent({
210
210
  });
211
211
  },
212
212
  handleTap(e) {
213
- const { _disabled, readonly, contentDisabled } = this;
213
+ const { iDisabled, readonly, contentDisabled } = this;
214
214
  const { target } = e.currentTarget.dataset;
215
215
 
216
- if (_disabled || readonly || (target === 'text' && contentDisabled)) return;
216
+ if (iDisabled || readonly || (target === 'text' && contentDisabled)) return;
217
217
 
218
218
  const { value, label, checkAll, dataIndeterminate } = this;
219
219
  const checked = !this.dataChecked;
@@ -228,11 +228,9 @@ export default uniComponent({
228
228
  },
229
229
 
230
230
  setDisabled(disabled) {
231
- this._disabled = this.disabled || disabled;
231
+ this.iDisabled = this.disabled || disabled;
232
232
  },
233
233
  },
234
234
  });
235
235
  </script>
236
- <style scoped>
237
- @import './checkbox.css';
238
- </style>
236
+ <style scoped src="./checkbox.css"></style>
package/dist/col/col.vue CHANGED
@@ -46,9 +46,7 @@ export default uniComponent({
46
46
  });
47
47
 
48
48
  </script>
49
- <style scoped>
50
- @import './col.css';
51
- </style>
49
+ <style scoped src="./col.css"></style>
52
50
  <style scoped>
53
51
  .t-col {
54
52
  /* 适配 qq 小程序等 */
@@ -114,6 +114,4 @@ export default uniComponent({
114
114
  },
115
115
  });
116
116
  </script>
117
- <style scoped>
118
- @import './collapse.css';
119
- </style>
117
+ <style scoped src="./collapse.css"></style>
@@ -233,6 +233,4 @@ export default uniComponent({
233
233
  });
234
234
 
235
235
  </script>
236
- <style scoped>
237
- @import './collapse-panel.css';
238
- </style>
236
+ <style scoped src="./collapse-panel.css"></style>
@@ -234,7 +234,7 @@ export default uniComponent({
234
234
  }, 33);
235
235
  this.debouncedUpdateEleRect = debounce(e => this.updateEleRect(e), 150);
236
236
  },
237
- beforeUnMount() {
237
+ beforeUnmount() {
238
238
  clearTimeout(this.timer);
239
239
  },
240
240
  methods: {
@@ -496,6 +496,4 @@ export default uniComponent({
496
496
  });
497
497
 
498
498
  </script>
499
- <style scoped>
500
- @import './color-picker.css';
501
- </style>
499
+ <style scoped src="./color-picker.css"></style>
@@ -193,6 +193,4 @@ export default {
193
193
  };
194
194
  </script>
195
195
 
196
- <style scoped>
197
- @import './color-picker.css';
198
- </style>
196
+ <style scoped src="./color-picker.css"></style>
@@ -80,6 +80,12 @@ export const toComponent = function (options) {
80
80
  });
81
81
  };
82
82
 
83
+ // #ifdef Vue2
84
+ if (options.beforeUnmount) {
85
+ options.beforeDestroy = options.beforeUnmount;
86
+ }
87
+ // #endif
88
+
83
89
  options.methods._trigger = function (evtName, detail, opts) {
84
90
  const target = controlledProps.find(item => item.event === evtName);
85
91
 
@@ -83,7 +83,7 @@ export default uniComponent({
83
83
  mounted() {
84
84
 
85
85
  },
86
- beforeUnMount() {
86
+ beforeUnmount() {
87
87
  if (this.timeoutId) {
88
88
  clearTimeout(this.timeoutId);
89
89
  this.timeoutId = null;
@@ -161,6 +161,4 @@ export default uniComponent({
161
161
  },
162
162
  });
163
163
  </script>
164
- <style scoped>
165
- @import './count-down.css';
166
- </style>
164
+ <style scoped src="./count-down.css"></style>
@@ -565,6 +565,4 @@ export default uniComponent({
565
565
 
566
566
  });
567
567
  </script>
568
- <style scoped>
569
- @import './date-time-picker.css';
570
- </style>
568
+ <style scoped src="./date-time-picker.css"></style>
@@ -118,39 +118,39 @@
118
118
  </t-button>
119
119
  </template>
120
120
  <slot name="actions" />
121
- <template v-if="_cancel">
121
+ <template v-if="innerCancel">
122
122
  <t-button
123
- :t-id="_cancel.tId"
124
- :custom-style="_cancel.style"
125
- :block="_cancel.block"
126
- :t-class="_cancel.tClass"
127
- :class="_cancel.class"
128
- :disabled="_cancel.disabled"
123
+ :t-id="innerCancel.tId"
124
+ :custom-style="innerCancel.style"
125
+ :block="innerCancel.block"
126
+ :t-class="innerCancel.tClass"
127
+ :class="innerCancel.class"
128
+ :disabled="innerCancel.disabled"
129
129
  :data-type="'cancel'"
130
- :data-extra="_cancel.index"
131
- :custom-dataset="_cancel.customDataset"
132
- :content="_cancel.content"
133
- :icon="_cancel.icon"
134
- :loading="_cancel.loading"
135
- :loading-props="_cancel.loadingProps"
136
- :theme="_cancel.theme"
137
- :ghost="_cancel.ghost"
138
- :shape="_cancel.shape"
139
- :size="_cancel.size"
140
- :variant="_cancel.variant"
141
- :open-type="_cancel.openType"
142
- :hover-class="_cancel.hoverClass"
143
- :hover-stop-propagation="_cancel.hoverStopPropagation"
144
- :hover-start-time="_cancel.hoverStartTime"
145
- :hover-stay-time="_cancel.hoverStayTime"
146
- :lang="_cancel.lang"
147
- :session-from="_cancel.sessionFrom"
148
- :send-message-title="_cancel.sendMessageTitle"
149
- :send-message-path="_cancel.sendMessagePath"
150
- :send-message-img="_cancel.sendMessageImg"
151
- :app-parameter="_cancel.appParameter"
152
- :show-message-card="_cancel.showMessageCard"
153
- :aria-label="_cancel.ariaLabel"
130
+ :data-extra="innerCancel.index"
131
+ :custom-dataset="innerCancel.customDataset"
132
+ :content="innerCancel.content"
133
+ :icon="innerCancel.icon"
134
+ :loading="innerCancel.loading"
135
+ :loading-props="innerCancel.loadingProps"
136
+ :theme="innerCancel.theme"
137
+ :ghost="innerCancel.ghost"
138
+ :shape="innerCancel.shape"
139
+ :size="innerCancel.size"
140
+ :variant="innerCancel.variant"
141
+ :open-type="innerCancel.openType"
142
+ :hover-class="innerCancel.hoverClass"
143
+ :hover-stop-propagation="innerCancel.hoverStopPropagation"
144
+ :hover-start-time="innerCancel.hoverStartTime"
145
+ :hover-stay-time="innerCancel.hoverStayTime"
146
+ :lang="innerCancel.lang"
147
+ :session-from="innerCancel.sessionFrom"
148
+ :send-message-title="innerCancel.sendMessageTitle"
149
+ :send-message-path="innerCancel.sendMessagePath"
150
+ :send-message-img="innerCancel.sendMessageImg"
151
+ :app-parameter="innerCancel.appParameter"
152
+ :show-message-card="innerCancel.showMessageCard"
153
+ :aria-label="innerCancel.ariaLabel"
154
154
  @click="onCancel($event, { type: 'action', extra: 0 })"
155
155
  @getuserinfo="onCancel($event, { type: 'action', extra: 0 })"
156
156
  @contact="onCancel($event, { type: 'action', extra: 0 })"
@@ -160,43 +160,43 @@
160
160
  @launchapp="onCancel($event, { type: 'action', extra: 0 })"
161
161
  @agreeprivacyauthorization="onCancel($event, { type: 'action', extra: 0 })"
162
162
  >
163
- <slot v-if="_cancel.useDefaultSlot || false" />
163
+ <slot v-if="innerCancel.useDefaultSlot || false" />
164
164
  </t-button>
165
165
  </template>
166
166
  <slot name="cancel-btn" />
167
- <template v-if="_confirm">
167
+ <template v-if="innerConfirm">
168
168
  <t-button
169
- :t-id="_confirm.tId"
170
- :custom-style="_confirm.style"
171
- :block="_confirm.block"
172
- :t-class="_confirm.tClass"
173
- :class="_confirm.class"
174
- :disabled="_confirm.disabled"
169
+ :t-id="innerConfirm.tId"
170
+ :custom-style="innerConfirm.style"
171
+ :block="innerConfirm.block"
172
+ :t-class="innerConfirm.tClass"
173
+ :class="innerConfirm.class"
174
+ :disabled="innerConfirm.disabled"
175
175
  :data-type="'confirm'"
176
- :data-extra="_confirm.index"
177
- :custom-dataset="_confirm.customDataset"
178
- :content="_confirm.content"
179
- :icon="_confirm.icon"
180
- :loading="_confirm.loading"
181
- :loading-props="_confirm.loadingProps"
182
- :theme="_confirm.theme || 'primary'"
183
- :ghost="_confirm.ghost"
184
- :shape="_confirm.shape"
185
- :size="_confirm.size"
186
- :variant="_confirm.variant"
187
- :open-type="_confirm.openType"
188
- :hover-class="_confirm.hoverClass"
189
- :hover-stop-propagation="_confirm.hoverStopPropagation"
190
- :hover-start-time="_confirm.hoverStartTime"
191
- :hover-stay-time="_confirm.hoverStayTime"
192
- :lang="_confirm.lang"
193
- :session-from="_confirm.sessionFrom"
194
- :send-message-title="_confirm.sendMessageTitle"
195
- :send-message-path="_confirm.sendMessagePath"
196
- :send-message-img="_confirm.sendMessageImg"
197
- :app-parameter="_confirm.appParameter"
198
- :show-message-card="_confirm.showMessageCard"
199
- :aria-label="_confirm.ariaLabel"
176
+ :data-extra="innerConfirm.index"
177
+ :custom-dataset="innerConfirm.customDataset"
178
+ :content="innerConfirm.content"
179
+ :icon="innerConfirm.icon"
180
+ :loading="innerConfirm.loading"
181
+ :loading-props="innerConfirm.loadingProps"
182
+ :theme="innerConfirm.theme || 'primary'"
183
+ :ghost="innerConfirm.ghost"
184
+ :shape="innerConfirm.shape"
185
+ :size="innerConfirm.size"
186
+ :variant="innerConfirm.variant"
187
+ :open-type="innerConfirm.openType"
188
+ :hover-class="innerConfirm.hoverClass"
189
+ :hover-stop-propagation="innerConfirm.hoverStopPropagation"
190
+ :hover-start-time="innerConfirm.hoverStartTime"
191
+ :hover-stay-time="innerConfirm.hoverStayTime"
192
+ :lang="innerConfirm.lang"
193
+ :session-from="innerConfirm.sessionFrom"
194
+ :send-message-title="innerConfirm.sendMessageTitle"
195
+ :send-message-path="innerConfirm.sendMessagePath"
196
+ :send-message-img="innerConfirm.sendMessageImg"
197
+ :app-parameter="innerConfirm.appParameter"
198
+ :show-message-card="innerConfirm.showMessageCard"
199
+ :aria-label="innerConfirm.ariaLabel"
200
200
  @click="onConfirm($event, { type: 'action', extra: 0 })"
201
201
  @getuserinfo="onConfirm($event, { type: 'action', extra: 0 })"
202
202
  @contact="onConfirm($event, { type: 'action', extra: 0 })"
@@ -206,7 +206,7 @@
206
206
  @launchapp="onConfirm($event, { type: 'action', extra: 0 })"
207
207
  @agreeprivacyauthorization="onConfirm($event, { type: 'action', extra: 0 })"
208
208
  >
209
- <slot v-if="_confirm.useDefaultSlot || false" />
209
+ <slot v-if="innerConfirm.useDefaultSlot || false" />
210
210
  </t-button>
211
211
  </template>
212
212
  <slot name="confirm-btn" />
@@ -261,8 +261,8 @@ export default uniComponent({
261
261
  buttonVariant: 'text',
262
262
  tools,
263
263
 
264
- _confirm: null,
265
- _cancel: null,
264
+ innerConfirm: null,
265
+ innerCancel: null,
266
266
  useVirtualHost: canUseVirtualHost(),
267
267
  };
268
268
  },
@@ -417,6 +417,4 @@ export default uniComponent({
417
417
  },
418
418
  });
419
419
  </script>
420
- <style scoped>
421
- @import './dialog.css';
422
- </style>
420
+ <style scoped src="./dialog.css"></style>
@@ -74,6 +74,4 @@ export default uniComponent({
74
74
  },
75
75
  });
76
76
  </script>
77
- <style scoped>
78
- @import './divider.css';
79
- </style>
77
+ <style scoped src="./divider.css"></style>
@@ -87,6 +87,4 @@ export default uniComponent({
87
87
  },
88
88
  });
89
89
  </script>
90
- <style scoped>
91
- @import './draggable.css';
92
- </style>
90
+ <style scoped src="./draggable.css"></style>
@@ -134,9 +134,7 @@ export default uniComponent({
134
134
  },
135
135
  });
136
136
  </script>
137
- <style scoped>
138
- @import './drawer.css';
139
- </style>
137
+ <style scoped src="./drawer.css"></style>
140
138
  <style>
141
139
  .t-drawer__sidebar {
142
140
  width: 100%;
@@ -386,9 +386,7 @@ export default uniComponent({
386
386
  });
387
387
 
388
388
  </script>
389
- <style scoped>
390
- @import './dropdown-item.css';
391
- </style>
389
+ <style scoped src="./dropdown-item.css"></style>
392
390
  <style scoped>
393
391
  .t-dropdown-item__scroll {
394
392
  width: 100%;
@@ -29,21 +29,21 @@
29
29
  </view>
30
30
 
31
31
  <block
32
- v-if="_arrowIcon"
32
+ v-if="iArrowIcon"
33
33
  name="icon"
34
34
  >
35
35
  <t-icon
36
- :custom-style="_arrowIcon.style || ''"
36
+ :custom-style="iArrowIcon.style || ''"
37
37
  :t-class="getIconTClass(index)"
38
38
  :class="getIconClass(index)"
39
- :prefix="_arrowIcon.prefix"
40
- :name="_arrowIcon.name"
41
- :size="_arrowIcon.size"
42
- :color="_arrowIcon.color"
39
+ :prefix="iArrowIcon.prefix"
40
+ :name="iArrowIcon.name"
41
+ :size="iArrowIcon.size"
42
+ :color="iArrowIcon.color"
43
43
  :aria-hidden="true"
44
- :aria-label="_arrowIcon.ariaLabel"
45
- :aria-role="_arrowIcon.ariaRole"
46
- @click="_arrowIcon.click || ''"
44
+ :aria-label="iArrowIcon.ariaLabel"
45
+ :aria-role="iArrowIcon.ariaRole"
46
+ @click="iArrowIcon.click || ''"
47
47
  />
48
48
  </block>
49
49
  </view>
@@ -91,7 +91,7 @@ export default uniComponent({
91
91
  menus: null,
92
92
  activeIdx: -1,
93
93
  bottom: 0,
94
- _arrowIcon: {
94
+ iArrowIcon: {
95
95
  name: props.arrowIcon.default,
96
96
  },
97
97
  tools,
@@ -100,7 +100,7 @@ export default uniComponent({
100
100
  watch: {
101
101
  arrowIcon: {
102
102
  handler(v) {
103
- this._arrowIcon = calcIcon(v);
103
+ this.iArrowIcon = calcIcon(v);
104
104
  },
105
105
  immediate: true,
106
106
  },
@@ -169,9 +169,7 @@ export default uniComponent({
169
169
  },
170
170
  });
171
171
  </script>
172
- <style scoped>
173
- @import './dropdown-menu.css';
174
- </style>
172
+ <style scoped src="./dropdown-menu.css"></style>
175
173
  <style scoped>
176
174
  :deep(.t-dropdown-menu__icon) {
177
175
  font-size: var(--td-dropdown-menu-icon-size, 20px);
@@ -135,6 +135,4 @@ export default uniComponent({
135
135
  },
136
136
  });
137
137
  </script>
138
- <style scoped>
139
- @import './empty.css';
140
- </style>
138
+ <style scoped src="./empty.css"></style>
package/dist/fab/fab.vue CHANGED
@@ -233,6 +233,4 @@ export default uniComponent({
233
233
  },
234
234
  });
235
235
  </script>
236
- <style scoped>
237
- @import './fab.css';
238
- </style>
236
+ <style scoped src="./fab.css"></style>
@@ -112,6 +112,4 @@ export default uniComponent({
112
112
  },
113
113
  });
114
114
  </script>
115
- <style scoped>
116
- @import './footer.css';
117
- </style>
115
+ <style scoped src="./footer.css"></style>
@@ -282,6 +282,4 @@ export default uniComponent({
282
282
  });
283
283
 
284
284
  </script>
285
- <style scoped>
286
- @import './form.css';
287
- </style>
285
+ <style scoped src="./form.css"></style>
@@ -5,8 +5,8 @@
5
5
  align-items: flex-start;
6
6
  justify-content: var(--td-form-item-justify-content, space-between);
7
7
  width: 100%;
8
- padding: var(--td-form-item-horizontal-padding, 32rpx) var(--td-form-item-vertical-padding, 32rpx);
9
- background-color: #ffffff;
8
+ padding: var(--td-form-item-vertical-padding, 32rpx) var(--td-form-item-horizontal-padding, 32rpx);
9
+ background-color: var(--td-form-bg-color, var(--td-bg-color-container, var(--td-font-white-1, #ffffff)));
10
10
  --td-input-vertical-padding: 0rpx;
11
11
  --td-textarea-vertical-padding: 0rpx;
12
12
  --td-textarea-horizontal-padding: 0rpx;
@@ -60,13 +60,6 @@
60
60
  .t-form-item__controls {
61
61
  flex: 1;
62
62
  width: 100%;
63
- margin-top: 8rpx;
64
- }
65
- .t-form-item__controls--left {
66
- text-align: left;
67
- }
68
- .t-form-item__controls--right {
69
- text-align: right;
70
63
  }
71
64
  .t-form-item__controls-content {
72
65
  width: 100%;
@@ -74,11 +67,23 @@
74
67
  align-items: center;
75
68
  justify-content: space-between;
76
69
  }
70
+ .t-form-item__controls-content--left {
71
+ justify-content: flex-start;
72
+ }
73
+ .t-form-item__controls-content--right {
74
+ justify-content: flex-end;
75
+ }
77
76
  .t-form-item__help {
78
- font-size: var(--td-font-size-m, 32rpx);
79
- color: var(--td-font-gray-1, rgba(0, 0, 0, 0.9));
77
+ font-size: var(--td-font-size-s, 24rpx);
78
+ color: var(--td-text-color-disabled, var(--td-font-gray-4, rgba(0, 0, 0, 0.26)));
80
79
  line-height: 1.4;
81
80
  }
81
+ .t-form-item__help--left {
82
+ text-align: left;
83
+ }
84
+ .t-form-item__help--right {
85
+ text-align: right;
86
+ }
82
87
  .t-form-item__desc-link {
83
88
  margin-top: 8rpx;
84
89
  color: var(--td-primary-color-7, #0052d9);
@@ -169,13 +169,10 @@ export default uniComponent({
169
169
  created() {
170
170
  // this.initFormItem();
171
171
  },
172
- onBeforeUnmount() {
172
+ beforeUnmount() {
173
173
  if (this.form) {
174
174
  this.form.unregisterChild(this.name);
175
175
  }
176
- },
177
- mounted() {
178
-
179
176
  },
180
177
  methods: {
181
178
  innerAfterLinked() {
@@ -391,6 +388,4 @@ export default uniComponent({
391
388
  },
392
389
  });
393
390
  </script>
394
- <style scoped>
395
- @import './form-item.css';
396
- </style>
391
+ <style scoped src="./form-item.css"></style>
@@ -89,6 +89,4 @@ export default uniComponent({
89
89
  },
90
90
  });
91
91
  </script>
92
- <style scoped>
93
- @import './grid.css';
94
- </style>
92
+ <style scoped src="./grid.css"></style>
@@ -281,9 +281,7 @@ export default uniComponent({
281
281
  },
282
282
  });
283
283
  </script>
284
- <style scoped>
285
- @import './grid-item.css';
286
- </style>
284
+ <style scoped src="./grid-item.css"></style>
287
285
  <style scoped>
288
286
  .t-grid-item__content--left {
289
287
  width: 100%;
@@ -320,6 +320,4 @@ export default {
320
320
  },
321
321
  };
322
322
  </script>
323
- <style scoped>
324
- @import './guide.css';
325
- </style>
323
+ <style scoped src="./guide.css"></style>