白色主题

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

@@ -1,4 +1,5 @@
import { isPlainObject, toObject } from './flatTool';
import { canUseVirtualHost } from '../version';
const RawLifeCycles = ['Created', 'Attached', 'Ready', 'Moved', 'Detached', 'Error'];
const NativeLifeCycles = RawLifeCycles.map((k) => k.toLowerCase());
const ComponentNativeProps = [
@@ -129,6 +130,9 @@ export const wxComponent = function wxComponent() {
if (current.options.addGlobalClass === undefined) {
current.options.addGlobalClass = true;
}
if (canUseVirtualHost()) {
current.options.virtualHost = true;
}
const obj = toComponent(toObject(current));
Component(obj);
};

View File

@@ -9,7 +9,7 @@
shape="{{shape || 'circle'}}"
show-zero="{{showZero}}"
size="{{size || 'medium'}}"
t-class="{{tClass}}"
t-class="{{class}} {{tClass}}"
t-class-content="{{tClassContent}}"
t-class-count="{{tClassCount}}"
/>

View File

@@ -9,6 +9,7 @@
icon="{{icon}}"
loading="{{loading}}"
theme="{{theme}}"
ghost="{{ghost}}"
shape="{{shape}}"
size="{{size}}"
variant="{{variant}}"

View File

@@ -1,6 +1,6 @@
<template name="icon">
<t-icon
customStyle="{{customStyle}}"
style="{{style}}"
class="{{class}}"
t-class="{{tClass}}"
prefix="{{prefix}}"

View File

@@ -1,6 +1,6 @@
<template name="image">
<t-image
customStyle="{{customStyle}}"
style="{{style}}"
error="{{error || 'default'}}"
lazy="{{lazy}}"
loading="{{count || 'default'}}"
@@ -11,7 +11,7 @@
showMenuByLongpress="{{showMenuByLongpress}}"
bind:error="{{binderror}}"
bind:load="{{bindload}}"
t-class="{{tClass}}"
t-class="{{class}} {{tClass}}"
t-class-load="{{tClassLoad}}"
/>
</template>

View File

@@ -1 +1,2 @@
export declare function canIUseFormFieldButton(): boolean;
export declare function canUseVirtualHost(): boolean;

View File

@@ -35,3 +35,6 @@ export function canIUseFormFieldButton() {
const version = '2.10.3';
return judgeByVersion(version);
}
export function canUseVirtualHost() {
return judgeByVersion('2.19.2');
}