提交 31a2ae74 编写于 作者: Q qiang

style: AnimationElement -> UniAnimationElement

上级 36815c1a
......@@ -14290,7 +14290,7 @@
function getContextInfo(el) {
return el.__uniContextInfo;
}
class AnimationElement extends UniElement {
class UniAnimationElement extends UniElement {
constructor(id2, element, parentNodeId, refNodeId, nodeJson, propNames = []) {
super(id2, element, parentNodeId, refNodeId, nodeJson, [
...animation.props,
......@@ -14314,7 +14314,7 @@
}
}
const PROP_NAMES_HOVER$1 = ["space", "decode"];
class UniTextElement extends AnimationElement {
class UniTextElement extends UniAnimationElement {
constructor(id2, parentNodeId, refNodeId, nodeJson) {
super(id2, document.createElement("uni-text"), parentNodeId, refNodeId, nodeJson, PROP_NAMES_HOVER$1);
this._text = "";
......@@ -14351,7 +14351,7 @@
"hover-start-time",
"hover-stay-time"
];
class UniHoverElement extends AnimationElement {
class UniHoverElement extends UniAnimationElement {
constructor(id2, element, parentNodeId, refNodeId, nodeJson, propNames = []) {
super(id2, element, parentNodeId, refNodeId, nodeJson, [
...PROP_NAMES_HOVER,
......
......@@ -6,7 +6,7 @@ import { UniElement } from './UniElement'
interface AnimationProps {
animation: any
}
export class AnimationElement<T extends object> extends UniElement<
export class UniAnimationElement<T extends object> extends UniElement<
T & AnimationProps
> {
constructor(
......
import { formatLog, UniNodeJSON } from '@dcloudio/uni-shared'
import { AnimationElement } from './AnimationElement'
import { UniAnimationElement } from './UniAnimationElement'
interface HoverProps {
'hover-class': string | 'none'
......@@ -13,7 +13,7 @@ const PROP_NAMES_HOVER = [
'hover-start-time',
'hover-stay-time',
]
export class UniHoverElement extends AnimationElement<HoverProps> {
export class UniHoverElement extends UniAnimationElement<HoverProps> {
private _hover?: Hover
constructor(
id: number,
......
import '@dcloudio/uni-components/style/text.css'
import { DecodeOptions, parseText } from '@dcloudio/uni-components'
import { AnimationElement } from './AnimationElement'
import { UniAnimationElement } from './UniAnimationElement'
import { UniNodeJSON } from '@dcloudio/uni-shared'
interface TextProps {
......@@ -10,7 +10,7 @@ interface TextProps {
const PROP_NAMES_HOVER = ['space', 'decode']
export class UniTextElement extends AnimationElement<TextProps> {
export class UniTextElement extends UniAnimationElement<TextProps> {
private _text: string = ''
constructor(
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册