Skip to content

Commit 6a1c14d

Browse files
committed
chore(button, icon): 依赖调整
affects: button, icon 1. package.json 新增 private 字段, 禁止单独发布 2. icon 组件不采用 vite 进行构建
1 parent dd19e3f commit 6a1c14d

23 files changed

+5
-270
lines changed

packages/button/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"private": true,
23
"name": "button",
34
"version": "0.0.1",
45
"description": "Button 组件",
@@ -26,6 +27,7 @@
2627
"serve": "vite preview"
2728
},
2829
"dependencies": {
30+
"icon": "^0.0.1",
2931
"vue": "^3.0.5"
3032
},
3133
"devDependencies": {

packages/icon/README.md

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1 @@
1-
# Vue 3 + Typescript + Vite
2-
3-
This template should help get you started developing with Vue 3 and Typescript in Vite.
4-
5-
## Recommended IDE Setup
6-
7-
[VSCode](https://code.visualstudio.com/) + [Vetur](https://marketplace.visualstudio.com/items?itemName=octref.vetur). Make sure to enable `vetur.experimental.templateInterpolationService` in settings!
8-
9-
### If Using `<script setup>`
10-
11-
[`<script setup>`](https://github.com/vuejs/rfcs/pull/227) is a feature that is currently in RFC stage. To get proper IDE support for the syntax, use [Volar](https://marketplace.visualstudio.com/items?itemName=johnsoncodehk.volar) instead of Vetur (and disable Vetur).
12-
13-
## Type Support For `.vue` Imports in TS
14-
15-
Since TypeScript cannot handle type information for `.vue` imports, they are shimmed to be a generic Vue component type by default. In most cases this is fine if you don't really care about component prop types outside of templates. However, if you wish to get actual prop types in `.vue` imports (for example to get props validation when using manual `h(...)` calls), you can use the following:
16-
17-
### If Using Volar
18-
19-
Run `Volar: Switch TS Plugin on/off` from VSCode command palette.
20-
21-
### If Using Vetur
22-
23-
1. Install and add `@vuedx/typescript-plugin-vue` to the [plugins section](https://www.typescriptlang.org/tsconfig#plugins) in `tsconfig.json`
24-
2. Delete `src/shims-vue.d.ts` as it is no longer needed to provide module info to Typescript
25-
3. Open `src/main.ts` in VSCode
26-
4. Open the VSCode command palette
27-
5. Search and run "Select TypeScript version" -> "Use workspace version"
1+
# vue3-ui icon 组件
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)