g-ui-core 0.0.6 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "g-ui-core",
3
- "version": "0.0.6",
3
+ "version": "0.0.7",
4
4
  "description": "G-UI Web Components built with Stencil",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",
package/vue/index.d.ts CHANGED
@@ -15,7 +15,7 @@ export default plugin
15
15
  // 增强 Vue 全局组件类型(Volar 智能提示)
16
16
  declare module '@vue/runtime-core' {
17
17
  export interface GlobalComponents {
18
- GButton: GButtonProps
19
- MyButton: GButtonProps
18
+ GButton: typeof MyButton
19
+ MyButton: typeof MyButton
20
20
  }
21
21
  }
package/vue/main.d.ts CHANGED
@@ -1,9 +1,8 @@
1
- import type { Components } from '../dist/types/components'
2
-
3
- // g-button 在 Vue 模板中的 props 类型(Volar 智能提示)
1
+ // 增强 Vue 全局组件类型(Volar 智能提示)
2
+ // 指向 Vue 组件类型,让 Volar 能推断 props
4
3
  declare module '@vue/runtime-core' {
5
4
  export interface GlobalComponents {
6
- GButton: Partial<Components.GButton>
5
+ GButton: typeof import('./MyButton').default
7
6
  }
8
7
  }
9
8