白色主题

This commit is contained in:
2023-02-12 19:04:01 +08:00
parent d736a5912f
commit 57ab6fbb49
411 changed files with 1752 additions and 5304 deletions

View File

@@ -26,7 +26,7 @@ const props = {
type: Boolean,
value: false,
},
customStyle: {
style: {
type: String,
value: '',
},

View File

@@ -43,7 +43,7 @@ export default class Radio extends SuperComponent {
type: BooleanConstructor;
value?: boolean;
};
customStyle?: {
style?: {
type: StringConstructor;
value?: string;
};

View File

@@ -1,7 +1,7 @@
<wxs src="../common/utils.wxs" module="_" />
<view
style="{{ customStyle }}"
style="{{ style }}"
class="{{_.cls(classPrefix, [align, ['block', block]])}} {{prefix}}-class"
disabled="{{disabled}}"
aria-role="radio"
@@ -9,11 +9,10 @@
aria-label="{{label + content}}"
aria-disabled="{{disabled}}"
tabindex="{{tabindex}}"
bind:tap="handleTap"
>
<view
class="{{_.cls(classPrefix + '__icon', [align, ['checked', checked], ['disabled', disabled]])}} {{prefix}}-class-icon"
data-target="icon"
bind:tap="handleTap"
>
<slot name="icon" wx:if="{{slotIcon}}" />
<view wx:elif="{{customIcon}}" class="{{classPrefix}}__image">
@@ -38,7 +37,7 @@
</block>
</view>
<view class="{{classPrefix}}__content" data-target="text" bind:tap="handleTap">
<view class="{{classPrefix}}__content" data-target="text" catch:tap="handleTap">
<view
class="{{classPrefix}}__title {{disabled ? classPrefix + '__title--disabled' : ''}} {{prefix}}-class-label"
style="-webkit-line-clamp:{{maxLabelRow}}"

View File

@@ -27,7 +27,7 @@ export interface TdRadioProps<T = RadioValue> {
type: BooleanConstructor;
value?: boolean;
};
customStyle?: {
style?: {
type: StringConstructor;
value?: string;
};