diff --git a/one/docs/components/cascader.md b/one/docs/components/cascader.md index c4e05d6..737cf31 100644 --- a/one/docs/components/cascader.md +++ b/one/docs/components/cascader.md @@ -70,7 +70,7 @@ | ``readonly`` | `boolean=` | `false` | 是否为只读状态。 | | ``overlay-class`` | `string | Array | Object=` | - | 参考 [`Overlay`](./overlay) 组件的 [`overlay-class`](./overlay#props-overlay-class) 属性。 | | ``overlay-style`` | `string | Array | Object=` | - | 参考 [`Overlay`](./overlay) 组件的 [`overlay-style`](./overlay#props-overlay-style) 属性。 | -| ``match`` | `(item, keyword, { ancestors }) => boolean | Array<[number, number]>` | - | 支持自定义高亮逻辑, 默认大小写不敏感,参考 [`Autocomplete`](./Autocomplete#自定义搜索逻辑)。 | +| ``match`` | `(item, keyword, { ancestors }) => boolean | [number, number] | Array<[number, number]>` | - | 支持自定义高亮逻辑, 默认大小写不敏感,参考 [`Autocomplete`](./Autocomplete#自定义搜索逻辑)。 | | ``filter`` | `(item, keyword, { ancestors, offsets }) => boolean` | - | 支持自定义搜索命中逻辑,参考 [`Autocomplete`](./Autocomplete#自定义搜索逻辑)。 | ^^^ui diff --git a/one/docs/components/check-button-group.md b/one/docs/components/check-button-group.md index ea65da4..d379a0f 100644 --- a/one/docs/components/check-button-group.md +++ b/one/docs/components/check-button-group.md @@ -53,6 +53,8 @@ | -- | -- | | `s` | 小尺寸样式。 | | `m` | 中尺寸样式。 | +| `simple` | 简单样式。 | +| `stable` | 稳定样式。会给所有按钮添加一个最小宽度以使布局更加稳定,多行之间更容易对齐。 | ^^^ ^^^items diff --git a/one/docs/components/dropdown.md b/one/docs/components/dropdown.md index 4acb2e2..45215b7 100644 --- a/one/docs/components/dropdown.md +++ b/one/docs/components/dropdown.md @@ -57,7 +57,7 @@ | ``disabled`` | `boolean=` | `false` | 是否为禁用状态。 | | ``overlay-class`` | `string | Array | Object=` | - | 参考 [`Overlay`](./overlay) 组件的 [`overlay-class`](./overlay#props-overlay-class) 属性。 | | ``overlay-style`` | `string | Array | Object=` | - | 参考 [`Overlay`](./overlay) 组件的 [`overlay-style`](./overlay#props-overlay-style) 属性。 | -| ``match`` | `(item, keyword, { ancestors }) => boolean | Array<[number, number]>` | - | 支持自定义高亮逻辑, 默认大小写不敏感,参考 [`Autocomplete`](./Autocomplete#自定义搜索逻辑)。 | +| ``match`` | `(item, keyword, { ancestors }) => boolean | [number, number] | Array<[number, number]>` | - | 支持自定义高亮逻辑, 默认大小写不敏感,参考 [`Autocomplete`](./Autocomplete#自定义搜索逻辑)。 | | ``filter`` | `(item, keyword, { ancestors, offsets }) => boolean` | - | 支持自定义搜索命中逻辑,参考 [`Autocomplete`](./Autocomplete#自定义搜索逻辑)。 | ^^^ui diff --git a/one/docs/components/link.md b/one/docs/components/link.md index adee8a3..4ca3bad 100644 --- a/one/docs/components/link.md +++ b/one/docs/components/link.md @@ -49,3 +49,9 @@ | 名称 | 描述 | | -- | -- | | ``click`` | 在 [`to`](#props-to) 属性为空或指定了 `native` 为 `true` 的情况下,点击时触发。回调参数为 `(event)`,`event` 类型为原生 [`Event`](https://developer.mozilla.org/zh-CN/docs/Web/Events/click)。 | + +### 全局配置 + +| 名称 | 类型 | 默认值 | 描述 | +| -- | -- | -- | -- | +| ``link.routerLink`` | `string` | `router-link` | 在路由模式下使用的链接组件名称,用于在 Nuxt.js 等环境下更换为兼容 Vue Router 的实现。 | diff --git a/one/docs/components/radio-button-group.md b/one/docs/components/radio-button-group.md index 3e7de8a..19dccca 100644 --- a/one/docs/components/radio-button-group.md +++ b/one/docs/components/radio-button-group.md @@ -46,6 +46,8 @@ | -- | -- | | `s` | 小尺寸样式。 | | `m` | 中尺寸样式。 | +| `simple` | 简单样式。 | +| `stable` | 稳定样式。会给所有按钮添加一个最小宽度以使布局更加稳定,多行之间更容易对齐。 | ^^^ ^^^items diff --git a/one/docs/components/search-box.md b/one/docs/components/search-box.md index dbc7b31..9683d51 100644 --- a/one/docs/components/search-box.md +++ b/one/docs/components/search-box.md @@ -41,7 +41,7 @@ | ``expanded`` | `boolean=` | `false` | [^expanded] | | ``disabled`` | `boolean=` | `false` | 是否为禁用状态。 | | ``readonly`` | `boolean=` | `false` | 是否为只读状态。 | -| ``match`` | `(item, keyword, { ancestors }) => boolean | Array<[number, number]>` | - | 支持自定义高亮逻辑, 默认大小写不敏感,参考 [`Autocomplete`](./Autocomplete#自定义搜索逻辑)。 | +| ``match`` | `(item, keyword, { ancestors }) => boolean | [number, number] | Array<[number, number]>` | - | 支持自定义高亮逻辑, 默认大小写不敏感,参考 [`Autocomplete`](./Autocomplete#自定义搜索逻辑)。 | | ``filter`` | `(item, keyword, { ancestors, offsets }) => boolean` | - | 支持自定义搜索命中逻辑,参考 [`Autocomplete`](./Autocomplete#自定义搜索逻辑)。 | ^^^ui diff --git a/one/docs/components/select.md b/one/docs/components/select.md index a6f5608..cea5ada 100644 --- a/one/docs/components/select.md +++ b/one/docs/components/select.md @@ -59,7 +59,7 @@ | ``readonly`` | `boolean=` | `false` | 是否为只读状态。 | | ``overlay-class`` | `string | Array | Object=` | - | 参考 [`Overlay`](./overlay) 组件的 [`overlay-class`](./overlay#props-overlay-class) 属性。 | | ``overlay-style`` | `string | Array | Object=` | - | 参考 [`Overlay`](./overlay) 组件的 [`overlay-style`](./overlay#props-overlay-style) 属性。 | -| ``match`` | `(item, keyword, { ancestors }) => boolean | Array<[number, number]>` | - | 支持自定义高亮逻辑, 默认大小写不敏感,参考 [`Autocomplete`](./Autocomplete#自定义搜索逻辑)。 | +| ``match`` | `(item, keyword, { ancestors }) => boolean | [number, number] | Array<[number, number]>` | - | 支持自定义高亮逻辑, 默认大小写不敏感,参考 [`Autocomplete`](./Autocomplete#自定义搜索逻辑)。 | | ``filter`` | `(item, keyword, { ancestors, offsets }) => boolean` | - | 支持自定义搜索命中逻辑,参考 [`Autocomplete`](./Autocomplete#自定义搜索逻辑)。 | ^^^ui diff --git a/one/docs/en-US/components/check-button-group.md b/one/docs/en-US/components/check-button-group.md index a682a81..97f5acf 100644 --- a/one/docs/en-US/components/check-button-group.md +++ b/one/docs/en-US/components/check-button-group.md @@ -29,6 +29,8 @@ Style variants. | -- | -- | | `s` | Small. | | `m` | Medium. | +| `simple` | Simple style. | +| `stable` | Stable width layout. Every button will have a minimal width so that it'll be easier to align buttons across multiple rows. | ^^^ ^^^items diff --git a/one/docs/en-US/components/link.md b/one/docs/en-US/components/link.md index c199fc9..a0d7b41 100644 --- a/one/docs/en-US/components/link.md +++ b/one/docs/en-US/components/link.md @@ -49,3 +49,9 @@ When `target` has a value of `_blank`, a `noopener` token will be automatically | Name | Description | | -- | -- | | ``click`` | Triggered upon clicks when the [`to`](#props-to) prop is falsy or the [`native`](#props-native) prop is `true`. The callback parameter list is `(event)`, where the type of `event` is HTML's native [`Event`](https://developer.mozilla.org/en-US/docs/Web/Events/click). | + +### Configs + +| Key | Type | Default | Description | +| -- | -- | -- | -- | +| ``link.routerLink`` | `string` | `router-link` | The name of the link component used in route mode so that you can replace the default one with a Vue Router-compatible implementation in environments such as Nuxt.js. | diff --git a/one/docs/en-US/components/radio-button-group.md b/one/docs/en-US/components/radio-button-group.md index bb4c8f4..df12305 100644 --- a/one/docs/en-US/components/radio-button-group.md +++ b/one/docs/en-US/components/radio-button-group.md @@ -28,6 +28,8 @@ Style variants. | -- | -- | | `s` | Small. | | `m` | Medium. | +| `simple` | Simple style. | +| `stable` | Stable width layout. Every button will have a minimal width so that it'll be easier to align buttons across multiple rows. | ^^^ ^^^items