白色主题
This commit is contained in:
@@ -13,7 +13,7 @@ export default class Loading extends SuperComponent {
|
||||
multipleSlots: boolean;
|
||||
};
|
||||
properties: {
|
||||
customStyle?: {
|
||||
style?: {
|
||||
type: StringConstructor;
|
||||
value?: string;
|
||||
};
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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'}}"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
const props = {
|
||||
customStyle: {
|
||||
style: {
|
||||
type: String,
|
||||
value: '',
|
||||
},
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
export interface TdLoadingProps {
|
||||
customStyle?: {
|
||||
style?: {
|
||||
type: StringConstructor;
|
||||
value?: string;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user