vcomp-test 0.0.1 → 0.0.3
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/README.md +3 -45
- package/dist/index.d.ts +3 -2
- package/dist/vcomp.es.js +569 -548
- package/package.json +5 -4
- package/dist/vcomp.cjs.js +0 -4
- /package/dist/{vcomp-test.css → vcomp.css} +0 -0
package/README.md
CHANGED
|
@@ -1,48 +1,6 @@
|
|
|
1
1
|
# vue-comp-test
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Two components:
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
[VS Code](https://code.visualstudio.com/) + [Vue (Official)](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur).
|
|
8
|
-
|
|
9
|
-
## Recommended Browser Setup
|
|
10
|
-
|
|
11
|
-
- Chromium-based browsers (Chrome, Edge, Brave, etc.):
|
|
12
|
-
- [Vue.js devtools](https://chromewebstore.google.com/detail/vuejs-devtools/nhdogjmejiglipccpnnnanhbledajbpd)
|
|
13
|
-
- [Turn on Custom Object Formatter in Chrome DevTools](http://bit.ly/object-formatters)
|
|
14
|
-
- Firefox:
|
|
15
|
-
- [Vue.js devtools](https://addons.mozilla.org/en-US/firefox/addon/vue-js-devtools/)
|
|
16
|
-
- [Turn on Custom Object Formatter in Firefox DevTools](https://fxdx.dev/firefox-devtools-custom-object-formatters/)
|
|
17
|
-
|
|
18
|
-
## Type Support for `.vue` Imports in TS
|
|
19
|
-
|
|
20
|
-
TypeScript cannot handle type information for `.vue` imports by default, so we replace the `tsc` CLI with `vue-tsc` for type checking. In editors, we need [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) to make the TypeScript language service aware of `.vue` types.
|
|
21
|
-
|
|
22
|
-
## Customize configuration
|
|
23
|
-
|
|
24
|
-
See [Vite Configuration Reference](https://vite.dev/config/).
|
|
25
|
-
|
|
26
|
-
## Project Setup
|
|
27
|
-
|
|
28
|
-
```sh
|
|
29
|
-
pnpm install
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
### Compile and Hot-Reload for Development
|
|
33
|
-
|
|
34
|
-
```sh
|
|
35
|
-
pnpm dev
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
### Type-Check, Compile and Minify for Production
|
|
39
|
-
|
|
40
|
-
```sh
|
|
41
|
-
pnpm build
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
### Lint with [ESLint](https://eslint.org/)
|
|
45
|
-
|
|
46
|
-
```sh
|
|
47
|
-
pnpm lint
|
|
48
|
-
```
|
|
5
|
+
* BtnComp1: 一个按钮组件
|
|
6
|
+
* BtnComp100: 一个按钮组件
|
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import { default as
|
|
2
|
-
|
|
1
|
+
import { default as BtnComp1 } from './TestComp.vue';
|
|
2
|
+
import { default as BtnComp100 } from './BtnComp.vue';
|
|
3
|
+
export { BtnComp1, BtnComp100 };
|