白色主题

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

@@ -4,7 +4,7 @@
<block wx:if="{{visible}}">
<view
class="{{classPrefix}} {{prefix}}-class {{classPrefix}}--{{theme}}"
style="{{this.getMessageStyles(zIndex, offset, wrapTop, customStyle)}}"
style="{{this.getMessageStyles(zIndex, offset, wrapTop, style)}}"
animation="{{showAnimation}}"
id="{{classPrefix}}"
aria-role="alert"

View File

@@ -8,14 +8,14 @@ var changeNumToStr = function (arr) {
});
};
var getMessageStyles = function (zIndex, offset, wrapTop, customStyle) {
var getMessageStyles = function (zIndex, offset, wrapTop, style) {
var arr = changeNumToStr(offset);
var styleOffset = '';
styleOffset += 'top:' + changeNumToStr([wrapTop * 2]) + ';';
styleOffset += 'right:' + arr[1] + ';';
styleOffset += 'left:' + arr[1] + ';';
var zIndexStyle = zIndex ? 'z-index:' + zIndex + ';' : '';
return zIndexStyle + styleOffset + customStyle;
return zIndexStyle + styleOffset + style;
};
module.exports = {

View File

@@ -13,7 +13,7 @@ const props = {
content: {
type: String,
},
customStyle: {
style: {
type: String,
value: '',
},

View File

@@ -15,7 +15,7 @@ export interface TdMessageProps {
type: StringConstructor;
value?: string;
};
customStyle?: {
style?: {
type: StringConstructor;
value?: string;
};