@tarojs/components 3.5.1-aplha.0 → 3.5.2
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/dist/cjs/{index-13289aba.js → index-7c61bee9.js} +8 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/taro-ad-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-ad-custom-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-audio-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-block-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-button-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-camera-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-canvas-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-checkbox-core_2.cjs.entry.js +1 -1
- package/dist/cjs/taro-components.cjs.js +2 -2
- package/dist/cjs/taro-cover-image-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-cover-view-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-custom-wrapper-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-editor-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-form-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-functional-page-navigator-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-icon-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-image-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-input-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-keyboard-accessory-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-label-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-live-player-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-live-pusher-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-map-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-match-media-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-movable-area-core.cjs.entry.js +141 -3
- package/dist/cjs/taro-movable-view-core.cjs.entry.js +377 -3
- package/dist/cjs/taro-navigation-bar-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-navigator-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-official-account-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-open-data-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-page-container-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-page-meta-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-picker-core_2.cjs.entry.js +1 -1
- package/dist/cjs/taro-picker-view-column-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-picker-view-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-progress-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-pull-to-refresh.cjs.entry.js +1 -1
- package/dist/cjs/taro-radio-core_2.cjs.entry.js +1 -1
- package/dist/cjs/taro-rich-text-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-root-portal-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-scroll-view-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-share-element-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-slider-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-slot-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-swiper-core_2.cjs.entry.js +1 -1
- package/dist/cjs/taro-switch-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-tabbar.cjs.entry.js +1 -1
- package/dist/cjs/taro-text-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-textarea-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-video-control_3.cjs.entry.js +1 -1
- package/dist/cjs/taro-view-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-voip-room-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-web-view-core.cjs.entry.js +1 -1
- package/dist/collection/components/movable-area/area.css +6 -0
- package/dist/collection/components/movable-area/movable-area.js +165 -4
- package/dist/collection/components/movable-area/movable-view.js +735 -3
- package/dist/collection/components/movable-area/view.css +8 -0
- package/dist/esm/{index-26d8b479.js → index-8809c729.js} +8 -0
- package/dist/esm/loader.js +2 -2
- package/dist/esm/taro-ad-core.entry.js +1 -1
- package/dist/esm/taro-ad-custom-core.entry.js +1 -1
- package/dist/esm/taro-audio-core.entry.js +1 -1
- package/dist/esm/taro-block-core.entry.js +1 -1
- package/dist/esm/taro-button-core.entry.js +1 -1
- package/dist/esm/taro-camera-core.entry.js +1 -1
- package/dist/esm/taro-canvas-core.entry.js +1 -1
- package/dist/esm/taro-checkbox-core_2.entry.js +1 -1
- package/dist/esm/taro-components.js +2 -2
- package/dist/esm/taro-cover-image-core.entry.js +1 -1
- package/dist/esm/taro-cover-view-core.entry.js +1 -1
- package/dist/esm/taro-custom-wrapper-core.entry.js +1 -1
- package/dist/esm/taro-editor-core.entry.js +1 -1
- package/dist/esm/taro-form-core.entry.js +1 -1
- package/dist/esm/taro-functional-page-navigator-core.entry.js +1 -1
- package/dist/esm/taro-icon-core.entry.js +1 -1
- package/dist/esm/taro-image-core.entry.js +1 -1
- package/dist/esm/taro-input-core.entry.js +1 -1
- package/dist/esm/taro-keyboard-accessory-core.entry.js +1 -1
- package/dist/esm/taro-label-core.entry.js +1 -1
- package/dist/esm/taro-live-player-core.entry.js +1 -1
- package/dist/esm/taro-live-pusher-core.entry.js +1 -1
- package/dist/esm/taro-map-core.entry.js +1 -1
- package/dist/esm/taro-match-media-core.entry.js +1 -1
- package/dist/esm/taro-movable-area-core.entry.js +141 -3
- package/dist/esm/taro-movable-view-core.entry.js +377 -3
- package/dist/esm/taro-navigation-bar-core.entry.js +1 -1
- package/dist/esm/taro-navigator-core.entry.js +1 -1
- package/dist/esm/taro-official-account-core.entry.js +1 -1
- package/dist/esm/taro-open-data-core.entry.js +1 -1
- package/dist/esm/taro-page-container-core.entry.js +1 -1
- package/dist/esm/taro-page-meta-core.entry.js +1 -1
- package/dist/esm/taro-picker-core_2.entry.js +1 -1
- package/dist/esm/taro-picker-view-column-core.entry.js +1 -1
- package/dist/esm/taro-picker-view-core.entry.js +1 -1
- package/dist/esm/taro-progress-core.entry.js +1 -1
- package/dist/esm/taro-pull-to-refresh.entry.js +1 -1
- package/dist/esm/taro-radio-core_2.entry.js +1 -1
- package/dist/esm/taro-rich-text-core.entry.js +1 -1
- package/dist/esm/taro-root-portal-core.entry.js +1 -1
- package/dist/esm/taro-scroll-view-core.entry.js +1 -1
- package/dist/esm/taro-share-element-core.entry.js +1 -1
- package/dist/esm/taro-slider-core.entry.js +1 -1
- package/dist/esm/taro-slot-core.entry.js +1 -1
- package/dist/esm/taro-swiper-core_2.entry.js +1 -1
- package/dist/esm/taro-switch-core.entry.js +1 -1
- package/dist/esm/taro-tabbar.entry.js +1 -1
- package/dist/esm/taro-text-core.entry.js +1 -1
- package/dist/esm/taro-textarea-core.entry.js +1 -1
- package/dist/esm/taro-video-control_3.entry.js +1 -1
- package/dist/esm/taro-view-core.entry.js +1 -1
- package/dist/esm/taro-voip-room-core.entry.js +1 -1
- package/dist/esm/taro-web-view-core.entry.js +1 -1
- package/dist/esm-es5/{index-26d8b479.js → index-8809c729.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/taro-ad-core.entry.js +1 -1
- package/dist/esm-es5/taro-ad-custom-core.entry.js +1 -1
- package/dist/esm-es5/taro-audio-core.entry.js +1 -1
- package/dist/esm-es5/taro-block-core.entry.js +1 -1
- package/dist/esm-es5/taro-button-core.entry.js +1 -1
- package/dist/esm-es5/taro-camera-core.entry.js +1 -1
- package/dist/esm-es5/taro-canvas-core.entry.js +1 -1
- package/dist/esm-es5/taro-checkbox-core_2.entry.js +1 -1
- package/dist/esm-es5/taro-components.js +1 -1
- package/dist/esm-es5/taro-cover-image-core.entry.js +1 -1
- package/dist/esm-es5/taro-cover-view-core.entry.js +1 -1
- package/dist/esm-es5/taro-custom-wrapper-core.entry.js +1 -1
- package/dist/esm-es5/taro-editor-core.entry.js +1 -1
- package/dist/esm-es5/taro-form-core.entry.js +1 -1
- package/dist/esm-es5/taro-functional-page-navigator-core.entry.js +1 -1
- package/dist/esm-es5/taro-icon-core.entry.js +1 -1
- package/dist/esm-es5/taro-image-core.entry.js +1 -1
- package/dist/esm-es5/taro-input-core.entry.js +1 -1
- package/dist/esm-es5/taro-keyboard-accessory-core.entry.js +1 -1
- package/dist/esm-es5/taro-label-core.entry.js +1 -1
- package/dist/esm-es5/taro-live-player-core.entry.js +1 -1
- package/dist/esm-es5/taro-live-pusher-core.entry.js +1 -1
- package/dist/esm-es5/taro-map-core.entry.js +1 -1
- package/dist/esm-es5/taro-match-media-core.entry.js +1 -1
- package/dist/esm-es5/taro-movable-area-core.entry.js +1 -1
- package/dist/esm-es5/taro-movable-view-core.entry.js +1 -1
- package/dist/esm-es5/taro-navigation-bar-core.entry.js +1 -1
- package/dist/esm-es5/taro-navigator-core.entry.js +1 -1
- package/dist/esm-es5/taro-official-account-core.entry.js +1 -1
- package/dist/esm-es5/taro-open-data-core.entry.js +1 -1
- package/dist/esm-es5/taro-page-container-core.entry.js +1 -1
- package/dist/esm-es5/taro-page-meta-core.entry.js +1 -1
- package/dist/esm-es5/taro-picker-core_2.entry.js +1 -1
- package/dist/esm-es5/taro-picker-view-column-core.entry.js +1 -1
- package/dist/esm-es5/taro-picker-view-core.entry.js +1 -1
- package/dist/esm-es5/taro-progress-core.entry.js +1 -1
- package/dist/esm-es5/taro-pull-to-refresh.entry.js +1 -1
- package/dist/esm-es5/taro-radio-core_2.entry.js +1 -1
- package/dist/esm-es5/taro-rich-text-core.entry.js +1 -1
- package/dist/esm-es5/taro-root-portal-core.entry.js +1 -1
- package/dist/esm-es5/taro-scroll-view-core.entry.js +1 -1
- package/dist/esm-es5/taro-share-element-core.entry.js +1 -1
- package/dist/esm-es5/taro-slider-core.entry.js +1 -1
- package/dist/esm-es5/taro-slot-core.entry.js +1 -1
- package/dist/esm-es5/taro-swiper-core_2.entry.js +1 -1
- package/dist/esm-es5/taro-switch-core.entry.js +1 -1
- package/dist/esm-es5/taro-tabbar.entry.js +1 -1
- package/dist/esm-es5/taro-text-core.entry.js +1 -1
- package/dist/esm-es5/taro-textarea-core.entry.js +1 -1
- package/dist/esm-es5/taro-video-control_3.entry.js +55 -55
- package/dist/esm-es5/taro-view-core.entry.js +1 -1
- package/dist/esm-es5/taro-voip-room-core.entry.js +1 -1
- package/dist/esm-es5/taro-web-view-core.entry.js +1 -1
- package/dist/taro-components/{p-44a199e4.entry.js → p-00201a61.entry.js} +1 -1
- package/dist/taro-components/p-0380841f.system.js +1 -0
- package/dist/taro-components/{p-66b1d5f9.system.entry.js → p-0414632d.system.entry.js} +1 -1
- package/dist/taro-components/p-059912fd.js +1 -0
- package/dist/taro-components/{p-abb9c7d0.entry.js → p-06bef0f9.entry.js} +1 -1
- package/dist/taro-components/{p-62608b28.system.entry.js → p-0a70de87.system.entry.js} +1 -1
- package/dist/taro-components/{p-9b90554b.system.entry.js → p-10c47df8.system.entry.js} +1 -1
- package/dist/taro-components/{p-a9ab6434.system.entry.js → p-10e5df98.system.entry.js} +1 -1
- package/dist/taro-components/{p-8f466248.system.entry.js → p-14058364.system.entry.js} +1 -1
- package/dist/taro-components/{p-831ebd02.system.entry.js → p-1a638246.system.entry.js} +1 -1
- package/dist/taro-components/p-1c775a11.system.entry.js +1 -0
- package/dist/taro-components/p-1e530acd.entry.js +1 -0
- package/dist/taro-components/p-22e33350.entry.js +1 -0
- package/dist/taro-components/p-24a66088.system.entry.js +1 -0
- package/dist/taro-components/p-25df0ce9.entry.js +1 -0
- package/dist/taro-components/{p-a900b437.system.entry.js → p-27126803.system.entry.js} +1 -1
- package/dist/taro-components/{p-1e0406ec.system.entry.js → p-275d883f.system.entry.js} +1 -1
- package/dist/taro-components/{p-d56c45bf.system.entry.js → p-27c80869.system.entry.js} +1 -1
- package/dist/taro-components/{p-9ce624a4.system.entry.js → p-2fd0250d.system.entry.js} +1 -1
- package/dist/taro-components/{p-49954245.system.entry.js → p-3255f11f.system.entry.js} +1 -1
- package/dist/taro-components/{p-4c890c5d.entry.js → p-362998cf.entry.js} +1 -1
- package/dist/taro-components/{p-cfebd931.entry.js → p-3c6090fd.entry.js} +1 -1
- package/dist/taro-components/p-3c7cdf6f.entry.js +1 -0
- package/dist/taro-components/{p-6e0a22dc.entry.js → p-410d449f.entry.js} +1 -1
- package/dist/taro-components/{p-0ea13d67.system.entry.js → p-44398c17.system.entry.js} +1 -1
- package/dist/taro-components/p-443fb8b0.entry.js +1 -0
- package/dist/taro-components/p-44cbb351.system.js +1 -0
- package/dist/taro-components/{p-ec59899b.system.entry.js → p-44fa48b9.system.entry.js} +1 -1
- package/dist/taro-components/{p-36f2c1e1.system.entry.js → p-481a8bc1.system.entry.js} +1 -1
- package/dist/taro-components/p-49b64020.entry.js +1 -0
- package/dist/taro-components/{p-a74f4c26.entry.js → p-4ada10aa.entry.js} +1 -1
- package/dist/taro-components/{p-4ee47fc0.system.entry.js → p-4e8d4a72.system.entry.js} +1 -1
- package/dist/taro-components/{p-a36bfe97.system.entry.js → p-4f0e98c0.system.entry.js} +1 -1
- package/dist/taro-components/p-4f805045.entry.js +1 -0
- package/dist/taro-components/{p-69334f7c.entry.js → p-5733124c.entry.js} +1 -1
- package/dist/taro-components/{p-53244eac.entry.js → p-5a2305e7.entry.js} +1 -1
- package/dist/taro-components/{p-78676120.system.entry.js → p-5c87902f.system.entry.js} +1 -1
- package/dist/taro-components/{p-a838e0f7.system.entry.js → p-5e223bab.system.entry.js} +1 -1
- package/dist/taro-components/{p-a90bfe9d.system.entry.js → p-5e3bd0db.system.entry.js} +1 -1
- package/dist/taro-components/{p-5c2497a4.system.entry.js → p-5f18259d.system.entry.js} +1 -1
- package/dist/taro-components/{p-4339ad63.system.entry.js → p-64447f5a.system.entry.js} +1 -1
- package/dist/taro-components/{p-372f53d8.system.entry.js → p-67222d90.system.entry.js} +1 -1
- package/dist/taro-components/{p-2bd2ea9a.system.entry.js → p-692d986d.system.entry.js} +1 -1
- package/dist/taro-components/p-6da73376.entry.js +1 -0
- package/dist/taro-components/{p-3e223f2f.system.entry.js → p-6e9805e2.system.entry.js} +1 -1
- package/dist/taro-components/p-72f858e4.entry.js +1 -0
- package/dist/taro-components/{p-45e6f8be.entry.js → p-7325d380.entry.js} +1 -1
- package/dist/taro-components/{p-060858b1.entry.js → p-7407013d.entry.js} +1 -1
- package/dist/taro-components/{p-86205110.entry.js → p-77ad7941.entry.js} +1 -1
- package/dist/taro-components/p-7ab91097.entry.js +1 -0
- package/dist/taro-components/{p-0d1e0e91.system.entry.js → p-7b96cec3.system.entry.js} +1 -1
- package/dist/taro-components/p-7e23b551.entry.js +1 -0
- package/dist/taro-components/{p-d7e13592.entry.js → p-7e8943d8.entry.js} +1 -1
- package/dist/taro-components/{p-74013ace.entry.js → p-7f0a12a9.entry.js} +1 -1
- package/dist/taro-components/{p-7f7aa688.entry.js → p-7f93fa08.entry.js} +1 -1
- package/dist/taro-components/{p-ac398961.system.entry.js → p-82661d45.system.entry.js} +1 -1
- package/dist/taro-components/{p-828efe43.system.entry.js → p-840ef0c3.system.entry.js} +1 -1
- package/dist/taro-components/{p-75811f84.system.entry.js → p-8475421b.system.entry.js} +1 -1
- package/dist/taro-components/{p-8ba35b31.system.entry.js → p-8788dc46.system.entry.js} +1 -1
- package/dist/taro-components/{p-0d0b3677.entry.js → p-886571e5.entry.js} +1 -1
- package/dist/taro-components/{p-fc226017.entry.js → p-888fac99.entry.js} +1 -1
- package/dist/taro-components/{p-12deba0b.system.entry.js → p-89c876a6.system.entry.js} +1 -1
- package/dist/taro-components/p-8aea3de3.entry.js +1 -0
- package/dist/taro-components/{p-16aff829.entry.js → p-8c8be53b.entry.js} +1 -1
- package/dist/taro-components/{p-9130dfca.system.entry.js → p-8cf86f31.system.entry.js} +1 -1
- package/dist/taro-components/{p-3d3cd72f.entry.js → p-90a6c15a.entry.js} +1 -1
- package/dist/taro-components/{p-d2b6b891.entry.js → p-92699438.entry.js} +1 -1
- package/dist/taro-components/p-95a36917.entry.js +1 -0
- package/dist/taro-components/{p-2e8a1479.system.entry.js → p-9965cf11.system.entry.js} +1 -1
- package/dist/taro-components/{p-7dc268ee.entry.js → p-9a0e70b1.entry.js} +1 -1
- package/dist/taro-components/{p-2887213d.system.entry.js → p-9afbb423.system.entry.js} +1 -1
- package/dist/taro-components/{p-e01af6c8.entry.js → p-9b39a940.entry.js} +1 -1
- package/dist/taro-components/{p-16c1e564.entry.js → p-9fcb40a3.entry.js} +1 -1
- package/dist/taro-components/{p-3b801a38.system.entry.js → p-a63fbc50.system.entry.js} +1 -1
- package/dist/taro-components/{p-de573939.system.entry.js → p-a8c9b126.system.entry.js} +1 -1
- package/dist/taro-components/{p-3b85bb4b.system.entry.js → p-a94524c9.system.entry.js} +1 -1
- package/dist/taro-components/{p-5ff0e954.system.entry.js → p-aa5d45de.system.entry.js} +1 -1
- package/dist/taro-components/{p-9151ef65.entry.js → p-ab1256fe.entry.js} +1 -1
- package/dist/taro-components/{p-019591c8.system.entry.js → p-ad6ad7e3.system.entry.js} +1 -1
- package/dist/taro-components/p-b2800ccd.entry.js +1 -0
- package/dist/taro-components/{p-178a3adf.system.entry.js → p-b3693ca2.system.entry.js} +1 -1
- package/dist/taro-components/{p-d636e22e.entry.js → p-b3b677fc.entry.js} +1 -1
- package/dist/taro-components/{p-fe252a81.system.entry.js → p-b3d961f9.system.entry.js} +1 -1
- package/dist/taro-components/p-b7639674.entry.js +1 -0
- package/dist/taro-components/{p-8b30e18c.system.entry.js → p-b7ac0b7f.system.entry.js} +1 -1
- package/dist/taro-components/{p-f1da4ed7.system.entry.js → p-b83c3eca.system.entry.js} +1 -1
- package/dist/taro-components/{p-8b23a081.system.entry.js → p-b9903f15.system.entry.js} +1 -1
- package/dist/taro-components/p-c0c8b2be.entry.js +1 -0
- package/dist/taro-components/p-c8da5c10.entry.js +1 -0
- package/dist/taro-components/{p-88063d40.system.entry.js → p-cd88d81a.system.entry.js} +1 -1
- package/dist/taro-components/{p-29b7c721.system.entry.js → p-d72075ef.system.entry.js} +1 -1
- package/dist/taro-components/{p-0ca42006.entry.js → p-db1f2db7.entry.js} +1 -1
- package/dist/taro-components/{p-baa5019a.system.entry.js → p-df3b544a.system.entry.js} +1 -1
- package/dist/taro-components/{p-133e3ac4.entry.js → p-dff55efd.entry.js} +1 -1
- package/dist/taro-components/{p-0f42b8a4.entry.js → p-e1ed00f7.entry.js} +1 -1
- package/dist/taro-components/{p-832cc63a.entry.js → p-e3f39099.entry.js} +1 -1
- package/dist/taro-components/{p-ca7ad427.system.entry.js → p-e671c8c5.system.entry.js} +1 -1
- package/dist/taro-components/{p-841a2031.system.entry.js → p-ed8c1bb8.system.entry.js} +1 -1
- package/dist/taro-components/{p-430d72e8.entry.js → p-eec00033.entry.js} +1 -1
- package/dist/taro-components/{p-06e3d685.system.entry.js → p-eeed74e3.system.entry.js} +1 -1
- package/dist/taro-components/{p-81dc5b7b.entry.js → p-ef006b23.entry.js} +1 -1
- package/dist/taro-components/p-f8b9c4b0.entry.js +1 -0
- package/dist/taro-components/{p-e7dcb4d5.entry.js → p-fa2a9bab.entry.js} +1 -1
- package/dist/taro-components/{p-4793e6ba.system.entry.js → p-fc9f4fd7.system.entry.js} +1 -1
- package/dist/taro-components/{p-81976128.entry.js → p-fec6ac36.entry.js} +1 -1
- package/dist/taro-components/{p-ac56ffed.entry.js → p-ff84986d.entry.js} +1 -1
- package/dist/taro-components/{p-ce46f79d.entry.js → p-ffefd74f.entry.js} +1 -1
- package/dist/taro-components/taro-components.esm.js +1 -1
- package/dist/taro-components/taro-components.js +1 -1
- package/dist/types/components/movable-area/movable-area.d.ts +23 -0
- package/dist/types/components/movable-area/movable-view.d.ts +153 -0
- package/dist/types/components.d.ts +140 -0
- package/package.json +3 -4
- package/types/Video.d.ts +18 -0
- package/types/{props.ts → props.d.ts} +0 -0
- package/dist/taro-components/p-0996daee.entry.js +0 -1
- package/dist/taro-components/p-1e516bd0.entry.js +0 -1
- package/dist/taro-components/p-2241b671.system.js +0 -1
- package/dist/taro-components/p-26e9ce75.entry.js +0 -1
- package/dist/taro-components/p-29bb3ebe.entry.js +0 -1
- package/dist/taro-components/p-3bb72c08.entry.js +0 -1
- package/dist/taro-components/p-46b7f84e.entry.js +0 -1
- package/dist/taro-components/p-62c64770.entry.js +0 -1
- package/dist/taro-components/p-671defcd.entry.js +0 -1
- package/dist/taro-components/p-6f2f468b.entry.js +0 -1
- package/dist/taro-components/p-70313eed.entry.js +0 -1
- package/dist/taro-components/p-756d56d1.system.entry.js +0 -1
- package/dist/taro-components/p-7b2049b7.entry.js +0 -1
- package/dist/taro-components/p-80abb865.entry.js +0 -1
- package/dist/taro-components/p-83adb645.system.js +0 -1
- package/dist/taro-components/p-8ead6b19.entry.js +0 -1
- package/dist/taro-components/p-95e51d62.entry.js +0 -1
- package/dist/taro-components/p-9961074d.entry.js +0 -1
- package/dist/taro-components/p-a4721ae0.js +0 -1
- package/dist/taro-components/p-c1458fbe.system.entry.js +0 -1
- package/dist/taro-components/p-c9b73495.entry.js +0 -1
- package/dist/taro-components/p-ce0489a6.entry.js +0 -1
- package/dist/taro-components/p-d6c8f31d.entry.js +0 -1
- package/dist/types/home/runner/work/taro/taro/packages/taro-components/.stencil/types/props.d.ts +0 -62
- package/dist/types/props.js +0 -1
|
@@ -1,11 +1,743 @@
|
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
9
|
+
};
|
|
1
10
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
2
|
-
import { Component, h, Host } from '@stencil/core';
|
|
11
|
+
import { Component, h, Host, Prop, Event, Element, Watch, Method } from '@stencil/core';
|
|
3
12
|
export class MovableView {
|
|
13
|
+
constructor() {
|
|
14
|
+
/**
|
|
15
|
+
* 定义x轴方向的偏移,如果x的值不在可移动范围内,会自动移动到可移动范围;改变x的值会触发动画;单位支持px;
|
|
16
|
+
*/
|
|
17
|
+
this.x = 0;
|
|
18
|
+
/**
|
|
19
|
+
* 定义y轴方向的偏移,如果y的值不在可移动范围内,会自动移动到可移动范围;改变y的值会触发动画;单位支持px;
|
|
20
|
+
*/
|
|
21
|
+
this.y = 0;
|
|
22
|
+
/**
|
|
23
|
+
* 移动方向,属性值有all、vertical、horizontal、none
|
|
24
|
+
*/
|
|
25
|
+
this.direction = "none";
|
|
26
|
+
/**
|
|
27
|
+
* 超过可移动区域后,是否还可以移动
|
|
28
|
+
*/
|
|
29
|
+
this.outOfBounds = false;
|
|
30
|
+
/**
|
|
31
|
+
* 是否带有惯性
|
|
32
|
+
*/
|
|
33
|
+
this.inertia = false;
|
|
34
|
+
/**
|
|
35
|
+
* 摩擦系数,用于控制惯性滑动的动画,值越大摩擦力越大,滑动越快停止;必须大于0,否则会被设置成默认值
|
|
36
|
+
*/
|
|
37
|
+
this.friction = 2;
|
|
38
|
+
/**
|
|
39
|
+
* 阻尼系数,用于控制x或y改变时的动画和过界回弹的动画,值越大移动越快
|
|
40
|
+
*/
|
|
41
|
+
this.damping = 20;
|
|
42
|
+
/**
|
|
43
|
+
* 是否禁用
|
|
44
|
+
*/
|
|
45
|
+
this.disabled = false;
|
|
46
|
+
/**
|
|
47
|
+
* 是否支持双指缩放,默认缩放手势生效区域是在movable-view内
|
|
48
|
+
*/
|
|
49
|
+
this.scale = false;
|
|
50
|
+
/**
|
|
51
|
+
* 定义缩放倍数最小值
|
|
52
|
+
*/
|
|
53
|
+
this.scaleMin = .5;
|
|
54
|
+
/**
|
|
55
|
+
* 定义缩放倍数最大值
|
|
56
|
+
*/
|
|
57
|
+
this.scaleMax = 10;
|
|
58
|
+
/**
|
|
59
|
+
* 定义缩放倍数,取值范围为 0.5 - 10
|
|
60
|
+
*/
|
|
61
|
+
this.scaleValue = 1;
|
|
62
|
+
/**
|
|
63
|
+
* 是否使用动画
|
|
64
|
+
*/
|
|
65
|
+
this.animation = true;
|
|
66
|
+
/** 当前水平偏移 */
|
|
67
|
+
this.translateX = 0;
|
|
68
|
+
/** 当前垂直偏移 */
|
|
69
|
+
this.translateY = 0;
|
|
70
|
+
/** touch-start 原点 */
|
|
71
|
+
this.origin = { x: 0, y: 0 };
|
|
72
|
+
/** 父容器大小 */
|
|
73
|
+
this.area = { width: 0, height: 0 };
|
|
74
|
+
/** 原始缩放倍数 */
|
|
75
|
+
this.originScale = 1;
|
|
76
|
+
/** 当前缩放倍数 */
|
|
77
|
+
this.currentScale = 1;
|
|
78
|
+
/** 宽度 */
|
|
79
|
+
this.width = 0;
|
|
80
|
+
/** 高度 */
|
|
81
|
+
this.height = 0;
|
|
82
|
+
/** 移动边界 */
|
|
83
|
+
this.minX = 0;
|
|
84
|
+
this.minY = 0;
|
|
85
|
+
this.maxX = 0;
|
|
86
|
+
this.maxY = 0;
|
|
87
|
+
/** 移动基础位置 */
|
|
88
|
+
this.baseX = 0;
|
|
89
|
+
this.baseY = 0;
|
|
90
|
+
/** 偏移量 */
|
|
91
|
+
this.offset = { x: 0, y: 0 };
|
|
92
|
+
this.scaleOffset = { x: 0, y: 0 };
|
|
93
|
+
this.getLimitXY = (x, y) => {
|
|
94
|
+
let outOfBounds = false;
|
|
95
|
+
x > this.maxX ? (x = this.maxX, outOfBounds = true) : x < this.minX && (x = this.minX, outOfBounds = true);
|
|
96
|
+
y > this.maxY ? (y = this.maxY, outOfBounds = true) : y < this.minY && (y = this.minY, outOfBounds = true);
|
|
97
|
+
return { x, y, outOfBounds };
|
|
98
|
+
};
|
|
99
|
+
this.animationTo = (x, y, scale, source, noEmitChange, emitScale, callback) => {
|
|
100
|
+
if (this.animation) {
|
|
101
|
+
this.setTransform(x, y, scale, source, noEmitChange, emitScale);
|
|
102
|
+
callback === null || callback === void 0 ? void 0 : callback();
|
|
103
|
+
}
|
|
104
|
+
else {
|
|
105
|
+
this.setTransform(x, y, scale, source, noEmitChange, emitScale);
|
|
106
|
+
}
|
|
107
|
+
};
|
|
108
|
+
this.setTransform = (x, y, scale, source, noEmitChange, emitScale) => {
|
|
109
|
+
x = Number(x.toFixed(1));
|
|
110
|
+
y = Number(y.toFixed(1));
|
|
111
|
+
scale = Number((scale !== null && scale !== void 0 ? scale : this.currentScale).toFixed(3));
|
|
112
|
+
if (!this.outOfBounds) {
|
|
113
|
+
const limit = this.getLimitXY(x, y);
|
|
114
|
+
x = limit.x;
|
|
115
|
+
y = limit.y;
|
|
116
|
+
}
|
|
117
|
+
const subtract = (e, t) => {
|
|
118
|
+
return +((1e3 * e - 1e3 * t) / 1e3).toFixed(1);
|
|
119
|
+
};
|
|
120
|
+
const realX = subtract(x, this.scaleOffset.x);
|
|
121
|
+
const realY = subtract(y, this.scaleOffset.y);
|
|
122
|
+
if (this.translateX !== x || this.translateY !== y) {
|
|
123
|
+
!noEmitChange && this.onChange.emit({
|
|
124
|
+
x: realX,
|
|
125
|
+
y: realY,
|
|
126
|
+
source
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
if (scale !== this.currentScale) {
|
|
130
|
+
emitScale && this.onScale.emit({
|
|
131
|
+
scale,
|
|
132
|
+
x: realX,
|
|
133
|
+
y: realY
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
const transform = `translateX(${x}px) translateY(${y}) translateZ(0px) scale(${scale})`;
|
|
137
|
+
this.element.style.transform = transform;
|
|
138
|
+
this.element.style.webkitTransform = transform;
|
|
139
|
+
this.translateX = x;
|
|
140
|
+
this.translateY = y;
|
|
141
|
+
this.currentScale = scale;
|
|
142
|
+
};
|
|
143
|
+
this.updateOffset = () => {
|
|
144
|
+
const offset = (element, parent) => {
|
|
145
|
+
if (element === parent || !element.offsetParent) {
|
|
146
|
+
return { left: 0, top: 0 };
|
|
147
|
+
}
|
|
148
|
+
const current = offset(element.offsetParent, parent);
|
|
149
|
+
return {
|
|
150
|
+
left: element.offsetLeft + current.left,
|
|
151
|
+
top: element.offsetTop + current.top
|
|
152
|
+
};
|
|
153
|
+
};
|
|
154
|
+
if (!this.parent) {
|
|
155
|
+
return;
|
|
156
|
+
}
|
|
157
|
+
const current = offset(this.element, this.parent);
|
|
158
|
+
this.offset.x = current.left;
|
|
159
|
+
this.offset.y = current.top;
|
|
160
|
+
};
|
|
161
|
+
this.updateScaleOffset = (scale = this.currentScale) => {
|
|
162
|
+
const rect = this.element.getBoundingClientRect();
|
|
163
|
+
this.height = rect.height / this.currentScale;
|
|
164
|
+
this.width = rect.width / this.currentScale;
|
|
165
|
+
this.scaleOffset.x = (this.width * scale - this.width) / 2;
|
|
166
|
+
this.scaleOffset.y = (this.height * scale - this.height) / 2;
|
|
167
|
+
};
|
|
168
|
+
this.updateBoundary = () => {
|
|
169
|
+
const x1 = 0 - this.offset.x + this.scaleOffset.x;
|
|
170
|
+
const x2 = this.area.width - this.width - this.offset.x - this.scaleOffset.x;
|
|
171
|
+
this.minX = Math.min(x1, x2);
|
|
172
|
+
this.maxX = Math.max(x1, x2);
|
|
173
|
+
const y1 = 0 - this.offset.y + this.scaleOffset.y;
|
|
174
|
+
const y2 = this.area.height - this.height - this.offset.y - this.scaleOffset.y;
|
|
175
|
+
this.minY = Math.min(y1, y2);
|
|
176
|
+
this.maxY = Math.max(y1, y2);
|
|
177
|
+
};
|
|
178
|
+
this.updateScale = (scale, animation, animationCallback) => {
|
|
179
|
+
if (!this.scale) {
|
|
180
|
+
return;
|
|
181
|
+
}
|
|
182
|
+
const target = this.adjustScale(scale);
|
|
183
|
+
this.updateScaleOffset(target);
|
|
184
|
+
this.updateBoundary();
|
|
185
|
+
const { x, y } = this.getLimitXY(this.translateX, this.translateY);
|
|
186
|
+
if (animation) {
|
|
187
|
+
this.animationTo(x, y, target, "", true, true, animationCallback);
|
|
188
|
+
}
|
|
189
|
+
else if (!this.updating) {
|
|
190
|
+
this.updating = true;
|
|
191
|
+
requestAnimationFrame(() => {
|
|
192
|
+
this.setTransform(x, y, target, "", true, true);
|
|
193
|
+
this.updating = false;
|
|
194
|
+
});
|
|
195
|
+
}
|
|
196
|
+
};
|
|
197
|
+
this.setOriginScale = (scale) => {
|
|
198
|
+
this.originScale = scale;
|
|
199
|
+
};
|
|
200
|
+
this.adjustScale = (scale) => {
|
|
201
|
+
return Math.min(10, this.scaleMax, Math.max(.5, this.scaleMin, scale));
|
|
202
|
+
};
|
|
203
|
+
this.handleTouchStart = (e) => {
|
|
204
|
+
const touches = e.touches;
|
|
205
|
+
if (this.disabled || touches.length > 1 || !this.element) {
|
|
206
|
+
return;
|
|
207
|
+
}
|
|
208
|
+
const touch = touches[0];
|
|
209
|
+
this.touching = true;
|
|
210
|
+
this.firstMoveFireEvent = false;
|
|
211
|
+
this.origin.x = touch.screenX;
|
|
212
|
+
this.origin.y = touch.screenY;
|
|
213
|
+
this.baseX = this.translateX;
|
|
214
|
+
this.baseY = this.translateY;
|
|
215
|
+
this.element.style.willChange = "transform";
|
|
216
|
+
};
|
|
217
|
+
this.handleTouchMove = (e) => {
|
|
218
|
+
const touches = e.touches;
|
|
219
|
+
if (this.disabled || !this.element || this.scaling || !this.touching || touches.length > 1) {
|
|
220
|
+
return;
|
|
221
|
+
}
|
|
222
|
+
e.preventDefault();
|
|
223
|
+
const touch = touches[0];
|
|
224
|
+
const x = touch.screenX - this.origin.x;
|
|
225
|
+
const y = touch.screenY - this.origin.y;
|
|
226
|
+
this.setTransform(this.xMove ? (x + this.baseX) : 0, this.yMove ? (y + this.baseY) : 0);
|
|
227
|
+
if (!this.firstMoveFireEvent) {
|
|
228
|
+
this.firstMoveFireEvent = true;
|
|
229
|
+
const onTouchMove = Math.abs(x) > Math.abs(y) ? this.onHTouchMove : this.onVTouchMove;
|
|
230
|
+
onTouchMove.emit({
|
|
231
|
+
originalEvent: e,
|
|
232
|
+
bubbles: false,
|
|
233
|
+
capturePhase: false,
|
|
234
|
+
composed: true,
|
|
235
|
+
extraFields: {
|
|
236
|
+
touches: e.touches || {},
|
|
237
|
+
changedTouches: e.changedTouches || {}
|
|
238
|
+
}
|
|
239
|
+
});
|
|
240
|
+
}
|
|
241
|
+
};
|
|
242
|
+
this.handleTouchEnd = (e) => {
|
|
243
|
+
const touch = e.changedTouches[0];
|
|
244
|
+
if (this.disabled || !this.touching || !touch) {
|
|
245
|
+
return;
|
|
246
|
+
}
|
|
247
|
+
this.touching = false;
|
|
248
|
+
const x = touch.screenX - this.origin.x;
|
|
249
|
+
const y = touch.screenY - this.origin.y;
|
|
250
|
+
this.setTransform(this.xMove ? (x + this.baseX) : 0, this.yMove ? (y + this.baseY) : 0);
|
|
251
|
+
};
|
|
252
|
+
}
|
|
253
|
+
watchX(newValue) {
|
|
254
|
+
this.setTransform(parseFloat(`${newValue || 0}`), this.translateY);
|
|
255
|
+
}
|
|
256
|
+
watchY(newValue) {
|
|
257
|
+
this.setTransform(this.translateX, parseFloat(`${newValue || 0}`));
|
|
258
|
+
}
|
|
259
|
+
watchScaleMinOrMax() {
|
|
260
|
+
if (!this.scale)
|
|
261
|
+
return false;
|
|
262
|
+
this.updateScale(this.currentScale, true);
|
|
263
|
+
this.setOriginScale(this.currentScale);
|
|
264
|
+
}
|
|
265
|
+
watchScaleValue(scale) {
|
|
266
|
+
if (!this.scale) {
|
|
267
|
+
return false;
|
|
268
|
+
}
|
|
269
|
+
this.updateScale(scale, true);
|
|
270
|
+
this.setOriginScale(scale);
|
|
271
|
+
return scale;
|
|
272
|
+
}
|
|
273
|
+
/**
|
|
274
|
+
* 设置父节点
|
|
275
|
+
*/
|
|
276
|
+
setParent({ element, area }) {
|
|
277
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
278
|
+
const scale = this.scale ? this.scaleValue : 1;
|
|
279
|
+
this.area = area;
|
|
280
|
+
this.parent = element;
|
|
281
|
+
this.updateOffset();
|
|
282
|
+
this.updateScaleOffset(scale);
|
|
283
|
+
this.updateBoundary();
|
|
284
|
+
this.setTransform(Number(this.x) + this.scaleOffset.x, Number(this.y) + this.scaleOffset.y, scale, "", true);
|
|
285
|
+
this.setOriginScale(scale);
|
|
286
|
+
});
|
|
287
|
+
}
|
|
288
|
+
/**
|
|
289
|
+
* 结束缩放
|
|
290
|
+
*/
|
|
291
|
+
endScale() {
|
|
292
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
293
|
+
this.scaling = false;
|
|
294
|
+
this.setOriginScale(this.currentScale);
|
|
295
|
+
});
|
|
296
|
+
}
|
|
297
|
+
/**
|
|
298
|
+
* 更新缩放
|
|
299
|
+
*/
|
|
300
|
+
setScale(scale) {
|
|
301
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
302
|
+
if (!this.scale) {
|
|
303
|
+
return;
|
|
304
|
+
}
|
|
305
|
+
this.scaling = true;
|
|
306
|
+
this.updateScale(scale * this.originScale);
|
|
307
|
+
});
|
|
308
|
+
}
|
|
309
|
+
connectedCallback() {
|
|
310
|
+
this.observer = new MutationObserver((mutations) => {
|
|
311
|
+
mutations.forEach((mutation) => {
|
|
312
|
+
const name = mutation.attributeName;
|
|
313
|
+
if (name && ["class", "style"].includes(name)) {
|
|
314
|
+
const oldValue = mutation.oldValue;
|
|
315
|
+
const newValue = mutation.target.getAttribute(name);
|
|
316
|
+
if (oldValue === newValue) {
|
|
317
|
+
return;
|
|
318
|
+
}
|
|
319
|
+
const filter = (input) => {
|
|
320
|
+
return input === null || input === void 0 ? void 0 : input.split(";").filter((item) => {
|
|
321
|
+
return !["transform", "will-change"].find((key) => {
|
|
322
|
+
return item.trim().startsWith(key);
|
|
323
|
+
});
|
|
324
|
+
}).join(";");
|
|
325
|
+
};
|
|
326
|
+
if (name === "style" && filter(newValue) === filter(oldValue)) {
|
|
327
|
+
return;
|
|
328
|
+
}
|
|
329
|
+
this.updateOffset();
|
|
330
|
+
this.updateScaleOffset();
|
|
331
|
+
this.updateBoundary();
|
|
332
|
+
this.setTransform(this.translateX, this.translateY);
|
|
333
|
+
}
|
|
334
|
+
});
|
|
335
|
+
});
|
|
336
|
+
this.observer.observe(this.element, {
|
|
337
|
+
attributes: true,
|
|
338
|
+
attributeOldValue: true
|
|
339
|
+
});
|
|
340
|
+
}
|
|
341
|
+
disconnectedCallback() {
|
|
342
|
+
var _a;
|
|
343
|
+
(_a = this.observer) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
344
|
+
}
|
|
4
345
|
componentDidLoad() {
|
|
5
|
-
|
|
346
|
+
this.element.style.transformOrigin = "center";
|
|
347
|
+
this.xMove = ["horizontal", "all"].includes(this.direction);
|
|
348
|
+
this.yMove = ["vertical", "all"].includes(this.direction);
|
|
349
|
+
if (this.friction <= 0) {
|
|
350
|
+
this.friction = 2;
|
|
351
|
+
}
|
|
352
|
+
if (this.x || this.y) {
|
|
353
|
+
const x = parseFloat(`${this.x || 0}`);
|
|
354
|
+
const y = parseFloat(`${this.y || 0}`);
|
|
355
|
+
this.setTransform(x, y);
|
|
356
|
+
}
|
|
6
357
|
}
|
|
7
358
|
render() {
|
|
8
|
-
return (h(Host, null
|
|
359
|
+
return (h(Host, null,
|
|
360
|
+
h("div", { onTouchStart: this.handleTouchStart, onTouchMove: this.handleTouchMove, onTouchEnd: this.handleTouchEnd },
|
|
361
|
+
h("slot", null))));
|
|
9
362
|
}
|
|
10
363
|
static get is() { return "taro-movable-view-core"; }
|
|
364
|
+
static get originalStyleUrls() { return {
|
|
365
|
+
"$": ["./view.scss"]
|
|
366
|
+
}; }
|
|
367
|
+
static get styleUrls() { return {
|
|
368
|
+
"$": ["view.css"]
|
|
369
|
+
}; }
|
|
370
|
+
static get properties() { return {
|
|
371
|
+
"x": {
|
|
372
|
+
"type": "any",
|
|
373
|
+
"mutable": false,
|
|
374
|
+
"complexType": {
|
|
375
|
+
"original": "number | string",
|
|
376
|
+
"resolved": "number | string",
|
|
377
|
+
"references": {}
|
|
378
|
+
},
|
|
379
|
+
"required": false,
|
|
380
|
+
"optional": false,
|
|
381
|
+
"docs": {
|
|
382
|
+
"tags": [],
|
|
383
|
+
"text": "\u5B9A\u4E49x\u8F74\u65B9\u5411\u7684\u504F\u79FB\uFF0C\u5982\u679Cx\u7684\u503C\u4E0D\u5728\u53EF\u79FB\u52A8\u8303\u56F4\u5185\uFF0C\u4F1A\u81EA\u52A8\u79FB\u52A8\u5230\u53EF\u79FB\u52A8\u8303\u56F4\uFF1B\u6539\u53D8x\u7684\u503C\u4F1A\u89E6\u53D1\u52A8\u753B\uFF1B\u5355\u4F4D\u652F\u6301px\uFF1B"
|
|
384
|
+
},
|
|
385
|
+
"attribute": "x",
|
|
386
|
+
"reflect": false,
|
|
387
|
+
"defaultValue": "0"
|
|
388
|
+
},
|
|
389
|
+
"y": {
|
|
390
|
+
"type": "any",
|
|
391
|
+
"mutable": false,
|
|
392
|
+
"complexType": {
|
|
393
|
+
"original": "number | string",
|
|
394
|
+
"resolved": "number | string",
|
|
395
|
+
"references": {}
|
|
396
|
+
},
|
|
397
|
+
"required": false,
|
|
398
|
+
"optional": false,
|
|
399
|
+
"docs": {
|
|
400
|
+
"tags": [],
|
|
401
|
+
"text": "\u5B9A\u4E49y\u8F74\u65B9\u5411\u7684\u504F\u79FB\uFF0C\u5982\u679Cy\u7684\u503C\u4E0D\u5728\u53EF\u79FB\u52A8\u8303\u56F4\u5185\uFF0C\u4F1A\u81EA\u52A8\u79FB\u52A8\u5230\u53EF\u79FB\u52A8\u8303\u56F4\uFF1B\u6539\u53D8y\u7684\u503C\u4F1A\u89E6\u53D1\u52A8\u753B\uFF1B\u5355\u4F4D\u652F\u6301px\uFF1B"
|
|
402
|
+
},
|
|
403
|
+
"attribute": "y",
|
|
404
|
+
"reflect": false,
|
|
405
|
+
"defaultValue": "0"
|
|
406
|
+
},
|
|
407
|
+
"direction": {
|
|
408
|
+
"type": "string",
|
|
409
|
+
"mutable": false,
|
|
410
|
+
"complexType": {
|
|
411
|
+
"original": "\"all\" | \"vertical\" | \"horizontal\" | \"none\"",
|
|
412
|
+
"resolved": "\"all\" | \"horizontal\" | \"none\" | \"vertical\"",
|
|
413
|
+
"references": {}
|
|
414
|
+
},
|
|
415
|
+
"required": false,
|
|
416
|
+
"optional": false,
|
|
417
|
+
"docs": {
|
|
418
|
+
"tags": [],
|
|
419
|
+
"text": "\u79FB\u52A8\u65B9\u5411\uFF0C\u5C5E\u6027\u503C\u6709all\u3001vertical\u3001horizontal\u3001none"
|
|
420
|
+
},
|
|
421
|
+
"attribute": "direction",
|
|
422
|
+
"reflect": false,
|
|
423
|
+
"defaultValue": "\"none\""
|
|
424
|
+
},
|
|
425
|
+
"outOfBounds": {
|
|
426
|
+
"type": "boolean",
|
|
427
|
+
"mutable": false,
|
|
428
|
+
"complexType": {
|
|
429
|
+
"original": "boolean",
|
|
430
|
+
"resolved": "boolean",
|
|
431
|
+
"references": {}
|
|
432
|
+
},
|
|
433
|
+
"required": false,
|
|
434
|
+
"optional": false,
|
|
435
|
+
"docs": {
|
|
436
|
+
"tags": [],
|
|
437
|
+
"text": "\u8D85\u8FC7\u53EF\u79FB\u52A8\u533A\u57DF\u540E\uFF0C\u662F\u5426\u8FD8\u53EF\u4EE5\u79FB\u52A8"
|
|
438
|
+
},
|
|
439
|
+
"attribute": "out-of-bounds",
|
|
440
|
+
"reflect": false,
|
|
441
|
+
"defaultValue": "false"
|
|
442
|
+
},
|
|
443
|
+
"inertia": {
|
|
444
|
+
"type": "boolean",
|
|
445
|
+
"mutable": false,
|
|
446
|
+
"complexType": {
|
|
447
|
+
"original": "boolean",
|
|
448
|
+
"resolved": "boolean",
|
|
449
|
+
"references": {}
|
|
450
|
+
},
|
|
451
|
+
"required": false,
|
|
452
|
+
"optional": false,
|
|
453
|
+
"docs": {
|
|
454
|
+
"tags": [],
|
|
455
|
+
"text": "\u662F\u5426\u5E26\u6709\u60EF\u6027"
|
|
456
|
+
},
|
|
457
|
+
"attribute": "inertia",
|
|
458
|
+
"reflect": false,
|
|
459
|
+
"defaultValue": "false"
|
|
460
|
+
},
|
|
461
|
+
"friction": {
|
|
462
|
+
"type": "number",
|
|
463
|
+
"mutable": false,
|
|
464
|
+
"complexType": {
|
|
465
|
+
"original": "number",
|
|
466
|
+
"resolved": "number",
|
|
467
|
+
"references": {}
|
|
468
|
+
},
|
|
469
|
+
"required": false,
|
|
470
|
+
"optional": false,
|
|
471
|
+
"docs": {
|
|
472
|
+
"tags": [],
|
|
473
|
+
"text": "\u6469\u64E6\u7CFB\u6570\uFF0C\u7528\u4E8E\u63A7\u5236\u60EF\u6027\u6ED1\u52A8\u7684\u52A8\u753B\uFF0C\u503C\u8D8A\u5927\u6469\u64E6\u529B\u8D8A\u5927\uFF0C\u6ED1\u52A8\u8D8A\u5FEB\u505C\u6B62\uFF1B\u5FC5\u987B\u5927\u4E8E0\uFF0C\u5426\u5219\u4F1A\u88AB\u8BBE\u7F6E\u6210\u9ED8\u8BA4\u503C"
|
|
474
|
+
},
|
|
475
|
+
"attribute": "friction",
|
|
476
|
+
"reflect": false,
|
|
477
|
+
"defaultValue": "2"
|
|
478
|
+
},
|
|
479
|
+
"damping": {
|
|
480
|
+
"type": "number",
|
|
481
|
+
"mutable": false,
|
|
482
|
+
"complexType": {
|
|
483
|
+
"original": "number",
|
|
484
|
+
"resolved": "number",
|
|
485
|
+
"references": {}
|
|
486
|
+
},
|
|
487
|
+
"required": false,
|
|
488
|
+
"optional": false,
|
|
489
|
+
"docs": {
|
|
490
|
+
"tags": [],
|
|
491
|
+
"text": "\u963B\u5C3C\u7CFB\u6570\uFF0C\u7528\u4E8E\u63A7\u5236x\u6216y\u6539\u53D8\u65F6\u7684\u52A8\u753B\u548C\u8FC7\u754C\u56DE\u5F39\u7684\u52A8\u753B\uFF0C\u503C\u8D8A\u5927\u79FB\u52A8\u8D8A\u5FEB"
|
|
492
|
+
},
|
|
493
|
+
"attribute": "damping",
|
|
494
|
+
"reflect": false,
|
|
495
|
+
"defaultValue": "20"
|
|
496
|
+
},
|
|
497
|
+
"disabled": {
|
|
498
|
+
"type": "boolean",
|
|
499
|
+
"mutable": false,
|
|
500
|
+
"complexType": {
|
|
501
|
+
"original": "boolean",
|
|
502
|
+
"resolved": "boolean",
|
|
503
|
+
"references": {}
|
|
504
|
+
},
|
|
505
|
+
"required": false,
|
|
506
|
+
"optional": false,
|
|
507
|
+
"docs": {
|
|
508
|
+
"tags": [],
|
|
509
|
+
"text": "\u662F\u5426\u7981\u7528"
|
|
510
|
+
},
|
|
511
|
+
"attribute": "disabled",
|
|
512
|
+
"reflect": false,
|
|
513
|
+
"defaultValue": "false"
|
|
514
|
+
},
|
|
515
|
+
"scale": {
|
|
516
|
+
"type": "boolean",
|
|
517
|
+
"mutable": false,
|
|
518
|
+
"complexType": {
|
|
519
|
+
"original": "boolean",
|
|
520
|
+
"resolved": "boolean",
|
|
521
|
+
"references": {}
|
|
522
|
+
},
|
|
523
|
+
"required": false,
|
|
524
|
+
"optional": false,
|
|
525
|
+
"docs": {
|
|
526
|
+
"tags": [],
|
|
527
|
+
"text": "\u662F\u5426\u652F\u6301\u53CC\u6307\u7F29\u653E\uFF0C\u9ED8\u8BA4\u7F29\u653E\u624B\u52BF\u751F\u6548\u533A\u57DF\u662F\u5728movable-view\u5185"
|
|
528
|
+
},
|
|
529
|
+
"attribute": "scale",
|
|
530
|
+
"reflect": false,
|
|
531
|
+
"defaultValue": "false"
|
|
532
|
+
},
|
|
533
|
+
"scaleMin": {
|
|
534
|
+
"type": "number",
|
|
535
|
+
"mutable": false,
|
|
536
|
+
"complexType": {
|
|
537
|
+
"original": "number",
|
|
538
|
+
"resolved": "number",
|
|
539
|
+
"references": {}
|
|
540
|
+
},
|
|
541
|
+
"required": false,
|
|
542
|
+
"optional": false,
|
|
543
|
+
"docs": {
|
|
544
|
+
"tags": [],
|
|
545
|
+
"text": "\u5B9A\u4E49\u7F29\u653E\u500D\u6570\u6700\u5C0F\u503C"
|
|
546
|
+
},
|
|
547
|
+
"attribute": "scale-min",
|
|
548
|
+
"reflect": false,
|
|
549
|
+
"defaultValue": ".5"
|
|
550
|
+
},
|
|
551
|
+
"scaleMax": {
|
|
552
|
+
"type": "number",
|
|
553
|
+
"mutable": false,
|
|
554
|
+
"complexType": {
|
|
555
|
+
"original": "number",
|
|
556
|
+
"resolved": "number",
|
|
557
|
+
"references": {}
|
|
558
|
+
},
|
|
559
|
+
"required": false,
|
|
560
|
+
"optional": false,
|
|
561
|
+
"docs": {
|
|
562
|
+
"tags": [],
|
|
563
|
+
"text": "\u5B9A\u4E49\u7F29\u653E\u500D\u6570\u6700\u5927\u503C"
|
|
564
|
+
},
|
|
565
|
+
"attribute": "scale-max",
|
|
566
|
+
"reflect": false,
|
|
567
|
+
"defaultValue": "10"
|
|
568
|
+
},
|
|
569
|
+
"scaleValue": {
|
|
570
|
+
"type": "number",
|
|
571
|
+
"mutable": false,
|
|
572
|
+
"complexType": {
|
|
573
|
+
"original": "number",
|
|
574
|
+
"resolved": "number",
|
|
575
|
+
"references": {}
|
|
576
|
+
},
|
|
577
|
+
"required": false,
|
|
578
|
+
"optional": false,
|
|
579
|
+
"docs": {
|
|
580
|
+
"tags": [],
|
|
581
|
+
"text": "\u5B9A\u4E49\u7F29\u653E\u500D\u6570\uFF0C\u53D6\u503C\u8303\u56F4\u4E3A 0.5 - 10"
|
|
582
|
+
},
|
|
583
|
+
"attribute": "scale-value",
|
|
584
|
+
"reflect": false,
|
|
585
|
+
"defaultValue": "1"
|
|
586
|
+
},
|
|
587
|
+
"animation": {
|
|
588
|
+
"type": "boolean",
|
|
589
|
+
"mutable": false,
|
|
590
|
+
"complexType": {
|
|
591
|
+
"original": "boolean",
|
|
592
|
+
"resolved": "boolean",
|
|
593
|
+
"references": {}
|
|
594
|
+
},
|
|
595
|
+
"required": false,
|
|
596
|
+
"optional": false,
|
|
597
|
+
"docs": {
|
|
598
|
+
"tags": [],
|
|
599
|
+
"text": "\u662F\u5426\u4F7F\u7528\u52A8\u753B"
|
|
600
|
+
},
|
|
601
|
+
"attribute": "animation",
|
|
602
|
+
"reflect": false,
|
|
603
|
+
"defaultValue": "true"
|
|
604
|
+
}
|
|
605
|
+
}; }
|
|
606
|
+
static get events() { return [{
|
|
607
|
+
"method": "onChange",
|
|
608
|
+
"name": "change",
|
|
609
|
+
"bubbles": true,
|
|
610
|
+
"cancelable": true,
|
|
611
|
+
"composed": true,
|
|
612
|
+
"docs": {
|
|
613
|
+
"tags": [],
|
|
614
|
+
"text": "\u62D6\u52A8\u8FC7\u7A0B\u4E2D\u89E6\u53D1\u7684\u4E8B\u4EF6\uFF0Cevent.detail = {x, y, source}"
|
|
615
|
+
},
|
|
616
|
+
"complexType": {
|
|
617
|
+
"original": "any",
|
|
618
|
+
"resolved": "any",
|
|
619
|
+
"references": {}
|
|
620
|
+
}
|
|
621
|
+
}, {
|
|
622
|
+
"method": "onScale",
|
|
623
|
+
"name": "scale",
|
|
624
|
+
"bubbles": true,
|
|
625
|
+
"cancelable": true,
|
|
626
|
+
"composed": true,
|
|
627
|
+
"docs": {
|
|
628
|
+
"tags": [],
|
|
629
|
+
"text": "\u7F29\u653E\u8FC7\u7A0B\u4E2D\u89E6\u53D1\u7684\u4E8B\u4EF6\uFF0Cevent.detail = {x, y, scale}\uFF0Cx\u548Cy\u5B57\u6BB5\u57282.1.0\u4E4B\u540E\u652F\u6301"
|
|
630
|
+
},
|
|
631
|
+
"complexType": {
|
|
632
|
+
"original": "any",
|
|
633
|
+
"resolved": "any",
|
|
634
|
+
"references": {}
|
|
635
|
+
}
|
|
636
|
+
}, {
|
|
637
|
+
"method": "onHTouchMove",
|
|
638
|
+
"name": "htouchmove",
|
|
639
|
+
"bubbles": true,
|
|
640
|
+
"cancelable": true,
|
|
641
|
+
"composed": true,
|
|
642
|
+
"docs": {
|
|
643
|
+
"tags": [],
|
|
644
|
+
"text": "\u521D\u6B21\u624B\u6307\u89E6\u6478\u540E\u79FB\u52A8\u4E3A\u6A2A\u5411\u7684\u79FB\u52A8\u65F6\u89E6\u53D1\uFF0C\u5982\u679Ccatch\u6B64\u4E8B\u4EF6\uFF0C\u5219\u610F\u5473\u7740touchmove\u4E8B\u4EF6\u4E5F\u88ABcatch"
|
|
645
|
+
},
|
|
646
|
+
"complexType": {
|
|
647
|
+
"original": "any",
|
|
648
|
+
"resolved": "any",
|
|
649
|
+
"references": {}
|
|
650
|
+
}
|
|
651
|
+
}, {
|
|
652
|
+
"method": "onVTouchMove",
|
|
653
|
+
"name": "vtouchmove",
|
|
654
|
+
"bubbles": true,
|
|
655
|
+
"cancelable": true,
|
|
656
|
+
"composed": true,
|
|
657
|
+
"docs": {
|
|
658
|
+
"tags": [],
|
|
659
|
+
"text": "\u521D\u6B21\u624B\u6307\u89E6\u6478\u540E\u79FB\u52A8\u4E3A\u7EB5\u5411\u7684\u79FB\u52A8\u65F6\u89E6\u53D1\uFF0C\u5982\u679Ccatch\u6B64\u4E8B\u4EF6\uFF0C\u5219\u610F\u5473\u7740touchmove\u4E8B\u4EF6\u4E5F\u88ABcatch"
|
|
660
|
+
},
|
|
661
|
+
"complexType": {
|
|
662
|
+
"original": "any",
|
|
663
|
+
"resolved": "any",
|
|
664
|
+
"references": {}
|
|
665
|
+
}
|
|
666
|
+
}]; }
|
|
667
|
+
static get methods() { return {
|
|
668
|
+
"setParent": {
|
|
669
|
+
"complexType": {
|
|
670
|
+
"signature": "({ element, area }: { element: HTMLElement; area: { width: number; height: number; }; }) => Promise<void>",
|
|
671
|
+
"parameters": [{
|
|
672
|
+
"tags": [],
|
|
673
|
+
"text": ""
|
|
674
|
+
}],
|
|
675
|
+
"references": {
|
|
676
|
+
"Promise": {
|
|
677
|
+
"location": "global"
|
|
678
|
+
},
|
|
679
|
+
"HTMLElement": {
|
|
680
|
+
"location": "global"
|
|
681
|
+
}
|
|
682
|
+
},
|
|
683
|
+
"return": "Promise<void>"
|
|
684
|
+
},
|
|
685
|
+
"docs": {
|
|
686
|
+
"text": "\u8BBE\u7F6E\u7236\u8282\u70B9",
|
|
687
|
+
"tags": []
|
|
688
|
+
}
|
|
689
|
+
},
|
|
690
|
+
"endScale": {
|
|
691
|
+
"complexType": {
|
|
692
|
+
"signature": "() => Promise<void>",
|
|
693
|
+
"parameters": [],
|
|
694
|
+
"references": {
|
|
695
|
+
"Promise": {
|
|
696
|
+
"location": "global"
|
|
697
|
+
}
|
|
698
|
+
},
|
|
699
|
+
"return": "Promise<void>"
|
|
700
|
+
},
|
|
701
|
+
"docs": {
|
|
702
|
+
"text": "\u7ED3\u675F\u7F29\u653E",
|
|
703
|
+
"tags": []
|
|
704
|
+
}
|
|
705
|
+
},
|
|
706
|
+
"setScale": {
|
|
707
|
+
"complexType": {
|
|
708
|
+
"signature": "(scale: number) => Promise<void>",
|
|
709
|
+
"parameters": [{
|
|
710
|
+
"tags": [],
|
|
711
|
+
"text": ""
|
|
712
|
+
}],
|
|
713
|
+
"references": {
|
|
714
|
+
"Promise": {
|
|
715
|
+
"location": "global"
|
|
716
|
+
}
|
|
717
|
+
},
|
|
718
|
+
"return": "Promise<void>"
|
|
719
|
+
},
|
|
720
|
+
"docs": {
|
|
721
|
+
"text": "\u66F4\u65B0\u7F29\u653E",
|
|
722
|
+
"tags": []
|
|
723
|
+
}
|
|
724
|
+
}
|
|
725
|
+
}; }
|
|
726
|
+
static get elementRef() { return "element"; }
|
|
727
|
+
static get watchers() { return [{
|
|
728
|
+
"propName": "x",
|
|
729
|
+
"methodName": "watchX"
|
|
730
|
+
}, {
|
|
731
|
+
"propName": "y",
|
|
732
|
+
"methodName": "watchY"
|
|
733
|
+
}, {
|
|
734
|
+
"propName": "scaleMin",
|
|
735
|
+
"methodName": "watchScaleMinOrMax"
|
|
736
|
+
}, {
|
|
737
|
+
"propName": "scaleMax",
|
|
738
|
+
"methodName": "watchScaleMinOrMax"
|
|
739
|
+
}, {
|
|
740
|
+
"propName": "scaleValue",
|
|
741
|
+
"methodName": "watchScaleValue"
|
|
742
|
+
}]; }
|
|
11
743
|
}
|