@limeui/unocss-preset 0.0.2 → 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/package.json +1 -1
- package/readme.md +15 -3
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"id": "lime-unocss-preset",
|
|
3
3
|
"name": "@limeui/unocss-preset",
|
|
4
4
|
"displayName": "lime-unocss-preset - UnoCSS 预设",
|
|
5
|
-
"version": "0.0.
|
|
5
|
+
"version": "0.0.3",
|
|
6
6
|
"description": "让 UnoCSS 支持 uni-app 和 uni-app x,提供平台条件样式等特性",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"main": "./dist/index.js",
|
package/readme.md
CHANGED
|
@@ -13,16 +13,25 @@ UnoCSS preset for uni-app,支持 uni-app 和 uni-app x。
|
|
|
13
13
|
|
|
14
14
|
## 安装
|
|
15
15
|
|
|
16
|
-
###
|
|
16
|
+
### 方式一:通过 npm 安装
|
|
17
17
|
|
|
18
18
|
```bash
|
|
19
|
-
npm install unocss
|
|
19
|
+
npm install unocss @limeui/unocss-preset
|
|
20
|
+
# 或
|
|
21
|
+
yarn add unocss @limeui/unocss-preset
|
|
22
|
+
# 或
|
|
23
|
+
pnpm add unocss @limeui/unocss-preset
|
|
20
24
|
```
|
|
21
25
|
|
|
22
|
-
###
|
|
26
|
+
### 方式二:通过 uni-app 插件市场安装
|
|
23
27
|
|
|
24
28
|
在 uni-app 插件市场中搜索并导入 `lime-unocss-preset`。
|
|
25
29
|
|
|
30
|
+
```bash
|
|
31
|
+
# 同时需要安装 unocss
|
|
32
|
+
npm install unocss
|
|
33
|
+
```
|
|
34
|
+
|
|
26
35
|
## 使用
|
|
27
36
|
|
|
28
37
|
本配置基于 HBuilderX 开发环境。
|
|
@@ -76,6 +85,9 @@ import 'virtual:uno.css'
|
|
|
76
85
|
|
|
77
86
|
```typescript
|
|
78
87
|
import { defineConfig } from 'unocss'
|
|
88
|
+
// 通过 npm 安装时使用
|
|
89
|
+
// import { presetUnix } from '@limeui/unocss-preset'
|
|
90
|
+
// 通过 uni-app 插件市场安装时使用
|
|
79
91
|
import { presetUnix } from './uni_modules/lime-unocss-preset'
|
|
80
92
|
|
|
81
93
|
export default defineConfig({
|