123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- <template>
- <view>
- <slot></slot>
- </view>
- </template>
- <script>
-
- export default {
- name:"uniSwipeAction",
- data() {
- return {};
- },
- created() {
- this.children = [];
- },
- methods: {
-
- resize(){
-
-
- this.children.forEach(vm=>{
- vm.init()
- })
-
- },
-
- closeAll(){
- this.children.forEach(vm=>{
-
- vm.is_show = 'none'
-
-
- vm.close()
-
- })
- },
- closeOther(vm) {
- if (this.openItem && this.openItem !== vm) {
-
- this.openItem.is_show = 'none'
-
-
- this.openItem.close()
-
- }
-
- this.openItem = vm
- }
- }
- };
- </script>
- <style></style>
|