mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-03-13 13:59:04 +08:00
2.25.3
This commit is contained in:
parent
10a895c097
commit
c0eebfe700
@ -1,6 +1,6 @@
|
||||
# CHANGELOG
|
||||
|
||||
## NEXT_VERSION
|
||||
## 2.25.3
|
||||
|
||||
### Fixes
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
# CHANGELOG
|
||||
|
||||
## NEXT_VERSION
|
||||
## 2.25.3
|
||||
|
||||
### Fixes
|
||||
|
||||
|
@ -42,23 +42,23 @@ Set `n-config-provider`'s `date-locale` prop to `dateEnUS` imported from naive-u
|
||||
|
||||
PRs are welcomed for locales that are not supported yet!
|
||||
|
||||
| Language | Config | Date config | Version |
|
||||
| ------------------------- | ------ | ----------- | ------------ |
|
||||
| English | enUS | dateEnUS | |
|
||||
| Japanese | jaJP | dateJaJP | |
|
||||
| Russian | ruRU | dateRuRU | |
|
||||
| Ukrainian | ukUA | dateUkUA | |
|
||||
| Chinese (Simplified) | zhCN | dateZhCN | |
|
||||
| Chinese (Traditional) | zhTW | dateZhTW | |
|
||||
| German (Germany) | deDE | dateDeDe | |
|
||||
| Norwegian Bokmål (Norway) | nbNO | dateNbNO | |
|
||||
| French | frFR | dateFrFR | |
|
||||
| Spanish (Argentina) | esAR | dateEsAR | 2.24.2 |
|
||||
| Italiano | itIT | dateItIT | 2.24.2 |
|
||||
| English (British) | enGB | dateEnGB | 2.25.1 |
|
||||
| Polish (Poland) | plPL | datePlPL | 2.25.2 |
|
||||
| Esperanto | eo | dateEo | 2.25.2 |
|
||||
| Slovak | skSK | dateSkSK | NEXT_VERSION |
|
||||
| Language | Config | Date config | Version |
|
||||
| ------------------------- | ------ | ----------- | ------- |
|
||||
| English | enUS | dateEnUS | |
|
||||
| Japanese | jaJP | dateJaJP | |
|
||||
| Russian | ruRU | dateRuRU | |
|
||||
| Ukrainian | ukUA | dateUkUA | |
|
||||
| Chinese (Simplified) | zhCN | dateZhCN | |
|
||||
| Chinese (Traditional) | zhTW | dateZhTW | |
|
||||
| German (Germany) | deDE | dateDeDe | |
|
||||
| Norwegian Bokmål (Norway) | nbNO | dateNbNO | |
|
||||
| French | frFR | dateFrFR | |
|
||||
| Spanish (Argentina) | esAR | dateEsAR | 2.24.2 |
|
||||
| Italiano | itIT | dateItIT | 2.24.2 |
|
||||
| English (British) | enGB | dateEnGB | 2.25.1 |
|
||||
| Polish (Poland) | plPL | datePlPL | 2.25.2 |
|
||||
| Esperanto | eo | dateEo | 2.25.2 |
|
||||
| Slovak | skSK | dateSkSK | 2.25.3 |
|
||||
|
||||
## Customize the existing locale
|
||||
|
||||
|
@ -42,24 +42,24 @@ Naive-ui 通过使用 `n-config-provider` 调整语言,默认情况下所有
|
||||
|
||||
欢迎提交 PR 来支持尚未支持的语言。
|
||||
|
||||
| 语言 | 配置 | 日期配置 | 版本 |
|
||||
| ----------------- | ---- | -------- | ------------ |
|
||||
| 英语 | enUS | dateEnUS | |
|
||||
| 日语 | jaJP | dateJaJP | |
|
||||
| 俄罗斯语 | ruRU | dateRuRU | |
|
||||
| 乌克兰语 | ukUA | dateUkUA | |
|
||||
| 简体中文 | zhCN | dateZhCN | |
|
||||
| 繁体中文 | zhTW | dateZhTW | |
|
||||
| 印度尼西亚 | idID | dateIdID | |
|
||||
| 德语 | deDE | dateDeDe | |
|
||||
| 书面挪威语 | nbNO | dateNbNO | |
|
||||
| 法语 | frFR | dateFrFR | |
|
||||
| 西班牙语(阿根廷) | esAR | dateEsAR | 2.24.2 |
|
||||
| 意大利语 | itIT | dateItIT | 2.24.2 |
|
||||
| 英国英语 | enGB | dateEnGB | 2.25.1 |
|
||||
| 波兰语(波兰) | plPL | datePlPL | 2.25.2 |
|
||||
| 世界语 | eo | dateEo | 2.25.2 |
|
||||
| 斯洛伐克语 | skSK | dateSkSK | NEXT_VERSION |
|
||||
| 语言 | 配置 | 日期配置 | 版本 |
|
||||
| ----------------- | ---- | -------- | ------ |
|
||||
| 英语 | enUS | dateEnUS | |
|
||||
| 日语 | jaJP | dateJaJP | |
|
||||
| 俄罗斯语 | ruRU | dateRuRU | |
|
||||
| 乌克兰语 | ukUA | dateUkUA | |
|
||||
| 简体中文 | zhCN | dateZhCN | |
|
||||
| 繁体中文 | zhTW | dateZhTW | |
|
||||
| 印度尼西亚 | idID | dateIdID | |
|
||||
| 德语 | deDE | dateDeDe | |
|
||||
| 书面挪威语 | nbNO | dateNbNO | |
|
||||
| 法语 | frFR | dateFrFR | |
|
||||
| 西班牙语(阿根廷) | esAR | dateEsAR | 2.24.2 |
|
||||
| 意大利语 | itIT | dateItIT | 2.24.2 |
|
||||
| 英国英语 | enGB | dateEnGB | 2.25.1 |
|
||||
| 波兰语(波兰) | plPL | datePlPL | 2.25.2 |
|
||||
| 世界语 | eo | dateEo | 2.25.2 |
|
||||
| 斯洛伐克语 | skSK | dateSkSK | 2.25.3 |
|
||||
|
||||
## 在现有国际化基础上调整
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "naive-ui",
|
||||
"version": "2.25.2",
|
||||
"version": "2.25.3",
|
||||
"description": "A Vue 3 Component Library. Fairly Complete, Customizable Themes, Uses TypeScript, Not Too Slow",
|
||||
"main": "lib/index.js",
|
||||
"module": "es/index.js",
|
||||
|
@ -28,7 +28,7 @@ focus.vue
|
||||
| check-strategy | `string` | `'all'` | The way to show checked options. `all` means showing all checked node. `parent` means showing all checked parent node when all child node are checked (not working in single select mode). `child` means showing all child node. | |
|
||||
| children-field | `string` | `'children'` | The children field in `CascaderOption`. | |
|
||||
| clearable | `boolean` | `false` | Whether the cascader is clearable. | |
|
||||
| clear-filter-after-select | `boolean` | `true` | When multiple and filter is true, whether to clear filter keyword after select an option. | NEXT_VERSION |
|
||||
| clear-filter-after-select | `boolean` | `true` | When multiple and filter is true, whether to clear filter keyword after select an option. | 2.25.3 |
|
||||
| default-value | `string \| number \| Array<number \| string> \| null` | `null` | Data selected by default if no value is set. | |
|
||||
| disabled | `boolean` | `false` | Whether to disable the cascader. | |
|
||||
| expand-trigger | `'click' \| 'hover'` | `'click'` | If `remote` is set, `'hover'` won't work. | |
|
||||
|
@ -28,7 +28,7 @@ focus.vue
|
||||
| check-strategy | `string` | `'all'` | 设置勾选策略来指定显示的勾选节点,`all` 表示显示全部选中节点;`parent` 表示只显示父节点(当父节点下所有子节点都选中时,对于单选无效);`child` 表示只显示子节点; | |
|
||||
| children-field | `string` | `'children'` | 替代 `CascaderOption` 中的 children 字段名 | |
|
||||
| clearable | `boolean` | `false` | 值是否可清除 | |
|
||||
| clear-filter-after-select | `boolean` | `true` | 是否在可过滤和多选的情况下选中一个选项后保留当前的搜索关键词 | NEXT_VERSION |
|
||||
| clear-filter-after-select | `boolean` | `true` | 是否在可过滤和多选的情况下选中一个选项后保留当前的搜索关键词 | 2.25.3 |
|
||||
| default-value | `string \| number \| Array<number \| string> \| null` | `null` | 级联菜单默认选中的数据 | |
|
||||
| disabled | `boolean` | `false` | 是否禁用 | |
|
||||
| expand-trigger | `'click' \| 'hover'` | `'click'` | 在 `remote` 被设定时 `'hover'` 不生效 | |
|
||||
|
@ -12,7 +12,7 @@ When `span` is 0, `n-grid-item` won't be displayed.
|
||||
0 ~ 400px: hidden<br>
|
||||
400 ~ 600px: span 1<br>
|
||||
600 ~ 800px: span 2<br>
|
||||
800px 以上: span 3
|
||||
800px +: span 3
|
||||
</div>
|
||||
</n-grid-item>
|
||||
<n-grid-item>
|
||||
|
@ -40,7 +40,7 @@ icon.vue
|
||||
| Name | Parameters | Description | Version |
|
||||
| --- | --- | --- | --- |
|
||||
| checked | `()` | Content when the switch is checked. | |
|
||||
| checked-icon | `()` | Icon of switch button when checked. | NEXT_VERSION |
|
||||
| icon | `()` | Icon of switch button. | NEXT_VERSION |
|
||||
| checked-icon | `()` | Icon of switch button when checked. | 2.25.3 |
|
||||
| icon | `()` | Icon of switch button. | 2.25.3 |
|
||||
| unchecked | `()` | Content when the switch is unchecked. | |
|
||||
| unchecked-icon | `()` | Icon of switch button when unchecked. | NEXT_VERSION |
|
||||
| unchecked-icon | `()` | Icon of switch button when unchecked. | 2.25.3 |
|
||||
|
@ -35,10 +35,10 @@ icon.vue
|
||||
|
||||
### Switch Slots
|
||||
|
||||
| 名称 | 参数 | 说明 | 版本 |
|
||||
| -------------- | ---- | ---------------------- | ------------ |
|
||||
| checked | `()` | 开关激活时的内容 | |
|
||||
| checked-icon | `()` | 开关按钮选中时的图标 | NEXT_VERSION |
|
||||
| icon | `()` | 开关按钮的图标 | NEXT_VERSION |
|
||||
| unchecked | `()` | 开关关闭时的内容 | |
|
||||
| unchecked-icon | `()` | 开关按钮未选中时的图标 | NEXT_VERSION |
|
||||
| 名称 | 参数 | 说明 | 版本 |
|
||||
| -------------- | ---- | ---------------------- | ------ |
|
||||
| checked | `()` | 开关激活时的内容 | |
|
||||
| checked-icon | `()` | 开关按钮选中时的图标 | 2.25.3 |
|
||||
| icon | `()` | 开关按钮的图标 | 2.25.3 |
|
||||
| unchecked | `()` | 开关关闭时的内容 | |
|
||||
| unchecked-icon | `()` | 开关按钮未选中时的图标 | 2.25.3 |
|
||||
|
@ -26,7 +26,7 @@ debug.vue
|
||||
| check-strategy | `string` | `'all'` | How to display selected nodes when parents and children are selected. | |
|
||||
| children-field | `string` | `'children'` | The children property to use for `TreeSelectOption`'s. | |
|
||||
| clearable | `boolean` | `false` | Whether the selection is clearable. | |
|
||||
| clear-filter-after-select | `boolean` | `true` | When multiple and filter is true, whether to clear filter keyword after select an option. | NEXT_VERSION |
|
||||
| clear-filter-after-select | `boolean` | `true` | When multiple and filter is true, whether to clear filter keyword after select an option. | 2.25.3 |
|
||||
| consistent-menu-width | `boolean` | `true` | Force the widths of selection input and menu to be equal. \*This will disable virtual scrolling. | |
|
||||
| default-value | `string \| number \| Array<string \| number> \| null` | `null` | Selected key (or keys when `multiple`) by default. | |
|
||||
| default-expand-all | `boolean` | `false` | Expand all nodes by default. | |
|
||||
|
@ -27,7 +27,7 @@ debug.vue
|
||||
| check-strategy | `string` | `'all'` | 设置勾选策略来指定显示的勾选节点,`all` 表示显示全部选中节点;`parent` 表示只显示父节点(当父节点下所有子节点都选中时);`child` 表示只显示子节点 | |
|
||||
| children-field | `string` | `'children'` | 替代 `TreeSelectOption` 中的 children 字段名 | |
|
||||
| clearable | `boolean` | `false` | 是否可清除 | |
|
||||
| clear-filter-after-select | `boolean` | `true` | 是否在可过滤和多选的情况下选中一个选项后保留当前的搜索关键词 | NEXT_VERSION |
|
||||
| clear-filter-after-select | `boolean` | `true` | 是否在可过滤和多选的情况下选中一个选项后保留当前的搜索关键词 | 2.25.3 |
|
||||
| consistent-menu-width | `boolean` | `true` | 是否使菜单宽度和输入框一致,打开会禁用虚拟滚动 | |
|
||||
| default-value | `string \| number \| Array<string \| number> \| null` | `null` | 默认选中的 key | |
|
||||
| default-expand-all | `boolean` | `false` | 默认展开全部 | |
|
||||
|
@ -1 +1 @@
|
||||
export default '2.25.2'
|
||||
export default '2.25.3'
|
||||
|
@ -15,33 +15,33 @@ fullscreen.vue
|
||||
|
||||
| Name | Type | Default | Description | Version |
|
||||
| --- | --- | --- | --- | --- |
|
||||
| content | `string` | `undefined` | Content of watermark. | NEXT_VERSION |
|
||||
| cross | `boolean` | `false` | Whether to show watermark at cross position. | NEXT_VERSION |
|
||||
| debug | `boolean` | `false` | Whether to show debug grid. | NEXT_VERSION |
|
||||
| font-size | `number` | `14` | Font size. | NEXT_VERSION |
|
||||
| font-family | `string` | `undefined` | Font family. | NEXT_VERSION |
|
||||
| font-style | `` 'normal' \| 'italic' \| `oblique ${number}deg` `` | `normal` | Font style. | NEXT_VERSION |
|
||||
| font-variant | `string` | `''` | Font variant. | NEXT_VERSION |
|
||||
| font-weight | `number` | `400` | Font weight. | NEXT_VERSION |
|
||||
| font-color | `string` | `rgba(128, 128, 128, .3)` | Font color. | NEXT_VERSION |
|
||||
| fullscreen | `boolean` | `false` | Whether to show fullscreen watermark. | NEXT_VERSION |
|
||||
| line-height | `number` | `14` | Line height. | NEXT_VERSION |
|
||||
| height | `number` | `32` | Height of watermark area. | NEXT_VERSION |
|
||||
| image | `string` | `undefined` | The URI of watermark image. | NEXT_VERSION |
|
||||
| image-height | `number` | `undefined` | Image height. | NEXT_VERSION |
|
||||
| image-opacity | `number` | `1` | Image opacity. | NEXT_VERSION |
|
||||
| image-width | `number` | `undefined` | Image width. | NEXT_VERSION |
|
||||
| rotate | `number` | `0` | Rotate degree | NEXT_VERSION |
|
||||
| selectable | `boolean` | `true` | Whether content covered by watermark is selectable. | NEXT_VERSION |
|
||||
| width | `number` | `32` | Width of watermark area. | NEXT_VERSION |
|
||||
| x-gap | `number` | `0` | Horizontal gap. | NEXT_VERSION |
|
||||
| x-offset | `number` | `0` | Horizontal offset. | NEXT_VERSION |
|
||||
| y-gap | `number` | `0` | Vertical gap. | NEXT_VERSION |
|
||||
| y-offset | `number` | `0` | Vertical offset. | NEXT_VERSION |
|
||||
| z-index | `number` | `10` | Z index of watermark. | NEXT_VERSION |
|
||||
| content | `string` | `undefined` | Content of watermark. | 2.25.3 |
|
||||
| cross | `boolean` | `false` | Whether to show watermark at cross position. | 2.25.3 |
|
||||
| debug | `boolean` | `false` | Whether to show debug grid. | 2.25.3 |
|
||||
| font-size | `number` | `14` | Font size. | 2.25.3 |
|
||||
| font-family | `string` | `undefined` | Font family. | 2.25.3 |
|
||||
| font-style | `` 'normal' \| 'italic' \| `oblique ${number}deg` `` | `normal` | Font style. | 2.25.3 |
|
||||
| font-variant | `string` | `''` | Font variant. | 2.25.3 |
|
||||
| font-weight | `number` | `400` | Font weight. | 2.25.3 |
|
||||
| font-color | `string` | `rgba(128, 128, 128, .3)` | Font color. | 2.25.3 |
|
||||
| fullscreen | `boolean` | `false` | Whether to show fullscreen watermark. | 2.25.3 |
|
||||
| line-height | `number` | `14` | Line height. | 2.25.3 |
|
||||
| height | `number` | `32` | Height of watermark area. | 2.25.3 |
|
||||
| image | `string` | `undefined` | The URI of watermark image. | 2.25.3 |
|
||||
| image-height | `number` | `undefined` | Image height. | 2.25.3 |
|
||||
| image-opacity | `number` | `1` | Image opacity. | 2.25.3 |
|
||||
| image-width | `number` | `undefined` | Image width. | 2.25.3 |
|
||||
| rotate | `number` | `0` | Rotate degree | 2.25.3 |
|
||||
| selectable | `boolean` | `true` | Whether content covered by watermark is selectable. | 2.25.3 |
|
||||
| width | `number` | `32` | Width of watermark area. | 2.25.3 |
|
||||
| x-gap | `number` | `0` | Horizontal gap. | 2.25.3 |
|
||||
| x-offset | `number` | `0` | Horizontal offset. | 2.25.3 |
|
||||
| y-gap | `number` | `0` | Vertical gap. | 2.25.3 |
|
||||
| y-offset | `number` | `0` | Vertical offset. | 2.25.3 |
|
||||
| z-index | `number` | `10` | Z index of watermark. | 2.25.3 |
|
||||
|
||||
### Watermark Slots
|
||||
|
||||
| Name | Parameters | Description | Version |
|
||||
| ------- | ---------- | ------------------------ | ------------ |
|
||||
| default | `()` | something with watermark | NEXT_VERSION |
|
||||
| Name | Parameters | Description | Version |
|
||||
| ------- | ---------- | ------------------------ | ------- |
|
||||
| default | `()` | something with watermark | 2.25.3 |
|
||||
|
@ -16,33 +16,33 @@ image.vue
|
||||
|
||||
| 名称 | 类型 | 默认值 | 说明 | 版本 |
|
||||
| --- | --- | --- | --- | --- |
|
||||
| content | `string` | `undefined` | 水印文本 | NEXT_VERSION |
|
||||
| cross | `boolean` | `false` | 是否跨越边界显示 | NEXT_VERSION |
|
||||
| debug | `boolean` | `false` | 是否显示调试信息 | NEXT_VERSION |
|
||||
| font-size | `number` | `14` | 字体大小 | NEXT_VERSION |
|
||||
| font-family | `string` | `undefined` | 字体族 | NEXT_VERSION |
|
||||
| font-style | `` 'normal' \| 'italic' \| `oblique ${number}deg` `` | `normal` | 字体风格 | NEXT_VERSION |
|
||||
| font-variant | `string` | `''` | 字型 | NEXT_VERSION |
|
||||
| font-weight | `number` | `400` | 字重 | NEXT_VERSION |
|
||||
| font-color | `string` | `rgba(128, 128, 128, .3)` | 字体颜色 | NEXT_VERSION |
|
||||
| fullscreen | `boolean` | `false` | 是否展示全屏 | NEXT_VERSION |
|
||||
| line-height | `number` | `14` | 行高 | NEXT_VERSION |
|
||||
| height | `number` | `32` | 高度 | NEXT_VERSION |
|
||||
| image | `string` | `undefined` | 图片路径 | NEXT_VERSION |
|
||||
| image-height | `number` | `undefined` | 图片高度 | NEXT_VERSION |
|
||||
| image-opacity | `number` | `1` | 图片不透明度 | NEXT_VERSION |
|
||||
| image-width | `number` | `undefined` | 图片宽度 | NEXT_VERSION |
|
||||
| rotate | `number` | `0` | 旋转角度 | NEXT_VERSION |
|
||||
| selectable | `boolean` | `true` | 被水印覆盖的内容是否可选中 | NEXT_VERSION |
|
||||
| width | `number` | `32` | 宽度 | NEXT_VERSION |
|
||||
| x-gap | `number` | `0` | x 轴间隔 | NEXT_VERSION |
|
||||
| x-offset | `number` | `0` | x 轴偏移 | NEXT_VERSION |
|
||||
| y-gap | `number` | `0` | y 轴间隔 | NEXT_VERSION |
|
||||
| y-offset | `number` | `0` | y 轴偏移 | NEXT_VERSION |
|
||||
| z-index | `number` | `10` | z 轴高度 | NEXT_VERSION |
|
||||
| content | `string` | `undefined` | 水印文本 | 2.25.3 |
|
||||
| cross | `boolean` | `false` | 是否跨越边界显示 | 2.25.3 |
|
||||
| debug | `boolean` | `false` | 是否显示调试信息 | 2.25.3 |
|
||||
| font-size | `number` | `14` | 字体大小 | 2.25.3 |
|
||||
| font-family | `string` | `undefined` | 字体族 | 2.25.3 |
|
||||
| font-style | `` 'normal' \| 'italic' \| `oblique ${number}deg` `` | `normal` | 字体风格 | 2.25.3 |
|
||||
| font-variant | `string` | `''` | 字型 | 2.25.3 |
|
||||
| font-weight | `number` | `400` | 字重 | 2.25.3 |
|
||||
| font-color | `string` | `rgba(128, 128, 128, .3)` | 字体颜色 | 2.25.3 |
|
||||
| fullscreen | `boolean` | `false` | 是否展示全屏 | 2.25.3 |
|
||||
| line-height | `number` | `14` | 行高 | 2.25.3 |
|
||||
| height | `number` | `32` | 高度 | 2.25.3 |
|
||||
| image | `string` | `undefined` | 图片路径 | 2.25.3 |
|
||||
| image-height | `number` | `undefined` | 图片高度 | 2.25.3 |
|
||||
| image-opacity | `number` | `1` | 图片不透明度 | 2.25.3 |
|
||||
| image-width | `number` | `undefined` | 图片宽度 | 2.25.3 |
|
||||
| rotate | `number` | `0` | 旋转角度 | 2.25.3 |
|
||||
| selectable | `boolean` | `true` | 被水印覆盖的内容是否可选中 | 2.25.3 |
|
||||
| width | `number` | `32` | 宽度 | 2.25.3 |
|
||||
| x-gap | `number` | `0` | x 轴间隔 | 2.25.3 |
|
||||
| x-offset | `number` | `0` | x 轴偏移 | 2.25.3 |
|
||||
| y-gap | `number` | `0` | y 轴间隔 | 2.25.3 |
|
||||
| y-offset | `number` | `0` | y 轴偏移 | 2.25.3 |
|
||||
| z-index | `number` | `10` | z 轴高度 | 2.25.3 |
|
||||
|
||||
### Watermark Slots
|
||||
|
||||
| 名称 | 参数 | 说明 | 版本 |
|
||||
| ------- | ---- | -------------- | ------------ |
|
||||
| default | `()` | 水印覆盖的内容 | NEXT_VERSION |
|
||||
| 名称 | 参数 | 说明 | 版本 |
|
||||
| ------- | ---- | -------------- | ------ |
|
||||
| default | `()` | 水印覆盖的内容 | 2.25.3 |
|
||||
|
Loading…
Reference in New Issue
Block a user