白色主题
This commit is contained in:
@@ -14,7 +14,7 @@ const name = `${prefix}-popup`;
|
||||
let Popup = class Popup extends SuperComponent {
|
||||
constructor() {
|
||||
super(...arguments);
|
||||
this.externalClasses = [`${prefix}-class`, `${prefix}-class-content`];
|
||||
this.externalClasses = ['class', `${prefix}-class`, `${prefix}-class-content`];
|
||||
this.behaviors = [transition()];
|
||||
this.options = {
|
||||
multipleSlots: true,
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
|
||||
<view
|
||||
wx:if="{{realVisible}}"
|
||||
style="{{ utils.getPopupStyles(zIndex, customStyle) }}"
|
||||
class="{{_.cls(classPrefix, [placement])}} {{transitionClass}} {{prefix}}-class"
|
||||
style="{{ utils.getPopupStyles(zIndex, style) }}"
|
||||
class="{{_.cls(classPrefix, [placement])}} {{transitionClass}} class {{prefix}}-class"
|
||||
bind:transitionend="onTransitionEnd"
|
||||
aria-role="dialog"
|
||||
aria-modal="{{ true }}"
|
||||
@@ -26,5 +26,5 @@
|
||||
z-index="{{overlayProps.zIndex || 11000}}"
|
||||
prevent-scroll-through="{{preventScrollThrough || overlayProps.preventScrollThrough}}"
|
||||
bind:tap="handleOverlayClick"
|
||||
custom-style="{{overlayProps.customStyle || ''}}"
|
||||
style="{{overlayProps.style || ''}}"
|
||||
/>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
function getPopupStyles(zIndex, customStyle) {
|
||||
function getPopupStyles(zIndex, style) {
|
||||
var zIndexStyle = zIndex ? 'z-index:' + zIndex + ';' : '';
|
||||
return zIndexStyle + customStyle;
|
||||
return zIndexStyle + style;
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
|
||||
@@ -9,7 +9,7 @@ const props = {
|
||||
content: {
|
||||
type: String,
|
||||
},
|
||||
customStyle: {
|
||||
style: {
|
||||
type: String,
|
||||
value: '',
|
||||
},
|
||||
|
||||
@@ -12,7 +12,7 @@ export interface TdPopupProps {
|
||||
type: StringConstructor;
|
||||
value?: string;
|
||||
};
|
||||
customStyle?: {
|
||||
style?: {
|
||||
type: StringConstructor;
|
||||
value?: string;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user