Skip to content

Commit 6de5a4f

Browse files
authored
docs(cn): translate posts/v24.md (#60)
docs(cn): translate posts/v24.md
2 parents d68283a + d8de3c1 commit 6de5a4f

File tree

1 file changed

+24
-24
lines changed

1 file changed

+24
-24
lines changed

posts/v24.md

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
# From v2.2 to v2.4
1+
# v2.2 v2.4 {#from-v2-2-to-v2-4}
22

3-
Two weeks later, we released two more version updates, then we broke through **a thousand stars**, thank you for your love of windicss. During which many new features were released and bug fixes. Here is a summary.
3+
两周后,我们发布了两个版本的更新,然后我们突破了 **一千个 star**,感谢你们对 windicss 的喜爱。在此期间发布了许多新特性,并修复了一些 bug。以下是一些总结。
44

5-
## Features
5+
## 特性 {#features}
66

7-
- Support theme function
7+
- 支持主题函数
88

9-
get your configuration values in css
9+
css 中获取配置项的值
1010

1111
```css
1212
/* input */
@@ -19,9 +19,9 @@ Two weeks later, we released two more version updates, then we broke through **a
1919
}
2020
```
2121

22-
- Support layer directive
22+
- 支持 layer 指令
2323

24-
put style to the right position
24+
把样式放在正确的位置
2525

2626
```css
2727
/* input */
@@ -41,7 +41,7 @@ Two weeks later, we released two more version updates, then we broke through **a
4141
}
4242
}
4343
.normal {
44-
margin-right: auto; /* components by default */
44+
margin-right: auto; /* 默认情况下的组件 */
4545
}
4646

4747
/* output */
@@ -62,7 +62,7 @@ Two weeks later, we released two more version updates, then we broke through **a
6262

6363
- Transform api
6464

65-
Replace require with transform let you can import tailwind plugin. For more details, please referer to [windicss/plugins]( https://github.com/windicss/plugins)
65+
transform 替换 require,让你可以导入 tailwind 插件。更多信息,请参阅 [windicss/plugins]( https://github.com/windicss/plugins)
6666

6767
```js
6868
// windi.config.js
@@ -73,14 +73,14 @@ Two weeks later, we released two more version updates, then we broke through **a
7373
// ...
7474
},
7575
plugins: [
76-
transform('plugin-name'), // replace require with transform
76+
transform('plugin-name'), // 用 transform 替换 require
7777
],
7878
}
7979
```
8080

81-
- Support disable cross browser prefixer
81+
- 支持禁用跨浏览器的前缀
8282

83-
You can set `prefixer = false` to disable prefixer
83+
你可以设置 `prefixer = false` 来禁用前缀
8484

8585
```js
8686
// windi.config.js
@@ -92,9 +92,9 @@ Two weeks later, we released two more version updates, then we broke through **a
9292
}
9393
```
9494

95-
- Support nested css
95+
- 支持嵌套的 css
9696

97-
This is actually a bit like less or postcss syntax.
97+
这实际上有点像 less postcss 语法。
9898

9999
```css
100100
/* input */
@@ -119,13 +119,13 @@ Two weeks later, we released two more version updates, then we broke through **a
119119
}
120120
```
121121

122-
- New meta sort method
122+
- 新的元排序方法
123123

124-
We have introduced a new sorting algorithm to sort according to meta information, which allows us to accurately control the location of each utility generated, and to ensure the accuracy of the generated css.
124+
我们引入了一种新的排序算法,根据元信息进行排序,这使我们能够准确地控制所生成的每个工具类的位置,并确保所生成的 css 的准确性。
125125

126-
- support define color with keyword, hexa, hsl, hsla, hwb, srgb.
126+
- 支持使用关键字 hexahslhslahwbsrgb 等来定义颜色。
127127

128-
Now you can use these color types in the configuration file, and windi will convert them to rgb for you.
128+
现在你可以在配置文件中使用这些颜色类型,windi 会将它们转换为 rgb
129129

130130
```js
131131
// windi.config.js
@@ -147,14 +147,14 @@ Two weeks later, we released two more version updates, then we broke through **a
147147
}
148148
```
149149

150-
## New things
150+
## 新事物 {#new-things}
151151

152-
1. New Domain Name, https://windicss.org/, thanks to [@antfu](https://github.com/antfu).
152+
1. 新域名,https://windicss.org/,感谢 [@antfu](https://github.com/antfu)
153153

154-
2. VSCode Extension, https://github.com/windicss/windicss-intellisense
154+
2. VSCode 扩展,https://github.com/windicss/windicss-intellisense
155155

156-
3. Webpack Plugin, https://github.com/windicss/windicss-webpack-plugin, thanks to [@loonpwn](https://github.com/loonpwn)
156+
3. Webpack 插件,https://github.com/windicss/windicss-webpack-plugin,感谢 [@loonpwn](https://github.com/loonpwn)
157157

158-
4. Nuxt Plugin, https://github.com/windicss/nuxt-windicss-module, thanks to [@loonpwn](https://github.com/loonpwn)
158+
4. Nuxt 插件,https://github.com/windicss/nuxt-windicss-module,感谢 [@loonpwn](https://github.com/loonpwn)
159159

160-
5. Community Plugin support. https://github.com/windicss/plugins
160+
5. 社区插件支持,https://github.com/windicss/plugins

0 commit comments

Comments
 (0)