@quicktvui/ai 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +36 -0
- package/index.js +2 -0
- package/package.json +23 -0
- package/postinstall.js +61 -0
- package/rules/.claude/commands/create-component.md +39 -0
- package/rules/.claude/commands/create-page.md +44 -0
- package/rules/.claude/commands/create-project.md +25 -0
- package/rules/.claude/commands/lookup-api.md +28 -0
- package/rules/.claude/commands/lookup-css.md +53 -0
- package/rules/.claude/settings.local.json +11 -0
- package/rules/.clinerules +367 -0
- package/rules/.cursorrules +367 -0
- package/rules/.docs/examples/component/animation/alpha-props.vue +130 -0
- package/rules/.docs/examples/component/animation/alpha.vue +169 -0
- package/rules/.docs/examples/component/animation/animator-props.vue +101 -0
- package/rules/.docs/examples/component/animation/animators-props.vue +145 -0
- package/rules/.docs/examples/component/animation/animators.vue +322 -0
- package/rules/.docs/examples/component/animation/basic.vue +96 -0
- package/rules/.docs/examples/component/animation/interpolator.vue +330 -0
- package/rules/.docs/examples/component/animation/listener.vue +151 -0
- package/rules/.docs/examples/component/animation/repeat.vue +113 -0
- package/rules/.docs/examples/component/animation/rotation-props.vue +148 -0
- package/rules/.docs/examples/component/animation/rotation-xy.vue +255 -0
- package/rules/.docs/examples/component/animation/rotation.vue +188 -0
- package/rules/.docs/examples/component/animation/scale-props.vue +129 -0
- package/rules/.docs/examples/component/animation/scale.vue +169 -0
- package/rules/.docs/examples/component/animation/translation-props.vue +128 -0
- package/rules/.docs/examples/component/animation/translation.vue +169 -0
- package/rules/.docs/examples/component/aside/basic.vue +34 -0
- package/rules/.docs/examples/component/audio-player/basic.vue +104 -0
- package/rules/.docs/examples/component/audio-player/event-global.vue +492 -0
- package/rules/.docs/examples/component/audio-player/event.vue +447 -0
- package/rules/.docs/examples/component/audio-player/player-manager.vue +100 -0
- package/rules/.docs/examples/component/audio-player-service/basic.vue +102 -0
- package/rules/.docs/examples/component/audio-player-service/event-global.vue +488 -0
- package/rules/.docs/examples/component/audio-player-service/event.vue +420 -0
- package/rules/.docs/examples/component/audio-player-service/player-manager.vue +100 -0
- package/rules/.docs/examples/component/button/background.vue +28 -0
- package/rules/.docs/examples/component/button/basic.vue +13 -0
- package/rules/.docs/examples/component/button/border.vue +18 -0
- package/rules/.docs/examples/component/button/custom-content.vue +18 -0
- package/rules/.docs/examples/component/button/custom-icon-style.vue +25 -0
- package/rules/.docs/examples/component/button/custom-icon.vue +19 -0
- package/rules/.docs/examples/component/button/custom-net-icon.vue +20 -0
- package/rules/.docs/examples/component/button/custom-style.vue +17 -0
- package/rules/.docs/examples/component/button/custom-text.vue +23 -0
- package/rules/.docs/examples/component/button/disabled.vue +13 -0
- package/rules/.docs/examples/component/button/round.vue +13 -0
- package/rules/.docs/examples/component/button/size.vue +16 -0
- package/rules/.docs/examples/component/button/square.vue +13 -0
- package/rules/.docs/examples/component/checkbox-group/basic.vue +97 -0
- package/rules/.docs/examples/component/collapse/basic.vue +156 -0
- package/rules/.docs/examples/component/column/basic.vue +15 -0
- package/rules/.docs/examples/component/container/layout-ahm.vue +48 -0
- package/rules/.docs/examples/component/container/layout-ahmf.vue +51 -0
- package/rules/.docs/examples/component/container/layout-am.vue +43 -0
- package/rules/.docs/examples/component/container/layout-ham.vue +48 -0
- package/rules/.docs/examples/component/container/layout-hamf.vue +53 -0
- package/rules/.docs/examples/component/container/layout-hm.vue +43 -0
- package/rules/.docs/examples/component/container/layout-hmf.vue +46 -0
- package/rules/.docs/examples/component/dialog/basic.vue +72 -0
- package/rules/.docs/examples/component/div/background-img.vue +49 -0
- package/rules/.docs/examples/component/div/background.vue +28 -0
- package/rules/.docs/examples/component/div/basic.vue +28 -0
- package/rules/.docs/examples/component/div/border.vue +72 -0
- package/rules/.docs/examples/component/div/click.vue +66 -0
- package/rules/.docs/examples/component/div/focus-background.vue +60 -0
- package/rules/.docs/examples/component/div/focus.vue +58 -0
- package/rules/.docs/examples/component/div/gradient-background.vue +36 -0
- package/rules/.docs/examples/component/footer/basic.vue +34 -0
- package/rules/.docs/examples/component/grid-view/basic.vue +59 -0
- package/rules/.docs/examples/component/grid-view/page.vue +80 -0
- package/rules/.docs/examples/component/grid-view/ref-base.vue +50 -0
- package/rules/.docs/examples/component/grid-view/ref-page.vue +102 -0
- package/rules/.docs/examples/component/header/basic.vue +39 -0
- package/rules/.docs/examples/component/html/alert.vue +28 -0
- package/rules/.docs/examples/component/html/audio.vue +24 -0
- package/rules/.docs/examples/component/html/h.vue +30 -0
- package/rules/.docs/examples/component/html/sound.vue +33 -0
- package/rules/.docs/examples/component/html/video.vue +23 -0
- package/rules/.docs/examples/component/image/assets.vue +40 -0
- package/rules/.docs/examples/component/image/network.vue +36 -0
- package/rules/.docs/examples/component/img/assets.vue +40 -0
- package/rules/.docs/examples/component/img/network.vue +36 -0
- package/rules/.docs/examples/component/indicator-list-view/basic.vue +476 -0
- package/rules/.docs/examples/component/input/basic.vue +26 -0
- package/rules/.docs/examples/component/list-view/basic.vue +58 -0
- package/rules/.docs/examples/component/list-view/ref-basic.vue +33 -0
- package/rules/.docs/examples/component/list-view/ref-operations.vue +58 -0
- package/rules/.docs/examples/component/list-view/ref-page.vue +82 -0
- package/rules/.docs/examples/component/loading/basic.vue +12 -0
- package/rules/.docs/examples/component/lottie/basic.vue +83 -0
- package/rules/.docs/examples/component/lottie/event.vue +126 -0
- package/rules/.docs/examples/component/lottie/local.vue +90 -0
- package/rules/.docs/examples/component/lottie/network.vue +82 -0
- package/rules/.docs/examples/component/main/basic.vue +34 -0
- package/rules/.docs/examples/component/nav-bar/basic.vue +45 -0
- package/rules/.docs/examples/component/p/basic.vue +40 -0
- package/rules/.docs/examples/component/p/gravity.vue +62 -0
- package/rules/.docs/examples/component/player-manager/aspect-ratio.vue +286 -0
- package/rules/.docs/examples/component/player-manager/basic.vue +87 -0
- package/rules/.docs/examples/component/player-manager/control.vue +356 -0
- package/rules/.docs/examples/component/player-manager/custom-player-view.vue +105 -0
- package/rules/.docs/examples/component/player-manager/custom-player.vue +100 -0
- package/rules/.docs/examples/component/player-manager/decode.vue +218 -0
- package/rules/.docs/examples/component/player-manager/definition.vue +199 -0
- package/rules/.docs/examples/component/player-manager/event-global.vue +581 -0
- package/rules/.docs/examples/component/player-manager/event.vue +632 -0
- package/rules/.docs/examples/component/player-manager/image-player.vue +331 -0
- package/rules/.docs/examples/component/player-manager/media-item-interceptor.vue +105 -0
- package/rules/.docs/examples/component/player-manager/media-item-list-interceptor.vue +104 -0
- package/rules/.docs/examples/component/player-manager/media-item-list.vue +268 -0
- package/rules/.docs/examples/component/player-manager/media-source-interceptor.vue +115 -0
- package/rules/.docs/examples/component/player-manager/media-source-list-interceptor.vue +111 -0
- package/rules/.docs/examples/component/player-manager/multi-player.vue +130 -0
- package/rules/.docs/examples/component/player-manager/play-mode.vue +260 -0
- package/rules/.docs/examples/component/player-manager/play-rate.vue +244 -0
- package/rules/.docs/examples/component/player-manager/player-size.vue +119 -0
- package/rules/.docs/examples/component/player-manager/player-view.vue +381 -0
- package/rules/.docs/examples/component/player-manager/post-roll-ad.vue +189 -0
- package/rules/.docs/examples/component/player-manager/previous-roll-ad.vue +172 -0
- package/rules/.docs/examples/component/player-manager/start-position.vue +108 -0
- package/rules/.docs/examples/component/player-manager/text-left-player.vue +306 -0
- package/rules/.docs/examples/component/player-manager/text-right-player.vue +306 -0
- package/rules/.docs/examples/component/player-manager/window.vue +140 -0
- package/rules/.docs/examples/component/poster/basic.vue +144 -0
- package/rules/.docs/examples/component/poster/corner.vue +123 -0
- package/rules/.docs/examples/component/poster/decoration.vue +82 -0
- package/rules/.docs/examples/component/poster/float-title.vue +103 -0
- package/rules/.docs/examples/component/poster/ripple.vue +118 -0
- package/rules/.docs/examples/component/poster/score.vue +108 -0
- package/rules/.docs/examples/component/poster/shadow.vue +113 -0
- package/rules/.docs/examples/component/poster/shimmer.vue +113 -0
- package/rules/.docs/examples/component/poster/sub-title.vue +110 -0
- package/rules/.docs/examples/component/poster/title.vue +106 -0
- package/rules/.docs/examples/component/progress-bar/basic.vue +61 -0
- package/rules/.docs/examples/component/qr-code/basic.vue +16 -0
- package/rules/.docs/examples/component/radio-group/basic.vue +105 -0
- package/rules/.docs/examples/component/rating-bar/basic.vue +152 -0
- package/rules/.docs/examples/component/row/basic.vue +15 -0
- package/rules/.docs/examples/component/seek-bar/bar.vue +49 -0
- package/rules/.docs/examples/component/seek-bar/basic.vue +191 -0
- package/rules/.docs/examples/component/seek-bar/indicator.vue +74 -0
- package/rules/.docs/examples/component/seek-bar/range-mode.vue +130 -0
- package/rules/.docs/examples/component/seek-bar/single-mode.vue +113 -0
- package/rules/.docs/examples/component/seek-bar/step.vue +186 -0
- package/rules/.docs/examples/component/seek-bar/thumb.vue +148 -0
- package/rules/.docs/examples/component/seek-bar/tick-mark.vue +121 -0
- package/rules/.docs/examples/component/switch/basic.vue +26 -0
- package/rules/.docs/examples/component/tabs/basic.vue +109 -0
- package/rules/.docs/examples/component/tabs/custom-tab-item.vue +120 -0
- package/rules/.docs/examples/component/tabs/data.vue +121 -0
- package/rules/.docs/examples/component/tabs/horizontal.vue +118 -0
- package/rules/.docs/examples/component/tabs/item-add.vue +127 -0
- package/rules/.docs/examples/component/tabs/item-custom.vue +132 -0
- package/rules/.docs/examples/component/tabs/item-delete.vue +123 -0
- package/rules/.docs/examples/component/tabs/item-get.vue +124 -0
- package/rules/.docs/examples/component/tabs/item-update.vue +129 -0
- package/rules/.docs/examples/component/tabs/ref-basic.vue +63 -0
- package/rules/.docs/examples/component/tabs/ref-operations.vue +97 -0
- package/rules/.docs/examples/component/tabs/ref-page.vue +89 -0
- package/rules/.docs/examples/component/tabs/section-add.vue +138 -0
- package/rules/.docs/examples/component/tabs/section-delete.vue +126 -0
- package/rules/.docs/examples/component/tabs/section-get.vue +128 -0
- package/rules/.docs/examples/component/tabs/section-update.vue +137 -0
- package/rules/.docs/examples/component/tabs/section-vue.vue +111 -0
- package/rules/.docs/examples/component/tabs/single-tab.vue +112 -0
- package/rules/.docs/examples/component/text/basic.vue +20 -0
- package/rules/.docs/examples/component/text/ellipsize-mode.vue +122 -0
- package/rules/.docs/examples/component/text/gravity.vue +119 -0
- package/rules/.docs/examples/component/video-player/aspect-ratio.vue +242 -0
- package/rules/.docs/examples/component/video-player/basic.vue +82 -0
- package/rules/.docs/examples/component/video-player/control.vue +240 -0
- package/rules/.docs/examples/component/video-player/decode.vue +174 -0
- package/rules/.docs/examples/component/video-player/definition.vue +194 -0
- package/rules/.docs/examples/component/video-player/event-global.vue +89 -0
- package/rules/.docs/examples/component/video-player/event.vue +448 -0
- package/rules/.docs/examples/component/video-player/page.vue +150 -0
- package/rules/.docs/examples/component/video-player/play-mode.vue +220 -0
- package/rules/.docs/examples/component/video-player/play-rate.vue +198 -0
- package/rules/.docs/examples/component/video-player/progress.vue +211 -0
- package/rules/.docs/examples/component/video-player/render.vue +187 -0
- package/rules/.docs/examples/component/video-player/type.vue +133 -0
- package/rules/.docs/examples/component/view/background-img.vue +49 -0
- package/rules/.docs/examples/component/view/background.vue +28 -0
- package/rules/.docs/examples/component/view/basic.vue +28 -0
- package/rules/.docs/examples/component/view/border.vue +72 -0
- package/rules/.docs/examples/component/view/click.vue +66 -0
- package/rules/.docs/examples/component/view/focus-background.vue +60 -0
- package/rules/.docs/examples/component/view/focus.vue +58 -0
- package/rules/.docs/examples/component/view/gradient-background.vue +36 -0
- package/rules/.docs/examples/component/waterfall/basic.vue +167 -0
- package/rules/.docs/examples/component/waterfall/event.vue +154 -0
- package/rules/.docs/examples/component/waterfall/item-add.vue +82 -0
- package/rules/.docs/examples/component/waterfall/item-card-placeholder.vue +67 -0
- package/rules/.docs/examples/component/waterfall/item-card.vue +66 -0
- package/rules/.docs/examples/component/waterfall/item-custom.vue +81 -0
- package/rules/.docs/examples/component/waterfall/item-decoration.vue +63 -0
- package/rules/.docs/examples/component/waterfall/item-delete.vue +90 -0
- package/rules/.docs/examples/component/waterfall/item-get.vue +68 -0
- package/rules/.docs/examples/component/waterfall/item-update.vue +85 -0
- package/rules/.docs/examples/component/waterfall/ref-base.vue +141 -0
- package/rules/.docs/examples/component/waterfall/ref-operations.vue +192 -0
- package/rules/.docs/examples/component/waterfall/section-add.vue +72 -0
- package/rules/.docs/examples/component/waterfall/section-background.vue +94 -0
- package/rules/.docs/examples/component/waterfall/section-blank.vue +62 -0
- package/rules/.docs/examples/component/waterfall/section-card-placeholder.vue +90 -0
- package/rules/.docs/examples/component/waterfall/section-card.vue +83 -0
- package/rules/.docs/examples/component/waterfall/section-custom.vue +68 -0
- package/rules/.docs/examples/component/waterfall/section-decoration.vue +80 -0
- package/rules/.docs/examples/component/waterfall/section-delete.vue +76 -0
- package/rules/.docs/examples/component/waterfall/section-end.vue +91 -0
- package/rules/.docs/examples/component/waterfall/section-get.vue +74 -0
- package/rules/.docs/examples/component/waterfall/section-list.vue +56 -0
- package/rules/.docs/examples/component/waterfall/section-tabs-list.vue +149 -0
- package/rules/.docs/examples/component/waterfall/section-tabs.vue +153 -0
- package/rules/.docs/examples/component/waterfall/section-time.vue +48 -0
- package/rules/.docs/examples/component/waterfall/section-update.vue +118 -0
- package/rules/.docs/examples/component/waterfall/section-vue.vue +81 -0
- package/rules/.docs/examples/component/web-view/basic.vue +54 -0
- package/rules/.docs/examples/component/web-view/js-2-vue.vue +49 -0
- package/rules/.docs/examples/component/web-view/vue-2-js.vue +60 -0
- package/rules/.docs/examples/component/x5-web-view/basic.vue +54 -0
- package/rules/.docs/examples/css/gradient/basic.vue +43 -0
- package/rules/.docs/examples/css/gradient/corner-radii4.vue +86 -0
- package/rules/.docs/examples/css/gradient/corner-radius.vue +86 -0
- package/rules/.docs/examples/css/gradient/orientation.vue +168 -0
- package/rules/.docs/examples/css/gradient/shape.vue +97 -0
- package/rules/.docs/examples/css/gradient/type.vue +83 -0
- package/rules/.docs/examples/guide/router/app.vue +52 -0
- package/rules/.docs/examples/guide/slot/basic.vue +32 -0
- package/rules/.docs/examples/guide/slot/lifecycle.vue +106 -0
- package/rules/.docs/examples/module/action-bar/es-basic.vue +51 -0
- package/rules/.docs/examples/module/action-bar/qt-basic.vue +47 -0
- package/rules/.docs/examples/module/app-list/es-basic.vue +53 -0
- package/rules/.docs/examples/module/app-list/qt-basic.vue +50 -0
- package/rules/.docs/examples/module/audio/es-basic.vue +71 -0
- package/rules/.docs/examples/module/audio/qt-basic.vue +63 -0
- package/rules/.docs/examples/module/brightness/es-basic.vue +118 -0
- package/rules/.docs/examples/module/brightness/qt-basic.vue +115 -0
- package/rules/.docs/examples/module/broadcast/es-basic.vue +340 -0
- package/rules/.docs/examples/module/broadcast/qt-basic.vue +331 -0
- package/rules/.docs/examples/module/content-provider/es-basic.vue +92 -0
- package/rules/.docs/examples/module/content-provider/qt-basic.vue +86 -0
- package/rules/.docs/examples/module/develop/es-basic.vue +45 -0
- package/rules/.docs/examples/module/develop/qt-basic.vue +43 -0
- package/rules/.docs/examples/module/device/es-basic.vue +169 -0
- package/rules/.docs/examples/module/device/qt-basic.vue +166 -0
- package/rules/.docs/examples/module/display/es-basic.vue +45 -0
- package/rules/.docs/examples/module/display/qt-basic.vue +43 -0
- package/rules/.docs/examples/module/download/es-basic.vue +174 -0
- package/rules/.docs/examples/module/download/qt-basic.vue +168 -0
- package/rules/.docs/examples/module/es/es-basic.vue +74 -0
- package/rules/.docs/examples/module/es/qt-basic.vue +74 -0
- package/rules/.docs/examples/module/event-bus/es-emit.vue +31 -0
- package/rules/.docs/examples/module/event-bus/es-off.vue +53 -0
- package/rules/.docs/examples/module/event-bus/es-on.vue +56 -0
- package/rules/.docs/examples/module/event-bus/es-once.vue +47 -0
- package/rules/.docs/examples/module/event-bus/qt-emit.vue +28 -0
- package/rules/.docs/examples/module/event-bus/qt-off.vue +51 -0
- package/rules/.docs/examples/module/event-bus/qt-on.vue +53 -0
- package/rules/.docs/examples/module/event-bus/qt-once.vue +45 -0
- package/rules/.docs/examples/module/file/es-basic.vue +188 -0
- package/rules/.docs/examples/module/iac/es-basic.vue +211 -0
- package/rules/.docs/examples/module/iac/qt-basic.vue +208 -0
- package/rules/.docs/examples/module/key/es-back.vue +32 -0
- package/rules/.docs/examples/module/key/es-dispatch.vue +34 -0
- package/rules/.docs/examples/module/key/es-event.vue +34 -0
- package/rules/.docs/examples/module/local-storage/es-basic.vue +92 -0
- package/rules/.docs/examples/module/local-storage/qt-basic.vue +86 -0
- package/rules/.docs/examples/module/location/es-basic.vue +69 -0
- package/rules/.docs/examples/module/location/qt-basic.vue +67 -0
- package/rules/.docs/examples/module/log/es-basic.vue +45 -0
- package/rules/.docs/examples/module/log/qt-basic.vue +44 -0
- package/rules/.docs/examples/module/network/es-basic.vue +64 -0
- package/rules/.docs/examples/module/network/qt-basic.vue +60 -0
- package/rules/.docs/examples/module/page/es-app-lifecycle.vue +83 -0
- package/rules/.docs/examples/module/page/es-page-lifecycle.vue +80 -0
- package/rules/.docs/examples/module/page/es-page-state.vue +36 -0
- package/rules/.docs/examples/module/permission/es-basic.vue +62 -0
- package/rules/.docs/examples/module/permission/qt-basic.vue +59 -0
- package/rules/.docs/examples/module/plugin/es-basic.vue +71 -0
- package/rules/.docs/examples/module/plugin/qt-basic.vue +69 -0
- package/rules/.docs/examples/module/power/es-basic.vue +45 -0
- package/rules/.docs/examples/module/power/qt-basic.vue +41 -0
- package/rules/.docs/examples/module/runtime/es-basic.vue +42 -0
- package/rules/.docs/examples/module/runtime/qt-basic.vue +40 -0
- package/rules/.docs/examples/module/service/es-basic.vue +34 -0
- package/rules/.docs/examples/module/service/qt-basic.vue +31 -0
- package/rules/.docs/examples/module/share-data/es-basic.vue +266 -0
- package/rules/.docs/examples/module/share-data/qt-basic.vue +259 -0
- package/rules/.docs/examples/module/toast/es-basic.vue +47 -0
- package/rules/.docs/examples/module/toast/qt-basic.vue +44 -0
- package/rules/.docs/examples/module/upload/es-basic.vue +65 -0
- package/rules/.docs/examples/module/upload/qt-basic.vue +63 -0
- package/rules/.docs/examples/module/usb/es-basic.vue +138 -0
- package/rules/.docs/examples/module/usb/qt-basic.vue +135 -0
- package/rules/.docs/examples/module/xlog/es-basic.vue +45 -0
- package/rules/.docs/examples/module/xlog/qt-basic.vue +44 -0
- package/rules/.docs/examples/test/basic.vue +48 -0
- package/rules/.docs/index.md +7 -0
- package/rules/.docs/zh-CN/component/animation/alpha.md +22 -0
- package/rules/.docs/zh-CN/component/animation/animators.md +227 -0
- package/rules/.docs/zh-CN/component/animation/interpolator.md +59 -0
- package/rules/.docs/zh-CN/component/animation/introduction.md +101 -0
- package/rules/.docs/zh-CN/component/animation/listener.md +175 -0
- package/rules/.docs/zh-CN/component/animation/method.md +87 -0
- package/rules/.docs/zh-CN/component/animation/props.md +76 -0
- package/rules/.docs/zh-CN/component/animation/repeat.md +46 -0
- package/rules/.docs/zh-CN/component/animation/rotation-xy.md +17 -0
- package/rules/.docs/zh-CN/component/animation/rotation.md +23 -0
- package/rules/.docs/zh-CN/component/animation/scale.md +24 -0
- package/rules/.docs/zh-CN/component/animation/translation.md +22 -0
- package/rules/.docs/zh-CN/component/app-icon.md +22 -0
- package/rules/.docs/zh-CN/component/aside.md +14 -0
- package/rules/.docs/zh-CN/component/audio-player/basic.md +52 -0
- package/rules/.docs/zh-CN/component/audio-player/installation.md +26 -0
- package/rules/.docs/zh-CN/component/audio-player/introduction.md +12 -0
- package/rules/.docs/zh-CN/component/audio-player/player-manager.md +72 -0
- package/rules/.docs/zh-CN/component/audio-service-player/basic.md +52 -0
- package/rules/.docs/zh-CN/component/audio-service-player/installation.md +26 -0
- package/rules/.docs/zh-CN/component/audio-service-player/introduction.md +13 -0
- package/rules/.docs/zh-CN/component/audio-service-player/player-manager.md +71 -0
- package/rules/.docs/zh-CN/component/button.md +120 -0
- package/rules/.docs/zh-CN/component/card-container.md +24 -0
- package/rules/.docs/zh-CN/component/card.md +17 -0
- package/rules/.docs/zh-CN/component/checkbox-group.md +57 -0
- package/rules/.docs/zh-CN/component/classified-list-view.md +44 -0
- package/rules/.docs/zh-CN/component/collapse.md +45 -0
- package/rules/.docs/zh-CN/component/column.md +26 -0
- package/rules/.docs/zh-CN/component/container.md +81 -0
- package/rules/.docs/zh-CN/component/dialog.md +26 -0
- package/rules/.docs/zh-CN/component/div.md +234 -0
- package/rules/.docs/zh-CN/component/flex-view.md +14 -0
- package/rules/.docs/zh-CN/component/footer.md +14 -0
- package/rules/.docs/zh-CN/component/grid-view.md +221 -0
- package/rules/.docs/zh-CN/component/header.md +15 -0
- package/rules/.docs/zh-CN/component/html/alert.md +14 -0
- package/rules/.docs/zh-CN/component/html/audio.md +37 -0
- package/rules/.docs/zh-CN/component/html/h.md +15 -0
- package/rules/.docs/zh-CN/component/html/installation.md +67 -0
- package/rules/.docs/zh-CN/component/html/introduction.md +10 -0
- package/rules/.docs/zh-CN/component/html/video.md +39 -0
- package/rules/.docs/zh-CN/component/image.md +88 -0
- package/rules/.docs/zh-CN/component/img.md +118 -0
- package/rules/.docs/zh-CN/component/indicator-list-view.md +118 -0
- package/rules/.docs/zh-CN/component/input.md +54 -0
- package/rules/.docs/zh-CN/component/item-store.md +14 -0
- package/rules/.docs/zh-CN/component/item-view.md +14 -0
- package/rules/.docs/zh-CN/component/js-view.md +14 -0
- package/rules/.docs/zh-CN/component/js2vue.md +43 -0
- package/rules/.docs/zh-CN/component/large-list.md +20 -0
- package/rules/.docs/zh-CN/component/li.md +16 -0
- package/rules/.docs/zh-CN/component/list-item.md +34 -0
- package/rules/.docs/zh-CN/component/list-view.md +233 -0
- package/rules/.docs/zh-CN/component/loading.md +22 -0
- package/rules/.docs/zh-CN/component/lottie/assets.md +19 -0
- package/rules/.docs/zh-CN/component/lottie/basic.md +51 -0
- package/rules/.docs/zh-CN/component/lottie/event.md +23 -0
- package/rules/.docs/zh-CN/component/lottie/introduction.md +93 -0
- package/rules/.docs/zh-CN/component/lottie/network.md +12 -0
- package/rules/.docs/zh-CN/component/main.md +14 -0
- package/rules/.docs/zh-CN/component/media-series.md +44 -0
- package/rules/.docs/zh-CN/component/nav-bar.md +51 -0
- package/rules/.docs/zh-CN/component/overview.md +20 -0
- package/rules/.docs/zh-CN/component/p.md +55 -0
- package/rules/.docs/zh-CN/component/play-mark-view.md +25 -0
- package/rules/.docs/zh-CN/component/player/global-event.md +24 -0
- package/rules/.docs/zh-CN/component/player/interceptor.md +48 -0
- package/rules/.docs/zh-CN/component/player/media-player.md +43 -0
- package/rules/.docs/zh-CN/component/player/page-player.md +118 -0
- package/rules/.docs/zh-CN/component/player/player.md +190 -0
- package/rules/.docs/zh-CN/component/player-manager/aspect-ratio.md +51 -0
- package/rules/.docs/zh-CN/component/player-manager/basic.md +69 -0
- package/rules/.docs/zh-CN/component/player-manager/control.md +32 -0
- package/rules/.docs/zh-CN/component/player-manager/custom-control.md +105 -0
- package/rules/.docs/zh-CN/component/player-manager/data-structure.md +29 -0
- package/rules/.docs/zh-CN/component/player-manager/decode.md +46 -0
- package/rules/.docs/zh-CN/component/player-manager/definition.md +85 -0
- package/rules/.docs/zh-CN/component/player-manager/event.md +16 -0
- package/rules/.docs/zh-CN/component/player-manager/global-event.md +304 -0
- package/rules/.docs/zh-CN/component/player-manager/installation.md +33 -0
- package/rules/.docs/zh-CN/component/player-manager/introduction.md +207 -0
- package/rules/.docs/zh-CN/component/player-manager/media-item-interceptor.md +197 -0
- package/rules/.docs/zh-CN/component/player-manager/media-item-list-interceptor.md +189 -0
- package/rules/.docs/zh-CN/component/player-manager/media-item-list.md +31 -0
- package/rules/.docs/zh-CN/component/player-manager/media-source-interceptor.md +166 -0
- package/rules/.docs/zh-CN/component/player-manager/media-source-list-interceptor.md +168 -0
- package/rules/.docs/zh-CN/component/player-manager/mode.md +46 -0
- package/rules/.docs/zh-CN/component/player-manager/multiple-player.md +124 -0
- package/rules/.docs/zh-CN/component/player-manager/player-type.md +38 -0
- package/rules/.docs/zh-CN/component/player-manager/player-view.md +31 -0
- package/rules/.docs/zh-CN/component/player-manager/player.md +73 -0
- package/rules/.docs/zh-CN/component/player-manager/position.md +27 -0
- package/rules/.docs/zh-CN/component/player-manager/rate.md +53 -0
- package/rules/.docs/zh-CN/component/player-manager/size.md +17 -0
- package/rules/.docs/zh-CN/component/player-manager/window.md +65 -0
- package/rules/.docs/zh-CN/component/plugin-view.md +21 -0
- package/rules/.docs/zh-CN/component/poster.md +102 -0
- package/rules/.docs/zh-CN/component/progress-bar.md +347 -0
- package/rules/.docs/zh-CN/component/qr-code.md +23 -0
- package/rules/.docs/zh-CN/component/radio-group.md +57 -0
- package/rules/.docs/zh-CN/component/rating-bar.md +43 -0
- package/rules/.docs/zh-CN/component/replace-child.md +20 -0
- package/rules/.docs/zh-CN/component/ripple-view.md +14 -0
- package/rules/.docs/zh-CN/component/row.md +29 -0
- package/rules/.docs/zh-CN/component/scroll-view.md +21 -0
- package/rules/.docs/zh-CN/component/seek-bar.md +377 -0
- package/rules/.docs/zh-CN/component/surface-view.md +14 -0
- package/rules/.docs/zh-CN/component/swift-list.md +21 -0
- package/rules/.docs/zh-CN/component/swiper-slide.md +18 -0
- package/rules/.docs/zh-CN/component/swiper.md +34 -0
- package/rules/.docs/zh-CN/component/switch.md +37 -0
- package/rules/.docs/zh-CN/component/tabs-view.md +44 -0
- package/rules/.docs/zh-CN/component/tabs.md +286 -0
- package/rules/.docs/zh-CN/component/test.md +58 -0
- package/rules/.docs/zh-CN/component/text.md +115 -0
- package/rules/.docs/zh-CN/component/transition-img.md +22 -0
- package/rules/.docs/zh-CN/component/ul.md +83 -0
- package/rules/.docs/zh-CN/component/video-player/aspect-ratio.md +49 -0
- package/rules/.docs/zh-CN/component/video-player/basic.md +55 -0
- package/rules/.docs/zh-CN/component/video-player/control.md +23 -0
- package/rules/.docs/zh-CN/component/video-player/decode.md +46 -0
- package/rules/.docs/zh-CN/component/video-player/definition.md +85 -0
- package/rules/.docs/zh-CN/component/video-player/event.md +16 -0
- package/rules/.docs/zh-CN/component/video-player/global-event.md +268 -0
- package/rules/.docs/zh-CN/component/video-player/installation.md +33 -0
- package/rules/.docs/zh-CN/component/video-player/introduction.md +18 -0
- package/rules/.docs/zh-CN/component/video-player/mode.md +50 -0
- package/rules/.docs/zh-CN/component/video-player/progress.md +51 -0
- package/rules/.docs/zh-CN/component/video-player/rate.md +53 -0
- package/rules/.docs/zh-CN/component/video-player/render.md +47 -0
- package/rules/.docs/zh-CN/component/video-player/type.md +32 -0
- package/rules/.docs/zh-CN/component/view-pager.md +14 -0
- package/rules/.docs/zh-CN/component/view.md +234 -0
- package/rules/.docs/zh-CN/component/virtual-dom.md +4 -0
- package/rules/.docs/zh-CN/component/virtual.md +8 -0
- package/rules/.docs/zh-CN/component/vue-section.md +29 -0
- package/rules/.docs/zh-CN/component/vue2js.md +47 -0
- package/rules/.docs/zh-CN/component/waterfall.md +447 -0
- package/rules/.docs/zh-CN/component/web-view.md +100 -0
- package/rules/.docs/zh-CN/component/x5web-view.md +100 -0
- package/rules/.docs/zh-CN/cooperation/index.md +6 -0
- package/rules/.docs/zh-CN/css/color/gradient.md +111 -0
- package/rules/.docs/zh-CN/css/color/hsl.md +11 -0
- package/rules/.docs/zh-CN/css/color/name.md +151 -0
- package/rules/.docs/zh-CN/css/color/rgb.md +16 -0
- package/rules/.docs/zh-CN/css/color/transparent.md +9 -0
- package/rules/.docs/zh-CN/css/layout/align-items.md +13 -0
- package/rules/.docs/zh-CN/css/layout/align-self.md +12 -0
- package/rules/.docs/zh-CN/css/layout/background-position-x.md +12 -0
- package/rules/.docs/zh-CN/css/layout/background-position-y.md +12 -0
- package/rules/.docs/zh-CN/css/layout/background-size.md +12 -0
- package/rules/.docs/zh-CN/css/layout/collapsable.md +13 -0
- package/rules/.docs/zh-CN/css/layout/display.md +12 -0
- package/rules/.docs/zh-CN/css/layout/flex-basis.md +12 -0
- package/rules/.docs/zh-CN/css/layout/flex-direction.md +15 -0
- package/rules/.docs/zh-CN/css/layout/flex-grow.md +15 -0
- package/rules/.docs/zh-CN/css/layout/flex-shrink.md +12 -0
- package/rules/.docs/zh-CN/css/layout/flex-wrap.md +12 -0
- package/rules/.docs/zh-CN/css/layout/flex.md +12 -0
- package/rules/.docs/zh-CN/css/layout/height.md +12 -0
- package/rules/.docs/zh-CN/css/layout/justify-content.md +12 -0
- package/rules/.docs/zh-CN/css/layout/left.md +13 -0
- package/rules/.docs/zh-CN/css/layout/line-height.md +12 -0
- package/rules/.docs/zh-CN/css/layout/margin-bottom.md +12 -0
- package/rules/.docs/zh-CN/css/layout/margin-horizontal.md +12 -0
- package/rules/.docs/zh-CN/css/layout/margin-left.md +12 -0
- package/rules/.docs/zh-CN/css/layout/margin-right.md +12 -0
- package/rules/.docs/zh-CN/css/layout/margin-top.md +12 -0
- package/rules/.docs/zh-CN/css/layout/margin-vertical.md +12 -0
- package/rules/.docs/zh-CN/css/layout/margin.md +12 -0
- package/rules/.docs/zh-CN/css/layout/max-height.md +10 -0
- package/rules/.docs/zh-CN/css/layout/max-width.md +10 -0
- package/rules/.docs/zh-CN/css/layout/min-height.md +10 -0
- package/rules/.docs/zh-CN/css/layout/min-width.md +10 -0
- package/rules/.docs/zh-CN/css/layout/overflow.md +12 -0
- package/rules/.docs/zh-CN/css/layout/padding-bottom.md +12 -0
- package/rules/.docs/zh-CN/css/layout/padding-horizontal.md +12 -0
- package/rules/.docs/zh-CN/css/layout/padding-left.md +12 -0
- package/rules/.docs/zh-CN/css/layout/padding-right.md +12 -0
- package/rules/.docs/zh-CN/css/layout/padding-top.md +12 -0
- package/rules/.docs/zh-CN/css/layout/padding-vertical.md +12 -0
- package/rules/.docs/zh-CN/css/layout/padding.md +12 -0
- package/rules/.docs/zh-CN/css/layout/position.md +14 -0
- package/rules/.docs/zh-CN/css/layout/right.md +13 -0
- package/rules/.docs/zh-CN/css/layout/text-align.md +12 -0
- package/rules/.docs/zh-CN/css/layout/top.md +12 -0
- package/rules/.docs/zh-CN/css/layout/width.md +12 -0
- package/rules/.docs/zh-CN/css/layout/z-index.md +12 -0
- package/rules/.docs/zh-CN/css/overview.md +8 -0
- package/rules/.docs/zh-CN/css/style/background-color.md +10 -0
- package/rules/.docs/zh-CN/css/style/border-bottom-color.md +10 -0
- package/rules/.docs/zh-CN/css/style/border-bottom-left-radius.md +10 -0
- package/rules/.docs/zh-CN/css/style/border-bottom-right-radius.md +10 -0
- package/rules/.docs/zh-CN/css/style/border-bottom-width.md +10 -0
- package/rules/.docs/zh-CN/css/style/border-color.md +10 -0
- package/rules/.docs/zh-CN/css/style/border-left-color.md +10 -0
- package/rules/.docs/zh-CN/css/style/border-left-width.md +10 -0
- package/rules/.docs/zh-CN/css/style/border-radius.md +10 -0
- package/rules/.docs/zh-CN/css/style/border-right-color.md +10 -0
- package/rules/.docs/zh-CN/css/style/border-right-width.md +10 -0
- package/rules/.docs/zh-CN/css/style/border-style.md +10 -0
- package/rules/.docs/zh-CN/css/style/border-top-color.md +10 -0
- package/rules/.docs/zh-CN/css/style/border-top-left-radius.md +10 -0
- package/rules/.docs/zh-CN/css/style/border-top-right-radius.md +10 -0
- package/rules/.docs/zh-CN/css/style/border-top-width.md +10 -0
- package/rules/.docs/zh-CN/css/style/border-width.md +10 -0
- package/rules/.docs/zh-CN/css/style/box-shadow.md +10 -0
- package/rules/.docs/zh-CN/css/style/color.md +10 -0
- package/rules/.docs/zh-CN/css/style/font-family.md +10 -0
- package/rules/.docs/zh-CN/css/style/font-size.md +10 -0
- package/rules/.docs/zh-CN/css/style/font-style.md +10 -0
- package/rules/.docs/zh-CN/css/style/font-weight.md +10 -0
- package/rules/.docs/zh-CN/css/style/letter-spacing.md +10 -0
- package/rules/.docs/zh-CN/css/style/opacity.md +10 -0
- package/rules/.docs/zh-CN/css/style/text-decoration-color.md +10 -0
- package/rules/.docs/zh-CN/css/style/text-decoration-line.md +10 -0
- package/rules/.docs/zh-CN/css/style/text-decoration.md +12 -0
- package/rules/.docs/zh-CN/css/style/tint-color.md +10 -0
- package/rules/.docs/zh-CN/css/style/visibility.md +10 -0
- package/rules/.docs/zh-CN/guide/basic/appendix.md +35 -0
- package/rules/.docs/zh-CN/guide/basic/dev-debug.md +94 -0
- package/rules/.docs/zh-CN/guide/basic/dev-tools.md +22 -0
- package/rules/.docs/zh-CN/guide/basic/installation.md +144 -0
- package/rules/.docs/zh-CN/guide/basic/language.md +10 -0
- package/rules/.docs/zh-CN/guide/basic/package-manager.md +8 -0
- package/rules/.docs/zh-CN/guide/basic/quick-start.md +150 -0
- package/rules/.docs/zh-CN/guide/changelog.md +20 -0
- package/rules/.docs/zh-CN/guide/commit-examples.md +90 -0
- package/rules/.docs/zh-CN/guide/compile/obfuscator.md +56 -0
- package/rules/.docs/zh-CN/guide/compile/pack.md +8 -0
- package/rules/.docs/zh-CN/guide/compile/resource.md +96 -0
- package/rules/.docs/zh-CN/guide/compile/split-chunks.md +66 -0
- package/rules/.docs/zh-CN/guide/dark-mode.md +84 -0
- package/rules/.docs/zh-CN/guide/design.md +34 -0
- package/rules/.docs/zh-CN/guide/dev-faq.md +41 -0
- package/rules/.docs/zh-CN/guide/dev-guide.md +55 -0
- package/rules/.docs/zh-CN/guide/device/ch.md +18 -0
- package/rules/.docs/zh-CN/guide/device/haier.md +12 -0
- package/rules/.docs/zh-CN/guide/device/hisense.md +24 -0
- package/rules/.docs/zh-CN/guide/device/huawei.md +16 -0
- package/rules/.docs/zh-CN/guide/device/konka.md +12 -0
- package/rules/.docs/zh-CN/guide/device/le.md +19 -0
- package/rules/.docs/zh-CN/guide/device/skyworth.md +25 -0
- package/rules/.docs/zh-CN/guide/device/tcl.md +21 -0
- package/rules/.docs/zh-CN/guide/device/tencent.md +24 -0
- package/rules/.docs/zh-CN/guide/device/tmall.md +18 -0
- package/rules/.docs/zh-CN/guide/device/xiaomi.md +46 -0
- package/rules/.docs/zh-CN/guide/faq/dev-faq.md +100 -0
- package/rules/.docs/zh-CN/guide/faq/develop-faq.md +39 -0
- package/rules/.docs/zh-CN/guide/faq/launch-params-faq.md +119 -0
- package/rules/.docs/zh-CN/guide/faq/layout-style-faq.md +66 -0
- package/rules/.docs/zh-CN/guide/focus/auto-focus.md +94 -0
- package/rules/.docs/zh-CN/guide/focus/basic.md +133 -0
- package/rules/.docs/zh-CN/guide/focus/debug-tool.md +40 -0
- package/rules/.docs/zh-CN/guide/focus/focus-method.md +317 -0
- package/rules/.docs/zh-CN/guide/focus/list-auto-focus.md +94 -0
- package/rules/.docs/zh-CN/guide/focus/request-focus.md +10 -0
- package/rules/.docs/zh-CN/guide/interaction/click.md +39 -0
- package/rules/.docs/zh-CN/guide/interaction/focus.md +44 -0
- package/rules/.docs/zh-CN/guide/key/back.md +65 -0
- package/rules/.docs/zh-CN/guide/key/dispatch-key-event.md +41 -0
- package/rules/.docs/zh-CN/guide/key/key-event.md +87 -0
- package/rules/.docs/zh-CN/guide/layout/adapter.md +33 -0
- package/rules/.docs/zh-CN/guide/layout/layout.md +42 -0
- package/rules/.docs/zh-CN/guide/layout/style.md +64 -0
- package/rules/.docs/zh-CN/guide/layout/theming.md +154 -0
- package/rules/.docs/zh-CN/guide/migration.md +25 -0
- package/rules/.docs/zh-CN/guide/namespace.md +69 -0
- package/rules/.docs/zh-CN/guide/nav.md +73 -0
- package/rules/.docs/zh-CN/guide/network/axios.md +47 -0
- package/rules/.docs/zh-CN/guide/network/fetch.md +70 -0
- package/rules/.docs/zh-CN/guide/network/websocket.md +107 -0
- package/rules/.docs/zh-CN/guide/node/install.md +179 -0
- package/rules/.docs/zh-CN/guide/npm/install.md +74 -0
- package/rules/.docs/zh-CN/guide/overview.md +41 -0
- package/rules/.docs/zh-CN/guide/page/application-lifecycle.md +37 -0
- package/rules/.docs/zh-CN/guide/page/lifecycle.md +32 -0
- package/rules/.docs/zh-CN/guide/page/page-lifecycle.md +35 -0
- package/rules/.docs/zh-CN/guide/page/page-state.md +31 -0
- package/rules/.docs/zh-CN/guide/page/type.md +49 -0
- package/rules/.docs/zh-CN/guide/publish/hub.md +31 -0
- package/rules/.docs/zh-CN/guide/publish/release-apk.md +51 -0
- package/rules/.docs/zh-CN/guide/publish/release-rpk.md +45 -0
- package/rules/.docs/zh-CN/guide/router/async.md +25 -0
- package/rules/.docs/zh-CN/guide/router/entry.md +60 -0
- package/rules/.docs/zh-CN/guide/router/error.md +25 -0
- package/rules/.docs/zh-CN/guide/router/install.md +70 -0
- package/rules/.docs/zh-CN/guide/router/introduction.md +35 -0
- package/rules/.docs/zh-CN/guide/router/launch.md +88 -0
- package/rules/.docs/zh-CN/guide/router/limit.md +33 -0
- package/rules/.docs/zh-CN/guide/router/native.md +104 -0
- package/rules/.docs/zh-CN/guide/router/result.md +42 -0
- package/rules/.docs/zh-CN/guide/sfc-component/async-component.md +88 -0
- package/rules/.docs/zh-CN/guide/sfc-component/native-component.md +127 -0
- package/rules/.docs/zh-CN/guide/slot/develop.md +42 -0
- package/rules/.docs/zh-CN/guide/slot/install.md +59 -0
- package/rules/.docs/zh-CN/guide/slot/introduction.md +45 -0
- package/rules/.docs/zh-CN/guide/slot/lifecycle.md +18 -0
- package/rules/.docs/zh-CN/guide/slot/project.md +22 -0
- package/rules/.docs/zh-CN/guide/test.md +8 -0
- package/rules/.docs/zh-CN/guide/theming.md +254 -0
- package/rules/.docs/zh-CN/guide/translation.md +39 -0
- package/rules/.docs/zh-CN/index.md +9 -0
- package/rules/.docs/zh-CN/module/action-bar.md +32 -0
- package/rules/.docs/zh-CN/module/app-list.md +57 -0
- package/rules/.docs/zh-CN/module/audio.md +45 -0
- package/rules/.docs/zh-CN/module/brightness.md +33 -0
- package/rules/.docs/zh-CN/module/broadcast.md +77 -0
- package/rules/.docs/zh-CN/module/content-provider.md +64 -0
- package/rules/.docs/zh-CN/module/develop.md +45 -0
- package/rules/.docs/zh-CN/module/device.md +108 -0
- package/rules/.docs/zh-CN/module/display.md +33 -0
- package/rules/.docs/zh-CN/module/download.md +97 -0
- package/rules/.docs/zh-CN/module/es.md +74 -0
- package/rules/.docs/zh-CN/module/event-bus.md +68 -0
- package/rules/.docs/zh-CN/module/file.md +62 -0
- package/rules/.docs/zh-CN/module/iac.md +51 -0
- package/rules/.docs/zh-CN/module/local-storage.md +35 -0
- package/rules/.docs/zh-CN/module/location.md +48 -0
- package/rules/.docs/zh-CN/module/log.md +52 -0
- package/rules/.docs/zh-CN/module/network.md +77 -0
- package/rules/.docs/zh-CN/module/overview.md +10 -0
- package/rules/.docs/zh-CN/module/permission.md +42 -0
- package/rules/.docs/zh-CN/module/plugin.md +38 -0
- package/rules/.docs/zh-CN/module/power.md +51 -0
- package/rules/.docs/zh-CN/module/runtime.md +41 -0
- package/rules/.docs/zh-CN/module/service.md +33 -0
- package/rules/.docs/zh-CN/module/share-data.md +85 -0
- package/rules/.docs/zh-CN/module/toast.md +30 -0
- package/rules/.docs/zh-CN/module/upload.md +53 -0
- package/rules/.docs/zh-CN/module/usb.md +52 -0
- package/rules/.docs/zh-CN/module/xlog.md +48 -0
- package/rules/.docs/zh-CN/resource/runtime.md +88 -0
- package/rules/.docs/zh-CN/resource/test-flight.md +27 -0
- package/rules/.docs/zh-CN/runtime/runtime.md +81 -0
- package/rules/.docs/zh-CN/runtime/test-flight.md +23 -0
- package/rules/.docs/zh-CN/sample/ai-dev.md +250 -0
- package/rules/.docs/zh-CN/sample/api-demo.md +26 -0
- package/rules/.docs/zh-CN/sample/app-list.md +12 -0
- package/rules/.docs/zh-CN/sample/hello-tv.md +98 -0
- package/rules/.docs/zh-CN/sdk/cus_component.md +249 -0
- package/rules/.docs/zh-CN/sdk/cus_module.md +163 -0
- package/rules/.docs/zh-CN/sdk/cus_splash.md +97 -0
- package/rules/.docs/zh-CN/sdk/empty.md +0 -0
- package/rules/.docs/zh-CN/sdk/first_implementation.md +15 -0
- package/rules/.docs/zh-CN/sdk/first_init.md +13 -0
- package/rules/.docs/zh-CN/sdk/first_start_app.md +4 -0
- package/rules/.docs/zh-CN/sdk/light-card.md +116 -0
- package/rules/.docs/zh-CN/sdk/overview.md +5 -0
- package/rules/.docs/zh-CN/tool/api/overview.md +103 -0
- package/rules/.docs/zh-CN/tool/cli/adb.md +32 -0
- package/rules/.docs/zh-CN/tool/cli/build.md +14 -0
- package/rules/.docs/zh-CN/tool/cli/clean.md +12 -0
- package/rules/.docs/zh-CN/tool/cli/config.md +37 -0
- package/rules/.docs/zh-CN/tool/cli/create.md +28 -0
- package/rules/.docs/zh-CN/tool/cli/debug.md +30 -0
- package/rules/.docs/zh-CN/tool/cli/info.md +14 -0
- package/rules/.docs/zh-CN/tool/cli/installation.md +12 -0
- package/rules/.docs/zh-CN/tool/cli/introduction.md +26 -0
- package/rules/.docs/zh-CN/tool/cli/logcat.md +10 -0
- package/rules/.docs/zh-CN/tool/cli/migrate.md +12 -0
- package/rules/.docs/zh-CN/tool/cli/pack.md +14 -0
- package/rules/.docs/zh-CN/tool/cli/preview.md +18 -0
- package/rules/.docs/zh-CN/tool/cli/publish.md +12 -0
- package/rules/.docs/zh-CN/tool/cli/setup.md +58 -0
- package/rules/.docs/zh-CN/tool/cli/start.md +54 -0
- package/rules/.docs/zh-CN/tool/cli/test.md +22 -0
- package/rules/.docs/zh-CN/tool/cli/upgrade.md +12 -0
- package/rules/.github/copilot-instructions.md +456 -0
- package/rules/.windsurfrules +367 -0
- package/rules/AGENTS.md +456 -0
- package/rules/AI_HANDOFF.md +376 -0
- package/rules/CLAUDE.md +836 -0
- package/rules/GEMINI.md +463 -0
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Animation
|
|
3
|
+
lang: zh-CN
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# 动画合集
|
|
7
|
+
|
|
8
|
+
## 一、创建动画合集参数
|
|
9
|
+
|
|
10
|
+
```js
|
|
11
|
+
animationRef.value?.animatorSet(
|
|
12
|
+
'SequentiallyAnimatorsId', //动画合集的id
|
|
13
|
+
-1, //动画合集执行的时长
|
|
14
|
+
false //是否监听动画合集执行状态
|
|
15
|
+
);
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
* ### 动画合集的id
|
|
19
|
+
|
|
20
|
+
动画合集通过自定义的`动画id`执行所有的操作。
|
|
21
|
+
|
|
22
|
+
* ### 动画合集执行的时长
|
|
23
|
+
`Sets the length of each of the current child animations of this AnimatorSet. By default, each child animation will use its own duration. If the duration is set on the AnimatorSet, then each child animation inherits this duration.`
|
|
24
|
+
|
|
25
|
+
* ### 监听动画合集执行状态
|
|
26
|
+
|
|
27
|
+
## 二、动画合集执行顺序
|
|
28
|
+
|
|
29
|
+
* `playSequentially`
|
|
30
|
+
* `playTogether`
|
|
31
|
+
* `with`
|
|
32
|
+
* `before`
|
|
33
|
+
* `after`
|
|
34
|
+
|
|
35
|
+
### 1、playSequentially
|
|
36
|
+
|
|
37
|
+
<img src="/component/animation/animators_play_sequentially.gif" />
|
|
38
|
+
|
|
39
|
+
#### 第1步:创建动画合集
|
|
40
|
+
|
|
41
|
+
```js
|
|
42
|
+
//动画合集的id为:SequentiallyAnimatorsId
|
|
43
|
+
animationRef.value?.animatorSet('SequentiallyAnimatorsId', -1, false);
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
#### 第2步:创建动画并加入到动画合集
|
|
47
|
+
|
|
48
|
+
``` js
|
|
49
|
+
animationRef.value?.animator('AlphaAnimationId');
|
|
50
|
+
animationRef.value?.animator('ScaleAnimationId');
|
|
51
|
+
animationRef.value?.animator('RotationAnimationId');
|
|
52
|
+
animationRef.value?.animator('TranslationAnimationId');
|
|
53
|
+
|
|
54
|
+
//playSequentially4
|
|
55
|
+
animationRef.value?.playSequentially(
|
|
56
|
+
//动画合集的id
|
|
57
|
+
'SequentiallyAnimatorsId',
|
|
58
|
+
//动画的id
|
|
59
|
+
[
|
|
60
|
+
"AlphaAnimationId",
|
|
61
|
+
"ScaleAnimationId",
|
|
62
|
+
"RotationAnimationId",
|
|
63
|
+
"TranslationAnimationId"
|
|
64
|
+
]
|
|
65
|
+
);
|
|
66
|
+
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
#### 第3步:执行动画合集
|
|
70
|
+
|
|
71
|
+
```js
|
|
72
|
+
animationRef.value?.start('SequentiallyAnimatorsId');
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
### 2、playTogether
|
|
76
|
+
|
|
77
|
+
<img src="/component/animation/animators_play_together.gif" />
|
|
78
|
+
|
|
79
|
+
#### 第1步:创建动画合集
|
|
80
|
+
|
|
81
|
+
```js
|
|
82
|
+
//动画合集的id为:TogetherAnimatorsId
|
|
83
|
+
animationRef.value?.animatorSet('TogetherAnimatorsId', -1, false);
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
#### 第2步:创建动画并加入到动画合集
|
|
87
|
+
|
|
88
|
+
``` js
|
|
89
|
+
animationRef.value?.animator('AlphaAnimationId');
|
|
90
|
+
animationRef.value?.animator('ScaleAnimationId');
|
|
91
|
+
animationRef.value?.animator('RotationAnimationId');
|
|
92
|
+
animationRef.value?.animator('TranslationAnimationId');
|
|
93
|
+
|
|
94
|
+
//playTogether4
|
|
95
|
+
animationRef.value?.playTogether(
|
|
96
|
+
//动画合集的id
|
|
97
|
+
'TogetherAnimatorsId',
|
|
98
|
+
//动画的id
|
|
99
|
+
[
|
|
100
|
+
"AlphaAnimationId",
|
|
101
|
+
"ScaleAnimationId",
|
|
102
|
+
"RotationAnimationId",
|
|
103
|
+
"TranslationAnimationId"
|
|
104
|
+
]
|
|
105
|
+
);
|
|
106
|
+
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
#### 第3步:执行动画合集
|
|
110
|
+
|
|
111
|
+
```js
|
|
112
|
+
animationRef.value?.start('TogetherAnimatorsId');
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
### 3、with
|
|
116
|
+
|
|
117
|
+
<img src="/component/animation/animators_play_with.gif" />
|
|
118
|
+
|
|
119
|
+
#### 第1步:创建动画合集
|
|
120
|
+
|
|
121
|
+
```js
|
|
122
|
+
//动画合集的id为:WithAnimatorsId
|
|
123
|
+
animationRef.value?.animatorSet('WithAnimatorsId', -1, false);
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
#### 第2步:创建动画并加入到动画合集
|
|
127
|
+
|
|
128
|
+
```js
|
|
129
|
+
animationRef.value?.animator('AlphaAnimationId');
|
|
130
|
+
animationRef.value?.animator('ScaleAnimationId');
|
|
131
|
+
|
|
132
|
+
//AlphaAnimationId
|
|
133
|
+
animationRef.value?.play(
|
|
134
|
+
'WithAnimatorsId',
|
|
135
|
+
"AlphaAnimationId",
|
|
136
|
+
);
|
|
137
|
+
//ScaleAnimationId
|
|
138
|
+
animationRef.value?.with(
|
|
139
|
+
'WithAnimatorsId',
|
|
140
|
+
"ScaleAnimationId",
|
|
141
|
+
);
|
|
142
|
+
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
#### 第3步:执行动画合集
|
|
146
|
+
|
|
147
|
+
```js
|
|
148
|
+
animationRef.value?.start('WithAnimatorsId');
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
### 4、before
|
|
152
|
+
|
|
153
|
+
<img src="/component/animation/animators_play_before.gif" />
|
|
154
|
+
|
|
155
|
+
#### 第1步:创建动画合集
|
|
156
|
+
|
|
157
|
+
```js
|
|
158
|
+
//动画合集的id为:BeforeAnimatorsId
|
|
159
|
+
animationRef.value?.animatorSet('BeforeAnimatorsId', -1, false);
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
#### 第2步:创建动画并加入到动画合集
|
|
163
|
+
|
|
164
|
+
```js
|
|
165
|
+
animationRef.value?.animator('AlphaAnimationId');
|
|
166
|
+
animationRef.value?.animator('ScaleAnimationId');
|
|
167
|
+
|
|
168
|
+
//AlphaAnimationId
|
|
169
|
+
animationRef.value?.play(
|
|
170
|
+
'BeforeAnimatorsId',
|
|
171
|
+
"AlphaAnimationId",
|
|
172
|
+
);
|
|
173
|
+
//ScaleAnimationId
|
|
174
|
+
animationRef.value?.before(
|
|
175
|
+
'BeforeAnimatorsId',
|
|
176
|
+
"ScaleAnimationId",
|
|
177
|
+
);
|
|
178
|
+
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
#### 第3步:执行动画合集
|
|
182
|
+
|
|
183
|
+
```js
|
|
184
|
+
animationRef.value?.start('BeforeAnimatorsId');
|
|
185
|
+
```
|
|
186
|
+
|
|
187
|
+
### 5、after
|
|
188
|
+
|
|
189
|
+
<img src="/component/animation/animators_play_after.gif" />
|
|
190
|
+
|
|
191
|
+
#### 第1步:创建动画合集
|
|
192
|
+
|
|
193
|
+
```js
|
|
194
|
+
//动画合集的id为:AfterAnimatorsId
|
|
195
|
+
animationRef.value?.animatorSet('AfterAnimatorsId', -1, false);
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
#### 第2步:创建动画并加入到动画合集
|
|
199
|
+
|
|
200
|
+
```js
|
|
201
|
+
animationRef.value?.animator('AlphaAnimationId');
|
|
202
|
+
animationRef.value?.animator('ScaleAnimationId');
|
|
203
|
+
|
|
204
|
+
//AlphaAnimationId
|
|
205
|
+
animationRef.value?.play(
|
|
206
|
+
'AfterAnimatorsId',
|
|
207
|
+
"AlphaAnimationId",
|
|
208
|
+
);
|
|
209
|
+
//ScaleAnimationId
|
|
210
|
+
animationRef.value?.after(
|
|
211
|
+
'AfterAnimatorsId',
|
|
212
|
+
"ScaleAnimationId",
|
|
213
|
+
);
|
|
214
|
+
|
|
215
|
+
```
|
|
216
|
+
|
|
217
|
+
#### 第3步:执行动画合集
|
|
218
|
+
|
|
219
|
+
```js
|
|
220
|
+
animationRef.value?.start('AfterAnimatorsId');
|
|
221
|
+
```
|
|
222
|
+
|
|
223
|
+
:::demo ## 完整示例
|
|
224
|
+
|
|
225
|
+
component/animation/animators
|
|
226
|
+
|
|
227
|
+
:::
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Animation
|
|
3
|
+
lang: zh-CN
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# 插值器
|
|
7
|
+
|
|
8
|
+
## 属性动画动画插值器`QTAnimationInterpolatorType`分类
|
|
9
|
+
|
|
10
|
+
* `QTAnimationInterpolatorType.QT_ACCELERATE_DECELERATE_INTERPOLATOR`
|
|
11
|
+
* `QTAnimationInterpolatorType.QT_ACCELERATE_INTERPOLATOR`
|
|
12
|
+
* `QTAnimationInterpolatorType.QT_ANTICIPATE_INTERPOLATOR`
|
|
13
|
+
* `QTAnimationInterpolatorType.QT_ANTICIPATE_OVERSHOOT_INTERPOLATOR`
|
|
14
|
+
* `QTAnimationInterpolatorType.QT_BOUNCE_INTERPOLATOR`
|
|
15
|
+
* `QTAnimationInterpolatorType.QT_CYCLE_INTERPOLATOR`
|
|
16
|
+
* `QTAnimationInterpolatorType.QT_DECELERATE_INTERPOLATOR`
|
|
17
|
+
* `QTAnimationInterpolatorType.QT_LINEAR_INTERPOLATOR`
|
|
18
|
+
* `QTAnimationInterpolatorType.QT_OVERSHOOT_INTERPOLATOR`
|
|
19
|
+
* `QTAnimationInterpolatorType.QT_FAST_OUT_LINEAR_IN_INTERPOLATOR`
|
|
20
|
+
* `QTAnimationInterpolatorType.QT_FAST_OUT_SLOW_IN_INTERPOLATOR`
|
|
21
|
+
* `QTAnimationInterpolatorType.QT_PATH_INTERPOLATOR`
|
|
22
|
+
|
|
23
|
+
***`QTAnimationInterpolator`类型声明如下:***
|
|
24
|
+
|
|
25
|
+
```ts
|
|
26
|
+
export interface QTAnimationInterpolator {
|
|
27
|
+
type: QTAnimationInterpolatorType;
|
|
28
|
+
params: Array<number>
|
|
29
|
+
}
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
## 示例代码
|
|
35
|
+
|
|
36
|
+
```js
|
|
37
|
+
animationRef.value?.animator(
|
|
38
|
+
"AccelerateInterpolator",//自定义id
|
|
39
|
+
QTAnimationValueType.QT_ANIMATION_VALUE_TYPE_FLOAT,
|
|
40
|
+
QTAnimationPropertyName.QT_ANIMATION_PROPERTY_NAME_ALPHA,
|
|
41
|
+
["0", "500", '0'],
|
|
42
|
+
1500,
|
|
43
|
+
-1,
|
|
44
|
+
0,
|
|
45
|
+
false,
|
|
46
|
+
false,
|
|
47
|
+
//插值器参数对象
|
|
48
|
+
{
|
|
49
|
+
type: QTAnimationInterpolatorType.QT_LINEAR_INTERPOLATOR,
|
|
50
|
+
params: []
|
|
51
|
+
},
|
|
52
|
+
);
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
:::demo ## 完整示例
|
|
56
|
+
|
|
57
|
+
component/animation/interpolator
|
|
58
|
+
|
|
59
|
+
:::
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Animation
|
|
3
|
+
lang: zh-CN
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# 简介
|
|
7
|
+
|
|
8
|
+
## 一、 动画是执行的单一动画,动画合集是多个动画组成的执行合集,统称动画。
|
|
9
|
+
|
|
10
|
+
## 二、 创建动画两种方式:
|
|
11
|
+
|
|
12
|
+
* [使用属性创建](/zh-CN/component/animation/props)
|
|
13
|
+
* [使用方法创建](/zh-CN/component/animation/method)
|
|
14
|
+
|
|
15
|
+
## 三、 动画类型:
|
|
16
|
+
|
|
17
|
+
* `alpha`透明度动画
|
|
18
|
+
* `scale`变形动画
|
|
19
|
+
* `translation`平移动画
|
|
20
|
+
* `rotation`旋转动画
|
|
21
|
+
|
|
22
|
+
***动画属性类型`QTAnimationPropertyName`的值定义***
|
|
23
|
+
|
|
24
|
+
* `QTAnimationPropertyName.QT_ANIMATION_PROPERTY_NAME_ALPHA`
|
|
25
|
+
* `QTAnimationPropertyName.QT_ANIMATION_PROPERTY_NAME_ROTATION`
|
|
26
|
+
* `QTAnimationPropertyName.QT_ANIMATION_PROPERTY_NAME_ROTATION_X`
|
|
27
|
+
* `QTAnimationPropertyName.QT_ANIMATION_PROPERTY_NAME_ROTATION_Y`
|
|
28
|
+
* `QTAnimationPropertyName.QT_ANIMATION_PROPERTY_NAME_ROTATION_Z`
|
|
29
|
+
* `QTAnimationPropertyName.QT_ANIMATION_PROPERTY_NAME_SCALE_X`
|
|
30
|
+
* `QTAnimationPropertyName.QT_ANIMATION_PROPERTY_NAME_SCALE_Y`
|
|
31
|
+
* `QTAnimationPropertyName.QT_ANIMATION_PROPERTY_NAME_SCALE_Z`
|
|
32
|
+
* `QTAnimationPropertyName.QT_ANIMATION_PROPERTY_NAME_TRANSLATION_X`
|
|
33
|
+
* `QTAnimationPropertyName.QT_ANIMATION_PROPERTY_NAME_TRANSLATION_Y`
|
|
34
|
+
* `QTAnimationPropertyName.QT_ANIMATION_PROPERTY_NAME_TRANSLATION_Z`
|
|
35
|
+
|
|
36
|
+
## 四、 动画的操作:
|
|
37
|
+
|
|
38
|
+
* 创建动画
|
|
39
|
+
* 开始动画
|
|
40
|
+
* 暂停动画
|
|
41
|
+
* 恢复动画
|
|
42
|
+
* 取消动画
|
|
43
|
+
* 翻转动画
|
|
44
|
+
|
|
45
|
+
## 五、 动画的值类型`QTAnimationValueType`:
|
|
46
|
+
|
|
47
|
+
* `QT_ANIMATION_VALUE_TYPE_INT = "ofInt"`
|
|
48
|
+
* `QT_ANIMATION_VALUE_TYPE_FLOAT = "ofFloat"`
|
|
49
|
+
|
|
50
|
+
## API
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
### Attributes
|
|
54
|
+
|
|
55
|
+
| Name | Description | Type | Default |
|
|
56
|
+
| --------------------------- | ----------------- | ----------------------- | -------- |
|
|
57
|
+
| animator | 动画属性值 | ^[QTAnimator] \| ^[QTAnimatorSet] | - |
|
|
58
|
+
| autoPlay | 自动播放 | ^[boolean] | false |
|
|
59
|
+
| loop | 循环播放 | ^[boolean] | false |
|
|
60
|
+
|
|
61
|
+
### Events
|
|
62
|
+
|
|
63
|
+
| Name | Description | Type |
|
|
64
|
+
| ----------------- | --------------------------------- | ------------------------------------------------------------------- |
|
|
65
|
+
| onAnimationEnd | 动画结束事件 | ^[Function]`(id: QTAnimatorId, isReverse: boolean) => void` |
|
|
66
|
+
| onAnimationCancel | 动画取消事件 | ^[Function]`(id: QTAnimatorId) => void` |
|
|
67
|
+
| onAnimationStart | 动画开始事件 | ^[Function]`(id: QTAnimatorId, isReverse: boolean) => void` |
|
|
68
|
+
| onAnimationRepeat | 动画重复执行事件 | ^[Function]`(id: QTAnimatorId) => void` |
|
|
69
|
+
| onAnimationPause | 动画暂停事件 | ^[Function]`(id: QTAnimatorId) => void` |
|
|
70
|
+
| onAnimationResume | 动画恢复事件 | ^[Function]`(id: QTAnimatorId) => void` |
|
|
71
|
+
| onAnimationUpdate | 动画更新事件 | ^[Function]`(id: QTAnimatorId, value: string) => void` |
|
|
72
|
+
|
|
73
|
+
### Slots
|
|
74
|
+
|
|
75
|
+
| Name | Description |
|
|
76
|
+
| ------- | ------------------------- |
|
|
77
|
+
| default | 需要执行动画的组件 |
|
|
78
|
+
|
|
79
|
+
### Exposes
|
|
80
|
+
|
|
81
|
+
| Name | Description | Type |
|
|
82
|
+
| ----------------- | ----------------- | --------------------------------------------- |
|
|
83
|
+
| setPivotX | 设置x轴方向的旋转点 | ^[Function]`(pivotX: number) => void` |
|
|
84
|
+
| setPivotY | 设置y轴方向的旋转点 | ^[Function]`(pivotY: number) => void` |
|
|
85
|
+
| resetPivot | 重置旋转点 | ^[Function]`() => void` |
|
|
86
|
+
| animator | 创建动画 | ^[Function]`(id: QTAnimatorId, valueType: QTAnimationValueType, propertyName: QTAnimationPropertyName, values: number[], duration: number, repeatMode: QTAnimationRepeatMode, repeatCount: number, listenAnimator: boolean, listenAnimatorValue: boolean, interpolator?: QTAnimationInterpolator) => void` |
|
|
87
|
+
| animatorSet | 创建动画集合 | ^[Function]`(animatorId: QTAnimatorId, duration: number, listenAnimator: boolean) => void` |
|
|
88
|
+
| reset | 重置所有动画 | ^[Function]`() => void` |
|
|
89
|
+
| start | 开始动画 | ^[Function]`(animatorId: QTAnimatorId) => void` |
|
|
90
|
+
| startDelay | 延迟开始动画 | ^[Function]`(animatorId: QTAnimatorId, delay: number) => void` |
|
|
91
|
+
| pause | 暂停动画 | ^[Function]`(animatorId: QTAnimatorId) => void` |
|
|
92
|
+
| resume | 恢复动画 | ^[Function]`(animatorId: QTAnimatorId) => void` |
|
|
93
|
+
| cancel | 取消动画 | ^[Function]`(animatorId: QTAnimatorId) => void` |
|
|
94
|
+
| reverse | 逆转动画 | ^[Function]`(animatorId: QTAnimatorId) => void` |
|
|
95
|
+
| play | 播放动画 | ^[Function]`(animatorSetId: QTAnimatorId, animatorId: QTAnimatorId) => void` |
|
|
96
|
+
| playWith | 同时播放动画 | ^[Function]`(animatorSetId: QTAnimatorId, animatorId: QTAnimatorId) => void` |
|
|
97
|
+
| playBefore | 在之前播放动画 | ^[Function]`(animatorSetId: QTAnimatorId, animatorId: QTAnimatorId) => void` |
|
|
98
|
+
| playAfter | 在之后播放动画 | ^[Function]`(animatorSetId: QTAnimatorId, animatorId: QTAnimatorId) => void` |
|
|
99
|
+
| playAfterDelay | 在之后延迟播放动画 | ^[Function]`(animatorSetId: QTAnimatorId, animatorId: QTAnimatorId) => void` |
|
|
100
|
+
| playSequentially | 顺序播放动画 | ^[Function]`(animatorSetId: QTAnimatorId, animatorIds: QTAnimatorId[]) => void` |
|
|
101
|
+
| playTogether | 同时播放动画 | ^[Function]`(animatorSetId: QTAnimatorId, animatorIds: QTAnimatorId[]) => void` |
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Animation
|
|
3
|
+
lang: zh-CN
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# 动画事件监听
|
|
7
|
+
|
|
8
|
+
## 一、监听动画执行状态
|
|
9
|
+
|
|
10
|
+
### 第1步:创建动画的时候需要设置是否监听动画状态变化
|
|
11
|
+
|
|
12
|
+
```js
|
|
13
|
+
animationRef.value?.animator(
|
|
14
|
+
"1",//自定义id
|
|
15
|
+
QTAnimationValueType.QT_ANIMATION_VALUE_TYPE_FLOAT,
|
|
16
|
+
QTAnimationPropertyName.QT_ANIMATION_PROPERTY_NAME_TRANSLATION_X,
|
|
17
|
+
["0", "1"],
|
|
18
|
+
1000,
|
|
19
|
+
-1,
|
|
20
|
+
0,
|
|
21
|
+
true,//监听动画执行状态
|
|
22
|
+
false,
|
|
23
|
+
null,
|
|
24
|
+
);
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
### 第2步: `<qt-animation>`标签上监听动画执行状态
|
|
28
|
+
|
|
29
|
+
* `onAnimationStart`:动画开始
|
|
30
|
+
* `onAnimationEnd`:动画结束
|
|
31
|
+
* `onAnimationCancel`:动画取消
|
|
32
|
+
* `onAnimationRepeat`:动画重复执行
|
|
33
|
+
* `onAnimationPause`:动画暂停
|
|
34
|
+
* `onAnimationResume`:动画恢复
|
|
35
|
+
|
|
36
|
+
```vue
|
|
37
|
+
|
|
38
|
+
<template>
|
|
39
|
+
<qt-animation
|
|
40
|
+
class='animation-view-css'
|
|
41
|
+
@onAnimationCancel='onAnimationCancel'
|
|
42
|
+
@onAnimationEnd='onAnimationEnd'
|
|
43
|
+
@onAnimationStart='onAnimationStart'
|
|
44
|
+
@onAnimationRepeat='onAnimationRepeat'
|
|
45
|
+
@onAnimationPause='onAnimationPause'
|
|
46
|
+
@onAnimationResume='onAnimationResume'>
|
|
47
|
+
<div class='animation-inner-view-css' />
|
|
48
|
+
</qt-animation>
|
|
49
|
+
</template>
|
|
50
|
+
|
|
51
|
+
<script lang='ts'>
|
|
52
|
+
import { defineComponent } from "@vue/runtime-core";
|
|
53
|
+
import { ESLogLevel, useESLog } from "@extscreen/es3-core";
|
|
54
|
+
|
|
55
|
+
const TAG = 'Animation'
|
|
56
|
+
|
|
57
|
+
export default defineComponent({
|
|
58
|
+
setup() {
|
|
59
|
+
|
|
60
|
+
const log = useESLog()
|
|
61
|
+
|
|
62
|
+
function onAnimationCancel(id) {
|
|
63
|
+
if (log.isLoggable(ESLogLevel.DEBUG)) {
|
|
64
|
+
log.d(TAG, '-------onAnimationCancel------->>>>', id)
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
function onAnimationEnd(id, isReverse) {
|
|
69
|
+
if (log.isLoggable(ESLogLevel.DEBUG)) {
|
|
70
|
+
log.d(TAG, '-------onAnimationEnd------->>>>', id, isReverse)
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
function onAnimationRepeat(id) {
|
|
75
|
+
if (log.isLoggable(ESLogLevel.DEBUG)) {
|
|
76
|
+
log.d(TAG, '-------onAnimationRepeat------->>>>', id)
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
function onAnimationStart(id, isReverse) {
|
|
81
|
+
if (log.isLoggable(ESLogLevel.DEBUG)) {
|
|
82
|
+
log.d(TAG, '-------onAnimationStart------->>>>', id, isReverse)
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
function onAnimationPause(id) {
|
|
87
|
+
if (log.isLoggable(ESLogLevel.DEBUG)) {
|
|
88
|
+
log.d(TAG, '-------onAnimationPause------->>>>', id)
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
function onAnimationResume(id) {
|
|
93
|
+
if (log.isLoggable(ESLogLevel.DEBUG)) {
|
|
94
|
+
log.d(TAG, '-------onAnimationResume------->>>>', id)
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
return {
|
|
99
|
+
onAnimationCancel,
|
|
100
|
+
onAnimationEnd,
|
|
101
|
+
onAnimationRepeat,
|
|
102
|
+
onAnimationStart,
|
|
103
|
+
onAnimationPause,
|
|
104
|
+
onAnimationResume,
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
});
|
|
108
|
+
|
|
109
|
+
</script>
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
## 二、监听动画属性值变化
|
|
113
|
+
|
|
114
|
+
### 第1步: 创建动画的时候需要设置是否监听动画属性值变化
|
|
115
|
+
|
|
116
|
+
```js
|
|
117
|
+
animationViewRef.value?.animator(
|
|
118
|
+
"1",//自定义id
|
|
119
|
+
QTAnimationValueType.QT_ANIMATION_VALUE_TYPE_FLOAT,
|
|
120
|
+
QTAnimationPropertyName.QT_ANIMATION_PROPERTY_NAME_TRANSLATION_X,
|
|
121
|
+
["0", "1"],
|
|
122
|
+
1000,
|
|
123
|
+
-1,
|
|
124
|
+
0,
|
|
125
|
+
false,
|
|
126
|
+
true,//监听动画属性值变化
|
|
127
|
+
null,
|
|
128
|
+
);
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
### 第2步: `<qt-animation>`标签上监听动画属性值变化
|
|
132
|
+
|
|
133
|
+
* `onAnimationUpdate(id, value)`:`id`为动画的id,`value`为动画当前时刻的属性值
|
|
134
|
+
|
|
135
|
+
```vue
|
|
136
|
+
|
|
137
|
+
<template>
|
|
138
|
+
<qt-animation
|
|
139
|
+
class='animation-view-css'
|
|
140
|
+
@onAnimationUpdate='onAnimationUpdate'>
|
|
141
|
+
<div class='animation-inner-view-css' />
|
|
142
|
+
</qt-animation>
|
|
143
|
+
</template>
|
|
144
|
+
|
|
145
|
+
<script lang='ts'>
|
|
146
|
+
import { defineComponent } from "@vue/runtime-core";
|
|
147
|
+
import { ESLogLevel, useESLog } from "@extscreen/es3-core";
|
|
148
|
+
|
|
149
|
+
const TAG = 'Animation'
|
|
150
|
+
|
|
151
|
+
export default defineComponent({
|
|
152
|
+
setup() {
|
|
153
|
+
|
|
154
|
+
const log = useESLog()
|
|
155
|
+
|
|
156
|
+
function onAnimationUpdate(id, value) {
|
|
157
|
+
if (log.isLoggable(ESLogLevel.DEBUG)) {
|
|
158
|
+
log.d(TAG, '-------onAnimationUpdate------->>>>', id, value)
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
return {
|
|
163
|
+
onAnimationUpdate,
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
});
|
|
167
|
+
|
|
168
|
+
</script>
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
:::demo ## 完整示例
|
|
172
|
+
|
|
173
|
+
component/animation/listener
|
|
174
|
+
|
|
175
|
+
:::
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Animation
|
|
3
|
+
lang: zh-CN
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# 使用方法
|
|
7
|
+
|
|
8
|
+
## 第一步、注册动画组件
|
|
9
|
+
|
|
10
|
+
```vue
|
|
11
|
+
|
|
12
|
+
<qt-animation
|
|
13
|
+
ref='animationRef'
|
|
14
|
+
class='animation-view-css'>
|
|
15
|
+
<!-- 包裹需要执行动画的vue组件-->
|
|
16
|
+
<div class='animation-inner-view-class' />
|
|
17
|
+
</qt-animation>
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## 第二步、创建动画
|
|
21
|
+
|
|
22
|
+
创建单个动画和动画合集都需要自定义`不重复的id`,用来后续执行动画的各种操作。
|
|
23
|
+
|
|
24
|
+
```ts
|
|
25
|
+
animationRef.value?.animator( //创建属性值的动画
|
|
26
|
+
"1", //自定义id
|
|
27
|
+
QTAnimationValueType.QT_ANIMATION_VALUE_TYPE_FLOAT, //动画属性值类型
|
|
28
|
+
QTAnimationPropertyName.QT_ANIMATION_PROPERTY_NAME_ALPHA, //动画属性类型
|
|
29
|
+
["0", "1"], //属性值
|
|
30
|
+
1000, //动画执行时间
|
|
31
|
+
-1, //动画重复执行模式
|
|
32
|
+
0, //动画重复执行次数
|
|
33
|
+
false, //是否监听动画执行状态变化
|
|
34
|
+
false, //是否监听动画执行属性值变化
|
|
35
|
+
{ //插值器参数对象
|
|
36
|
+
type: QTAnimationInterpolatorType.QT_ACCELERATE_INTERPOLATOR,
|
|
37
|
+
}
|
|
38
|
+
);
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
## 第三步、执行动画
|
|
42
|
+
|
|
43
|
+
### 开始动画
|
|
44
|
+
|
|
45
|
+
参数为创建的动画的`id`
|
|
46
|
+
|
|
47
|
+
`animationViewRef.value?.start("1");`
|
|
48
|
+
|
|
49
|
+
### 延迟开始动画
|
|
50
|
+
|
|
51
|
+
参数为创建的动画的`id`
|
|
52
|
+
|
|
53
|
+
`animationViewRef.value?.startDelay("1", 2000);`
|
|
54
|
+
|
|
55
|
+
### 暂停动画
|
|
56
|
+
|
|
57
|
+
参数为创建的动画的`id`
|
|
58
|
+
|
|
59
|
+
`animationViewRef.value?.pause("1");`
|
|
60
|
+
|
|
61
|
+
### 恢复动画
|
|
62
|
+
|
|
63
|
+
参数为创建的动画的`id`
|
|
64
|
+
|
|
65
|
+
`animationViewRef.value?.resume("1");`
|
|
66
|
+
|
|
67
|
+
### 取消动画
|
|
68
|
+
|
|
69
|
+
参数为创建的动画的`id`
|
|
70
|
+
|
|
71
|
+
`animationViewRef.value?.cancel("1");`
|
|
72
|
+
|
|
73
|
+
### 翻转动画
|
|
74
|
+
|
|
75
|
+
参数为创建的动画的`id`
|
|
76
|
+
|
|
77
|
+
`animationViewRef.value?.reverse("1");`
|
|
78
|
+
|
|
79
|
+
### 重置所有动画
|
|
80
|
+
|
|
81
|
+
`animationViewRef.value?.reset();`
|
|
82
|
+
|
|
83
|
+
:::demo ## 完整示例
|
|
84
|
+
|
|
85
|
+
component/animation/basic
|
|
86
|
+
|
|
87
|
+
:::
|