@neatui/nuxt 1.0.1 → 1.0.2
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/IMPORT_GUIDE.md +5 -5
- package/USAGE.md +3 -3
- package/package.json +3 -15
- package/src/index.ts +7 -4
package/IMPORT_GUIDE.md
CHANGED
@@ -33,8 +33,8 @@ const city = ref('')
|
|
33
33
|
</template>
|
34
34
|
|
35
35
|
<script setup>
|
36
|
-
//
|
37
|
-
import { Textarea, Input, Select } from '@neatui/nuxt
|
36
|
+
// 直接从包导入,就像普通Vue组件库一样
|
37
|
+
import { Textarea, Input, Select } from '@neatui/nuxt'
|
38
38
|
|
39
39
|
const content = ref('')
|
40
40
|
const name = ref('')
|
@@ -74,7 +74,7 @@ import {
|
|
74
74
|
MoreSelect, // 更多选择
|
75
75
|
SelectTags, // 标签选择
|
76
76
|
// ... 更多组件
|
77
|
-
} from '@neatui/nuxt
|
77
|
+
} from '@neatui/nuxt'
|
78
78
|
```
|
79
79
|
|
80
80
|
### 加载器组件
|
@@ -86,7 +86,7 @@ import {
|
|
86
86
|
LimitLoader, // 限制加载器
|
87
87
|
MoveLoader, // 移动加载器
|
88
88
|
LayerLoader, // 层级加载器
|
89
|
-
} from '@neatui/nuxt
|
89
|
+
} from '@neatui/nuxt'
|
90
90
|
```
|
91
91
|
|
92
92
|
### 工具组件
|
@@ -96,7 +96,7 @@ import {
|
|
96
96
|
FormDraftsView, // 表单草稿视图
|
97
97
|
MoreTools, // 更多工具
|
98
98
|
Pagination, // 分页组件
|
99
|
-
} from '@neatui/nuxt
|
99
|
+
} from '@neatui/nuxt'
|
100
100
|
```
|
101
101
|
|
102
102
|
## 🔧 配置说明
|
package/USAGE.md
CHANGED
@@ -171,7 +171,7 @@ const formConfig = [
|
|
171
171
|
|
172
172
|
### 方式2: 手动导入
|
173
173
|
|
174
|
-
|
174
|
+
如果不想使用自动导入,可以直接导入组件:
|
175
175
|
|
176
176
|
```vue
|
177
177
|
<template>
|
@@ -183,8 +183,8 @@ const formConfig = [
|
|
183
183
|
</template>
|
184
184
|
|
185
185
|
<script setup>
|
186
|
-
//
|
187
|
-
import { Textarea, Input, Select } from '@neatui/nuxt
|
186
|
+
// 直接从包导入组件
|
187
|
+
import { Textarea, Input, Select } from '@neatui/nuxt'
|
188
188
|
|
189
189
|
const content = ref('')
|
190
190
|
const name = ref('')
|
package/package.json
CHANGED
@@ -1,21 +1,9 @@
|
|
1
1
|
{
|
2
2
|
"name": "@neatui/nuxt",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.2",
|
4
4
|
"description": "NeatUI component library for Nuxt 3",
|
5
|
-
"main": "./src/
|
6
|
-
"types": "./src/
|
7
|
-
"exports": {
|
8
|
-
".": {
|
9
|
-
"types": "./src/module.ts",
|
10
|
-
"import": "./src/module.ts",
|
11
|
-
"require": "./src/module.ts"
|
12
|
-
},
|
13
|
-
"./components": {
|
14
|
-
"types": "./src/index.ts",
|
15
|
-
"import": "./src/index.ts",
|
16
|
-
"require": "./src/index.ts"
|
17
|
-
}
|
18
|
-
},
|
5
|
+
"main": "./src/index.ts",
|
6
|
+
"types": "./src/index.ts",
|
19
7
|
"license": "MIT",
|
20
8
|
"author": "xiaojunbo",
|
21
9
|
"keywords": ["nuxt", "nuxt-module", "vue", "ui", "components"],
|
package/src/index.ts
CHANGED
@@ -1,10 +1,13 @@
|
|
1
|
-
//
|
2
|
-
export
|
3
|
-
export * from './utils/theme';
|
1
|
+
// Nuxt模块 (默认导出)
|
2
|
+
export { default } from './module'
|
4
3
|
|
5
|
-
//
|
4
|
+
// 组件导出
|
6
5
|
export * from './components/basic';
|
7
6
|
export * from './components/display';
|
8
7
|
export * from './components/form';
|
9
8
|
export * from './components/loader';
|
10
9
|
export * from './components/tools';
|
10
|
+
|
11
|
+
// 数据和工具
|
12
|
+
export * from './store/frame';
|
13
|
+
export * from './utils/theme';
|