dequan.gdq

Results 4 issues of dequan.gdq

如题。 一个奇怪的需求。 宽高比例最小16:9, 最大1:1.。。。。 例如:width=320, height= [180~320]之前

## 写在前面 一般情况下我们在使用框架时(react、vue、angular)都是创建一个实例,然后所有的页面都写在#app一个容器内。这样可能会导致一些本改高复用,高解耦的弹窗类组件,在使用上变得麻烦/复杂。 **本文尝试通过重新实例化Vue组件的方式,让脱离主视觉的弹窗类组件,大幅地降低组件和调用方的逻辑耦合。通过函数式的调用组件,极大的提高组件的可阅读性。同时满足开闭原则,对组件的二次开发也更容易** ## 现状 现有的弹窗组件,在组件复用、与父组件的控制耦合、父组件和弹窗组件的通信,都没有让人满意,存在更优解。 一般情况下我们实现一个弹窗组件 ```js // 伪代码 const template = ` `; import Modal from './Modal.vue'; import { Component, Prop, Vue } from "vue-property-decorator"; @Component export...

- [x] I have searched the [issues](https://github.com/antvis/f2/issues) of this repository and believe that this is not a duplicate. ### Reproduction link [![Edit on CodeSandbox](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/f2-reproduction-template-forked-o1qim6) ### Steps to reproduce 直接点击柱状图 item...

如图:v-lazy的兄弟节点存在v-if改变元素数量, 3s后,背景图会出现在两个元素中