Skip to content

Commit

Permalink
feature: 打包组件库
Browse files Browse the repository at this point in the history
  • Loading branch information
jsxiaosi committed Jan 12, 2022
1 parent b6fe85d commit 670b3cc
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
7 changes: 1 addition & 6 deletions lib/components/button/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
import type { App } from 'vue'
import IButton from './src/index.vue'
declare type SFCWithInstall<T> =
| T
| {
install(app: App): void
}
import type { SFCWithInstall } from '../types'
declare const InMeAccordionItem: SFCWithInstall<typeof IButton>
export default InMeAccordionItem
8 changes: 5 additions & 3 deletions lib/components/types.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import type { App } from 'vue'
export declare type SFCWithInstall<T> = T & {
install(app: App): void
}
export declare type SFCWithInstall<T> =
| T
| {
install(app: App): void
}
export declare type PublicProps<T, U = {}> = Readonly<T> & U
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
{
"name": "xiaosi-vue3-components",
"version": "1.0.0",
"main": "lib/index.esm.js",
"types": "lib/index.d.ts",
"style": "lib/theme-default/index.css",
"workspaces": [
"packages/*",
"docs"
Expand Down

0 comments on commit 670b3cc

Please sign in to comment.