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? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Adding type declaration to components can improve the developer experience(DX).
建议优先完善高频组件的 TypeScript 类型声明。
TinyVue 高频组件
Take the alert component as an example.
packages/renderless/src/alert/vue.ts
// Add type declaration to state const state: IAlertState = reactive({ show: true, getIcon: computed(() => api.computedGetIcon()), getTitle: computed(() => api.computedGetTitle()), contentVisible: false, contentDescribeHeight: 0, contentDefaultHeight: 0, contentMaxHeight: constants.CONTENT_MAXHEUGHT, scrollStatus: false })
export interface IAlertState { show: boolean getIcon: ComputedRef<string> getTitle: ComputedRef<string> contentVisible: boolean contentDescribeHeight: number contentDefaultHeight: number contentMaxHeight: number scrollStatus: boolean }
The text was updated successfully, but these errors were encountered:
For more information on how to supplement the type declaration of a component, please refer to discussion #252
Sorry, something went wrong.
The TypeScript type declaration of the component needs to be continuously improved.
No branches or pull requests
What problem does this feature solve
Adding type declaration to components can improve the developer experience(DX).
建议优先完善高频组件的 TypeScript 类型声明。
TinyVue 高频组件
What does the proposed API look like
Take the alert component as an example.
packages/renderless/src/alert/vue.ts
The text was updated successfully, but these errors were encountered: