mirror of
https://github.com/youzan/vant.git
synced 2025-10-22 20:04:09 +00:00
docs: add component registration link (#8378)
This commit is contained in:
@@ -6,6 +6,8 @@ Used to select time, support date and time dimensions, usually used with the [Po
|
||||
|
||||
### Install
|
||||
|
||||
Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。
|
||||
|
||||
```js
|
||||
import { createApp } from 'vue';
|
||||
import { DatetimePicker } from 'vant';
|
||||
|
||||
@@ -6,6 +6,8 @@
|
||||
|
||||
### 引入
|
||||
|
||||
通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。
|
||||
|
||||
```js
|
||||
import { createApp } from 'vue';
|
||||
import { DatetimePicker } from 'vant';
|
||||
|
||||
Reference in New Issue
Block a user