From cdc042a1c13f2e6a4e57d599de932029e20c73b1 Mon Sep 17 00:00:00 2001 From: Justineo Date: Fri, 29 Oct 2021 17:13:10 +0800 Subject: [PATCH] fix: fix refblock render order and typos --- one/build/page.js | 2 +- one/docs/components/breadcrumb.md | 2 +- one/docs/components/link.md | 2 +- one/docs/components/select.md | 4 ++-- one/docs/en-US/components/breadcrumb.md | 2 +- one/docs/en-US/components/dropdown.md | 2 +- one/docs/en-US/components/link.md | 2 +- one/docs/en-US/components/select.md | 7 ++++--- one/docs/en-US/components/uploader.md | 4 ++-- 9 files changed, 14 insertions(+), 13 deletions(-) diff --git a/one/build/page.js b/one/build/page.js index c4f3398..bb73c8d 100644 --- a/one/build/page.js +++ b/one/build/page.js @@ -35,8 +35,8 @@ const renderPage = etpl.compile(PAGE_TPL) const md = remark() .use(anchor) .use(custom) - .use(details) .use(ref) + .use(details) .use(frontmatter) .use(shortcodes) .use(demo) diff --git a/one/docs/components/breadcrumb.md b/one/docs/components/breadcrumb.md index 2b2522d..31d85a4 100644 --- a/one/docs/components/breadcrumb.md +++ b/one/docs/components/breadcrumb.md @@ -93,7 +93,7 @@ :::warning 当使用 Vue.js `2.5.17` 及以下版本时,必须绑定 `slot-scope` 使用。 ::: -^^^^ +^^^ ### 事件 diff --git a/one/docs/components/link.md b/one/docs/components/link.md index 4ca3bad..cfad0d1 100644 --- a/one/docs/components/link.md +++ b/one/docs/components/link.md @@ -54,4 +54,4 @@ | 名称 | 类型 | 默认值 | 描述 | | -- | -- | -- | -- | -| ``link.routerLink`` | `string` | `router-link` | 在路由模式下使用的链接组件名称,用于在 Nuxt.js 等环境下更换为兼容 Vue Router 的实现。 | +| ``link.routerLink`` | `string` | `'router-link'` | 在路由模式下使用的链接组件名称,用于在 Nuxt.js 等环境下更换为兼容 Vue Router 的实现。 | diff --git a/one/docs/components/select.md b/one/docs/components/select.md index cea5ada..02b61c3 100644 --- a/one/docs/components/select.md +++ b/one/docs/components/select.md @@ -197,7 +197,7 @@ 另外,当前选项数据中除了上面描述的字段之外的其它字段也会自动通过 `v-bind` 进行绑定到作用域参数上。 ^^^ -^^^slot-trigger +^^^^slot-trigger 整个下拉触发区域。 默认内容:下拉按钮。 @@ -212,7 +212,6 @@ | `expanded` | `boolean` | 下拉菜单是否展开。 | | `toggle` | `function(force?: boolean): void` | 用于切换下拉菜单展开状态。 | +++ -^^^ ^^^handlers-desc 需要绑定到触发元素上的事件监听器,可以使用 `v-on="handlers"` 统一进行输出。 @@ -221,6 +220,7 @@ 用于绑定 `handlers` 的元素需要支持获取焦点,以使各种键盘交互依然可以正常触发。 ::: ^^^ +^^^^ ^^^slot-selected 选中值渲染区域。 diff --git a/one/docs/en-US/components/breadcrumb.md b/one/docs/en-US/components/breadcrumb.md index 693af62..6b7c151 100644 --- a/one/docs/en-US/components/breadcrumb.md +++ b/one/docs/en-US/components/breadcrumb.md @@ -94,7 +94,7 @@ Separator between adjacent breadcrumb items. Displays a globally configured icon :::warning When using Vue.js version `2.5.17` and below, it's required to bind a `slot-scope`. ::: -^^^^ +^^^ ### Events diff --git a/one/docs/en-US/components/dropdown.md b/one/docs/en-US/components/dropdown.md index a9e8820..2a2f190 100644 --- a/one/docs/en-US/components/dropdown.md +++ b/one/docs/en-US/components/dropdown.md @@ -172,7 +172,7 @@ The entire drop-down trigger area. Displays the dropdown button by default. +++ ^^^ -^^^^handlers-desc +^^^handlers-desc Event listeners that need to be bound to the trigger element, can be output using `v-on="handlers"`. :::tip diff --git a/one/docs/en-US/components/link.md b/one/docs/en-US/components/link.md index a0d7b41..2975632 100644 --- a/one/docs/en-US/components/link.md +++ b/one/docs/en-US/components/link.md @@ -54,4 +54,4 @@ When `target` has a value of `_blank`, a `noopener` token will be automatically | 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. | +| ``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/select.md b/one/docs/en-US/components/select.md index 0555966..b3c4378 100644 --- a/one/docs/en-US/components/select.md +++ b/one/docs/en-US/components/select.md @@ -176,7 +176,7 @@ The entire content area of each option (option without child `options`). Display Additionally, custom properties in current option, apart from the listed ones, will also be passes into the scope object via `v-bind`. ^^^ -^^^slot-trigger +^^^^slot-trigger The entire drop-down trigger area. Displays the select input by default. +++Scope properties @@ -189,15 +189,16 @@ The entire drop-down trigger area. Displays the select input by default. | `expanded` | `boolean` | Whether the dropdown menu is expanded or not. | | `toggle` | `function(force?: boolean): void` | Used to toggle the expanded state of the dropdown menu. | +++ -^^^ -^^^^handlers-desc +^^^handlers-desc Event listeners that need to be bound to the trigger element, can be output using `v-on="handlers"`. :::tip The element used to bind `handlers` needs to support focus acquisition so that various keyboard interactions can still be triggered properly. ::: ^^^ +^^^^ + ### Events diff --git a/one/docs/en-US/components/uploader.md b/one/docs/en-US/components/uploader.md index e2a9a85..4c77548 100644 --- a/one/docs/en-US/components/uploader.md +++ b/one/docs/en-US/components/uploader.md @@ -181,13 +181,13 @@ In image upload mode, it is used to customize the actions on the floating toolba | ``uploading`` | The area of a single image being uploaded in image upload mode. The scope argument is the same as the [`file`](#slots-file) slot. | | ``failure`` | The area of a single image that failed to upload in image upload mode. The scope argument is the same as the [`file`](#slots-file) slot. | -^^^^button-label +^^^button-label The content in the upload button. Default content: file upload for prompt to select a file, and image upload for upload image icon. ^^^ -^^^^file +^^^file Single file area to customize the file content. +++ scope parameters