Skip to content

@varlet/ui的Picker的函数和组件两种调用方式在当前项目的home页面中均发生样式混乱 #20

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
jijin51 opened this issue Mar 10, 2025 · 0 comments

Comments

@jijin51
Copy link

jijin51 commented Mar 10, 2025

@varlet/ui的Picker的函数和组件两种调用方式在当前项目的home页面中均发生样式混乱

函数式调用:
`<script setup>
import { Picker } from '@varlet/ui'

async function picker() {
const { state, values, indexes, options } = await Picker({
columns: [
[
{ text: 'A' },
{ text: 'B' },
{ text: 'C' },
{ text: 'D' },
{ text: 'E' }
]
]
})
}
</script>
`
picker组件样式混乱!
单独用var-picker标签放在页面也会导致picker的样式混乱!

经过多种尝试,只有通过var-popup标签包裹着var-picker标签来使用才一切正常!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant