mirror of
https://github.com/motajs/template.git
synced 2026-11-14 15:34:30 +08:00
feat: Transition 渐变类
This commit is contained in:
1 parent
f6a065fa3e
commit
9ab0db9465
8 files changed
+426
-164
No files matched your search
@@ -38,8 +38,7 @@ import { DefaultProps } from '@motajs/render-vue';
|
||||
//#region TextContent
|
||||
|
||||
export interface TextContentProps
|
||||
extends DefaultProps,
|
||||
Partial<ITextContentConfig> {
|
||||
extends DefaultProps, Partial<ITextContentConfig> {
|
||||
/** 显示的文字 */
|
||||
text?: string;
|
||||
/** 是否填充 */
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import {
|
||||
Props,
|
||||
Font,
|
||||
IActionEvent,
|
||||
MotaOffscreenCanvas2D,
|
||||
@@ -7,7 +6,7 @@ import {
|
||||
} from '@motajs/render';
|
||||
// import { WeatherController } from '../weather';
|
||||
import { defineComponent, onUnmounted, reactive, ref } from 'vue';
|
||||
import { Textbox, Tip } from '../components';
|
||||
import { Textbox, TextboxProps, Tip } from '../components';
|
||||
import { GameUI } from '@motajs/system';
|
||||
import {
|
||||
ENABLE_RIGHT_STATUS_BAR,
|
||||
@@ -36,7 +35,7 @@ import { onTick } from '@motajs/render-vue';
|
||||
|
||||
const MainScene = defineComponent(() => {
|
||||
//#region 基本定义
|
||||
const mainTextboxProps: Props<typeof Textbox> = {
|
||||
const mainTextboxProps: TextboxProps = {
|
||||
text: '',
|
||||
hidden: true,
|
||||
loc: [0, MAP_HEIGHT - 150, MAP_WIDTH, 150],
|
||||
|
||||
Reference in new issue
Block a user