白色主题

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

@@ -1,5 +1,5 @@
const props = {
customStyle: {
style: {
type: String,
value: '',
},

View File

@@ -20,6 +20,7 @@ export default class Toast extends SuperComponent {
show(options: ToastOptionsType): void;
hide(): void;
destroyed(): void;
loop(): void;
};
}
export {};

View File

@@ -67,6 +67,7 @@ let Toast = class Toast extends SuperComponent {
}
this.triggerEvent('destory');
},
loop() { },
};
}
detached() {

View File

@@ -2,15 +2,16 @@
<view
wx:if="{{realVisible}}"
class="{{_.cls(classPrefix, [direction, theme, ['with-text', message]])}} {{prefix}}-class {{transitionClass}}"
style="top: {{placement === 'top' ? '25%' : placement === 'bottom' ? '75%': '45%'}} {{ customStyle }}"
style="top: {{placement === 'top' ? '25%' : placement === 'bottom' ? '75%': '45%'}} {{ style }}"
bind:transitionend="onTransitionEnd"
catch:touchstart="loop"
>
<view class="{{classPrefix}}__content {{classPrefix}}__content--{{direction}}">
<t-icon
aria-hidden="{{true}}"
wx:if="{{typeMapIcon!=='loading' || icon}}"
name="{{typeMapIcon || icon}}"
class="{{classPrefix}}__icon {{classPrefix}}__icon--{{direction}}"
t-class="{{classPrefix}}__icon {{classPrefix}}__icon--{{direction}}"
/>
<t-loading
wx:if="{{typeMapIcon === 'loading'}}"
@@ -30,7 +31,7 @@
</view>
</view>
<t-overlay
customStyle="{{ overlayProps.customStyle }}"
style="{{ overlayProps.style }}"
visible="{{realVisible && (showOverlay || preventScrollThrough)}}"
z-index="{{overlayProps.zIndex}}"
backgroundColor="{{preventScrollThrough ? 'transparent' : overlayProps.backgroundColor}}"

View File

@@ -1,5 +1,5 @@
export interface TdToastProps {
customStyle?: {
style?: {
type: StringConstructor;
value?: string;
};