@tdesign/uniapp 0.8.1 → 0.9.1
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/CHANGELOG.md +31 -0
- package/dist/action-sheet/README.en-US.md +4 -3
- package/dist/action-sheet/README.md +4 -3
- package/dist/action-sheet/action-sheet.vue +16 -12
- package/dist/action-sheet/computed.js +1 -1
- package/dist/action-sheet/props.ts +5 -0
- package/dist/action-sheet/type.ts +6 -1
- package/dist/avatar/README.en-US.md +1 -1
- package/dist/avatar/README.md +1 -1
- package/dist/avatar/avatar.vue +10 -9
- package/dist/avatar-group/avatar-group.vue +4 -4
- package/dist/back-top/README.en-US.md +1 -1
- package/dist/back-top/README.md +1 -1
- package/dist/back-top/back-top.vue +5 -4
- package/dist/badge/README.en-US.md +2 -1
- package/dist/badge/README.md +2 -1
- package/dist/badge/badge.css +1 -1
- package/dist/badge/badge.vue +4 -2
- package/dist/button/README.en-US.md +1 -1
- package/dist/button/README.md +1 -1
- package/dist/button/button.vue +17 -11
- package/dist/calendar/README.en-US.md +1 -1
- package/dist/calendar/README.md +1 -1
- package/dist/calendar/calendar-header.vue +2 -1
- package/dist/calendar/calendar.vue +15 -9
- package/dist/calendar/template.vue +12 -9
- package/dist/cascader/README.en-US.md +1 -1
- package/dist/cascader/README.md +1 -1
- package/dist/cascader/cascader.vue +8 -8
- package/dist/cell/README.en-US.md +1 -1
- package/dist/cell/README.md +1 -1
- package/dist/cell/cell.vue +34 -36
- package/dist/cell-group/cell-group.vue +5 -3
- package/dist/check-tag/check-tag.vue +6 -3
- package/dist/checkbox/README.en-US.md +1 -1
- package/dist/checkbox/README.md +1 -1
- package/dist/checkbox/checkbox.vue +5 -4
- package/dist/checkbox-group/checkbox-group.vue +5 -3
- package/dist/col/col.vue +7 -3
- package/dist/collapse/README.en-US.md +1 -1
- package/dist/collapse/README.md +1 -1
- package/dist/collapse/collapse.vue +6 -4
- package/dist/collapse-panel/collapse-panel.vue +15 -6
- package/dist/color-picker/README.en-US.md +1 -1
- package/dist/color-picker/README.md +1 -1
- package/dist/color-picker/color-picker.vue +9 -7
- package/dist/color-picker/template.vue +2 -1
- package/dist/common/canvas/index.js +1 -1
- package/dist/common/shared/color-picker/color.js +1 -0
- package/dist/common/src/instantiationDecorator.js +1 -1
- package/dist/common/style/theme/index-light.css +282 -0
- package/dist/common/style/theme/index-light.less +9 -0
- package/dist/common/style/theme/raw/_components-light.less +8 -0
- package/dist/common/style/theme/raw/_light-only.less +181 -0
- package/dist/common/version.js +1 -1
- package/dist/config-provider/config-provider.vue +3 -1
- package/dist/count-down/README.en-US.md +1 -1
- package/dist/count-down/README.md +1 -1
- package/dist/count-down/count-down.vue +5 -3
- package/dist/date-time-picker/README.en-US.md +1 -1
- package/dist/date-time-picker/README.md +1 -1
- package/dist/date-time-picker/date-time-picker.vue +8 -6
- package/dist/date-time-picker/locale/dayjs.js +6 -6
- package/dist/demo-navbar/demo-navbar.vue +1 -1
- package/dist/dialog/README.en-US.md +1 -1
- package/dist/dialog/README.md +1 -1
- package/dist/dialog/dialog.vue +10 -7
- package/dist/dialog/index.js +2 -1
- package/dist/divider/README.en-US.md +1 -1
- package/dist/divider/README.md +1 -1
- package/dist/divider/divider.vue +4 -2
- package/dist/draggable/draggable.vue +5 -2
- package/dist/drawer/README.en-US.md +1 -1
- package/dist/drawer/README.md +1 -1
- package/dist/drawer/drawer.vue +7 -5
- package/dist/dropdown-item/dropdown-item.vue +16 -11
- package/dist/dropdown-menu/README.en-US.md +1 -1
- package/dist/dropdown-menu/README.md +1 -1
- package/dist/dropdown-menu/dropdown-menu.vue +11 -9
- package/dist/empty/README.en-US.md +1 -1
- package/dist/empty/README.md +1 -1
- package/dist/empty/empty.vue +5 -4
- package/dist/fab/README.en-US.md +1 -1
- package/dist/fab/README.md +1 -1
- package/dist/fab/fab.vue +9 -6
- package/dist/fab/props.ts +1 -1
- package/dist/fab/type.ts +1 -1
- package/dist/footer/README.en-US.md +1 -1
- package/dist/footer/README.md +1 -1
- package/dist/footer/footer.vue +8 -7
- package/dist/form/README.en-US.md +3 -1
- package/dist/form/README.md +3 -1
- package/dist/form/form.vue +4 -2
- package/dist/form/props.ts +9 -0
- package/dist/form/type.ts +5 -0
- package/dist/form-item/README.en-US.md +2 -1
- package/dist/form-item/README.md +2 -1
- package/dist/form-item/form-item.css +2 -2
- package/dist/form-item/form-item.vue +36 -27
- package/dist/form-item/props.ts +8 -0
- package/dist/form-item/type.ts +4 -0
- package/dist/grid/README.en-US.md +1 -1
- package/dist/grid/README.md +1 -1
- package/dist/grid/grid.vue +4 -3
- package/dist/grid-item/README.en-US.md +1 -1
- package/dist/grid-item/README.md +1 -1
- package/dist/grid-item/grid-item.vue +8 -6
- package/dist/guide/README.en-US.md +1 -1
- package/dist/guide/README.md +1 -1
- package/dist/guide/guide.vue +8 -7
- package/dist/icon/icon.vue +5 -2
- package/dist/image/README.en-US.md +1 -1
- package/dist/image/README.md +1 -1
- package/dist/image/image.vue +6 -5
- package/dist/image-viewer/README.en-US.md +4 -3
- package/dist/image-viewer/README.md +4 -3
- package/dist/image-viewer/image-viewer.css +12 -0
- package/dist/image-viewer/image-viewer.vue +84 -21
- package/dist/image-viewer/props.ts +5 -0
- package/dist/image-viewer/type.ts +6 -1
- package/dist/indexes/README.en-US.md +1 -1
- package/dist/indexes/README.md +1 -1
- package/dist/indexes/computed.js +6 -2
- package/dist/indexes/indexes.css +7 -2
- package/dist/indexes/indexes.vue +8 -5
- package/dist/indexes/props.ts +5 -0
- package/dist/indexes/type.ts +5 -0
- package/dist/indexes-anchor/README.en-US.md +1 -1
- package/dist/indexes-anchor/README.md +1 -1
- package/dist/indexes-anchor/indexes-anchor.vue +5 -3
- package/dist/input/README.en-US.md +1 -1
- package/dist/input/README.md +1 -1
- package/dist/input/input.vue +9 -7
- package/dist/link/README.en-US.md +1 -1
- package/dist/link/README.md +1 -1
- package/dist/link/link.vue +6 -3
- package/dist/loading/README.en-US.md +1 -1
- package/dist/loading/README.md +1 -1
- package/dist/loading/loading.vue +4 -2
- package/dist/message/index.js +2 -1
- package/dist/message/message.vue +4 -3
- package/dist/message-item/index.js +1 -1
- package/dist/message-item/message-item.vue +7 -5
- package/dist/mixins/page-scroll.js +1 -1
- package/dist/mixins/using-config.js +1 -1
- package/dist/mixins/using-custom-navbar.js +1 -1
- package/dist/navbar/README.en-US.md +1 -1
- package/dist/navbar/README.md +2 -2
- package/dist/navbar/navbar.vue +5 -4
- package/dist/notice-bar/README.en-US.md +1 -1
- package/dist/notice-bar/README.md +1 -1
- package/dist/notice-bar/notice-bar.vue +4 -3
- package/dist/overlay/README.en-US.md +1 -1
- package/dist/overlay/README.md +1 -1
- package/dist/overlay/overlay.vue +6 -3
- package/dist/picker/README.en-US.md +1 -1
- package/dist/picker/README.md +1 -1
- package/dist/picker/picker.vue +11 -9
- package/dist/picker-item/README.en-US.md +1 -1
- package/dist/picker-item/README.md +1 -1
- package/dist/picker-item/picker-item.vue +6 -5
- package/dist/popover/README.en-US.md +1 -1
- package/dist/popover/README.md +1 -1
- package/dist/popover/popover.vue +8 -5
- package/dist/popup/README.en-US.md +1 -1
- package/dist/popup/README.md +1 -1
- package/dist/popup/popup.vue +8 -5
- package/dist/progress/README.en-US.md +1 -1
- package/dist/progress/README.md +1 -1
- package/dist/progress/progress.vue +5 -4
- package/dist/pull-down-refresh/README.en-US.md +1 -1
- package/dist/pull-down-refresh/README.md +1 -1
- package/dist/pull-down-refresh/pull-down-refresh.vue +7 -5
- package/dist/qrcode/components/qrcode-canvas/qrcode-canvas.vue +8 -7
- package/dist/qrcode/components/qrcode-status/qrcode-status.vue +2 -1
- package/dist/qrcode/qrcode.vue +5 -3
- package/dist/radio/README.en-US.md +1 -1
- package/dist/radio/README.md +1 -1
- package/dist/radio/radio.vue +5 -4
- package/dist/radio-group/radio-group.vue +5 -4
- package/dist/rate/README.en-US.md +1 -1
- package/dist/rate/README.md +1 -1
- package/dist/rate/rate.vue +8 -5
- package/dist/result/README.en-US.md +1 -1
- package/dist/result/README.md +1 -1
- package/dist/result/result.vue +5 -4
- package/dist/row/row.vue +7 -3
- package/dist/scroll-view/scroll-view.vue +1 -1
- package/dist/search/README.en-US.md +1 -1
- package/dist/search/README.md +1 -1
- package/dist/search/search.css +5 -0
- package/dist/search/search.vue +21 -21
- package/dist/segmented/README.en-US.md +42 -0
- package/dist/segmented/README.md +75 -0
- package/dist/segmented/props.ts +31 -0
- package/dist/segmented/segmented.css +66 -0
- package/dist/segmented/segmented.vue +177 -0
- package/dist/segmented/type.ts +41 -0
- package/dist/side-bar/README.en-US.md +1 -1
- package/dist/side-bar/README.md +1 -1
- package/dist/side-bar/side-bar.vue +5 -3
- package/dist/side-bar-item/side-bar-item.vue +7 -6
- package/dist/skeleton/README.en-US.md +1 -1
- package/dist/skeleton/README.md +1 -1
- package/dist/skeleton/skeleton.vue +6 -3
- package/dist/slider/README.en-US.md +1 -1
- package/dist/slider/README.md +1 -1
- package/dist/slider/slider.vue +7 -5
- package/dist/step-item/step-item.vue +5 -4
- package/dist/stepper/README.en-US.md +1 -1
- package/dist/stepper/README.md +1 -1
- package/dist/stepper/stepper.vue +5 -3
- package/dist/steps/README.en-US.md +1 -1
- package/dist/steps/README.md +1 -1
- package/dist/steps/steps.vue +5 -3
- package/dist/sticky/sticky.vue +4 -3
- package/dist/swipe-cell/swipe-cell.vue +7 -5
- package/dist/swiper/README.en-US.md +1 -1
- package/dist/swiper/README.md +1 -1
- package/dist/swiper/swiper.vue +7 -5
- package/dist/swiper-nav/swiper-nav.vue +6 -3
- package/dist/switch/README.en-US.md +1 -1
- package/dist/switch/README.md +1 -1
- package/dist/switch/switch.vue +5 -4
- package/dist/tab-bar/README.en-US.md +1 -1
- package/dist/tab-bar/README.md +1 -1
- package/dist/tab-bar/tab-bar.vue +5 -3
- package/dist/tab-bar-item/tab-bar-item.vue +10 -10
- package/dist/tab-panel/tab-panel.vue +5 -3
- package/dist/table/README.en-US.md +72 -0
- package/dist/table/README.md +117 -0
- package/dist/table/base-table-props.ts +105 -0
- package/dist/table/props.ts +94 -0
- package/dist/table/table.css +251 -0
- package/dist/table/table.vue +582 -0
- package/dist/table/type.ts +180 -0
- package/dist/tabs/README.en-US.md +1 -1
- package/dist/tabs/README.md +1 -1
- package/dist/tabs/tabs.css +4 -0
- package/dist/tabs/tabs.vue +11 -9
- package/dist/tag/README.en-US.md +1 -1
- package/dist/tag/README.md +1 -1
- package/dist/tag/tag.vue +6 -3
- package/dist/textarea/README.en-US.md +1 -1
- package/dist/textarea/README.md +1 -1
- package/dist/textarea/textarea.vue +6 -3
- package/dist/theme-light.css +282 -0
- package/dist/theme-light.css.d.ts +2 -0
- package/dist/theme-light.less +1 -0
- package/dist/theme-light.less.d.ts +2 -0
- package/dist/toast/README.en-US.md +1 -1
- package/dist/toast/README.md +1 -1
- package/dist/toast/toast.vue +8 -7
- package/dist/transition/transition.vue +2 -2
- package/dist/tree-select/README.en-US.md +1 -1
- package/dist/tree-select/README.md +1 -1
- package/dist/tree-select/tree-select.vue +14 -9
- package/dist/types/action-sheet.d.ts +1 -1
- package/dist/types/avatar-group.d.ts +1 -1
- package/dist/types/avatar.d.ts +1 -1
- package/dist/types/back-top.d.ts +1 -1
- package/dist/types/badge.d.ts +1 -1
- package/dist/types/button.d.ts +1 -1
- package/dist/types/calendar.d.ts +1 -1
- package/dist/types/cascader.d.ts +1 -1
- package/dist/types/cell-group.d.ts +1 -1
- package/dist/types/cell.d.ts +1 -1
- package/dist/types/check-tag.d.ts +1 -1
- package/dist/types/checkbox-group.d.ts +1 -1
- package/dist/types/checkbox.d.ts +1 -1
- package/dist/types/col.d.ts +1 -1
- package/dist/types/collapse-panel.d.ts +1 -1
- package/dist/types/collapse.d.ts +1 -1
- package/dist/types/color-picker.d.ts +1 -1
- package/dist/types/index.d.ts +2 -0
- package/dist/types/segmented.d.ts +7 -0
- package/dist/types/table.d.ts +7 -0
- package/dist/upload/README.en-US.md +1 -1
- package/dist/upload/README.md +1 -1
- package/dist/upload/upload.vue +32 -32
- package/dist/watermark/README.en-US.md +1 -1
- package/dist/watermark/README.md +1 -1
- package/dist/watermark/utils/generateBase64Url.js +6 -6
- package/dist/watermark/watermark.vue +4 -3
- package/global.d.ts +2 -0
- package/package.json +33 -9
- package/{dist/script → script}/postinstall.js +18 -2
|
@@ -132,18 +132,18 @@
|
|
|
132
132
|
</view>
|
|
133
133
|
</template>
|
|
134
134
|
<script>
|
|
135
|
-
import TIcon from '../icon/icon';
|
|
136
|
-
import TPopup from '../popup/popup';
|
|
137
|
-
import TTabs from '../tabs/tabs';
|
|
138
|
-
import TTabPanel from '../tab-panel/tab-panel.vue';
|
|
139
|
-
import TRadioGroup from '../radio-group/radio-group';
|
|
140
|
-
import { uniComponent } from '../common/src/index';
|
|
141
135
|
import { prefix } from '../common/config';
|
|
142
|
-
import
|
|
136
|
+
import { uniComponent } from '../common/src/index';
|
|
143
137
|
import { getRect, coalesce, nextTick } from '../common/utils';
|
|
144
|
-
|
|
145
138
|
import tools from '../common/utils.wxs';
|
|
139
|
+
import TIcon from '../icon/icon';
|
|
146
140
|
import usingConfig from '../mixins/using-config';
|
|
141
|
+
import TPopup from '../popup/popup';
|
|
142
|
+
import TRadioGroup from '../radio-group/radio-group';
|
|
143
|
+
import TTabPanel from '../tab-panel/tab-panel.vue';
|
|
144
|
+
import TTabs from '../tabs/tabs';
|
|
145
|
+
|
|
146
|
+
import props from './props';
|
|
147
147
|
|
|
148
148
|
|
|
149
149
|
const componentName = 'cascader';
|
|
@@ -83,7 +83,7 @@ t-class-title | \-
|
|
|
83
83
|
### CSS Variables
|
|
84
84
|
|
|
85
85
|
The component provides the following CSS variables, which can be used to customize styles.
|
|
86
|
-
Name | Default Value | Description
|
|
86
|
+
Name | Default Value | Description
|
|
87
87
|
-- | -- | --
|
|
88
88
|
--td-cell-group-border-color | @component-stroke | -
|
|
89
89
|
--td-cell-group-title-bg-color | @bg-color-secondarycontainer | -
|
package/dist/cell/README.md
CHANGED
|
@@ -116,7 +116,7 @@ t-class-title | 标题样式类
|
|
|
116
116
|
### CSS Variables
|
|
117
117
|
|
|
118
118
|
组件提供了下列 CSS 变量,可用于自定义样式。
|
|
119
|
-
名称 | 默认值 | 描述
|
|
119
|
+
名称 | 默认值 | 描述
|
|
120
120
|
-- | -- | --
|
|
121
121
|
--td-cell-group-border-color | @component-stroke | -
|
|
122
122
|
--td-cell-group-title-bg-color | @bg-color-secondarycontainer | -
|
package/dist/cell/cell.vue
CHANGED
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
<t-icon
|
|
96
96
|
v-if="rightArrow"
|
|
97
97
|
:custom-style="rightArrowCustomStyle"
|
|
98
|
-
:t-class="
|
|
98
|
+
:t-class="classPrefix + '__right-icon ' + tClassRightIcon"
|
|
99
99
|
:name="rightArrow.name || ''"
|
|
100
100
|
:size="rightArrow.size"
|
|
101
101
|
:color="rightArrow.color"
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
>
|
|
112
112
|
<t-icon
|
|
113
113
|
:custom-style="rightIconCustomStyle"
|
|
114
|
-
:t-class="
|
|
114
|
+
:t-class="classPrefix + '__right-icon ' + tClassRightIcon"
|
|
115
115
|
:name="iRightIcon.name"
|
|
116
116
|
:size="iRightIcon.size"
|
|
117
117
|
:color="iRightIcon.color || ''"
|
|
@@ -127,21 +127,22 @@
|
|
|
127
127
|
</view>
|
|
128
128
|
</template>
|
|
129
129
|
<script>
|
|
130
|
-
import TIcon from '../icon/icon';
|
|
131
|
-
import TImage from '../image/image';
|
|
132
|
-
import { uniComponent } from '../common/src/index';
|
|
133
130
|
import { prefix } from '../common/config';
|
|
134
|
-
import
|
|
131
|
+
import { ChildrenMixin, RELATION_MAP } from '../common/relation';
|
|
132
|
+
import { uniComponent } from '../common/src/index';
|
|
135
133
|
import { calcIcon, addUnit } from '../common/utils';
|
|
136
134
|
import tools from '../common/utils.wxs';
|
|
135
|
+
import TIcon from '../icon/icon';
|
|
136
|
+
import TImage from '../image/image';
|
|
137
137
|
|
|
138
|
-
import
|
|
138
|
+
import props from './props';
|
|
139
139
|
|
|
140
140
|
|
|
141
141
|
const name = `${prefix}-cell`;
|
|
142
|
+
|
|
142
143
|
const COMMON_RIGHT_ICON_STYLE = {
|
|
143
144
|
color: 'var(--td-cell-right-icon-color, var(--td-text-color-placeholder, var(--td-font-gray-3, rgba(0, 0, 0, .4))))',
|
|
144
|
-
fontSize: 'var(--td-cell-right-icon-font-size,
|
|
145
|
+
fontSize: 'var(--td-cell-right-icon-font-size, 48rpx)',
|
|
145
146
|
};
|
|
146
147
|
|
|
147
148
|
export default {
|
|
@@ -178,14 +179,35 @@ export default {
|
|
|
178
179
|
return {
|
|
179
180
|
prefix,
|
|
180
181
|
classPrefix: name,
|
|
182
|
+
tools,
|
|
181
183
|
rightArrow: null,
|
|
182
184
|
iRightIcon: null,
|
|
183
185
|
iLeftIcon: null,
|
|
184
186
|
isLastChild: false,
|
|
185
|
-
tools,
|
|
186
187
|
};
|
|
187
188
|
},
|
|
188
189
|
computed: {
|
|
190
|
+
leftIconCustomStyle() {
|
|
191
|
+
if (!this.iLeftIcon) return '';
|
|
192
|
+
|
|
193
|
+
return tools._style([
|
|
194
|
+
{
|
|
195
|
+
color: this.iLeftIcon.color
|
|
196
|
+
? this.iLeftIcon.color
|
|
197
|
+
: 'var(--td-cell-left-icon-color, var(--td-brand-color, var(--td-primary-color-7, #0052d9)))',
|
|
198
|
+
fontSize: this.iLeftIcon.size
|
|
199
|
+
? addUnit(this.iLeftIcon.size)
|
|
200
|
+
: 'var(--td-cell-left-icon-font-size, 48rpx)',
|
|
201
|
+
},
|
|
202
|
+
this.iLeftIcon.style || '',
|
|
203
|
+
]);
|
|
204
|
+
},
|
|
205
|
+
leftImageCustomStyle() {
|
|
206
|
+
return tools._style({
|
|
207
|
+
width: 'var(--td-cell-image-width, 96rpx)',
|
|
208
|
+
height: 'var(--td-cell-image-height, 96rpx)',
|
|
209
|
+
});
|
|
210
|
+
},
|
|
189
211
|
rightArrowCustomStyle() {
|
|
190
212
|
if (!this.rightArrow) return '';
|
|
191
213
|
return tools._style([
|
|
@@ -216,52 +238,28 @@ export default {
|
|
|
216
238
|
this.iRightIcon.style || '',
|
|
217
239
|
]);
|
|
218
240
|
},
|
|
219
|
-
leftIconCustomStyle() {
|
|
220
|
-
if (!this.iLeftIcon) return '';
|
|
221
|
-
|
|
222
|
-
return tools._style([
|
|
223
|
-
{
|
|
224
|
-
color: this.iLeftIcon.color
|
|
225
|
-
? this.iLeftIcon.color
|
|
226
|
-
: 'var(--td-cell-left-icon-color, var(--td-brand-color, var(--td-primary-color-7, #0052d9)))',
|
|
227
|
-
fontSize: this.iLeftIcon.size
|
|
228
|
-
? addUnit(this.iLeftIcon.size)
|
|
229
|
-
: 'var(--td-cell-left-icon-font-size, 24px)',
|
|
230
|
-
},
|
|
231
|
-
this.iLeftIcon.style || '',
|
|
232
|
-
]);
|
|
233
|
-
},
|
|
234
|
-
leftImageCustomStyle() {
|
|
235
|
-
return tools._style({
|
|
236
|
-
height: 'var(--td-cell-image-height, 48px)',
|
|
237
|
-
width: 'var(--td-cell-image-width, 48px)',
|
|
238
|
-
});
|
|
239
|
-
},
|
|
240
241
|
},
|
|
241
242
|
watch: {
|
|
242
243
|
leftIcon: {
|
|
243
244
|
handler(e) {
|
|
244
|
-
this.
|
|
245
|
+
this.iLeftIcon = calcIcon(e, '');
|
|
245
246
|
},
|
|
246
247
|
immediate: true,
|
|
247
248
|
},
|
|
248
249
|
rightIcon: {
|
|
249
250
|
handler(e) {
|
|
250
|
-
this.
|
|
251
|
+
this.iRightIcon = calcIcon(e, '');
|
|
251
252
|
},
|
|
252
253
|
immediate: true,
|
|
253
254
|
},
|
|
254
255
|
arrow: {
|
|
255
256
|
handler(e) {
|
|
256
|
-
this.
|
|
257
|
+
this.rightArrow = calcIcon(e, 'chevron-right');
|
|
257
258
|
},
|
|
258
259
|
immediate: true,
|
|
259
260
|
},
|
|
260
261
|
},
|
|
261
262
|
methods: {
|
|
262
|
-
setIcon(e, t, s) {
|
|
263
|
-
this[e] = calcIcon(t, s);
|
|
264
|
-
},
|
|
265
263
|
onClick(e) {
|
|
266
264
|
this.$emit('click', e);
|
|
267
265
|
this.jumpLink();
|
|
@@ -21,11 +21,13 @@
|
|
|
21
21
|
</view>
|
|
22
22
|
</template>
|
|
23
23
|
<script>
|
|
24
|
-
import { uniComponent } from '../common/src/index';
|
|
25
24
|
import { prefix } from '../common/config';
|
|
26
|
-
import props from './props';
|
|
27
|
-
import tools from '../common/utils.wxs';
|
|
28
25
|
import { ParentMixin, RELATION_MAP } from '../common/relation';
|
|
26
|
+
import { uniComponent } from '../common/src/index';
|
|
27
|
+
|
|
28
|
+
import tools from '../common/utils.wxs';
|
|
29
|
+
|
|
30
|
+
import props from './props';
|
|
29
31
|
|
|
30
32
|
|
|
31
33
|
const name = `${prefix}-cell-group`;
|
|
@@ -48,12 +48,15 @@
|
|
|
48
48
|
</view>
|
|
49
49
|
</template>
|
|
50
50
|
<script>
|
|
51
|
-
import TIcon from '../icon/icon';
|
|
52
|
-
import { uniComponent } from '../common/src/index';
|
|
53
51
|
import { prefix } from '../common/config';
|
|
54
|
-
import
|
|
52
|
+
import { uniComponent } from '../common/src/index';
|
|
53
|
+
|
|
54
|
+
|
|
55
55
|
import { classNames, calcIcon, coalesce } from '../common/utils';
|
|
56
56
|
import tools from '../common/utils.wxs';
|
|
57
|
+
import TIcon from '../icon/icon';
|
|
58
|
+
|
|
59
|
+
import props from './props';
|
|
57
60
|
|
|
58
61
|
|
|
59
62
|
const name = `${prefix}-tag`;
|
|
@@ -82,7 +82,7 @@ name | Description
|
|
|
82
82
|
### CSS Variables
|
|
83
83
|
|
|
84
84
|
The component provides the following CSS variables, which can be used to customize styles.
|
|
85
|
-
Name | Default Value | Description
|
|
85
|
+
Name | Default Value | Description
|
|
86
86
|
-- | -- | --
|
|
87
87
|
--td-checkbox-bg-color | @bg-color-container | -
|
|
88
88
|
--td-checkbox-border-color | @component-stroke | -
|
package/dist/checkbox/README.md
CHANGED
|
@@ -139,7 +139,7 @@ change | `(context: { value: CheckboxGroupValue, context: { value: boolean\|numb
|
|
|
139
139
|
### CSS Variables
|
|
140
140
|
|
|
141
141
|
组件提供了下列 CSS 变量,可用于自定义样式。
|
|
142
|
-
名称 | 默认值 | 描述
|
|
142
|
+
名称 | 默认值 | 描述
|
|
143
143
|
-- | -- | --
|
|
144
144
|
--td-checkbox-bg-color | @bg-color-container | -
|
|
145
145
|
--td-checkbox-border-color | @component-stroke | -
|
|
@@ -83,13 +83,14 @@
|
|
|
83
83
|
</view>
|
|
84
84
|
</template>
|
|
85
85
|
<script>
|
|
86
|
-
import
|
|
86
|
+
import { prefix, ISOLATED_RELATION_KEY } from '../common/config';
|
|
87
|
+
import { ChildrenMixin, RELATION_MAP } from '../common/relation';
|
|
87
88
|
import { uniComponent } from '../common/src/index';
|
|
88
89
|
import { coalesce } from '../common/utils';
|
|
89
|
-
import { prefix, ISOLATED_RELATION_KEY } from '../common/config';
|
|
90
|
-
import props from './props';
|
|
91
90
|
import tools from '../common/utils.wxs';
|
|
92
|
-
import
|
|
91
|
+
import TIcon from '../icon/icon';
|
|
92
|
+
|
|
93
|
+
import props from './props';
|
|
93
94
|
|
|
94
95
|
|
|
95
96
|
const name = `${prefix}-checkbox`;
|
|
@@ -33,12 +33,14 @@
|
|
|
33
33
|
</template>
|
|
34
34
|
<script>
|
|
35
35
|
import TCheckbox from '../checkbox/checkbox';
|
|
36
|
-
import { uniComponent } from '../common/src/index';
|
|
37
36
|
import { prefix } from '../common/config';
|
|
37
|
+
import { ParentMixin, RELATION_MAP } from '../common/relation';
|
|
38
|
+
import { uniComponent } from '../common/src/index';
|
|
38
39
|
import { coalesce } from '../common/utils';
|
|
39
|
-
|
|
40
|
+
|
|
40
41
|
import tools from '../common/utils.wxs';
|
|
41
|
-
|
|
42
|
+
|
|
43
|
+
import props from './props';
|
|
42
44
|
|
|
43
45
|
|
|
44
46
|
const name = `${prefix}-checkbox-group`;
|
package/dist/col/col.vue
CHANGED
|
@@ -11,12 +11,16 @@
|
|
|
11
11
|
</view>
|
|
12
12
|
</template>
|
|
13
13
|
<script>
|
|
14
|
-
import { uniComponent } from '../common/src/index';
|
|
15
14
|
import { prefix } from '../common/config';
|
|
16
|
-
import
|
|
15
|
+
import { ChildrenMixin, RELATION_MAP } from '../common/relation';
|
|
16
|
+
import { uniComponent } from '../common/src/index';
|
|
17
|
+
|
|
18
|
+
|
|
17
19
|
import tools from '../common/utils.wxs';
|
|
20
|
+
|
|
18
21
|
import { getColStyles } from './computed.js';
|
|
19
|
-
import
|
|
22
|
+
import props from './props';
|
|
23
|
+
|
|
20
24
|
|
|
21
25
|
const name = `${prefix}-col`;
|
|
22
26
|
|
|
@@ -64,7 +64,7 @@ t-class-header | \-
|
|
|
64
64
|
### CSS Variables
|
|
65
65
|
|
|
66
66
|
The component provides the following CSS variables, which can be used to customize styles.
|
|
67
|
-
Name | Default Value | Description
|
|
67
|
+
Name | Default Value | Description
|
|
68
68
|
-- | -- | --
|
|
69
69
|
--td-collapse-border-color | @border-level-1-color | -
|
|
70
70
|
--td-collapse-content-font | @font-body-medium | -
|
package/dist/collapse/README.md
CHANGED
|
@@ -10,12 +10,14 @@
|
|
|
10
10
|
</view>
|
|
11
11
|
</template>
|
|
12
12
|
<script>
|
|
13
|
-
import { uniComponent } from '../common/src/index';
|
|
14
13
|
import { prefix } from '../common/config';
|
|
14
|
+
import { ParentMixin, RELATION_MAP } from '../common/relation';
|
|
15
|
+
import { uniComponent } from '../common/src/index';
|
|
15
16
|
import { coalesce } from '../common/utils';
|
|
16
|
-
|
|
17
|
+
|
|
17
18
|
import tools from '../common/utils.wxs';
|
|
18
|
-
|
|
19
|
+
|
|
20
|
+
import props from './props';
|
|
19
21
|
|
|
20
22
|
|
|
21
23
|
const name = `${prefix}-collapse`;
|
|
@@ -75,7 +77,7 @@ export default {
|
|
|
75
77
|
},
|
|
76
78
|
mounted() {
|
|
77
79
|
let interval = 0;
|
|
78
|
-
// #ifdef APP
|
|
80
|
+
// #ifdef APP
|
|
79
81
|
interval = 33;
|
|
80
82
|
// #endif
|
|
81
83
|
setTimeout(() => {
|
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
:right-icon-style="rightIconCustomStyle"
|
|
31
31
|
>
|
|
32
32
|
<template
|
|
33
|
+
v-if="$slots['header-left-icon']"
|
|
33
34
|
#left-icon
|
|
34
35
|
>
|
|
35
36
|
<slot
|
|
@@ -37,6 +38,7 @@
|
|
|
37
38
|
/>
|
|
38
39
|
</template>
|
|
39
40
|
<template
|
|
41
|
+
v-if="$slots['header']"
|
|
40
42
|
#title
|
|
41
43
|
>
|
|
42
44
|
<slot
|
|
@@ -44,6 +46,7 @@
|
|
|
44
46
|
/>
|
|
45
47
|
</template>
|
|
46
48
|
<template
|
|
49
|
+
v-if="$slots['header-right-content']"
|
|
47
50
|
#note
|
|
48
51
|
>
|
|
49
52
|
<slot
|
|
@@ -51,6 +54,7 @@
|
|
|
51
54
|
/>
|
|
52
55
|
</template>
|
|
53
56
|
<template
|
|
57
|
+
v-if="$slots['expand-icon']"
|
|
54
58
|
#right-icon
|
|
55
59
|
>
|
|
56
60
|
<slot
|
|
@@ -74,15 +78,16 @@
|
|
|
74
78
|
</template>
|
|
75
79
|
<script>
|
|
76
80
|
import TCell from '../cell/cell';
|
|
77
|
-
import { uniComponent } from '../common/src/index';
|
|
78
81
|
import { prefix } from '../common/config';
|
|
79
|
-
import
|
|
82
|
+
import { ChildrenMixin, RELATION_MAP } from '../common/relation';
|
|
83
|
+
import { uniComponent } from '../common/src/index';
|
|
80
84
|
import { getRect } from '../common/utils';
|
|
81
85
|
import tools from '../common/utils.wxs';
|
|
82
|
-
import { ChildrenMixin, RELATION_MAP } from '../common/relation';
|
|
83
86
|
|
|
87
|
+
import props from './props';
|
|
84
88
|
|
|
85
89
|
const name = `${prefix}-collapse-panel`;
|
|
90
|
+
|
|
86
91
|
const DISABLED_COLOR = 'var(--td-text-color-disabled, var(--td-font-gray-4, rgba(0, 0, 0, .26)))';
|
|
87
92
|
|
|
88
93
|
export default {
|
|
@@ -154,7 +159,11 @@ export default {
|
|
|
154
159
|
|
|
155
160
|
if (expanded === this.expanded) return;
|
|
156
161
|
|
|
157
|
-
|
|
162
|
+
// 防止 innerAfterLinked 中调用 updateExpanded 时机过早导致图标状态异常
|
|
163
|
+
this.$nextTick(() => {
|
|
164
|
+
this.expanded = expanded;
|
|
165
|
+
});
|
|
166
|
+
|
|
158
167
|
this.updateStyle(expanded);
|
|
159
168
|
},
|
|
160
169
|
|
|
@@ -177,7 +186,7 @@ export default {
|
|
|
177
186
|
} else {
|
|
178
187
|
let doAnimation = false;
|
|
179
188
|
|
|
180
|
-
// #ifdef H5 || APP
|
|
189
|
+
// #ifdef H5 || APP
|
|
181
190
|
animation
|
|
182
191
|
.height(height)
|
|
183
192
|
.top(1)
|
|
@@ -223,7 +232,7 @@ export default {
|
|
|
223
232
|
|
|
224
233
|
|
|
225
234
|
let interval = 0;
|
|
226
|
-
// #ifdef APP
|
|
235
|
+
// #ifdef APP
|
|
227
236
|
interval = 33;
|
|
228
237
|
// #endif
|
|
229
238
|
setTimeout(() => {
|
|
@@ -37,7 +37,7 @@ header | \-
|
|
|
37
37
|
### CSS Variables
|
|
38
38
|
|
|
39
39
|
The component provides the following CSS variables, which can be used to customize styles.
|
|
40
|
-
Name | Default Value | Description
|
|
40
|
+
Name | Default Value | Description
|
|
41
41
|
-- | -- | --
|
|
42
42
|
--td-color-picker-gradient-preview-height | 56rpx | -
|
|
43
43
|
--td-color-picker-gradient-preview-radius | 6rpx | -
|
|
@@ -64,10 +64,12 @@
|
|
|
64
64
|
</view>
|
|
65
65
|
</template>
|
|
66
66
|
<script>
|
|
67
|
-
import TPopup from '../popup/popup';
|
|
68
|
-
import { uniComponent } from '../common/src/index';
|
|
69
67
|
import { prefix } from '../common/config';
|
|
70
|
-
import
|
|
68
|
+
import { uniComponent } from '../common/src/index';
|
|
69
|
+
import { debounce, nextTick } from '../common/utils';
|
|
70
|
+
import tools from '../common/utils.wxs';
|
|
71
|
+
import TPopup from '../popup/popup';
|
|
72
|
+
|
|
71
73
|
import {
|
|
72
74
|
SATURATION_PANEL_DEFAULT_HEIGHT,
|
|
73
75
|
SATURATION_PANEL_DEFAULT_WIDTH,
|
|
@@ -77,11 +79,11 @@ import {
|
|
|
77
79
|
HUE_MAX,
|
|
78
80
|
DEFAULT_SYSTEM_SWATCH_COLORS,
|
|
79
81
|
} from './constants';
|
|
80
|
-
import
|
|
81
|
-
import { Color, getColorObject } from './utils';
|
|
82
|
-
import TemplateVue from './template.vue';
|
|
82
|
+
import props from './props';
|
|
83
83
|
|
|
84
|
-
|
|
84
|
+
|
|
85
|
+
import TemplateVue from './template.vue';
|
|
86
|
+
import { Color, getColorObject } from './utils';
|
|
85
87
|
|
|
86
88
|
|
|
87
89
|
const name = `${prefix}-color-picker`;
|
|
@@ -154,9 +154,10 @@
|
|
|
154
154
|
</template>
|
|
155
155
|
|
|
156
156
|
<script>
|
|
157
|
+
import { getRect } from '../common/utils';
|
|
157
158
|
import utils from '../common/utils.wxs';
|
|
159
|
+
|
|
158
160
|
import props from './template.props';
|
|
159
|
-
import { getRect } from '../common/utils';
|
|
160
161
|
|
|
161
162
|
|
|
162
163
|
export default {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable no-param-reassign */
|
|
2
|
+
import { toCamel, toPascal, hyphenate } from '../utils';
|
|
2
3
|
import { isPlainObject } from '../validator';
|
|
3
4
|
import { canUseVirtualHost } from '../version';
|
|
4
|
-
import { toCamel, toPascal, hyphenate } from '../utils';
|
|
5
5
|
|
|
6
6
|
const getInnerControlledValue = key => `data${key.replace(/^(\w)/, (e, t) => t.toUpperCase())}`;
|
|
7
7
|
const getDefaultKey = key => `default${key.replace(/^(\w)/, (e, t) => t.toUpperCase())}`;
|