白色主题
This commit is contained in:
@@ -23,14 +23,14 @@ let Divider = class Divider extends SuperComponent {
|
||||
classPrefix: name,
|
||||
};
|
||||
this.observers = {
|
||||
'lineColor, customStyle'() {
|
||||
'lineColor, style'() {
|
||||
this.setStyle();
|
||||
},
|
||||
};
|
||||
this.methods = {
|
||||
setStyle() {
|
||||
const { lineColor, customStyle } = this.properties;
|
||||
const dividerStyle = `${lineColor ? `border-color: ${lineColor};` : ''}${customStyle ? `${customStyle}` : ''}`;
|
||||
const { lineColor, style } = this.properties;
|
||||
const dividerStyle = `${lineColor ? `border-color: ${lineColor};` : ''}${style ? `${style}` : ''}`;
|
||||
this.setData({
|
||||
dividerStyle,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user