白色主题
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
@@ -13,7 +13,7 @@ const props = {
|
||||
content: {
|
||||
type: String,
|
||||
},
|
||||
customStyle: {
|
||||
style: {
|
||||
type: String,
|
||||
value: '',
|
||||
},
|
||||
|
||||
@@ -15,7 +15,7 @@ export interface TdMessageProps {
|
||||
type: StringConstructor;
|
||||
value?: string;
|
||||
};
|
||||
customStyle?: {
|
||||
style?: {
|
||||
type: StringConstructor;
|
||||
value?: string;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user