@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,317 @@
|
|
|
1
|
+
---
|
|
2
|
+
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# 焦点进阶
|
|
6
|
+
|
|
7
|
+
在处理`焦点`相关交互时,可通过一些`焦点`相关便利的方法来满足产品需要。
|
|
8
|
+
|
|
9
|
+
## 焦点属性
|
|
10
|
+
|
|
11
|
+
### nextFocusName
|
|
12
|
+
通过名称,指定下一个焦点元素
|
|
13
|
+
|
|
14
|
+
`(up: 'string', left: 'string', right: 'string', down: 'string')`
|
|
15
|
+
* `up`: string - 按'上'方向的name名称 ;
|
|
16
|
+
* `left`: string - 按'左'方向的name名称 ;
|
|
17
|
+
* `right`: string - 按'右'方向的name名称 ;
|
|
18
|
+
* `down`: string - 按'下'方向的name名称 ;
|
|
19
|
+
|
|
20
|
+
指定下一个焦点名称,寻焦默认逻辑是顺找最近的焦点,为防止焦点出现在需求以外的地方,可以在标签中指定下个焦点的name;
|
|
21
|
+
* `nextFocusName`属性可使用于`focusable=true`的标签,和`ul`标签。
|
|
22
|
+
* 在`focusable=true`的标签中使用`nextFocusName`优先级高于ul中使用的`nextFocusName`
|
|
23
|
+
* 如果在ul上或者ul列表的子标签上使用`nextFocusName`,会在列表的边界执行,例如横向列表`listA`中设置`right`为`listB`,当焦点在`A3`时按`右`,焦点才会到`listB`中,由于ul列表默认带记忆焦点功能,焦点会落在`listB`中的`上一次焦点`所在,如果是`第一次`默认选中`第一个`。
|
|
24
|
+
|
|
25
|
+
示例
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
::: details 点击查看源码
|
|
29
|
+
```html
|
|
30
|
+
|
|
31
|
+
<div class="focus-next">
|
|
32
|
+
<div>
|
|
33
|
+
<ul horizontal name="listA" :nextFocusName="{down: 'listC', right: 'listB'}" ref="giftTabs">
|
|
34
|
+
<li>
|
|
35
|
+
<div :focusable=true class="button"><p duplicateParentState>A1</p></div>
|
|
36
|
+
</li>
|
|
37
|
+
<li>
|
|
38
|
+
<div :focusable=true class="button"><p duplicateParentState>A2</p></div>
|
|
39
|
+
</li>
|
|
40
|
+
<li>
|
|
41
|
+
<div :focusable=true class="button"><p duplicateParentState>A3</p></div>
|
|
42
|
+
</li>
|
|
43
|
+
</ul>
|
|
44
|
+
<ul horizontal name="listB">
|
|
45
|
+
<li>
|
|
46
|
+
<div :focusable=true class="button"><p duplicateParentState>B1</p></div>
|
|
47
|
+
</li>
|
|
48
|
+
<li>
|
|
49
|
+
<div :focusable=true class="button" :nextFocusName="{up: 'btnE'}"><p duplicateParentState>B2</p></div>
|
|
50
|
+
</li>
|
|
51
|
+
<li>
|
|
52
|
+
<div :focusable=true class="button"><p duplicateParentState>B3</p></div>
|
|
53
|
+
</li>
|
|
54
|
+
</ul>
|
|
55
|
+
<ul horizontal name="listC">
|
|
56
|
+
<li>
|
|
57
|
+
<div :focusable=true class="button" ref="listC"><p duplicateParentState>C1</p></div>
|
|
58
|
+
</li>
|
|
59
|
+
<li>
|
|
60
|
+
<div :focusable=true class="button"><p duplicateParentState>C2</p></div>
|
|
61
|
+
</li>
|
|
62
|
+
<li>
|
|
63
|
+
<div :focusable=true class="button"><p duplicateParentState>C3</p></div>
|
|
64
|
+
</li>
|
|
65
|
+
</ul>
|
|
66
|
+
</div>
|
|
67
|
+
<div>
|
|
68
|
+
<div class="feature-item">
|
|
69
|
+
<div :focusable=true class="button" name="btnD" :nextFocusName="{down: 'listB'}"><p duplicateParentState>
|
|
70
|
+
DD</p></div>
|
|
71
|
+
<div :focusable=true class="button" name="btnE" :nextFocusName="{left: 'listB', down: 'listC'}"><p
|
|
72
|
+
duplicateParentState>EE</p></div>
|
|
73
|
+
</div>
|
|
74
|
+
</div>
|
|
75
|
+
</div>
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
:::
|
|
79
|
+
### descendantFocusability
|
|
80
|
+
|
|
81
|
+
禁用焦点,适用场景如自定义弹出框显示时,主页面需禁用焦点,防止焦点误操作焦点丢失。
|
|
82
|
+
* `1`: int - 1为不禁用,默认为1 ;
|
|
83
|
+
* `2`: int - 2为禁用 ;
|
|
84
|
+
|
|
85
|
+
示例
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
```html
|
|
89
|
+
|
|
90
|
+
<div :descendantFocusability="modalShow ? 2 : 1">
|
|
91
|
+
...
|
|
92
|
+
<!--主页面内容-->
|
|
93
|
+
</div>
|
|
94
|
+
<div v-show="modalShow">
|
|
95
|
+
...
|
|
96
|
+
<!--自定义弹出框-->
|
|
97
|
+
</div>
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
### blockFocusDirections
|
|
101
|
+
|
|
102
|
+
阻止焦点方向,适用于焦点标签或焦点父标签
|
|
103
|
+
* `left`: string - 左 ;
|
|
104
|
+
* `right`: string - 右 ;
|
|
105
|
+
* `up`: string - 上 ;
|
|
106
|
+
* `down`: string - 下 ;
|
|
107
|
+
|
|
108
|
+
示例
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
```html
|
|
112
|
+
|
|
113
|
+
<div :blockFocusDirections="blockAll" :focusable="true"><p>按钮</p></div>
|
|
114
|
+
<ul ref="list" :blockFocusDirections="blockLeftRight">
|
|
115
|
+
<li :focusable="true"><p>超清</p></li>
|
|
116
|
+
<li class="selected" :focusable="true"><p>高清</p></li>
|
|
117
|
+
<li :focusable="true"><p>超清</p></li>
|
|
118
|
+
</ul>
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
```js
|
|
123
|
+
data()
|
|
124
|
+
{
|
|
125
|
+
return {
|
|
126
|
+
blockAll: ['left', 'right', 'up', 'down'],
|
|
127
|
+
blockLeftRightTop: ['left', 'right', 'up'],
|
|
128
|
+
blockLeftRight: ['left', 'right'],
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
### showOnState
|
|
134
|
+
|
|
135
|
+
相应焦点状态时显示,三个状态一组使用。`view`根据状态会自动显示或者隐藏。
|
|
136
|
+
* `normal`: string - 正常 ;
|
|
137
|
+
* `focused`: string - 焦点 ;
|
|
138
|
+
* `selected`: string - 选中,在`ul`组件中生效,移出`ul`时触发,如果不需要`selected`状态,`ul`标签中添加`:enableSelectOnFocus="false"` ;
|
|
139
|
+
|
|
140
|
+
示例
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
::: details 点击查看源码
|
|
144
|
+
```html
|
|
145
|
+
|
|
146
|
+
<div class="item" :focusable="true">
|
|
147
|
+
<img class="content" showOnState="normal" src="file://assets/img.png">
|
|
148
|
+
<img class="content" showOnState="focused" src="file://assets/img_focus.png">
|
|
149
|
+
</div>
|
|
150
|
+
<div class="item" :focusable="true">
|
|
151
|
+
<div class="content" showOnState="normal"><p>我是初始化显示的内容</p></div>
|
|
152
|
+
<div class="content" showOnState="focused"><p>我是焦点时显示的内容</p></div>
|
|
153
|
+
</div>
|
|
154
|
+
<div class="list">
|
|
155
|
+
<ul horizontal>
|
|
156
|
+
<li>
|
|
157
|
+
<div class="item" :focusable="true">
|
|
158
|
+
<div class="content" showOnState="normal"><p>我是初始化显示的内容1</p></div>
|
|
159
|
+
<div class="content" showOnState="focused"><p>我是焦点时显示的内容1</p></div>
|
|
160
|
+
<div class="content" showOnState="selected"><p>我是选中时显示的内容1</p></div>
|
|
161
|
+
</div>
|
|
162
|
+
</li>
|
|
163
|
+
<li>
|
|
164
|
+
<div class="item" :focusable="true">
|
|
165
|
+
<div class="content" showOnState="normal"><p>我是初始化显示的内容2</p></div>
|
|
166
|
+
<div class="content" showOnState="focused"><p>我是焦点时显示的内容2</p></div>
|
|
167
|
+
<div class="content" showOnState="selected"><p>我是选中时显示的内容2</p></div>
|
|
168
|
+
</div>
|
|
169
|
+
</li>
|
|
170
|
+
<li>
|
|
171
|
+
<div class="item" :focusable="true">
|
|
172
|
+
<div class="content" showOnState="normal"><p>我是初始化显示的内容3</p></div>
|
|
173
|
+
<div class="content" showOnState="focused"><p>我是焦点时显示的内容3</p></div>
|
|
174
|
+
<div class="content" showOnState="selected"><p>我是选中时显示的内容3</p></div>
|
|
175
|
+
</div>
|
|
176
|
+
</li>
|
|
177
|
+
</ul>
|
|
178
|
+
</div>
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
:::
|
|
182
|
+
|
|
183
|
+
::: details 点击查看源码
|
|
184
|
+
```css
|
|
185
|
+
.item {
|
|
186
|
+
width: 200px;
|
|
187
|
+
height: 100px;
|
|
188
|
+
background-color: transparent;
|
|
189
|
+
focus-background-color: antiquewhite;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.content {
|
|
193
|
+
position: absolute;
|
|
194
|
+
width: 200px;
|
|
195
|
+
height: 100px;
|
|
196
|
+
left: 0;
|
|
197
|
+
top: 0;
|
|
198
|
+
background-color: transparent;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.list ul {
|
|
202
|
+
flex-direction: row;
|
|
203
|
+
}
|
|
204
|
+
```
|
|
205
|
+
|
|
206
|
+
:::
|
|
207
|
+
注意:
|
|
208
|
+
1. 使用`showOnState`的标签需要使用`position: absolute;`,使3个状态标签处于重叠的位置;
|
|
209
|
+
2. `showOnState`元素层级需格外注意控制,避免层级过多,导致页面加载慢、帧率低等问题。
|
|
210
|
+
|
|
211
|
+
`showOnState`错误示范:
|
|
212
|
+
```html
|
|
213
|
+
<div>
|
|
214
|
+
<div showOnState="normal">
|
|
215
|
+
<img :src="myImg">
|
|
216
|
+
<div>
|
|
217
|
+
<qt-text text="我普通状态展示"/>
|
|
218
|
+
</div>
|
|
219
|
+
</div>
|
|
220
|
+
<div showOnState="focused">
|
|
221
|
+
<img :src="myImg">
|
|
222
|
+
<div>
|
|
223
|
+
<qt-text text="我焦点状态展示"/>
|
|
224
|
+
</div>
|
|
225
|
+
</div>
|
|
226
|
+
</div>
|
|
227
|
+
```
|
|
228
|
+
正确示范:
|
|
229
|
+
```html
|
|
230
|
+
<div>
|
|
231
|
+
<div>
|
|
232
|
+
<img src="myImg">
|
|
233
|
+
<div>
|
|
234
|
+
<qt-text showOnState="normal" text="我普通状态展示"/>
|
|
235
|
+
<qt-text showOnState="focused" text="我焦点状态展示"/>
|
|
236
|
+
</div>
|
|
237
|
+
</div>
|
|
238
|
+
</div>
|
|
239
|
+
```
|
|
240
|
+
上述示例中,实现同样效果,但错误示例相对于正确的元素多了近一倍,当页面元素过多时,会导致页面加载慢、帧率低、内存不足等问题。
|
|
241
|
+
## 主动定位焦点
|
|
242
|
+
|
|
243
|
+
### requestFocus
|
|
244
|
+
|
|
245
|
+
`($refs: object)`
|
|
246
|
+
* `$refs`: object - `focusable="true"`的元素的$refs对象,例如:this.$refs.view ;
|
|
247
|
+
|
|
248
|
+
示例
|
|
249
|
+
|
|
250
|
+
|
|
251
|
+
```html
|
|
252
|
+
|
|
253
|
+
<div :focusable="true" ref="view"></div>
|
|
254
|
+
```
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
```js
|
|
258
|
+
import {ESFocusManager} from "@extscreen/es-core";
|
|
259
|
+
ESFocusManager.requestFocus(this.$refs.view);
|
|
260
|
+
```
|
|
261
|
+
|
|
262
|
+
或者
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
```js
|
|
266
|
+
Native.callUIFunction(this.$refs.view, 'requestFocus', []);
|
|
267
|
+
```
|
|
268
|
+
|
|
269
|
+
|
|
270
|
+
也可通过requestFocus属性来请求焦点,不过此种方法仅在元素`初始化`时生效,如下
|
|
271
|
+
```html
|
|
272
|
+
<div :focusable="true" :requestFocus="true"></div>
|
|
273
|
+
```
|
|
274
|
+
|
|
275
|
+
## 预设焦点
|
|
276
|
+
|
|
277
|
+
### setSelectChildPosition
|
|
278
|
+
|
|
279
|
+
`($refs: object, index: int)`
|
|
280
|
+
|
|
281
|
+
预设焦点适用于ul列表,ul列表第一次有焦点时默认为第一个子view;
|
|
282
|
+
|
|
283
|
+
适用场景如下:当前默认清晰度为高清,需求为移动到清晰度区域时焦点在当前使用清晰度上。
|
|
284
|
+
* `$refs`: object - ul的$refs对象,例如:this.$refs.view ;
|
|
285
|
+
* `index`: int - 第几个子标签, 从0开始 ;
|
|
286
|
+
|
|
287
|
+
示例
|
|
288
|
+
|
|
289
|
+
|
|
290
|
+
```html
|
|
291
|
+
|
|
292
|
+
<ul ref="list">
|
|
293
|
+
<li :focusable="true"><p>超清</p></li>
|
|
294
|
+
<li class="selected" :focusable="true"><p>高清</p></li>
|
|
295
|
+
// 默认清晰度
|
|
296
|
+
<li :focusable="true"><p>超清</p></li>
|
|
297
|
+
</ul>
|
|
298
|
+
```
|
|
299
|
+
|
|
300
|
+
|
|
301
|
+
```js
|
|
302
|
+
Native.callUIFunction(this.$refs.list, 'setSelectChildPosition', [1]);
|
|
303
|
+
```
|
|
304
|
+
|
|
305
|
+
## 清除记忆焦点
|
|
306
|
+
|
|
307
|
+
### clearFocusMemory
|
|
308
|
+
|
|
309
|
+
`($refs: object)`
|
|
310
|
+
|
|
311
|
+
清除记忆焦点适用于ul列表,ul列表默认有记忆焦点功能,使用此方法后下次焦点移动到此ul上焦点到第一个子view上。
|
|
312
|
+
|
|
313
|
+
* `$refs`: object - ul的$refs对象,例如:this.$refs.view ;
|
|
314
|
+
|
|
315
|
+
```js
|
|
316
|
+
Native.callUIFunction(this.$refs.list, 'clearFocusMemory', []);
|
|
317
|
+
```
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
---
|
|
2
|
+
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# 列表中的焦点
|
|
6
|
+
|
|
7
|
+
::: tip sdk >= 2.8
|
|
8
|
+
:::
|
|
9
|
+
|
|
10
|
+
> sdk>=2.8
|
|
11
|
+
|
|
12
|
+
`qt-list-view`、`qt-grid-view`列表组件因其特殊实现方式,实现`自动获焦`的方式有所不同。
|
|
13
|
+
|
|
14
|
+
## 指定初始获焦位置
|
|
15
|
+
通过指定`autofocusPosition`属性,当其值`>=0`时,列表在初始化、可见性变化、重设数据时都会自动另对应`position`的子元素获焦;
|
|
16
|
+
```html
|
|
17
|
+
<!--list-view中第0个元素展现时将自动获焦-->
|
|
18
|
+
<qt-list-view :autofocusPosition="0">
|
|
19
|
+
<!-- 子无素可直接获焦 -->
|
|
20
|
+
<div :type="1" :focusable="true"></div>
|
|
21
|
+
<!-- 也支持元素内部获焦 -->
|
|
22
|
+
<div :type="2" :focusable="false">
|
|
23
|
+
<div focusable="true"></div>
|
|
24
|
+
</div>
|
|
25
|
+
</qt-list-view>
|
|
26
|
+
```
|
|
27
|
+
<img src="/guide/focus/list-auto-focus-1.png" />
|
|
28
|
+
|
|
29
|
+
## 自动滚动并获焦
|
|
30
|
+
当前列表创建完成时,有可能指定位置的元素不在可视区域内,此时如指定了`autofocusPosition`列表将自动滚动并获焦。
|
|
31
|
+
下例中,页面中只展示三个元素,希望初始时第5个元素获焦:
|
|
32
|
+
|
|
33
|
+
```html
|
|
34
|
+
<!--list-view中第5个元素展现时将自动获焦-->
|
|
35
|
+
<qt-list-view :autofocusPosition="4"></qt-list-view>
|
|
36
|
+
```
|
|
37
|
+
<img src="/guide/focus/list-auto-focus-2.png" />
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
[//]: # (## 自动滚动并获焦)
|
|
42
|
+
|
|
43
|
+
[//]: # ()
|
|
44
|
+
[//]: # (当前列表创建完成时,有可能指定位置的元素不在可视区域内,此时需要使用`autoscroll`自动滚动到指定位置;)
|
|
45
|
+
|
|
46
|
+
[//]: # ()
|
|
47
|
+
[//]: # (例如页面中只展示三个元素,如希望初始时第5个元素获焦,此时就需要使用`autoscroll`属性。)
|
|
48
|
+
|
|
49
|
+
[//]: # ()
|
|
50
|
+
[//]: # ()
|
|
51
|
+
[//]: # (```html)
|
|
52
|
+
|
|
53
|
+
[//]: # ()
|
|
54
|
+
[//]: # (<!--list-view中第0个元素展现时将自动获焦-->)
|
|
55
|
+
|
|
56
|
+
[//]: # ()
|
|
57
|
+
[//]: # (<qt-list-view :autofocusPosition="4" :autoscroll="[4,120]"></qt-list-view>)
|
|
58
|
+
|
|
59
|
+
[//]: # ()
|
|
60
|
+
[//]: # (```)
|
|
61
|
+
|
|
62
|
+
[//]: # ()
|
|
63
|
+
[//]: # (<img src="/guide/list-autofocus-2.png" />)
|
|
64
|
+
|
|
65
|
+
[//]: # ()
|
|
66
|
+
[//]: # ()
|
|
67
|
+
[//]: # (`autoscroll`属性为数组,即`autoscroll=[position,offset]`,其中第一个元素为`position`,第二个元素为`滚动偏移量`;)
|
|
68
|
+
|
|
69
|
+
[//]: # ()
|
|
70
|
+
[//]: # (> 上述例子中`offset`设置120是为了让第五个元素居中,`offset`通常计算方式为:`offset = (list-view高度 - item高度) / 2`;)
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
[//]: # (具体用法请参考`list-view中`的`autoscroll`属性。)
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
## 取消自动获焦
|
|
77
|
+
当列表中的元素不需要自动获焦时,可以通过`autofocusPosition`属性设置为`-1`来取消自动获焦。
|
|
78
|
+
```html
|
|
79
|
+
<qt-list-view :autofocusPosition="autofocusPosition"
|
|
80
|
+
:autoscroll="[scrollPosition,0]">
|
|
81
|
+
```
|
|
82
|
+
```js
|
|
83
|
+
autofocusPosition = -1;
|
|
84
|
+
//如设置了滚动,也可能通过设成-1取消
|
|
85
|
+
scrollPosition = -1;
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
更多列表中的自动焦点用法请查看[es-auto-focus-list-demo](https://github.com/quicktvui/quicktvui-api-demo-vue3/blob/main/src/components/es-focus/es-auto-focus-list-demo.vue)
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: 'Click'
|
|
3
|
+
lang: zh-CN
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# 点击
|
|
7
|
+
|
|
8
|
+
::: warning 注意:只有可获得焦点的组件,在焦点状态才可以点击。
|
|
9
|
+
:::
|
|
10
|
+
|
|
11
|
+
***组件被点击触发点击事件的时候,会发送`click`事件***
|
|
12
|
+
|
|
13
|
+
* 设置可获得焦点`:focusable="true"`
|
|
14
|
+
* 监听`click`事件`@click="onClick"`
|
|
15
|
+
|
|
16
|
+
```vue
|
|
17
|
+
|
|
18
|
+
<template>
|
|
19
|
+
<div
|
|
20
|
+
:focusable="true"
|
|
21
|
+
:enableFocusBorder="true"
|
|
22
|
+
:focusScale="1.1"
|
|
23
|
+
@click="onClick"/>
|
|
24
|
+
</template>
|
|
25
|
+
|
|
26
|
+
<script>
|
|
27
|
+
export default {
|
|
28
|
+
name: 'TextButton'
|
|
29
|
+
}
|
|
30
|
+
</script>
|
|
31
|
+
|
|
32
|
+
<script setup>
|
|
33
|
+
|
|
34
|
+
const onClick = (e) => {
|
|
35
|
+
//处理点击事件
|
|
36
|
+
}
|
|
37
|
+
</script>
|
|
38
|
+
```
|
|
39
|
+
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: 'Click'
|
|
3
|
+
lang: zh-CN
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# 焦点
|
|
7
|
+
|
|
8
|
+
::: tip 焦点相关
|
|
9
|
+
|
|
10
|
+
***[点击查看](/zh-CN/guide/focus/basic)***
|
|
11
|
+
|
|
12
|
+
:::
|
|
13
|
+
|
|
14
|
+
* 在组件上设置属性`:focusable="true"`,可使组件可获焦
|
|
15
|
+
* 监听`focus`事件`@focus="onFocus"`
|
|
16
|
+
* 显示焦点边框`:enableFocusBorder="true"`
|
|
17
|
+
* 设置焦点放大倍数`:focusScale="1.1"`
|
|
18
|
+
|
|
19
|
+
```vue
|
|
20
|
+
|
|
21
|
+
<template>
|
|
22
|
+
<div
|
|
23
|
+
:focusable="true"
|
|
24
|
+
:enableFocusBorder="true"
|
|
25
|
+
:focusScale="1.1"
|
|
26
|
+
@focus="onFocus"/>
|
|
27
|
+
</template>
|
|
28
|
+
|
|
29
|
+
<script>
|
|
30
|
+
export default {
|
|
31
|
+
name: 'TextButton'
|
|
32
|
+
}
|
|
33
|
+
</script>
|
|
34
|
+
|
|
35
|
+
<script setup>
|
|
36
|
+
|
|
37
|
+
const onFocus = (e) => {
|
|
38
|
+
const focused = e.isFocused;
|
|
39
|
+
//处理焦点事件
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
</script>
|
|
43
|
+
```
|
|
44
|
+
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: 返回键
|
|
3
|
+
lang: zh-CN
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# 返回键
|
|
7
|
+
|
|
8
|
+
::: warning 注意
|
|
9
|
+
|
|
10
|
+
仅在[`Page`](/zh-CN/guide/page/type)中使用生效
|
|
11
|
+
|
|
12
|
+
:::
|
|
13
|
+
|
|
14
|
+
## 一、基础用法
|
|
15
|
+
|
|
16
|
+
在`setup`中编写 `onBackPressed`方法,并在`return`中返回此方法。
|
|
17
|
+
|
|
18
|
+
```ts
|
|
19
|
+
|
|
20
|
+
function onBackPressed() {
|
|
21
|
+
//
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
return {
|
|
25
|
+
onBackPressed
|
|
26
|
+
}
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
:::demo
|
|
30
|
+
|
|
31
|
+
module/key/es-back
|
|
32
|
+
|
|
33
|
+
:::
|
|
34
|
+
|
|
35
|
+
## 二、拦截返回键
|
|
36
|
+
|
|
37
|
+
`onBackPressed`方法中编写业务逻辑
|
|
38
|
+
|
|
39
|
+
```ts
|
|
40
|
+
function onBackPressed() {
|
|
41
|
+
//编写业务逻辑
|
|
42
|
+
}
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
## 三、关闭页面
|
|
46
|
+
|
|
47
|
+
`onBackPressed`方法中调用`router.back()`方法关闭页面
|
|
48
|
+
|
|
49
|
+
```js
|
|
50
|
+
const router = useESRouter()
|
|
51
|
+
|
|
52
|
+
function onBackPressed() {
|
|
53
|
+
//1.处理业务逻辑
|
|
54
|
+
//2.调用router关闭页面
|
|
55
|
+
router.back()
|
|
56
|
+
}
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
## API
|
|
60
|
+
|
|
61
|
+
### Exposes
|
|
62
|
+
|
|
63
|
+
| Name | Description | Type |
|
|
64
|
+
| -------------------------------- | --------------------------- | --------------------------------------------------------------------------------- |
|
|
65
|
+
| onBackPressed | 监听返回键事件 | ^[Function]`onBackPressed(): void` |
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: DispatchKeyEvent
|
|
3
|
+
lang: zh-CN
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# 监听分发按键事件
|
|
7
|
+
|
|
8
|
+
::: warning 注意
|
|
9
|
+
|
|
10
|
+
仅在[`Page`](/zh-CN/guide/page/type)中使用生效
|
|
11
|
+
|
|
12
|
+
:::
|
|
13
|
+
|
|
14
|
+
## 基础用法
|
|
15
|
+
|
|
16
|
+
在`setup`中编写`onDispatchKeyEvent`方法,并在`return`中返回此方法。
|
|
17
|
+
|
|
18
|
+
```ts
|
|
19
|
+
|
|
20
|
+
function onDispatchKeyEvent(keyEvent: ESKeyEvent) {
|
|
21
|
+
//
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
return {
|
|
25
|
+
onDispatchKeyEvent,
|
|
26
|
+
}
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
:::demo
|
|
30
|
+
|
|
31
|
+
module/key/es-dispatch
|
|
32
|
+
|
|
33
|
+
:::
|
|
34
|
+
|
|
35
|
+
## API
|
|
36
|
+
|
|
37
|
+
### Exposes
|
|
38
|
+
|
|
39
|
+
| Name | Description | Type |
|
|
40
|
+
| -------------------------------- | --------------------------- | --------------------------------------------------------------------------------- |
|
|
41
|
+
| onDispatchKeyEvent | 监听分发按键事件 | ^[Function]`onDispatchKeyEvent(keyEvent: ESKeyEvent): void` |
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: KeyEvent
|
|
3
|
+
lang: zh-CN
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# 按键事件
|
|
7
|
+
|
|
8
|
+
::: warning 注意
|
|
9
|
+
|
|
10
|
+
仅在[`Page`](/zh-CN/guide/page/type)中使用生效
|
|
11
|
+
|
|
12
|
+
:::
|
|
13
|
+
|
|
14
|
+
## 基础用法
|
|
15
|
+
|
|
16
|
+
在`setup`中编写 `onKeyDown` 和 `onKeyUp` 方法,并在`return`中返回此方法。
|
|
17
|
+
|
|
18
|
+
```ts
|
|
19
|
+
|
|
20
|
+
function onKeyDown(keyEvent: ESKeyEvent) {
|
|
21
|
+
//按键被按下
|
|
22
|
+
//处理业务逻辑
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
function onKeyUp(keyEvent: ESKeyEvent) {
|
|
26
|
+
//按键被抬起
|
|
27
|
+
//处理业务逻辑
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
return {
|
|
31
|
+
onKeyDown,
|
|
32
|
+
onKeyUp,
|
|
33
|
+
}
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
:::demo
|
|
37
|
+
|
|
38
|
+
module/key/es-event
|
|
39
|
+
|
|
40
|
+
:::
|
|
41
|
+
|
|
42
|
+
## API
|
|
43
|
+
|
|
44
|
+
### DataStructure
|
|
45
|
+
|
|
46
|
+
#### ESKeyEvent
|
|
47
|
+
|
|
48
|
+
按键事件
|
|
49
|
+
|
|
50
|
+
| Name | Description | Type | Default |
|
|
51
|
+
| --------------------------- | ------------------------------| ----------------------------|---------|
|
|
52
|
+
| action | 按键动作 | ^[ESKeyAction] | - |
|
|
53
|
+
| keyCode | 键值 | ^[ESKeyCode] | - |
|
|
54
|
+
| keyRepeat | 重复按键的次数 | ^[number] | - |
|
|
55
|
+
|
|
56
|
+
#### ESKeyAction
|
|
57
|
+
|
|
58
|
+
按键动作
|
|
59
|
+
|
|
60
|
+
| Name | Description | Type | Default |
|
|
61
|
+
| --------------------------- | ------------------------------| ----------------------------|---------|
|
|
62
|
+
| ES_KEY_ACTION_DOWN | 按下 | ^[ESKeyAction] | - |
|
|
63
|
+
| ES_KEY_ACTION_UP | 抬起 | ^[ESKeyAction] | - |
|
|
64
|
+
|
|
65
|
+
#### ESKeyCode
|
|
66
|
+
|
|
67
|
+
按键值
|
|
68
|
+
|
|
69
|
+
| Name | Description | Type | Default |
|
|
70
|
+
| --------------------------- | ------------------------------| ----------------------------|---------|
|
|
71
|
+
| ES_KEYCODE_ENTER | 回车键 | ^[number] | 66 |
|
|
72
|
+
| ES_KEYCODE_DPAD_CENTER | 导航键 确定键 | ^[number] | 23 |
|
|
73
|
+
| ES_KEYCODE_DPAD_UP | 导航键 向上 | ^[number] | 19 |
|
|
74
|
+
| ES_KEYCODE_DPAD_DOWN | 导航键 向下 | ^[number] | 20 |
|
|
75
|
+
| ES_KEYCODE_DPAD_LEFT | 导航键 向左 | ^[number] | 21 |
|
|
76
|
+
| ES_KEYCODE_DPAD_RIGHT | 导航键 向右 | ^[number] | 22 |
|
|
77
|
+
| ES_KEYCODE_BACK | 返回键 | ^[number] | 4 |
|
|
78
|
+
| ES_KEYCODE_ESCAPE | 回退键 | ^[number] | 111 |
|
|
79
|
+
| ES_KEYCODE_MENU | 菜单键 | ^[number] | 82 |
|
|
80
|
+
| ES_KEYCODE_SEARCH | 搜索键 | ^[number] | 84 |
|
|
81
|
+
|
|
82
|
+
### Exposes
|
|
83
|
+
|
|
84
|
+
| Name | Description | Type |
|
|
85
|
+
| -------------------------------- | --------------------------- | -----------------------------------------------|
|
|
86
|
+
| onKeyDown | 监听按键按下 | ^[Function]`onKeyDown(keyEvent: ESKeyEvent): void` |
|
|
87
|
+
| onKeyUp | 监听按键抬起 | ^[Function]`onKeyUp(keyEvent: ESKeyEvent): void` |
|