白色主题

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

@@ -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,

View File

@@ -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 || ''}}"
/>

View File

@@ -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 = {

View File

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

View File

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