We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
例如以下代码片段,都用到了 vant ,然而通用组件库模板的话,不可能大家都会依赖 vant,建议用到的一些方法将其抽到 utils 使其可以脱离 vant 应该好一点
vant
utils
import { withInstall } from 'vant/es/utils' import _Form from './src/form.vue' export const Form = withInstall(_Form) export default Form export * from './src/props'
和
import { makeStringProp } from 'vant/es/utils' import type { ExtractPropTypes } from 'vue' export const formProps = { /** * 类型定义 */ type: makeStringProp(''), } export type FormProps = ExtractPropTypes<typeof formProps>
The text was updated successfully, but these errors were encountered:
No branches or pull requests
例如以下代码片段,都用到了
vant
,然而通用组件库模板的话,不可能大家都会依赖vant
,建议用到的一些方法将其抽到utils
使其可以脱离vant
应该好一点和
The text was updated successfully, but these errors were encountered: