wevu 7.0.3 → 7.1.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 +20 -4
- package/dist/alipay/jsx-runtime.d.mts +13 -0
- package/dist/alipay/jsx-runtime.mjs +1 -0
- package/dist/alipayIntrinsicElements/base.d.mts +4 -0
- package/dist/alipayIntrinsicElements/elements/button.d.mts +29 -0
- package/dist/alipayIntrinsicElements/elements/camera.d.mts +18 -0
- package/dist/alipayIntrinsicElements/elements/canvas.d.mts +20 -0
- package/dist/alipayIntrinsicElements/elements/checkbox-group.d.mts +11 -0
- package/dist/alipayIntrinsicElements/elements/checkbox.d.mts +14 -0
- package/dist/alipayIntrinsicElements/elements/contact-button.d.mts +15 -0
- package/dist/alipayIntrinsicElements/elements/cover-image.d.mts +11 -0
- package/dist/alipayIntrinsicElements/elements/cover-view.d.mts +11 -0
- package/dist/alipayIntrinsicElements/elements/error-view.d.mts +14 -0
- package/dist/alipayIntrinsicElements/elements/form.d.mts +12 -0
- package/dist/alipayIntrinsicElements/elements/icon.d.mts +11 -0
- package/dist/alipayIntrinsicElements/elements/image.d.mts +17 -0
- package/dist/alipayIntrinsicElements/elements/input.d.mts +31 -0
- package/dist/alipayIntrinsicElements/elements/join-group-chat.d.mts +9 -0
- package/dist/alipayIntrinsicElements/elements/label.d.mts +9 -0
- package/dist/alipayIntrinsicElements/elements/lifestyle.d.mts +11 -0
- package/dist/alipayIntrinsicElements/elements/lottie.d.mts +25 -0
- package/dist/alipayIntrinsicElements/elements/map.d.mts +44 -0
- package/dist/alipayIntrinsicElements/elements/match-media.d.mts +15 -0
- package/dist/alipayIntrinsicElements/elements/movable-area.d.mts +9 -0
- package/dist/alipayIntrinsicElements/elements/movable-view.d.mts +32 -0
- package/dist/alipayIntrinsicElements/elements/navigator.d.mts +13 -0
- package/dist/alipayIntrinsicElements/elements/page-container.d.mts +27 -0
- package/dist/alipayIntrinsicElements/elements/page-meta.d.mts +19 -0
- package/dist/alipayIntrinsicElements/elements/picker-view-column.d.mts +7 -0
- package/dist/alipayIntrinsicElements/elements/picker-view.d.mts +18 -0
- package/dist/alipayIntrinsicElements/elements/picker.d.mts +15 -0
- package/dist/alipayIntrinsicElements/elements/progress.d.mts +14 -0
- package/dist/alipayIntrinsicElements/elements/radio-group.d.mts +11 -0
- package/dist/alipayIntrinsicElements/elements/radio.d.mts +12 -0
- package/dist/alipayIntrinsicElements/elements/rich-text.d.mts +17 -0
- package/dist/alipayIntrinsicElements/elements/root-portal.d.mts +9 -0
- package/dist/alipayIntrinsicElements/elements/scroll-view.d.mts +29 -0
- package/dist/alipayIntrinsicElements/elements/share-element.d.mts +12 -0
- package/dist/alipayIntrinsicElements/elements/slider.d.mts +23 -0
- package/dist/alipayIntrinsicElements/elements/subscribe-message.d.mts +11 -0
- package/dist/alipayIntrinsicElements/elements/swiper-item.d.mts +7 -0
- package/dist/alipayIntrinsicElements/elements/swiper.d.mts +36 -0
- package/dist/alipayIntrinsicElements/elements/switch.d.mts +15 -0
- package/dist/alipayIntrinsicElements/elements/text.d.mts +12 -0
- package/dist/alipayIntrinsicElements/elements/textarea.d.mts +24 -0
- package/dist/alipayIntrinsicElements/elements/video.d.mts +39 -0
- package/dist/alipayIntrinsicElements/elements/view.d.mts +29 -0
- package/dist/alipayIntrinsicElements/elements/web-view.d.mts +13 -0
- package/dist/alipayIntrinsicElements.d.mts +94 -0
- package/dist/dev/_virtual/{_@oxc-project_runtime@0.148.0 → _@oxc-project_runtime@0.149.0}/helpers/esm/defineProperty.mjs +1 -1
- package/dist/dev/_virtual/{_@oxc-project_runtime@0.148.0 → _@oxc-project_runtime@0.149.0}/helpers/esm/toPrimitive.mjs +1 -1
- package/dist/dev/_virtual/{_@oxc-project_runtime@0.148.0 → _@oxc-project_runtime@0.149.0}/helpers/esm/toPropertyKey.mjs +1 -1
- package/dist/dev/_virtual/{_@oxc-project_runtime@0.148.0 → _@oxc-project_runtime@0.149.0}/helpers/esm/typeof.mjs +1 -1
- package/dist/dev/alipayIntrinsicElements/base.d.mts +5 -0
- package/dist/dev/alipayIntrinsicElements/elements/button.d.mts +30 -0
- package/dist/dev/alipayIntrinsicElements/elements/camera.d.mts +19 -0
- package/dist/dev/alipayIntrinsicElements/elements/canvas.d.mts +21 -0
- package/dist/dev/alipayIntrinsicElements/elements/checkbox-group.d.mts +12 -0
- package/dist/dev/alipayIntrinsicElements/elements/checkbox.d.mts +15 -0
- package/dist/dev/alipayIntrinsicElements/elements/contact-button.d.mts +16 -0
- package/dist/dev/alipayIntrinsicElements/elements/cover-image.d.mts +12 -0
- package/dist/dev/alipayIntrinsicElements/elements/cover-view.d.mts +12 -0
- package/dist/dev/alipayIntrinsicElements/elements/error-view.d.mts +15 -0
- package/dist/dev/alipayIntrinsicElements/elements/form.d.mts +13 -0
- package/dist/dev/alipayIntrinsicElements/elements/icon.d.mts +12 -0
- package/dist/dev/alipayIntrinsicElements/elements/image.d.mts +18 -0
- package/dist/dev/alipayIntrinsicElements/elements/input.d.mts +32 -0
- package/dist/dev/alipayIntrinsicElements/elements/join-group-chat.d.mts +10 -0
- package/dist/dev/alipayIntrinsicElements/elements/label.d.mts +10 -0
- package/dist/dev/alipayIntrinsicElements/elements/lifestyle.d.mts +12 -0
- package/dist/dev/alipayIntrinsicElements/elements/lottie.d.mts +26 -0
- package/dist/dev/alipayIntrinsicElements/elements/map.d.mts +45 -0
- package/dist/dev/alipayIntrinsicElements/elements/match-media.d.mts +16 -0
- package/dist/dev/alipayIntrinsicElements/elements/movable-area.d.mts +10 -0
- package/dist/dev/alipayIntrinsicElements/elements/movable-view.d.mts +33 -0
- package/dist/dev/alipayIntrinsicElements/elements/navigator.d.mts +14 -0
- package/dist/dev/alipayIntrinsicElements/elements/page-container.d.mts +28 -0
- package/dist/dev/alipayIntrinsicElements/elements/page-meta.d.mts +20 -0
- package/dist/dev/alipayIntrinsicElements/elements/picker-view-column.d.mts +8 -0
- package/dist/dev/alipayIntrinsicElements/elements/picker-view.d.mts +19 -0
- package/dist/dev/alipayIntrinsicElements/elements/picker.d.mts +16 -0
- package/dist/dev/alipayIntrinsicElements/elements/progress.d.mts +15 -0
- package/dist/dev/alipayIntrinsicElements/elements/radio-group.d.mts +12 -0
- package/dist/dev/alipayIntrinsicElements/elements/radio.d.mts +13 -0
- package/dist/dev/alipayIntrinsicElements/elements/rich-text.d.mts +18 -0
- package/dist/dev/alipayIntrinsicElements/elements/root-portal.d.mts +10 -0
- package/dist/dev/alipayIntrinsicElements/elements/scroll-view.d.mts +30 -0
- package/dist/dev/alipayIntrinsicElements/elements/share-element.d.mts +13 -0
- package/dist/dev/alipayIntrinsicElements/elements/slider.d.mts +24 -0
- package/dist/dev/alipayIntrinsicElements/elements/subscribe-message.d.mts +12 -0
- package/dist/dev/alipayIntrinsicElements/elements/swiper-item.d.mts +8 -0
- package/dist/dev/alipayIntrinsicElements/elements/swiper.d.mts +37 -0
- package/dist/dev/alipayIntrinsicElements/elements/switch.d.mts +16 -0
- package/dist/dev/alipayIntrinsicElements/elements/text.d.mts +13 -0
- package/dist/dev/alipayIntrinsicElements/elements/textarea.d.mts +25 -0
- package/dist/dev/alipayIntrinsicElements/elements/video.d.mts +40 -0
- package/dist/dev/alipayIntrinsicElements/elements/view.d.mts +30 -0
- package/dist/dev/alipayIntrinsicElements/elements/web-view.d.mts +14 -0
- package/dist/dev/alipayIntrinsicElements.d.mts +94 -0
- package/dist/dev/api/vitest/setup.d.mts +1 -0
- package/dist/dev/api/vitest.d.mts +1 -0
- package/dist/dev/api.d.mts +1 -0
- package/dist/dev/compiler.d.mts +1 -0
- package/dist/dev/fetch.d.mts +9 -0
- package/dist/dev/index.d.mts +72 -0
- package/dist/dev/index.mjs +12 -15
- package/dist/dev/internal-reactivity.d.mts +18 -0
- package/dist/dev/internal-reactivity.mjs +3 -2
- package/dist/dev/internal-runtime.d.mts +44 -0
- package/dist/dev/internal-runtime.mjs +19 -14
- package/dist/dev/internal-template.d.mts +2 -0
- package/dist/dev/jsx-runtime.d.mts +44 -0
- package/dist/dev/jsxTypes.d.mts +9 -0
- package/dist/dev/macros/shared.d.mts +81 -0
- package/dist/dev/macros.d.mts +71 -0
- package/dist/dev/package.mjs +1 -1
- package/dist/dev/reactivity/asyncDerivation.d.mts +41 -0
- package/dist/dev/reactivity/asyncDerivation.mjs +130 -0
- package/dist/dev/reactivity/asyncDerivation.mjs.map +1 -0
- package/dist/dev/reactivity/computed.d.mts +21 -0
- package/dist/dev/reactivity/computed.mjs +2 -2
- package/dist/dev/reactivity/computed.mjs.map +1 -1
- package/dist/dev/reactivity/core.d.mts +35 -0
- package/dist/dev/reactivity/core.mjs +156 -32
- package/dist/dev/reactivity/core.mjs.map +1 -1
- package/dist/dev/reactivity/index.d.mts +16 -0
- package/dist/dev/reactivity/reactive/mutation.d.mts +21 -0
- package/dist/dev/reactivity/reactive/patch.d.mts +18 -0
- package/dist/dev/reactivity/reactive/shallow.d.mts +22 -0
- package/dist/dev/reactivity/reactive/shared.d.mts +4 -0
- package/dist/dev/reactivity/reactive.d.mts +42 -0
- package/dist/dev/reactivity/readonly.d.mts +27 -0
- package/dist/dev/reactivity/readonly.mjs.map +1 -1
- package/dist/dev/reactivity/ref.d.mts +27 -0
- package/dist/dev/reactivity/ref.mjs +1 -1
- package/dist/dev/reactivity/shallowRef.d.mts +19 -0
- package/dist/dev/reactivity/toRefs.d.mts +43 -0
- package/dist/dev/reactivity/traverse.d.mts +8 -0
- package/dist/dev/reactivity/watch/types.d.mts +43 -0
- package/dist/dev/reactivity/watch.d.mts +22 -0
- package/dist/dev/router/createRouter.d.mts +8 -0
- package/dist/dev/router/navigationCore.d.mts +6 -0
- package/dist/dev/router/resolve.d.mts +6 -0
- package/dist/dev/router/routeSync.d.mts +1 -0
- package/dist/dev/router/routeSync.mjs +8 -2
- package/dist/dev/router/routeSync.mjs.map +1 -1
- package/dist/dev/router/types.d.mts +172 -0
- package/dist/dev/router/useRoute.d.mts +19 -0
- package/dist/dev/router/useRoute.mjs +14 -7
- package/dist/dev/router/useRoute.mjs.map +1 -1
- package/dist/dev/router/useRouter.d.mts +8 -0
- package/dist/dev/router.d.mts +10 -0
- package/dist/dev/routerInternal/query.d.mts +7 -0
- package/dist/dev/routerInternal/types.d.mts +9 -0
- package/dist/dev/runtime/app/computed.mjs +2 -2
- package/dist/dev/runtime/app/computed.mjs.map +1 -1
- package/dist/dev/runtime/app/context.mjs +8 -2
- package/dist/dev/runtime/app/context.mjs.map +1 -1
- package/dist/dev/runtime/app/diagnostics.mjs +12 -0
- package/dist/dev/runtime/app/diagnostics.mjs.map +1 -1
- package/dist/dev/runtime/app/mount.mjs +31 -28
- package/dist/dev/runtime/app/mount.mjs.map +1 -1
- package/dist/dev/runtime/app/pending.d.mts +10 -0
- package/dist/dev/runtime/app/setData/commitTracker.d.mts +13 -0
- package/dist/dev/runtime/app/setData/commitTracker.mjs +265 -0
- package/dist/dev/runtime/app/setData/commitTracker.mjs.map +1 -0
- package/dist/dev/runtime/app/setData/patchScheduler.mjs +47 -51
- package/dist/dev/runtime/app/setData/patchScheduler.mjs.map +1 -1
- package/dist/dev/runtime/app/setData/scheduler.d.mts +51 -0
- package/dist/dev/runtime/app/setData/scheduler.mjs +98 -111
- package/dist/dev/runtime/app/setData/scheduler.mjs.map +1 -1
- package/dist/dev/runtime/app/setData/snapshot.mjs +11 -1
- package/dist/dev/runtime/app/setData/snapshot.mjs.map +1 -1
- package/dist/dev/runtime/app.d.mts +8 -0
- package/dist/dev/runtime/app.mjs +18 -6
- package/dist/dev/runtime/app.mjs.map +1 -1
- package/dist/dev/runtime/bindingManifest.mjs +105 -0
- package/dist/dev/runtime/bindingManifest.mjs.map +1 -0
- package/dist/dev/runtime/capabilities.d.mts +75 -0
- package/dist/dev/runtime/capabilities.mjs +40 -0
- package/dist/dev/runtime/capabilities.mjs.map +1 -0
- package/dist/dev/runtime/css.d.mts +14 -0
- package/dist/dev/runtime/defaults.d.mts +12 -0
- package/dist/dev/runtime/define/componentDefinition.mjs +3 -0
- package/dist/dev/runtime/define/componentDefinition.mjs.map +1 -1
- package/dist/dev/runtime/define/optionsApi.mjs +1 -1
- package/dist/dev/runtime/define/props.mjs +30 -60
- package/dist/dev/runtime/define/props.mjs.map +1 -1
- package/dist/dev/runtime/define/scopedSlotOptions.mjs +37 -21
- package/dist/dev/runtime/define/scopedSlotOptions.mjs.map +1 -1
- package/dist/dev/runtime/define.d.mts +118 -0
- package/dist/dev/runtime/define.mjs +32 -44
- package/dist/dev/runtime/define.mjs.map +1 -1
- package/dist/dev/runtime/diff.mjs +1 -1
- package/dist/dev/runtime/disposables.d.mts +31 -0
- package/dist/dev/runtime/elementIntersectionObserver.d.mts +26 -0
- package/dist/dev/runtime/features/inlineEvents.d.mts +7 -0
- package/dist/dev/runtime/features/inlineEvents.mjs +25 -0
- package/dist/dev/runtime/features/inlineEvents.mjs.map +1 -0
- package/dist/dev/runtime/features/layout.d.mts +7 -0
- package/dist/dev/runtime/features/layout.mjs +44 -0
- package/dist/dev/runtime/features/layout.mjs.map +1 -0
- package/dist/dev/runtime/features/patchStrategy.d.mts +7 -0
- package/dist/dev/runtime/features/patchStrategy.mjs +129 -0
- package/dist/dev/runtime/features/patchStrategy.mjs.map +1 -0
- package/dist/dev/runtime/features/publicLayout.d.mts +24 -0
- package/dist/dev/runtime/features/publicLayout.mjs +81 -0
- package/dist/dev/runtime/features/publicLayout.mjs.map +1 -0
- package/dist/dev/runtime/features/scopedSlots.d.mts +23 -0
- package/dist/dev/runtime/features/scopedSlots.mjs +88 -0
- package/dist/dev/runtime/features/scopedSlots.mjs.map +1 -0
- package/dist/dev/runtime/features/setDataHighFrequencyWarning.d.mts +7 -0
- package/dist/dev/runtime/features/setDataHighFrequencyWarning.mjs +15 -0
- package/dist/dev/runtime/features/setDataHighFrequencyWarning.mjs.map +1 -0
- package/dist/dev/runtime/features/templateRefs.d.mts +7 -0
- package/dist/dev/runtime/features/templateRefs.mjs +39 -0
- package/dist/dev/runtime/features/templateRefs.mjs.map +1 -0
- package/dist/dev/runtime/hooks/base.d.mts +27 -0
- package/dist/dev/runtime/hooks/register.d.mts +30 -0
- package/dist/dev/runtime/hooks/vue.d.mts +52 -0
- package/dist/dev/runtime/hooks/vue.mjs +3 -5
- package/dist/dev/runtime/hooks/vue.mjs.map +1 -1
- package/dist/dev/runtime/hooks.d.mts +4 -0
- package/dist/dev/runtime/index.d.mts +46 -0
- package/dist/dev/runtime/inlineDataset.mjs +75 -0
- package/dist/dev/runtime/inlineDataset.mjs.map +1 -0
- package/dist/dev/runtime/intersectionObserver.d.mts +14 -0
- package/dist/dev/runtime/jsxIsland.d.mts +37 -0
- package/dist/dev/runtime/jsxIsland.mjs.map +1 -1
- package/dist/dev/runtime/layoutBridge.d.mts +55 -0
- package/dist/dev/runtime/layoutBridge.mjs.map +1 -1
- package/dist/dev/runtime/noSetData.d.mts +5 -0
- package/dist/dev/runtime/pageEnvironment.d.mts +50 -0
- package/dist/dev/runtime/pageLayout.d.mts +25 -0
- package/dist/dev/runtime/pageLayout.mjs.map +1 -1
- package/dist/dev/runtime/pageScroll.d.mts +29 -0
- package/dist/dev/runtime/provide.d.mts +60 -0
- package/dist/dev/runtime/provideStore.d.mts +7 -0
- package/dist/dev/runtime/publicRuntime.d.mts +22 -0
- package/dist/dev/runtime/publicRuntime.mjs +91 -0
- package/dist/dev/runtime/publicRuntime.mjs.map +1 -0
- package/dist/dev/runtime/pullDownRefresh.d.mts +12 -0
- package/dist/dev/runtime/register/app.d.mts +14 -0
- package/dist/dev/runtime/register/app.mjs +7 -10
- package/dist/dev/runtime/register/app.mjs.map +1 -1
- package/dist/dev/runtime/register/component/lifecycle.mjs +22 -6
- package/dist/dev/runtime/register/component/lifecycle.mjs.map +1 -1
- package/dist/dev/runtime/register/component/methods.mjs +7 -10
- package/dist/dev/runtime/register/component/methods.mjs.map +1 -1
- package/dist/dev/runtime/register/component/options.mjs.map +1 -1
- package/dist/dev/runtime/register/component/registerDefinition.mjs +64 -69
- package/dist/dev/runtime/register/component/registerDefinition.mjs.map +1 -1
- package/dist/dev/runtime/register/component.d.mts +17 -0
- package/dist/dev/runtime/register/inline.d.mts +15 -0
- package/dist/dev/runtime/register/inline.mjs +4 -64
- package/dist/dev/runtime/register/inline.mjs.map +1 -1
- package/dist/dev/runtime/register/runtimeInstance/setupContext.mjs +16 -2
- package/dist/dev/runtime/register/runtimeInstance/setupContext.mjs.map +1 -1
- package/dist/dev/runtime/register/runtimeInstance/setupPhase.mjs +0 -4
- package/dist/dev/runtime/register/runtimeInstance/setupPhase.mjs.map +1 -1
- package/dist/dev/runtime/register/runtimeInstance/setupSnapshot.mjs +26 -0
- package/dist/dev/runtime/register/runtimeInstance/setupSnapshot.mjs.map +1 -0
- package/dist/dev/runtime/register/runtimeInstance/utils.mjs.map +1 -1
- package/dist/dev/runtime/register/runtimeInstance.d.mts +26 -0
- package/dist/dev/runtime/register/runtimeInstance.mjs +402 -160
- package/dist/dev/runtime/register/runtimeInstance.mjs.map +1 -1
- package/dist/dev/runtime/register/setDataFrequencyWarning.mjs.map +1 -1
- package/dist/dev/runtime/register/setup.d.mts +11 -0
- package/dist/dev/runtime/register/snapshot.mjs +6 -10
- package/dist/dev/runtime/register/snapshot.mjs.map +1 -1
- package/dist/dev/runtime/register/watch.d.mts +12 -0
- package/dist/dev/runtime/register.d.mts +5 -0
- package/dist/dev/runtime/scopedSlots.mjs +1 -1
- package/dist/dev/runtime/scopedSlots.mjs.map +1 -1
- package/dist/dev/runtime/selectorQuery.d.mts +54 -0
- package/dist/dev/runtime/selectorQuery.mjs +5 -0
- package/dist/dev/runtime/selectorQuery.mjs.map +1 -1
- package/dist/dev/runtime/teardown.mjs +18 -0
- package/dist/dev/runtime/teardown.mjs.map +1 -0
- package/dist/dev/runtime/template.d.mts +6 -0
- package/dist/dev/runtime/templateRefTypes.d.mts +12 -0
- package/dist/dev/runtime/templateRefs/helpers.mjs.map +1 -1
- package/dist/dev/runtime/templateRefs.mjs +187 -118
- package/dist/dev/runtime/templateRefs.mjs.map +1 -1
- package/dist/dev/runtime/types/core.d.mts +35 -0
- package/dist/dev/runtime/types/miniprogram.d.mts +84 -0
- package/dist/dev/runtime/types/miniprogramHost.d.mts +45 -0
- package/dist/dev/runtime/types/miniprogramHostSources.d.mts +112 -0
- package/dist/dev/runtime/types/options.d.mts +136 -0
- package/dist/dev/runtime/types/props/propTypes.d.mts +79 -0
- package/dist/dev/runtime/types/props/router.d.mts +51 -0
- package/dist/dev/runtime/types/props/setup.d.mts +96 -0
- package/dist/dev/runtime/types/props.d.mts +4 -0
- package/dist/dev/runtime/types/runtime.d.mts +59 -0
- package/dist/dev/runtime/types/setData.d.mts +237 -0
- package/dist/dev/runtime/types.d.mts +29 -0
- package/dist/dev/runtime/uniAppHost.d.mts +8 -0
- package/dist/dev/runtime/updatePerformance.d.mts +13 -0
- package/dist/dev/runtime/use.d.mts +13 -0
- package/dist/dev/runtime/vueCompat/context.d.mts +8 -0
- package/dist/dev/runtime/vueCompat/model.d.mts +30 -0
- package/dist/dev/runtime/vueCompat/router.d.mts +28 -0
- package/dist/dev/runtime/vueCompat/templateRef.d.mts +9 -0
- package/dist/dev/runtime/vueCompat/templateRef.mjs +2 -0
- package/dist/dev/runtime/vueCompat/templateRef.mjs.map +1 -1
- package/dist/dev/runtime/vueCompat.d.mts +5 -0
- package/dist/dev/scheduler.d.mts +4 -0
- package/dist/dev/store/base.mjs +12 -18
- package/dist/dev/store/base.mjs.map +1 -1
- package/dist/dev/store/define/optionsStyle.mjs +13 -23
- package/dist/dev/store/define/optionsStyle.mjs.map +1 -1
- package/dist/dev/store/define/setupStyle.mjs +14 -24
- package/dist/dev/store/define/setupStyle.mjs.map +1 -1
- package/dist/dev/store/define/shared.mjs +44 -1
- package/dist/dev/store/define/shared.mjs.map +1 -1
- package/dist/dev/store/define.d.mts +28 -0
- package/dist/dev/store/define.mjs.map +1 -1
- package/dist/dev/store/manager.d.mts +8 -0
- package/dist/dev/store/storeToRefs.d.mts +13 -0
- package/dist/dev/store/types.d.mts +70 -0
- package/dist/dev/store.d.mts +5 -0
- package/dist/dev/ttIntrinsicElements/base.d.mts +5 -0
- package/dist/dev/ttIntrinsicElements/elements/ad.d.mts +8 -0
- package/dist/dev/ttIntrinsicElements/elements/aweme-data.d.mts +15 -0
- package/dist/dev/ttIntrinsicElements/elements/aweme-user-card.d.mts +16 -0
- package/dist/dev/ttIntrinsicElements/elements/button.d.mts +23 -0
- package/dist/dev/ttIntrinsicElements/elements/camera.d.mts +19 -0
- package/dist/dev/ttIntrinsicElements/elements/canvas.d.mts +16 -0
- package/dist/dev/ttIntrinsicElements/elements/checkbox-group.d.mts +12 -0
- package/dist/dev/ttIntrinsicElements/elements/checkbox.d.mts +12 -0
- package/dist/dev/ttIntrinsicElements/elements/draw-ad.d.mts +16 -0
- package/dist/dev/ttIntrinsicElements/elements/form.d.mts +14 -0
- package/dist/dev/ttIntrinsicElements/elements/icon.d.mts +11 -0
- package/dist/dev/ttIntrinsicElements/elements/image.d.mts +16 -0
- package/dist/dev/ttIntrinsicElements/elements/input.d.mts +32 -0
- package/dist/dev/ttIntrinsicElements/elements/label.d.mts +10 -0
- package/dist/dev/ttIntrinsicElements/elements/live-player.d.mts +19 -0
- package/dist/dev/ttIntrinsicElements/elements/live-preview.d.mts +13 -0
- package/dist/dev/ttIntrinsicElements/elements/map.d.mts +36 -0
- package/dist/dev/ttIntrinsicElements/elements/mask.d.mts +8 -0
- package/dist/dev/ttIntrinsicElements/elements/match-media.d.mts +16 -0
- package/dist/dev/ttIntrinsicElements/elements/movable-area.d.mts +10 -0
- package/dist/dev/ttIntrinsicElements/elements/movable-view.d.mts +27 -0
- package/dist/dev/ttIntrinsicElements/elements/navigator.d.mts +16 -0
- package/dist/dev/ttIntrinsicElements/elements/open-data.d.mts +15 -0
- package/dist/dev/ttIntrinsicElements/elements/picker-view-column.d.mts +8 -0
- package/dist/dev/ttIntrinsicElements/elements/picker-view.d.mts +19 -0
- package/dist/dev/ttIntrinsicElements/elements/picker.d.mts +22 -0
- package/dist/dev/ttIntrinsicElements/elements/progress.d.mts +16 -0
- package/dist/dev/ttIntrinsicElements/elements/radio-group.d.mts +12 -0
- package/dist/dev/ttIntrinsicElements/elements/radio.d.mts +12 -0
- package/dist/dev/ttIntrinsicElements/elements/rich-text.d.mts +10 -0
- package/dist/dev/ttIntrinsicElements/elements/rtc-room.d.mts +13 -0
- package/dist/dev/ttIntrinsicElements/elements/scroll-view.d.mts +32 -0
- package/dist/dev/ttIntrinsicElements/elements/slider.d.mts +19 -0
- package/dist/dev/ttIntrinsicElements/elements/swiper-item.d.mts +10 -0
- package/dist/dev/ttIntrinsicElements/elements/swiper.d.mts +27 -0
- package/dist/dev/ttIntrinsicElements/elements/switch.d.mts +14 -0
- package/dist/dev/ttIntrinsicElements/elements/text.d.mts +12 -0
- package/dist/dev/ttIntrinsicElements/elements/textarea.d.mts +34 -0
- package/dist/dev/ttIntrinsicElements/elements/video.d.mts +58 -0
- package/dist/dev/ttIntrinsicElements/elements/view.d.mts +15 -0
- package/dist/dev/ttIntrinsicElements/elements/web-view.d.mts +15 -0
- package/dist/dev/ttIntrinsicElements.d.mts +88 -0
- package/dist/dev/version.d.mts +4 -0
- package/dist/dev/vue-augment.d.mts +8 -0
- package/dist/dev/vue-demi.d.mts +87 -0
- package/dist/dev/vue-demi.mjs +12 -15
- package/dist/dev/vue-demi.mjs.map +1 -1
- package/dist/dev/vue-types.d.mts +19 -0
- package/dist/dev/weappIntrinsicElements/base.d.mts +5 -0
- package/dist/dev/weappIntrinsicElements/elements/ad-custom.d.mts +14 -0
- package/dist/dev/weappIntrinsicElements/elements/ad.d.mts +17 -0
- package/dist/dev/weappIntrinsicElements/elements/audio.d.mts +21 -0
- package/dist/dev/weappIntrinsicElements/elements/block.d.mts +8 -0
- package/dist/dev/weappIntrinsicElements/elements/button.d.mts +42 -0
- package/dist/dev/weappIntrinsicElements/elements/camera.d.mts +19 -0
- package/dist/dev/weappIntrinsicElements/elements/canvas.d.mts +19 -0
- package/dist/dev/weappIntrinsicElements/elements/checkbox-group.d.mts +11 -0
- package/dist/dev/weappIntrinsicElements/elements/checkbox.d.mts +13 -0
- package/dist/dev/weappIntrinsicElements/elements/cover-image.d.mts +14 -0
- package/dist/dev/weappIntrinsicElements/elements/cover-view.d.mts +10 -0
- package/dist/dev/weappIntrinsicElements/elements/editor.d.mts +23 -0
- package/dist/dev/weappIntrinsicElements/elements/form.d.mts +17 -0
- package/dist/dev/weappIntrinsicElements/elements/functional-page-navigator.d.mts +16 -0
- package/dist/dev/weappIntrinsicElements/elements/icon.d.mts +12 -0
- package/dist/dev/weappIntrinsicElements/elements/image.d.mts +19 -0
- package/dist/dev/weappIntrinsicElements/elements/import.d.mts +10 -0
- package/dist/dev/weappIntrinsicElements/elements/include.d.mts +10 -0
- package/dist/dev/weappIntrinsicElements/elements/input.d.mts +47 -0
- package/dist/dev/weappIntrinsicElements/elements/keyboard-accessory.d.mts +8 -0
- package/dist/dev/weappIntrinsicElements/elements/label.d.mts +10 -0
- package/dist/dev/weappIntrinsicElements/elements/live-player.d.mts +36 -0
- package/dist/dev/weappIntrinsicElements/elements/live-pusher.d.mts +58 -0
- package/dist/dev/weappIntrinsicElements/elements/map.d.mts +106 -0
- package/dist/dev/weappIntrinsicElements/elements/match-media.d.mts +16 -0
- package/dist/dev/weappIntrinsicElements/elements/movable-area.d.mts +27 -0
- package/dist/dev/weappIntrinsicElements/elements/movable-view.d.mts +27 -0
- package/dist/dev/weappIntrinsicElements/elements/navigation-bar.d.mts +15 -0
- package/dist/dev/weappIntrinsicElements/elements/navigator.d.mts +26 -0
- package/dist/dev/weappIntrinsicElements/elements/official-account.d.mts +14 -0
- package/dist/dev/weappIntrinsicElements/elements/open-data.d.mts +16 -0
- package/dist/dev/weappIntrinsicElements/elements/page-container.d.mts +26 -0
- package/dist/dev/weappIntrinsicElements/elements/page-meta.d.mts +24 -0
- package/dist/dev/weappIntrinsicElements/elements/picker-view-column.d.mts +19 -0
- package/dist/dev/weappIntrinsicElements/elements/picker-view.d.mts +19 -0
- package/dist/dev/weappIntrinsicElements/elements/picker.d.mts +24 -0
- package/dist/dev/weappIntrinsicElements/elements/progress.d.mts +22 -0
- package/dist/dev/weappIntrinsicElements/elements/radio-group.d.mts +11 -0
- package/dist/dev/weappIntrinsicElements/elements/radio.d.mts +13 -0
- package/dist/dev/weappIntrinsicElements/elements/rich-text.d.mts +17 -0
- package/dist/dev/weappIntrinsicElements/elements/scroll-view.d.mts +64 -0
- package/dist/dev/weappIntrinsicElements/elements/share-element.d.mts +17 -0
- package/dist/dev/weappIntrinsicElements/elements/slider.d.mts +24 -0
- package/dist/dev/weappIntrinsicElements/elements/slot.d.mts +10 -0
- package/dist/dev/weappIntrinsicElements/elements/swiper-item.d.mts +11 -0
- package/dist/dev/weappIntrinsicElements/elements/swiper.d.mts +40 -0
- package/dist/dev/weappIntrinsicElements/elements/switch.d.mts +15 -0
- package/dist/dev/weappIntrinsicElements/elements/template.d.mts +12 -0
- package/dist/dev/weappIntrinsicElements/elements/text.d.mts +15 -0
- package/dist/dev/weappIntrinsicElements/elements/textarea.d.mts +41 -0
- package/dist/dev/weappIntrinsicElements/elements/video.d.mts +72 -0
- package/dist/dev/weappIntrinsicElements/elements/view.d.mts +15 -0
- package/dist/dev/weappIntrinsicElements/elements/voip-room.d.mts +15 -0
- package/dist/dev/weappIntrinsicElements/elements/web-view.d.mts +14 -0
- package/dist/dev/weappIntrinsicElements.d.mts +114 -0
- package/dist/dev/web-apis.d.mts +3 -0
- package/dist/fetch.d.mts +4 -4
- package/dist/index.d.mts +13 -14
- package/dist/index.mjs +1 -1
- package/dist/internal-reactivity.d.mts +2 -1
- package/dist/internal-reactivity.mjs +1 -1
- package/dist/internal-runtime.d.mts +13 -6
- package/dist/internal-runtime.mjs +1 -1
- package/dist/jsx-runtime.d.mts +51 -14
- package/dist/jsxTypes.d.mts +8 -0
- package/dist/macros/shared.d.mts +14 -15
- package/dist/macros.d.mts +22 -22
- package/dist/miniprogram/jsx-runtime.d.mts +13 -0
- package/dist/miniprogram/jsx-runtime.mjs +1 -0
- package/dist/miniprogramIntrinsicElements/base.d.mts +4 -0
- package/dist/miniprogramIntrinsicElements/elements/button.d.mts +23 -0
- package/dist/miniprogramIntrinsicElements/elements/camera.d.mts +18 -0
- package/dist/miniprogramIntrinsicElements/elements/canvas.d.mts +16 -0
- package/dist/miniprogramIntrinsicElements/elements/checkbox-group.d.mts +12 -0
- package/dist/miniprogramIntrinsicElements/elements/checkbox.d.mts +13 -0
- package/dist/miniprogramIntrinsicElements/elements/form.d.mts +13 -0
- package/dist/miniprogramIntrinsicElements/elements/icon.d.mts +12 -0
- package/dist/miniprogramIntrinsicElements/elements/image.d.mts +16 -0
- package/dist/miniprogramIntrinsicElements/elements/input.d.mts +29 -0
- package/dist/miniprogramIntrinsicElements/elements/label.d.mts +11 -0
- package/dist/miniprogramIntrinsicElements/elements/map.d.mts +31 -0
- package/dist/miniprogramIntrinsicElements/elements/match-media.d.mts +13 -0
- package/dist/miniprogramIntrinsicElements/elements/movable-area.d.mts +9 -0
- package/dist/miniprogramIntrinsicElements/elements/movable-view.d.mts +26 -0
- package/dist/miniprogramIntrinsicElements/elements/navigator.d.mts +15 -0
- package/dist/miniprogramIntrinsicElements/elements/picker-view-column.d.mts +9 -0
- package/dist/miniprogramIntrinsicElements/elements/picker-view.d.mts +20 -0
- package/dist/miniprogramIntrinsicElements/elements/picker.d.mts +14 -0
- package/dist/miniprogramIntrinsicElements/elements/progress.d.mts +12 -0
- package/dist/miniprogramIntrinsicElements/elements/radio-group.d.mts +12 -0
- package/dist/miniprogramIntrinsicElements/elements/radio.d.mts +13 -0
- package/dist/miniprogramIntrinsicElements/elements/rich-text.d.mts +11 -0
- package/dist/miniprogramIntrinsicElements/elements/scroll-view.d.mts +22 -0
- package/dist/miniprogramIntrinsicElements/elements/slider.d.mts +19 -0
- package/dist/miniprogramIntrinsicElements/elements/swiper-item.d.mts +9 -0
- package/dist/miniprogramIntrinsicElements/elements/swiper.d.mts +24 -0
- package/dist/miniprogramIntrinsicElements/elements/switch.d.mts +14 -0
- package/dist/miniprogramIntrinsicElements/elements/text.d.mts +13 -0
- package/dist/miniprogramIntrinsicElements/elements/textarea.d.mts +23 -0
- package/dist/miniprogramIntrinsicElements/elements/video.d.mts +29 -0
- package/dist/miniprogramIntrinsicElements/elements/view.d.mts +16 -0
- package/dist/miniprogramIntrinsicElements/elements/web-view.d.mts +15 -0
- package/dist/miniprogramIntrinsicElements.d.mts +70 -0
- package/dist/package.mjs +1 -1
- package/dist/reactivity/asyncDerivation.d.mts +40 -0
- package/dist/reactivity/asyncDerivation.mjs +1 -0
- package/dist/reactivity/computed.d.mts +8 -9
- package/dist/reactivity/computed.mjs +1 -1
- package/dist/reactivity/core.d.mts +15 -15
- package/dist/reactivity/core.mjs +1 -1
- package/dist/reactivity/index.d.mts +2 -1
- package/dist/reactivity/reactive/mutation.d.mts +6 -7
- package/dist/reactivity/reactive/patch.d.mts +4 -5
- package/dist/reactivity/reactive/shallow.d.mts +3 -4
- package/dist/reactivity/reactive/shared.d.mts +2 -3
- package/dist/reactivity/reactive.d.mts +6 -6
- package/dist/reactivity/readonly.d.mts +7 -8
- package/dist/reactivity/ref.d.mts +14 -15
- package/dist/reactivity/ref.mjs +1 -1
- package/dist/reactivity/shallowRef.d.mts +5 -6
- package/dist/reactivity/toRefs.d.mts +5 -6
- package/dist/reactivity/traverse.d.mts +2 -3
- package/dist/reactivity/watch/types.d.mts +18 -19
- package/dist/reactivity/watch.d.mts +8 -8
- package/dist/router/createRouter.d.mts +2 -3
- package/dist/router/navigationCore.d.mts +3 -4
- package/dist/router/resolve.d.mts +2 -3
- package/dist/router/routeSync.mjs +1 -1
- package/dist/router/types.d.mts +38 -39
- package/dist/router/useRoute.d.mts +5 -6
- package/dist/router/useRoute.mjs +1 -1
- package/dist/router/useRouter.d.mts +2 -3
- package/dist/routerInternal/query.d.mts +3 -4
- package/dist/routerInternal/types.d.mts +2 -3
- package/dist/runtime/app/computed.mjs +1 -1
- package/dist/runtime/app/context.mjs +1 -1
- package/dist/runtime/app/diagnostics.mjs +1 -1
- package/dist/runtime/app/mount.mjs +1 -1
- package/dist/runtime/app/pending.d.mts +3 -4
- package/dist/runtime/app/setData/commitTracker.d.mts +12 -0
- package/dist/runtime/app/setData/commitTracker.mjs +1 -0
- package/dist/runtime/app/setData/patchScheduler.mjs +1 -1
- package/dist/runtime/app/setData/scheduler.d.mts +50 -0
- package/dist/runtime/app/setData/scheduler.mjs +1 -1
- package/dist/runtime/app/setData/snapshot.mjs +1 -1
- package/dist/runtime/app.d.mts +2 -3
- package/dist/runtime/app.mjs +1 -1
- package/dist/runtime/bindingManifest.mjs +1 -0
- package/dist/runtime/capabilities.d.mts +74 -0
- package/dist/runtime/capabilities.mjs +1 -0
- package/dist/runtime/css.d.mts +3 -4
- package/dist/runtime/defaults.d.mts +5 -6
- package/dist/runtime/define/componentDefinition.mjs +1 -1
- package/dist/runtime/define/optionsApi.mjs +1 -1
- package/dist/runtime/define/props.mjs +1 -1
- package/dist/runtime/define/scopedSlotOptions.mjs +1 -1
- package/dist/runtime/define.d.mts +18 -27
- package/dist/runtime/define.mjs +1 -1
- package/dist/runtime/diff.mjs +1 -1
- package/dist/runtime/disposables.d.mts +6 -7
- package/dist/runtime/elementIntersectionObserver.d.mts +5 -6
- package/dist/runtime/features/inlineEvents.d.mts +6 -0
- package/dist/runtime/features/inlineEvents.mjs +1 -0
- package/dist/runtime/features/layout.d.mts +6 -0
- package/dist/runtime/features/layout.mjs +1 -0
- package/dist/runtime/features/patchStrategy.d.mts +6 -0
- package/dist/runtime/features/patchStrategy.mjs +1 -0
- package/dist/runtime/features/publicLayout.d.mts +23 -0
- package/dist/runtime/features/publicLayout.mjs +1 -0
- package/dist/runtime/features/scopedSlots.d.mts +22 -0
- package/dist/runtime/features/scopedSlots.mjs +1 -0
- package/dist/runtime/features/setDataHighFrequencyWarning.d.mts +6 -0
- package/dist/runtime/features/setDataHighFrequencyWarning.mjs +1 -0
- package/dist/runtime/features/templateRefs.d.mts +6 -0
- package/dist/runtime/features/templateRefs.mjs +1 -0
- package/dist/runtime/hooks/base.d.mts +7 -8
- package/dist/runtime/hooks/register.d.mts +26 -27
- package/dist/runtime/hooks/vue.d.mts +13 -15
- package/dist/runtime/hooks/vue.mjs +1 -1
- package/dist/runtime/index.d.mts +12 -14
- package/dist/runtime/inlineDataset.mjs +1 -0
- package/dist/runtime/intersectionObserver.d.mts +4 -5
- package/dist/runtime/jsxIsland.d.mts +20 -25
- package/dist/runtime/layoutBridge.d.mts +12 -17
- package/dist/runtime/noSetData.d.mts +3 -4
- package/dist/runtime/pageEnvironment.d.mts +9 -10
- package/dist/runtime/pageLayout.d.mts +9 -11
- package/dist/runtime/pageScroll.d.mts +4 -5
- package/dist/runtime/provide.d.mts +7 -7
- package/dist/runtime/provideStore.d.mts +2 -3
- package/dist/runtime/publicRuntime.d.mts +21 -0
- package/dist/runtime/publicRuntime.mjs +1 -0
- package/dist/runtime/pullDownRefresh.d.mts +4 -5
- package/dist/runtime/register/app.d.mts +2 -3
- package/dist/runtime/register/app.mjs +1 -1
- package/dist/runtime/register/component/lifecycle.mjs +1 -1
- package/dist/runtime/register/component/methods.mjs +1 -1
- package/dist/runtime/register/component/registerDefinition.mjs +1 -1
- package/dist/runtime/register/component.d.mts +2 -3
- package/dist/runtime/register/inline.d.mts +3 -4
- package/dist/runtime/register/inline.mjs +1 -1
- package/dist/runtime/register/runtimeInstance/setupContext.mjs +1 -1
- package/dist/runtime/register/runtimeInstance/setupPhase.mjs +1 -1
- package/dist/runtime/register/runtimeInstance/setupSnapshot.mjs +1 -0
- package/dist/runtime/register/runtimeInstance.d.mts +4 -5
- package/dist/runtime/register/runtimeInstance.mjs +1 -1
- package/dist/runtime/register/setup.d.mts +2 -3
- package/dist/runtime/register/snapshot.mjs +1 -1
- package/dist/runtime/register/watch.d.mts +3 -4
- package/dist/runtime/scopedSlots.mjs +1 -1
- package/dist/runtime/selectorQuery.d.mts +15 -16
- package/dist/runtime/selectorQuery.mjs +1 -1
- package/dist/runtime/teardown.mjs +1 -0
- package/dist/runtime/template.d.mts +4 -5
- package/dist/runtime/templateRefTypes.d.mts +7 -3
- package/dist/runtime/templateRefs.mjs +1 -1
- package/dist/runtime/types/core.d.mts +9 -10
- package/dist/runtime/types/miniprogram.d.mts +13 -10
- package/dist/runtime/types/miniprogramHost.d.mts +41 -41
- package/dist/runtime/types/miniprogramHostSources.d.mts +21 -22
- package/dist/runtime/types/options.d.mts +8 -9
- package/dist/runtime/types/props/propTypes.d.mts +16 -17
- package/dist/runtime/types/props/router.d.mts +13 -14
- package/dist/runtime/types/props/setup.d.mts +7 -8
- package/dist/runtime/types/props.d.mts +1 -1
- package/dist/runtime/types/runtime.d.mts +7 -8
- package/dist/runtime/types/setData.d.mts +21 -5
- package/dist/runtime/types.d.mts +10 -10
- package/dist/runtime/uniAppHost.d.mts +2 -3
- package/dist/runtime/updatePerformance.d.mts +5 -6
- package/dist/runtime/use.d.mts +3 -4
- package/dist/runtime/vueCompat/context.d.mts +4 -5
- package/dist/runtime/vueCompat/model.d.mts +9 -10
- package/dist/runtime/vueCompat/router.d.mts +3 -4
- package/dist/runtime/vueCompat/templateRef.d.mts +4 -5
- package/dist/runtime/vueCompat/templateRef.mjs +1 -1
- package/dist/scheduler.d.mts +2 -3
- package/dist/store/base.mjs +1 -1
- package/dist/store/define/optionsStyle.mjs +1 -1
- package/dist/store/define/setupStyle.mjs +1 -1
- package/dist/store/define/shared.mjs +1 -1
- package/dist/store/define.d.mts +12 -11
- package/dist/store/manager.d.mts +2 -3
- package/dist/store/storeToRefs.d.mts +3 -4
- package/dist/store/types.d.mts +12 -13
- package/dist/tt/jsx-runtime.d.mts +13 -0
- package/dist/tt/jsx-runtime.mjs +1 -0
- package/dist/ttIntrinsicElements/base.d.mts +4 -0
- package/dist/ttIntrinsicElements/elements/ad.d.mts +7 -0
- package/dist/ttIntrinsicElements/elements/aweme-data.d.mts +14 -0
- package/dist/ttIntrinsicElements/elements/aweme-user-card.d.mts +15 -0
- package/dist/ttIntrinsicElements/elements/button.d.mts +22 -0
- package/dist/ttIntrinsicElements/elements/camera.d.mts +18 -0
- package/dist/ttIntrinsicElements/elements/canvas.d.mts +15 -0
- package/dist/ttIntrinsicElements/elements/checkbox-group.d.mts +11 -0
- package/dist/ttIntrinsicElements/elements/checkbox.d.mts +11 -0
- package/dist/ttIntrinsicElements/elements/draw-ad.d.mts +15 -0
- package/dist/ttIntrinsicElements/elements/form.d.mts +13 -0
- package/dist/ttIntrinsicElements/elements/icon.d.mts +10 -0
- package/dist/ttIntrinsicElements/elements/image.d.mts +15 -0
- package/dist/ttIntrinsicElements/elements/input.d.mts +31 -0
- package/dist/ttIntrinsicElements/elements/label.d.mts +9 -0
- package/dist/ttIntrinsicElements/elements/live-player.d.mts +18 -0
- package/dist/ttIntrinsicElements/elements/live-preview.d.mts +12 -0
- package/dist/ttIntrinsicElements/elements/map.d.mts +35 -0
- package/dist/ttIntrinsicElements/elements/mask.d.mts +7 -0
- package/dist/ttIntrinsicElements/elements/match-media.d.mts +15 -0
- package/dist/ttIntrinsicElements/elements/movable-area.d.mts +9 -0
- package/dist/ttIntrinsicElements/elements/movable-view.d.mts +26 -0
- package/dist/ttIntrinsicElements/elements/navigator.d.mts +15 -0
- package/dist/ttIntrinsicElements/elements/open-data.d.mts +14 -0
- package/dist/ttIntrinsicElements/elements/picker-view-column.d.mts +7 -0
- package/dist/ttIntrinsicElements/elements/picker-view.d.mts +18 -0
- package/dist/ttIntrinsicElements/elements/picker.d.mts +21 -0
- package/dist/ttIntrinsicElements/elements/progress.d.mts +15 -0
- package/dist/ttIntrinsicElements/elements/radio-group.d.mts +11 -0
- package/dist/ttIntrinsicElements/elements/radio.d.mts +11 -0
- package/dist/ttIntrinsicElements/elements/rich-text.d.mts +9 -0
- package/dist/ttIntrinsicElements/elements/rtc-room.d.mts +12 -0
- package/dist/ttIntrinsicElements/elements/scroll-view.d.mts +31 -0
- package/dist/ttIntrinsicElements/elements/slider.d.mts +18 -0
- package/dist/ttIntrinsicElements/elements/swiper-item.d.mts +9 -0
- package/dist/ttIntrinsicElements/elements/swiper.d.mts +26 -0
- package/dist/ttIntrinsicElements/elements/switch.d.mts +13 -0
- package/dist/ttIntrinsicElements/elements/text.d.mts +11 -0
- package/dist/ttIntrinsicElements/elements/textarea.d.mts +33 -0
- package/dist/ttIntrinsicElements/elements/video.d.mts +57 -0
- package/dist/ttIntrinsicElements/elements/view.d.mts +14 -0
- package/dist/ttIntrinsicElements/elements/web-view.d.mts +14 -0
- package/dist/ttIntrinsicElements.d.mts +88 -0
- package/dist/version.d.mts +2 -3
- package/dist/vue-augment.d.mts +2 -1
- package/dist/vue-demi.d.mts +17 -18
- package/dist/vue-demi.mjs +1 -1
- package/dist/vue-types.d.mts +2 -2
- package/dist/weapp/jsx-runtime.d.mts +13 -0
- package/dist/weapp/jsx-runtime.mjs +1 -0
- package/dist/weappIntrinsicElements/base.d.mts +3 -21
- package/dist/weappIntrinsicElements/elements/ad-custom.d.mts +6 -6
- package/dist/weappIntrinsicElements/elements/ad.d.mts +7 -7
- package/dist/weappIntrinsicElements/elements/audio.d.mts +9 -9
- package/dist/weappIntrinsicElements/elements/block.d.mts +3 -4
- package/dist/weappIntrinsicElements/elements/button.d.mts +18 -17
- package/dist/weappIntrinsicElements/elements/camera.d.mts +12 -12
- package/dist/weappIntrinsicElements/elements/canvas.d.mts +10 -10
- package/dist/weappIntrinsicElements/elements/checkbox-group.d.mts +6 -9
- package/dist/weappIntrinsicElements/elements/checkbox.d.mts +3 -4
- package/dist/weappIntrinsicElements/elements/cover-image.d.mts +9 -6
- package/dist/weappIntrinsicElements/elements/cover-view.d.mts +3 -4
- package/dist/weappIntrinsicElements/elements/editor.d.mts +9 -9
- package/dist/weappIntrinsicElements/elements/form.d.mts +7 -7
- package/dist/weappIntrinsicElements/elements/functional-page-navigator.d.mts +9 -9
- package/dist/weappIntrinsicElements/elements/icon.d.mts +3 -4
- package/dist/weappIntrinsicElements/elements/image.d.mts +7 -7
- package/dist/weappIntrinsicElements/elements/import.d.mts +3 -4
- package/dist/weappIntrinsicElements/elements/include.d.mts +3 -4
- package/dist/weappIntrinsicElements/elements/input.d.mts +17 -18
- package/dist/weappIntrinsicElements/elements/keyboard-accessory.d.mts +3 -4
- package/dist/weappIntrinsicElements/elements/label.d.mts +3 -4
- package/dist/weappIntrinsicElements/elements/live-player.d.mts +18 -18
- package/dist/weappIntrinsicElements/elements/live-pusher.d.mts +19 -19
- package/dist/weappIntrinsicElements/elements/map.d.mts +18 -18
- package/dist/weappIntrinsicElements/elements/match-media.d.mts +3 -4
- package/dist/weappIntrinsicElements/elements/movable-area.d.mts +8 -8
- package/dist/weappIntrinsicElements/elements/movable-view.d.mts +8 -8
- package/dist/weappIntrinsicElements/elements/navigation-bar.d.mts +3 -4
- package/dist/weappIntrinsicElements/elements/navigator.d.mts +10 -10
- package/dist/weappIntrinsicElements/elements/official-account.d.mts +6 -6
- package/dist/weappIntrinsicElements/elements/open-data.d.mts +5 -5
- package/dist/weappIntrinsicElements/elements/page-container.d.mts +11 -11
- package/dist/weappIntrinsicElements/elements/page-meta.d.mts +7 -7
- package/dist/weappIntrinsicElements/elements/picker-view-column.d.mts +7 -7
- package/dist/weappIntrinsicElements/elements/picker-view.d.mts +7 -7
- package/dist/weappIntrinsicElements/elements/picker.d.mts +9 -9
- package/dist/weappIntrinsicElements/elements/progress.d.mts +5 -5
- package/dist/weappIntrinsicElements/elements/radio-group.d.mts +6 -9
- package/dist/weappIntrinsicElements/elements/radio.d.mts +3 -4
- package/dist/weappIntrinsicElements/elements/rich-text.d.mts +6 -7
- package/dist/weappIntrinsicElements/elements/scroll-view.d.mts +20 -25
- package/dist/weappIntrinsicElements/elements/share-element.d.mts +5 -7
- package/dist/weappIntrinsicElements/elements/slider.d.mts +6 -6
- package/dist/weappIntrinsicElements/elements/slot.d.mts +3 -4
- package/dist/weappIntrinsicElements/elements/swiper-item.d.mts +6 -38
- package/dist/weappIntrinsicElements/elements/swiper.d.mts +11 -14
- package/dist/weappIntrinsicElements/elements/switch.d.mts +5 -5
- package/dist/weappIntrinsicElements/elements/template.d.mts +3 -4
- package/dist/weappIntrinsicElements/elements/text.d.mts +5 -6
- package/dist/weappIntrinsicElements/elements/textarea.d.mts +16 -16
- package/dist/weappIntrinsicElements/elements/video.d.mts +24 -24
- package/dist/weappIntrinsicElements/elements/view.d.mts +5 -4
- package/dist/weappIntrinsicElements/elements/voip-room.d.mts +7 -7
- package/dist/weappIntrinsicElements/elements/web-view.d.mts +7 -7
- package/dist/weappIntrinsicElements.d.mts +111 -150
- package/package.json +19 -19
- package/dist/dev/jsx-runtime.mjs +0 -1
- package/dist/runtime/templateRefs.d.mts +0 -11
- /package/dist/_virtual/{_@oxc-project_runtime@0.148.0 → _@oxc-project_runtime@0.149.0}/helpers/esm/defineProperty.mjs +0 -0
- /package/dist/_virtual/{_@oxc-project_runtime@0.148.0 → _@oxc-project_runtime@0.149.0}/helpers/esm/toPrimitive.mjs +0 -0
- /package/dist/_virtual/{_@oxc-project_runtime@0.148.0 → _@oxc-project_runtime@0.149.0}/helpers/esm/toPropertyKey.mjs +0 -0
- /package/dist/_virtual/{_@oxc-project_runtime@0.148.0 → _@oxc-project_runtime@0.149.0}/helpers/esm/typeof.mjs +0 -0
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { SetupContextNativeInstance } from "../types/props/setup.mjs";
|
|
2
2
|
import "../types.mjs";
|
|
3
3
|
//#region src/runtime/vueCompat/context.d.ts
|
|
4
|
-
declare function useAttrs(): Record<string, any>;
|
|
5
|
-
declare function useSlots(): Record<string, any>;
|
|
6
|
-
declare function useNativeInstance(): SetupContextNativeInstance;
|
|
7
|
-
//#endregion
|
|
8
|
-
export { useAttrs, useNativeInstance, useSlots };
|
|
4
|
+
export declare function useAttrs(): Record<string, any>;
|
|
5
|
+
export declare function useSlots(): Record<string, any>;
|
|
6
|
+
export declare function useNativeInstance(): SetupContextNativeInstance;
|
|
7
|
+
//#endregion
|
|
@@ -3,14 +3,14 @@ import "../../reactivity/index.mjs";
|
|
|
3
3
|
import { ModelBinding, ModelBindingOptions, ModelBindingPayload } from "../types/core.mjs";
|
|
4
4
|
import "../types.mjs";
|
|
5
5
|
//#region src/runtime/vueCompat/model.d.ts
|
|
6
|
-
type ModelModifiers<M extends PropertyKey = string> = Record<M, true | undefined>;
|
|
7
|
-
type ModelRef<T, M extends PropertyKey = string, G = T, S = T> = Ref<G, S> & [ModelRef<T, M, G, S>, ModelModifiers<M>];
|
|
8
|
-
interface UseModelOptions<T, M extends PropertyKey = string, G = T, S = T> {
|
|
6
|
+
export type ModelModifiers<M extends PropertyKey = string> = Record<M, true | undefined>;
|
|
7
|
+
export type ModelRef<T, M extends PropertyKey = string, G = T, S = T> = Ref<G, S> & [ModelRef<T, M, G, S>, ModelModifiers<M>];
|
|
8
|
+
export interface UseModelOptions<T, M extends PropertyKey = string, G = T, S = T> {
|
|
9
9
|
get?: (value: T, modifiers: ModelModifiers<M>) => G;
|
|
10
10
|
set?: (value: S, modifiers: ModelModifiers<M>) => T;
|
|
11
11
|
}
|
|
12
|
-
declare function useModel<T = any, M extends PropertyKey = string>(props: Record<string, any>, name: string): ModelRef<T, M, T, T>;
|
|
13
|
-
declare function useModel<T = any, M extends PropertyKey = string, G = T, S = T>(props: Record<string, any>, name: string, options: UseModelOptions<T, M, G, S>): ModelRef<T, M, G, S>;
|
|
12
|
+
export declare function useModel<T = any, M extends PropertyKey = string>(props: Record<string, any>, name: string): ModelRef<T, M, T, T>;
|
|
13
|
+
export declare function useModel<T = any, M extends PropertyKey = string, G = T, S = T>(props: Record<string, any>, name: string, options: UseModelOptions<T, M, G, S>): ModelRef<T, M, G, S>;
|
|
14
14
|
/**
|
|
15
15
|
* useBindModel 返回绑定到当前运行时实例的 bindModel。
|
|
16
16
|
* 该方法必须在 setup() 的同步阶段调用。
|
|
@@ -20,11 +20,10 @@ type BindModelWithHelper<DefaultEvent extends string = 'input', DefaultValueProp
|
|
|
20
20
|
value: <T = any, Event extends string = DefaultEvent, ValueProp extends string = DefaultValueProp, Formatted = T>(path: string, options?: ModelBindingOptions<T, Event, ValueProp, Formatted>) => Formatted;
|
|
21
21
|
on: <T = any, Event extends string = DefaultEvent, ValueProp extends string = DefaultValueProp, Formatted = T>(path: string, options?: ModelBindingOptions<T, Event, ValueProp, Formatted>) => (event: any) => void;
|
|
22
22
|
};
|
|
23
|
-
declare function useBindModel<DefaultEvent extends string = 'input', DefaultValueProp extends string = 'value'>(defaultOptions?: ModelBindingOptions<any, DefaultEvent, DefaultValueProp, any>): BindModelWithHelper<DefaultEvent, DefaultValueProp>;
|
|
23
|
+
export declare function useBindModel<DefaultEvent extends string = 'input', DefaultValueProp extends string = 'value'>(defaultOptions?: ModelBindingOptions<any, DefaultEvent, DefaultValueProp, any>): BindModelWithHelper<DefaultEvent, DefaultValueProp>;
|
|
24
24
|
/**
|
|
25
25
|
* useChangeModel 返回以 change 事件为默认更新事件的 model 绑定助手。
|
|
26
26
|
*/
|
|
27
|
-
declare function useChangeModel(): <T = any, ValueProp extends string = "value", Formatted = T>(path: string, options?: ModelBindingOptions<T, "change", ValueProp, Formatted>) => ModelBindingPayload<T, "change", ValueProp, Formatted>;
|
|
28
|
-
declare function mergeModels<T>(a: T, b: T): T;
|
|
29
|
-
//#endregion
|
|
30
|
-
export { ModelModifiers, ModelRef, UseModelOptions, mergeModels, useBindModel, useChangeModel, useModel };
|
|
27
|
+
export declare function useChangeModel(): <T = any, ValueProp extends string = "value", Formatted = T>(path: string, options?: ModelBindingOptions<T, "change", ValueProp, Formatted>) => ModelBindingPayload<T, "change", ValueProp, Formatted>;
|
|
28
|
+
export declare function mergeModels<T>(a: T, b: T): T;
|
|
29
|
+
//#endregion
|
|
@@ -12,7 +12,7 @@ type RuntimeRouter = SetupContextRouter;
|
|
|
12
12
|
* 如需更贴近 Vue Router 的高阶能力(导航守卫、失败类型、统一解析),
|
|
13
13
|
* 推荐改用 `wevu/router` 子入口的 `useRouter()`。
|
|
14
14
|
*/
|
|
15
|
-
declare function useNativeRouter(): RuntimeRouter;
|
|
15
|
+
export declare function useNativeRouter(): RuntimeRouter;
|
|
16
16
|
/**
|
|
17
17
|
* 在 setup 中获取与当前页面路径语义一致的原生 Router 对象。
|
|
18
18
|
*
|
|
@@ -23,6 +23,5 @@ declare function useNativeRouter(): RuntimeRouter;
|
|
|
23
23
|
* 如需更贴近 Vue Router 的高阶能力(导航守卫、失败类型、统一解析),
|
|
24
24
|
* 推荐改用 `wevu/router` 子入口的 `useRouter()`。
|
|
25
25
|
*/
|
|
26
|
-
declare function useNativePageRouter(): RuntimeRouter;
|
|
27
|
-
//#endregion
|
|
28
|
-
export { useNativePageRouter, useNativeRouter };
|
|
26
|
+
export declare function useNativePageRouter(): RuntimeRouter;
|
|
27
|
+
//#endregion
|
|
@@ -2,8 +2,7 @@ import { ShallowRef } from "../../reactivity/ref.mjs";
|
|
|
2
2
|
import "../../reactivity/index.mjs";
|
|
3
3
|
import { TemplateRefs } from "../types.mjs";
|
|
4
4
|
//#region src/runtime/vueCompat/templateRef.d.ts
|
|
5
|
-
type TemplateRef<T = unknown> = Readonly<ShallowRef<T | null>>;
|
|
6
|
-
declare function useTemplateRef<K extends keyof TemplateRefs>(name: K): TemplateRef<TemplateRefs[K]>;
|
|
7
|
-
declare function useTemplateRef<T = unknown>(name: string): TemplateRef<T>;
|
|
8
|
-
//#endregion
|
|
9
|
-
export { TemplateRef, useTemplateRef };
|
|
5
|
+
export type TemplateRef<T = unknown> = Readonly<ShallowRef<T | null>>;
|
|
6
|
+
export declare function useTemplateRef<K extends keyof TemplateRefs>(name: K): TemplateRef<TemplateRefs[K]>;
|
|
7
|
+
export declare function useTemplateRef<T = unknown>(name: string): TemplateRef<T>;
|
|
8
|
+
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{shallowRef as e}from"../../reactivity/shallowRef.mjs";import{getCurrentInstance as t}from"../hooks/base.mjs";import{
|
|
1
|
+
import{shallowRef as e}from"../../reactivity/shallowRef.mjs";import{getCurrentInstance as t}from"../hooks/base.mjs";import{installTemplateRefs as n}from"../features/templateRefs.mjs";import{WEVU_TEMPLATE_REF_MAP_KEY as r}from"@weapp-core/constants";function i(e){let t=e[r];if(t)return t;let n=new Map;try{Object.defineProperty(e,r,{value:n,configurable:!0,enumerable:!1,writable:!1})}catch(t){e[r]=n}return n}function a(r){n();let a=t();if(!a)throw Error(`useTemplateRef() 必须在 setup() 的同步阶段调用`);let o=typeof r==`string`?r.trim():``;if(!o)throw Error(`useTemplateRef() 需要传入有效的模板 ref 名称`);let s=i(a),c=s.get(o);if(c)return c;let l=e(null);return s.set(o,l),l}export{a as useTemplateRef};
|
package/dist/scheduler.d.mts
CHANGED
package/dist/store/base.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{isObject as
|
|
1
|
+
import{batch as e}from"../reactivity/core.mjs";import{isObject as t,mergeShallow as n}from"./utils.mjs";function r(r,i,a,o){let s={$id:r};Object.defineProperty(s,"$state",{get(){return i},set(e){i&&t(e)&&(n(i,e),a(`patch object`))}}),s.$patch=t=>{let r=typeof t==`function`?`patch function`:`patch object`;e(()=>{let e=i==null?s:i;typeof t==`function`?t(e):n(e,t)}),a(r)},o&&(s.$reset=()=>{e(o),a(`patch object`)});let c=new Set;s.$subscribe=(e,t)=>(c.add(e),()=>c.delete(e));let l=new Set;return s.$onAction=e=>(l.add(e),()=>l.delete(e)),{api:s,subs:c,actionSubs:l}}export{r as createBaseApi};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{effect as e}from"../../reactivity/core.mjs";import{toRaw as t}from"../../reactivity/reactive/shared.mjs";import{touchReactive as n}from"../../reactivity/reactive/patch.mjs";import{reactive as r}from"../../reactivity/reactive.mjs";import{computed as i}from"../../reactivity/computed.mjs";import{wrapAction as a}from"../actions.mjs";import{cloneDeep as o,resetObject as s}from"../utils.mjs";import{createBaseApi as c}from"../base.mjs";import{createSafeNotifier as l}from"./shared.mjs";function
|
|
1
|
+
import{effect as e}from"../../reactivity/core.mjs";import{toRaw as t}from"../../reactivity/reactive/shared.mjs";import{touchReactive as n}from"../../reactivity/reactive/patch.mjs";import{reactive as r}from"../../reactivity/reactive.mjs";import{computed as i}from"../../reactivity/computed.mjs";import{wrapAction as a}from"../actions.mjs";import{cloneDeep as o,resetObject as s}from"../utils.mjs";import{createBaseApi as c}from"../base.mjs";import{createSafeNotifier as l,createStoreMutationTransaction as u}from"./shared.mjs";function d(d,f,p){var m,h,g;let _=f.state?f.state():{},v=r(_),y=o(t(_)),b=()=>{},x=u(e=>b(e)),S=c(d,v,x.notify,()=>{s(v,y)}),C=S.api.$patch;if(S.api.$patch=e=>{x.run(()=>{C(e)})},typeof S.api.$reset==`function`){let e=S.api.$reset;S.api.$reset=()=>{x.run(()=>{e()})}}b=l(d,S.subs,()=>v);let w={};for(let e of Object.getOwnPropertyNames(S.api)){let t=Object.getOwnPropertyDescriptor(S.api,e);t&&(e===`$state`?Object.defineProperty(w,e,{enumerable:t.enumerable,configurable:t.configurable,get(){return S.api.$state},set(e){x.run(()=>{S.api.$state=e})}}):Object.defineProperty(w,e,t))}let T=(m=f.getters)==null?{}:m;Object.keys(T).forEach(e=>{let t=T[e];if(typeof t==`function`){let n=i(()=>t.call(w,v));Object.defineProperty(w,e,{enumerable:!0,configurable:!0,get(){return n.value}})}});let E=(h=f.actions)==null?{}:h;Object.keys(E).forEach(e=>{let t=E[e];if(typeof t==`function`){let n=a(w,e,(...e)=>t.apply(w,e),S.actionSubs);w[e]=n}}),Object.keys(v).forEach(e=>{Object.defineProperty(w,e,{enumerable:!0,configurable:!0,get(){return v[e]},set(t){v[e]=t}})});let D=!1,O=!1;e(()=>{if(n(v),!D){D=!0;return}if(!(x.active||O)){O=!0;try{b(`direct`)}finally{O=!1}}});let k=(g=p==null?void 0:p._plugins)==null?[]:g;for(let e of k)try{e({store:w})}catch(e){}return w}export{d as createOptionsStyleStore};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{effect as e}from"../../reactivity/core.mjs";import{touchReactive as t}from"../../reactivity/reactive/patch.mjs";import{isReactive as n}from"../../reactivity/reactive.mjs";import{isRef as r}from"../../reactivity/ref.mjs";import{wrapAction as i}from"../actions.mjs";import{cloneDeep as a,resetObject as o}from"../utils.mjs";import{createBaseApi as s}from"../base.mjs";import{createSafeNotifier as c,
|
|
1
|
+
import{effect as e}from"../../reactivity/core.mjs";import{touchReactive as t}from"../../reactivity/reactive/patch.mjs";import{isReactive as n}from"../../reactivity/reactive.mjs";import{isRef as r}from"../../reactivity/ref.mjs";import{wrapAction as i}from"../actions.mjs";import{cloneDeep as a,resetObject as o}from"../utils.mjs";import{createBaseApi as s}from"../base.mjs";import{createSafeNotifier as c,createStoreMutationTransaction as l,isTrackableRef as u,snapshotValue as d}from"./shared.mjs";function f(f,p,m){var h;let g=p(),_=()=>{},v=new Map;Object.keys(g).forEach(e=>{let t=g[e];typeof t==`function`||e.startsWith(`$`)||(!r(t)||u(t))&&v.set(e,d(t))});let y={},b=()=>{v.forEach((e,t)=>{let i=y[t];if(u(i)){try{i.value=a(e)}catch(e){}return}if(n(i)){o(i,e);return}r(i)||(y[t]=a(e))})},x=l(e=>_(e)),S=s(f,void 0,x.notify,b),C=S.api.$patch;if(S.api.$patch=e=>{x.run(()=>{C(e)})},typeof S.api.$reset==`function`){let e=S.api.$reset;S.api.$reset=()=>{x.run(()=>{e()})}}y={...g},_=c(f,S.subs,()=>y);for(let e of Object.getOwnPropertyNames(S.api)){let t=Object.getOwnPropertyDescriptor(S.api,e);t&&(e===`$state`?Object.defineProperty(y,e,{enumerable:t.enumerable,configurable:t.configurable,get(){return S.api.$state},set(e){x.run(()=>{S.api.$state=e})}}):Object.defineProperty(y,e,t))}let w=[];Object.keys(g).forEach(e=>{let t=g[e];if(typeof t==`function`&&!e.startsWith(`$`)){y[e]=i(y,e,t,S.actionSubs);return}if(u(t)){w.push(t);return}if(n(t)){w.push(t);return}if(!r(t)&&!e.startsWith(`$`)){let n=t;Object.defineProperty(y,e,{enumerable:!0,configurable:!0,get(){return n},set(e){n=e,x.active||_(`direct`)}})}});let T=!1;if(w.length>0){let n=!1;e(()=>{if(w.forEach(e=>{u(e)?e.value:t(e)}),!n){n=!0;return}if(!(x.active||T)){T=!0;try{_(`direct`)}finally{T=!1}}})}let E=(h=m==null?void 0:m._plugins)==null?[]:h;for(let e of E)try{e({store:y})}catch(e){}return y}export{f as createSetupStyleStore};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{queueBatchCallback as e}from"../../reactivity/core.mjs";import{toRaw as t}from"../../reactivity/reactive/shared.mjs";import{isReactive as n}from"../../reactivity/reactive.mjs";import{isRef as r}from"../../reactivity/ref.mjs";import{cloneDeep as i}from"../utils.mjs";function a(e){return r(e)}function o(e){return n(e)?i(t(e)):a(e)?i(e.value):i(e)}function s(e,t,n){let r=!1;return i=>{if(!r){r=!0;try{let r=n();t.forEach(t=>{try{t({type:i,storeId:e},r)}catch(e){}})}finally{r=!1}}}}function c(t){let n=0,r,i=!1,a=()=>{if(n>0)return;let e=r;r=void 0,i=!1,e&&t(e)};return{get active(){return n>0||i},notify(e){if(n===0&&!i){t(e);return}r=e},run(t){let o=n===0,s=r,c=!1;n++;try{let e=t();return c=!0,e}finally{n--,o&&(c||(r=s),i=!0,e(a))}}}}export{s as createSafeNotifier,c as createStoreMutationTransaction,a as isTrackableRef,o as snapshotValue};
|
package/dist/store/define.d.mts
CHANGED
|
@@ -1,10 +1,19 @@
|
|
|
1
1
|
import { ActionSubscriber, DefineStoreOptions, StoreGetters, StoreSubscribeOptions, SubscriptionCallback } from "./types.mjs";
|
|
2
2
|
//#region src/store/define.d.ts
|
|
3
3
|
type SetupDefinition<T> = () => T;
|
|
4
|
+
type ActionResult<A> = Awaited<ReturnType<Extract<A[keyof A], (...args: any[]) => any>>>;
|
|
5
|
+
type OptionsStore<S extends Record<string, any>, G extends Record<string, any>, A extends Record<string, any>> = S & StoreGetters<G> & A & {
|
|
6
|
+
$id: string;
|
|
7
|
+
$state: S;
|
|
8
|
+
$patch: (patch: Partial<S> | ((state: S) => void)) => void;
|
|
9
|
+
$reset: () => void;
|
|
10
|
+
$subscribe: (cb: SubscriptionCallback<S>, opts?: StoreSubscribeOptions) => () => void;
|
|
11
|
+
$onAction: (cb: ActionSubscriber<OptionsStore<S, G, A>, ActionResult<A>>) => () => void;
|
|
12
|
+
};
|
|
4
13
|
/**
|
|
5
14
|
* @description 定义一个 setup 风格的 store
|
|
6
15
|
*/
|
|
7
|
-
declare function defineStore<T extends Record<string, any>>(id: string, setup: SetupDefinition<T>): () => T & {
|
|
16
|
+
export declare function defineStore<T extends Record<string, any>>(id: string, setup: SetupDefinition<T>): () => T & {
|
|
8
17
|
$id: string;
|
|
9
18
|
$patch: (patch: Record<string, any> | ((state: any) => void)) => void;
|
|
10
19
|
$reset: () => void;
|
|
@@ -14,13 +23,5 @@ declare function defineStore<T extends Record<string, any>>(id: string, setup: S
|
|
|
14
23
|
/**
|
|
15
24
|
* @description 定义一个 options 风格的 store
|
|
16
25
|
*/
|
|
17
|
-
declare function defineStore<S extends Record<string, any>, G extends Record<string, any>, A extends Record<string, any>>(id: string, options: DefineStoreOptions<S, G, A>): () => S
|
|
18
|
-
|
|
19
|
-
$state: S;
|
|
20
|
-
$patch: (patch: Partial<S> | ((state: S) => void)) => void;
|
|
21
|
-
$reset: () => void;
|
|
22
|
-
$subscribe: (cb: SubscriptionCallback<S>, opts?: StoreSubscribeOptions) => () => void;
|
|
23
|
-
$onAction: (cb: ActionSubscriber<S & StoreGetters<G> & A>) => () => void;
|
|
24
|
-
};
|
|
25
|
-
//#endregion
|
|
26
|
-
export { defineStore };
|
|
26
|
+
export declare function defineStore<S extends Record<string, any>, G extends Record<string, any>, A extends Record<string, any>>(id: string, options: DefineStoreOptions<S, G, A>): () => OptionsStore<S, G, A>;
|
|
27
|
+
//#endregion
|
package/dist/store/manager.d.mts
CHANGED
|
@@ -4,10 +4,9 @@ import "../reactivity/index.mjs";
|
|
|
4
4
|
/**
|
|
5
5
|
* @description storeToRefs 返回类型推导
|
|
6
6
|
*/
|
|
7
|
-
type StoreToRefsResult<T extends Record<string, any>> = { [K in keyof T]: T[K] extends ((...args: any[]) => any) ? T[K] : T[K] extends Ref<infer V> ? Ref<V> : Ref<T[K]>; };
|
|
7
|
+
export type StoreToRefsResult<T extends Record<string, any>> = { [K in keyof T]: T[K] extends ((...args: any[]) => any) ? T[K] : T[K] extends Ref<infer V> ? Ref<V> : Ref<T[K]>; };
|
|
8
8
|
/**
|
|
9
9
|
* @description 将 store 状态转换为 Ref
|
|
10
10
|
*/
|
|
11
|
-
declare function storeToRefs<T extends Record<string, any>>(store: T): StoreToRefsResult<T>;
|
|
12
|
-
//#endregion
|
|
13
|
-
export { StoreToRefsResult, storeToRefs };
|
|
11
|
+
export declare function storeToRefs<T extends Record<string, any>>(store: T): StoreToRefsResult<T>;
|
|
12
|
+
//#endregion
|
package/dist/store/types.d.mts
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* @description Store 变更类型
|
|
4
4
|
*/
|
|
5
|
-
type MutationType = 'patch object' | 'patch function' | 'direct';
|
|
5
|
+
export type MutationType = 'patch object' | 'patch function' | 'direct';
|
|
6
6
|
/**
|
|
7
7
|
* @description Store 订阅回调签名
|
|
8
8
|
*/
|
|
9
|
-
interface SubscriptionCallback<S = any> {
|
|
9
|
+
export interface SubscriptionCallback<S = any> {
|
|
10
10
|
(mutation: {
|
|
11
11
|
type: MutationType;
|
|
12
12
|
storeId: string;
|
|
@@ -15,7 +15,7 @@ interface SubscriptionCallback<S = any> {
|
|
|
15
15
|
/**
|
|
16
16
|
* @description Store 订阅选项
|
|
17
17
|
*/
|
|
18
|
-
interface StoreSubscribeOptions {
|
|
18
|
+
export interface StoreSubscribeOptions {
|
|
19
19
|
/**
|
|
20
20
|
* @description 是否在卸载后仍保留订阅(适用于跨页面生命周期的订阅)
|
|
21
21
|
*/
|
|
@@ -24,23 +24,23 @@ interface StoreSubscribeOptions {
|
|
|
24
24
|
/**
|
|
25
25
|
* @description Action 订阅回调上下文
|
|
26
26
|
*/
|
|
27
|
-
interface ActionContext<TStore = any> {
|
|
27
|
+
export interface ActionContext<TStore = any, TResult = any> {
|
|
28
28
|
name: string;
|
|
29
29
|
store: TStore;
|
|
30
30
|
args: any[];
|
|
31
|
-
after: (cb: (result:
|
|
31
|
+
after: (cb: (result: TResult) => void) => void;
|
|
32
32
|
onError: (cb: (error: any) => void) => void;
|
|
33
33
|
}
|
|
34
34
|
/**
|
|
35
35
|
* @description Action 订阅回调类型
|
|
36
36
|
*/
|
|
37
|
-
interface ActionSubscriber<TStore = any> {
|
|
38
|
-
(context: ActionContext<TStore>): void;
|
|
37
|
+
export interface ActionSubscriber<TStore = any, TResult = any> {
|
|
38
|
+
(context: ActionContext<TStore, TResult>): void;
|
|
39
39
|
}
|
|
40
40
|
/**
|
|
41
41
|
* @description Store 管理器(插件与共享实例)
|
|
42
42
|
*/
|
|
43
|
-
interface StoreManager {
|
|
43
|
+
export interface StoreManager {
|
|
44
44
|
install: (app: any) => void;
|
|
45
45
|
_stores: Map<string, any>;
|
|
46
46
|
use: (plugin: (context: {
|
|
@@ -53,18 +53,17 @@ interface StoreManager {
|
|
|
53
53
|
/**
|
|
54
54
|
* @description Getter 定义集合
|
|
55
55
|
*/
|
|
56
|
-
type GetterTree<S extends Record<string, any>> = Record<string, (state: S) => any>;
|
|
56
|
+
export type GetterTree<S extends Record<string, any>> = Record<string, (state: S) => any>;
|
|
57
57
|
/**
|
|
58
58
|
* @description 从 Getter 定义中推导返回类型
|
|
59
59
|
*/
|
|
60
|
-
type StoreGetters<G extends GetterTree<any>> = { [K in keyof G]: G[K] extends ((...args: any[]) => infer R) ? R : never; };
|
|
60
|
+
export type StoreGetters<G extends GetterTree<any>> = { [K in keyof G]: G[K] extends ((...args: any[]) => infer R) ? R : never; };
|
|
61
61
|
/**
|
|
62
62
|
* @description defineStore(options) 的配置类型
|
|
63
63
|
*/
|
|
64
|
-
interface DefineStoreOptions<S extends Record<string, any>, G extends GetterTree<S>, A extends Record<string, any>> {
|
|
64
|
+
export interface DefineStoreOptions<S extends Record<string, any>, G extends GetterTree<S>, A extends Record<string, any>> {
|
|
65
65
|
state: () => S;
|
|
66
66
|
getters?: G & Record<string, (state: S) => any> & ThisType<S & StoreGetters<G> & A>;
|
|
67
67
|
actions?: A & ThisType<S & StoreGetters<G> & A>;
|
|
68
68
|
}
|
|
69
|
-
//#endregion
|
|
70
|
-
export { ActionContext, ActionSubscriber, DefineStoreOptions, GetterTree, MutationType, StoreGetters, StoreManager, StoreSubscribeOptions, SubscriptionCallback };
|
|
69
|
+
//#endregion
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { TtIntrinsicElementBaseAttributes } from "../ttIntrinsicElements/base.mjs";
|
|
2
|
+
import { TtIntrinsicElements } from "../ttIntrinsicElements.mjs";
|
|
3
|
+
import { JSX as JSX$1, WevuJsxChild, WevuJsxElement, WevuJsxEventHandler, WevuJsxGlobalComponents, WevuJsxGlobalComponents as WevuJsxGlobalComponents$1, WevuJsxHostAttributes } from "wevu/jsx-runtime";
|
|
4
|
+
//#region src/tt/jsx-runtime.d.ts
|
|
5
|
+
export declare namespace JSX {
|
|
6
|
+
type Element = JSX$1.Element;
|
|
7
|
+
interface ElementClass extends JSX$1.ElementClass {}
|
|
8
|
+
interface ElementAttributesProperty extends JSX$1.ElementAttributesProperty {}
|
|
9
|
+
interface IntrinsicAttributes extends JSX$1.IntrinsicAttributes {}
|
|
10
|
+
interface IntrinsicElements extends WevuJsxGlobalComponents$1, TtIntrinsicElements {}
|
|
11
|
+
}
|
|
12
|
+
//#endregion
|
|
13
|
+
export type { TtIntrinsicElementBaseAttributes, TtIntrinsicElements, WevuJsxChild, WevuJsxElement, WevuJsxEventHandler, WevuJsxGlobalComponents, WevuJsxHostAttributes };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { TtIntrinsicElementBaseAttributes } from "../base.mjs";
|
|
2
|
+
//#region src/ttIntrinsicElements/elements/ad.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* @see https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/component/overview
|
|
5
|
+
*/
|
|
6
|
+
export type TtIntrinsicElementAd = TtIntrinsicElementBaseAttributes;
|
|
7
|
+
//#endregion
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { WevuJsxEventHandler } from "../../jsx-runtime.mjs";
|
|
2
|
+
import { TtIntrinsicElementBaseAttributes } from "../base.mjs";
|
|
3
|
+
//#region src/ttIntrinsicElements/elements/aweme-data.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* @see https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/component/open-capacity/aweme-data
|
|
6
|
+
*/
|
|
7
|
+
export type TtIntrinsicElementAwemeData = TtIntrinsicElementBaseAttributes & {
|
|
8
|
+
'aweme-id'?: string;
|
|
9
|
+
'default-avatar'?: string;
|
|
10
|
+
'default-text'?: string;
|
|
11
|
+
'disable-default'?: boolean;
|
|
12
|
+
onError?: WevuJsxEventHandler;
|
|
13
|
+
};
|
|
14
|
+
//#endregion
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { WevuJsxEventHandler } from "../../jsx-runtime.mjs";
|
|
2
|
+
import { TtIntrinsicElementBaseAttributes } from "../base.mjs";
|
|
3
|
+
//#region src/ttIntrinsicElements/elements/aweme-user-card.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* @see https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/component/open-capacity/aweme-user-card
|
|
6
|
+
*/
|
|
7
|
+
export type TtIntrinsicElementAwemeUserCard = TtIntrinsicElementBaseAttributes & {
|
|
8
|
+
'aweme-id'?: string;
|
|
9
|
+
fixed?: boolean;
|
|
10
|
+
height?: number;
|
|
11
|
+
'left-right-padding'?: number;
|
|
12
|
+
onError?: WevuJsxEventHandler;
|
|
13
|
+
width?: number;
|
|
14
|
+
};
|
|
15
|
+
//#endregion
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { WevuJsxEventHandler } from "../../jsx-runtime.mjs";
|
|
2
|
+
import { TtIntrinsicElementBaseAttributes } from "../base.mjs";
|
|
3
|
+
//#region src/ttIntrinsicElements/elements/button.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* @see https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/component/list/button
|
|
6
|
+
*/
|
|
7
|
+
export type TtIntrinsicElementButton = TtIntrinsicElementBaseAttributes & {
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
'form-type'?: 'reset' | 'submit';
|
|
10
|
+
'hover-class'?: string;
|
|
11
|
+
'hover-start-time'?: number;
|
|
12
|
+
'hover-stay-time'?: number;
|
|
13
|
+
'hover-stop-propagation'?: boolean;
|
|
14
|
+
loading?: boolean;
|
|
15
|
+
onAgreePrivacyAuthorization?: WevuJsxEventHandler;
|
|
16
|
+
onGetPhoneNumber?: WevuJsxEventHandler;
|
|
17
|
+
onTap?: WevuJsxEventHandler;
|
|
18
|
+
'open-type'?: 'addCalendarEvent' | 'addShortcut' | 'agreePrivacyAuthorization' | 'authorizePrivateMessage' | 'getPhoneNumber' | 'im' | 'joinGroup' | 'navigateToVideoView' | 'openAwemeUserProfile' | 'openSubscribeMessageSetting' | 'openWebcastRoom' | 'platformIm' | 'privateMessage' | 'share' | 'uploadDouyinVideo';
|
|
19
|
+
size?: 'default' | 'mini';
|
|
20
|
+
type?: 'default' | 'primary';
|
|
21
|
+
};
|
|
22
|
+
//#endregion
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { WevuJsxEventHandler } from "../../jsx-runtime.mjs";
|
|
2
|
+
import { TtIntrinsicElementBaseAttributes } from "../base.mjs";
|
|
3
|
+
//#region src/ttIntrinsicElements/elements/camera.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* @see https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/component/media-component/camera
|
|
6
|
+
*/
|
|
7
|
+
export type TtIntrinsicElementCamera = TtIntrinsicElementBaseAttributes & {
|
|
8
|
+
'device-position'?: string;
|
|
9
|
+
flash?: string;
|
|
10
|
+
'frame-size'?: string;
|
|
11
|
+
mode?: string;
|
|
12
|
+
onError?: WevuJsxEventHandler;
|
|
13
|
+
onInitdone?: WevuJsxEventHandler;
|
|
14
|
+
onScanCode?: WevuJsxEventHandler;
|
|
15
|
+
onStop?: WevuJsxEventHandler;
|
|
16
|
+
resolution?: string;
|
|
17
|
+
};
|
|
18
|
+
//#endregion
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { WevuJsxEventHandler } from "../../jsx-runtime.mjs";
|
|
2
|
+
import { TtIntrinsicElementBaseAttributes } from "../base.mjs";
|
|
3
|
+
//#region src/ttIntrinsicElements/elements/canvas.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* @see https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/component/canvas/canvas
|
|
6
|
+
*/
|
|
7
|
+
export type TtIntrinsicElementCanvas = TtIntrinsicElementBaseAttributes & {
|
|
8
|
+
'canvas-id'?: string;
|
|
9
|
+
onTouchCancel?: WevuJsxEventHandler;
|
|
10
|
+
onTouchEnd?: WevuJsxEventHandler;
|
|
11
|
+
onTouchMove?: WevuJsxEventHandler;
|
|
12
|
+
onTouchStart?: WevuJsxEventHandler;
|
|
13
|
+
type?: string;
|
|
14
|
+
};
|
|
15
|
+
//#endregion
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { WevuJsxEventHandler } from "../../jsx-runtime.mjs";
|
|
2
|
+
import { TtIntrinsicElementBaseAttributes } from "../base.mjs";
|
|
3
|
+
//#region src/ttIntrinsicElements/elements/checkbox-group.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* @see https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/component/list/checkbox-group
|
|
6
|
+
*/
|
|
7
|
+
export type TtIntrinsicElementCheckboxGroup = TtIntrinsicElementBaseAttributes & {
|
|
8
|
+
name?: string;
|
|
9
|
+
onChange?: WevuJsxEventHandler;
|
|
10
|
+
};
|
|
11
|
+
//#endregion
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { TtIntrinsicElementBaseAttributes } from "../base.mjs";
|
|
2
|
+
//#region src/ttIntrinsicElements/elements/checkbox.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* @see https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/component/list/checkbox
|
|
5
|
+
*/
|
|
6
|
+
export type TtIntrinsicElementCheckbox = TtIntrinsicElementBaseAttributes & {
|
|
7
|
+
checked?: boolean;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
value?: string;
|
|
10
|
+
};
|
|
11
|
+
//#endregion
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { WevuJsxEventHandler } from "../../jsx-runtime.mjs";
|
|
2
|
+
import { TtIntrinsicElementBaseAttributes } from "../base.mjs";
|
|
3
|
+
//#region src/ttIntrinsicElements/elements/draw-ad.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* @see https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/component/open-capacity/draw-ad
|
|
6
|
+
*/
|
|
7
|
+
export type TtIntrinsicElementDrawAd = TtIntrinsicElementBaseAttributes & {
|
|
8
|
+
'full-screen'?: boolean;
|
|
9
|
+
onError?: WevuJsxEventHandler;
|
|
10
|
+
onPlay?: WevuJsxEventHandler;
|
|
11
|
+
onStop?: WevuJsxEventHandler;
|
|
12
|
+
scale?: number;
|
|
13
|
+
'unit-id'?: string;
|
|
14
|
+
};
|
|
15
|
+
//#endregion
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { WevuJsxEventHandler } from "../../jsx-runtime.mjs";
|
|
2
|
+
import { TtIntrinsicElementBaseAttributes } from "../base.mjs";
|
|
3
|
+
//#region src/ttIntrinsicElements/elements/form.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* @see https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/component/list/form
|
|
6
|
+
*/
|
|
7
|
+
export type TtIntrinsicElementForm = TtIntrinsicElementBaseAttributes & {
|
|
8
|
+
'clue-component-id'?: string;
|
|
9
|
+
'conversion-target'?: number;
|
|
10
|
+
onReset?: WevuJsxEventHandler;
|
|
11
|
+
onSubmit?: WevuJsxEventHandler;
|
|
12
|
+
};
|
|
13
|
+
//#endregion
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { TtIntrinsicElementBaseAttributes } from "../base.mjs";
|
|
2
|
+
//#region src/ttIntrinsicElements/elements/icon.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* @see https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/component/basic-content/icon
|
|
5
|
+
*/
|
|
6
|
+
export type TtIntrinsicElementIcon = TtIntrinsicElementBaseAttributes & {
|
|
7
|
+
size?: number;
|
|
8
|
+
type?: string;
|
|
9
|
+
};
|
|
10
|
+
//#endregion
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { WevuJsxEventHandler } from "../../jsx-runtime.mjs";
|
|
2
|
+
import { TtIntrinsicElementBaseAttributes } from "../base.mjs";
|
|
3
|
+
//#region src/ttIntrinsicElements/elements/image.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* @see https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/component/media-component/image
|
|
6
|
+
*/
|
|
7
|
+
export type TtIntrinsicElementImage = TtIntrinsicElementBaseAttributes & {
|
|
8
|
+
'lazy-load'?: boolean;
|
|
9
|
+
mode?: string;
|
|
10
|
+
onError?: WevuJsxEventHandler;
|
|
11
|
+
onLoad?: WevuJsxEventHandler;
|
|
12
|
+
src?: string;
|
|
13
|
+
webp?: boolean;
|
|
14
|
+
};
|
|
15
|
+
//#endregion
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { WevuJsxEventHandler } from "../../jsx-runtime.mjs";
|
|
2
|
+
import { TtIntrinsicElementBaseAttributes } from "../base.mjs";
|
|
3
|
+
//#region src/ttIntrinsicElements/elements/input.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* @see https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/component/list/input
|
|
6
|
+
*/
|
|
7
|
+
export type TtIntrinsicElementInput = TtIntrinsicElementBaseAttributes & {
|
|
8
|
+
'adjust-position'?: boolean;
|
|
9
|
+
'confirm-hold'?: boolean;
|
|
10
|
+
'confirm-type'?: 'done' | 'go' | 'next' | 'search' | 'send';
|
|
11
|
+
cursor?: number;
|
|
12
|
+
'cursor-spacing'?: number;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
focus?: boolean;
|
|
15
|
+
'hold-keyboard'?: boolean;
|
|
16
|
+
maxlength?: number;
|
|
17
|
+
onBlur?: WevuJsxEventHandler;
|
|
18
|
+
onConfirm?: WevuJsxEventHandler;
|
|
19
|
+
onFocus?: WevuJsxEventHandler;
|
|
20
|
+
onInput?: WevuJsxEventHandler;
|
|
21
|
+
onKeyboardHeightChange?: WevuJsxEventHandler;
|
|
22
|
+
password?: boolean;
|
|
23
|
+
placeholder?: string;
|
|
24
|
+
'placeholder-class'?: string;
|
|
25
|
+
'placeholder-style'?: string;
|
|
26
|
+
'selection-end'?: number;
|
|
27
|
+
'selection-start'?: number;
|
|
28
|
+
type?: 'digit' | 'number' | 'text';
|
|
29
|
+
value?: string;
|
|
30
|
+
};
|
|
31
|
+
//#endregion
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { TtIntrinsicElementBaseAttributes } from "../base.mjs";
|
|
2
|
+
//#region src/ttIntrinsicElements/elements/label.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* @see https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/component/list/label
|
|
5
|
+
*/
|
|
6
|
+
export type TtIntrinsicElementLabel = TtIntrinsicElementBaseAttributes & {
|
|
7
|
+
for?: string;
|
|
8
|
+
};
|
|
9
|
+
//#endregion
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { WevuJsxEventHandler } from "../../jsx-runtime.mjs";
|
|
2
|
+
import { TtIntrinsicElementBaseAttributes } from "../base.mjs";
|
|
3
|
+
//#region src/ttIntrinsicElements/elements/live-player.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* @see https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/component/media-component/live-player
|
|
6
|
+
*/
|
|
7
|
+
export type TtIntrinsicElementLivePlayer = TtIntrinsicElementBaseAttributes & {
|
|
8
|
+
autoplay?: boolean;
|
|
9
|
+
muted?: boolean;
|
|
10
|
+
'object-fit'?: string;
|
|
11
|
+
onError?: WevuJsxEventHandler;
|
|
12
|
+
onFullScreenChange?: WevuJsxEventHandler;
|
|
13
|
+
onStatechange?: WevuJsxEventHandler;
|
|
14
|
+
orientation?: string;
|
|
15
|
+
'show-casting-button'?: boolean;
|
|
16
|
+
src?: string;
|
|
17
|
+
};
|
|
18
|
+
//#endregion
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { TtIntrinsicElementBaseAttributes } from "../base.mjs";
|
|
2
|
+
//#region src/ttIntrinsicElements/elements/live-preview.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* @see https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/component/media-component/live-preview
|
|
5
|
+
*/
|
|
6
|
+
export type TtIntrinsicElementLivePreview = TtIntrinsicElementBaseAttributes & {
|
|
7
|
+
'aweme-id'?: string;
|
|
8
|
+
'hide-header'?: boolean;
|
|
9
|
+
'image-src'?: string;
|
|
10
|
+
title?: string;
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { WevuJsxEventHandler } from "../../jsx-runtime.mjs";
|
|
2
|
+
import { TtIntrinsicElementBaseAttributes } from "../base.mjs";
|
|
3
|
+
//#region src/ttIntrinsicElements/elements/map.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* @see https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/component/map/map
|
|
6
|
+
*/
|
|
7
|
+
export type TtIntrinsicElementMap = TtIntrinsicElementBaseAttributes & {
|
|
8
|
+
'enable-3D'?: boolean;
|
|
9
|
+
'enable-building'?: boolean;
|
|
10
|
+
'enable-overlooking'?: boolean;
|
|
11
|
+
'enable-poi'?: boolean;
|
|
12
|
+
'enable-rotate'?: boolean;
|
|
13
|
+
'enable-satellite'?: boolean;
|
|
14
|
+
'enable-scroll'?: boolean;
|
|
15
|
+
'enable-traffic'?: boolean;
|
|
16
|
+
'enable-zoom'?: boolean;
|
|
17
|
+
latitude?: number;
|
|
18
|
+
longitude?: number;
|
|
19
|
+
'max-scale'?: number;
|
|
20
|
+
'min-scale'?: number;
|
|
21
|
+
onAnchorpointtap?: WevuJsxEventHandler;
|
|
22
|
+
onCalloutTap?: WevuJsxEventHandler;
|
|
23
|
+
onLabeltap?: WevuJsxEventHandler;
|
|
24
|
+
onMarkerTap?: WevuJsxEventHandler;
|
|
25
|
+
onRegionChange?: WevuJsxEventHandler;
|
|
26
|
+
onTap?: WevuJsxEventHandler;
|
|
27
|
+
onUpdated?: WevuJsxEventHandler;
|
|
28
|
+
rotate?: number;
|
|
29
|
+
scale?: number;
|
|
30
|
+
'show-compass'?: boolean;
|
|
31
|
+
'show-location'?: boolean;
|
|
32
|
+
'show-scale'?: boolean;
|
|
33
|
+
skew?: number;
|
|
34
|
+
};
|
|
35
|
+
//#endregion
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { TtIntrinsicElementBaseAttributes } from "../base.mjs";
|
|
2
|
+
//#region src/ttIntrinsicElements/elements/mask.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* @see https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/component/view-container/mask
|
|
5
|
+
*/
|
|
6
|
+
export type TtIntrinsicElementMask = TtIntrinsicElementBaseAttributes;
|
|
7
|
+
//#endregion
|