tg-blog 1.0.2 → 1.0.4-alpha1

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 CHANGED
@@ -9,7 +9,8 @@ Demo: TODO
9
9
  #### 1. Install dependencies
10
10
 
11
11
  ```
12
- yarn add tg-blog
12
+ yarn add tg-blog element-plus
13
+ yarn add -D unplugin-vue-components unplugin-auto-import
13
14
  ```
14
15
 
15
16
  #### 2. Import CSS in your `main.ts`
@@ -31,6 +32,26 @@ export default defineConfig({
31
32
  });
32
33
  ```
33
34
 
35
+ #### 3. In your `vite.config.ts`, you shall configure autoimport
36
+
37
+ ```ts
38
+ import AutoImport from 'unplugin-auto-import/vite'
39
+ import Components from 'unplugin-vue-components/vite'
40
+ import {ElementPlusResolver} from "unplugin-vue-components/resolvers";
41
+
42
+ export default defineConfig({
43
+ plugins: [
44
+ vue(),
45
+ AutoImport({
46
+ resolvers: [ElementPlusResolver()],
47
+ }),
48
+ Components({
49
+ resolvers: [ElementPlusResolver()],
50
+ }),
51
+ ],
52
+ });
53
+ ```
54
+
34
55
  #### 4. Import components
35
56
 
36
57
  ```ts