[Feature request] container can be HTMLElement?(not only selector string) #!zh: container 也可以是HTMLElement,而非只支持 selector string
Is your feature request related to a problem? Please describe. container can be HTMLElement? not only selector string? #!zh: container 也可以是HTMLElement,而非只支持 selector string
Describe the solution you'd like
luckysheet.create({
// use case: in Vue.js: this.$refs.sheet is more convenient for Vue component
// #!zh: 使用场景:在 Vue.js 中,如果是一个多处复用的组件,用 HTMLElement 会利于组件复用,否则导致多个组件 id 重复
container: HTMLElement
})
use case
// demo.vue
<template>
<div ref="sheet" style="height: 600px;width: 400px"></div>
</template>
<script>
export default {
mounted() {
window.luckysheet.create({ container: this.$refs.sheet })
}
}
</script>
很棒的想法。
Luckysheet多实例的需求我们将会列入开发计划
Luckysheet多实例问题什么时候可以解决?
Duplicate of #289
Luckysheet多实例问题什么时候可以解决?
正在计划,加紧修改了
注意css模块化处理,防止内部样式和外部样式相互影响
Luckysheet多实例问题什么时候可以解决?
正在计划,加紧修改了
请问现在有进展了吗,非常需要这个能力~
Luckysheet多实例问题什么时候可以解决?
正在计划,加紧修改了
请问现在有进展了吗,非常需要这个能力~
2022年了,多实例问题解决了吗 ?
2022年了,多实例问题解决了吗 ?
2023年了,多实例问题解决了吗 ?
I'm wondering the same. Any solutions to multi-instance?
2023年了,多实例问题解决了吗 ?
2023年了,多实例问题解决了吗 ?
Not to my knowledge. :( I managed a temporary solution by wrapping it in an iframe, it actually works pretty well.
据我所知不是。 :( 我通过将它包装在 iframe 中来管理一个临时解决方案,它实际上工作得很好。
2023年了,多实例问题解决了吗 ?
Not to my knowledge. :( I managed a temporary solution by wrapping it in an iframe, it actually works pretty well.
据我所知不是。 :( 我通过将它包装在 iframe 中来管理一个临时解决方案,它实际上工作得很好。
You're my hero, brother