白色主题

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

@@ -13,7 +13,7 @@ export default class Loading extends SuperComponent {
multipleSlots: boolean;
};
properties: {
customStyle?: {
style?: {
type: StringConstructor;
value?: string;
};

View File

@@ -12,7 +12,7 @@ const name = `${prefix}-loading`;
let Loading = class Loading extends SuperComponent {
constructor() {
super(...arguments);
this.externalClasses = [`${prefix}-class`, `${prefix}-class-text`, `${prefix}-class-indicator`];
this.externalClasses = ['class', `${prefix}-class`, `${prefix}-class-text`, `${prefix}-class-indicator`];
this.data = {
prefix,
classPrefix: name,

View File

@@ -1,7 +1,7 @@
<wxs src="../common/utils.wxs" module="utils" />
<view
style="{{ customStyle }};{{ !text && theme != 'error' && 'width: ' + utils.addUnit(size) + '; height: ' + utils.addUnit(size)}}"
class="{{prefix}}-class"
style="{{ style }};{{ !text && theme != 'error' && 'width: ' + utils.addUnit(size) + '; height: ' + utils.addUnit(size)}}"
class="class {{prefix}}-class"
>
<view
wx:if="{{theme === 'bar' && theme !== 'error'}}"

View File

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

View File

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