style: format demo
parent
d18944d8eb
commit
b5d4dfd30f
|
@ -8,7 +8,7 @@
|
||||||
The simplest usage.
|
The simplest usage.
|
||||||
</us>
|
</us>
|
||||||
|
|
||||||
```html
|
```tpl
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<a-affix :offsetTop="this.top">
|
<a-affix :offsetTop="this.top">
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
Callback with affixed state.
|
Callback with affixed state.
|
||||||
</us>
|
</us>
|
||||||
|
|
||||||
```html
|
```tpl
|
||||||
<template>
|
<template>
|
||||||
<a-affix :offsetTop="120" @change="change">
|
<a-affix :offsetTop="120" @change="change">
|
||||||
<a-button>120px to affix top</a-button>
|
<a-button>120px to affix top</a-button>
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
Set a `target` for 'Affix', which is listen to scroll event of target element (default is `window`).
|
Set a `target` for 'Affix', which is listen to scroll event of target element (default is `window`).
|
||||||
</us>
|
</us>
|
||||||
|
|
||||||
```html
|
```tpl
|
||||||
<template>
|
<template>
|
||||||
<div id="components-affix-demo-target" class="scrollable-container" ref="container">
|
<div id="components-affix-demo-target" class="scrollable-container" ref="container">
|
||||||
<div class="background">
|
<div class="background">
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
Display Alert as a banner at top of page.
|
Display Alert as a banner at top of page.
|
||||||
</us>
|
</us>
|
||||||
|
|
||||||
```html
|
```tpl
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<a-alert message="Warning text" banner />
|
<a-alert message="Warning text" banner />
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
The simplest usage for short messages.
|
The simplest usage for short messages.
|
||||||
</us>
|
</us>
|
||||||
|
|
||||||
```html
|
```tpl
|
||||||
<template>
|
<template>
|
||||||
<a-alert message="Success Text" type="success" />
|
<a-alert message="Success Text" type="success" />
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
To show close button.
|
To show close button.
|
||||||
</us>
|
</us>
|
||||||
|
|
||||||
```html
|
```tpl
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<a-alert
|
<a-alert
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
Replace the default icon with customized text.
|
Replace the default icon with customized text.
|
||||||
</us>
|
</us>
|
||||||
|
|
||||||
```html
|
```tpl
|
||||||
<template>
|
<template>
|
||||||
<a-alert message="Info Text" type="info" closeText="Close Now" />
|
<a-alert message="Info Text" type="info" closeText="Close Now" />
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
Decent icon make information more clear and more friendly.
|
Decent icon make information more clear and more friendly.
|
||||||
</us>
|
</us>
|
||||||
|
|
||||||
```html
|
```tpl
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<a-alert message="showIcon = false" type="success">
|
<a-alert message="showIcon = false" type="success">
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
Additional description for alert message.
|
Additional description for alert message.
|
||||||
</us>
|
</us>
|
||||||
|
|
||||||
```html
|
```tpl
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<a-alert message="Success Text" type="success">
|
<a-alert message="Success Text" type="success">
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
Decent icon make information more clear and more friendly.
|
Decent icon make information more clear and more friendly.
|
||||||
</us>
|
</us>
|
||||||
|
|
||||||
```html
|
```tpl
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<a-alert message="Success Tips" type="success" showIcon />
|
<a-alert message="Success Tips" type="success" showIcon />
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
Smoothly and unaffectedly unmount Alert.
|
Smoothly and unaffectedly unmount Alert.
|
||||||
</us>
|
</us>
|
||||||
|
|
||||||
```html
|
```tpl
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<a-alert
|
<a-alert
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
There are 4 types of Alert: `success`, `info`, `warning`, `error`.
|
There are 4 types of Alert: `success`, `info`, `warning`, `error`.
|
||||||
</us>
|
</us>
|
||||||
|
|
||||||
```html
|
```tpl
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<a-alert message="Success Text" type="success" />
|
<a-alert message="Success Text" type="success" />
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
The simplest usage.
|
The simplest usage.
|
||||||
</us>
|
</us>
|
||||||
|
|
||||||
```html
|
```tpl
|
||||||
<template>
|
<template>
|
||||||
<a-anchor>
|
<a-anchor>
|
||||||
<a-anchor-link href="#components-anchor-demo-basic" title="Basic demo" />
|
<a-anchor-link href="#components-anchor-demo-basic" title="Basic demo" />
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
Clicking on an anchor does not record history.
|
Clicking on an anchor does not record history.
|
||||||
</us>
|
</us>
|
||||||
|
|
||||||
```html
|
```tpl
|
||||||
<template>
|
<template>
|
||||||
<a-anchor :affix="false" @click="handleClick">
|
<a-anchor :affix="false" @click="handleClick">
|
||||||
<a-anchor-link href="#components-anchor-demo-basic" title="Basic demo" />
|
<a-anchor-link href="#components-anchor-demo-basic" title="Basic demo" />
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
Do not change state when page is scrolling.
|
Do not change state when page is scrolling.
|
||||||
</us>
|
</us>
|
||||||
|
|
||||||
```html
|
```tpl
|
||||||
<template>
|
<template>
|
||||||
<a-anchor :affix="false">
|
<a-anchor :affix="false">
|
||||||
<a-anchor-link href="#components-anchor-demo-basic" title="Basic demo" />
|
<a-anchor-link href="#components-anchor-demo-basic" title="Basic demo" />
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
Basic Usage, set datasource of autocomplete with `dataSource` property.
|
Basic Usage, set datasource of autocomplete with `dataSource` property.
|
||||||
</us>
|
</us>
|
||||||
|
|
||||||
```html
|
```tpl
|
||||||
<template>
|
<template>
|
||||||
<a-auto-complete
|
<a-auto-complete
|
||||||
:dataSource="dataSource"
|
:dataSource="dataSource"
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
Lookup-Patterns - Certain Category
|
Lookup-Patterns - Certain Category
|
||||||
</us>
|
</us>
|
||||||
|
|
||||||
```html
|
```tpl
|
||||||
<template>
|
<template>
|
||||||
<div class="certain-category-search-wrapper" style="width: 250px">
|
<div class="certain-category-search-wrapper" style="width: 250px">
|
||||||
<a-auto-complete
|
<a-auto-complete
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
Customize Input Component
|
Customize Input Component
|
||||||
</us>
|
</us>
|
||||||
|
|
||||||
```html
|
```tpl
|
||||||
<template>
|
<template>
|
||||||
<a-auto-complete
|
<a-auto-complete
|
||||||
:dataSource="dataSource"
|
:dataSource="dataSource"
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
A non-case-sensitive AutoComplete
|
A non-case-sensitive AutoComplete
|
||||||
</us>
|
</us>
|
||||||
|
|
||||||
```html
|
```tpl
|
||||||
<template>
|
<template>
|
||||||
<a-auto-complete
|
<a-auto-complete
|
||||||
:dataSource="dataSource"
|
:dataSource="dataSource"
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
You could pass `slot="dataSource` as children of `AutoComplete`, instead of using `dataSource`。
|
You could pass `slot="dataSource` as children of `AutoComplete`, instead of using `dataSource`。
|
||||||
</us>
|
</us>
|
||||||
|
|
||||||
```html
|
```tpl
|
||||||
<template>
|
<template>
|
||||||
<a-auto-complete style="width: 200px" @search="handleSearch" placeholder="input here">
|
<a-auto-complete style="width: 200px" @search="handleSearch" placeholder="input here">
|
||||||
<template slot="dataSource">
|
<template slot="dataSource">
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
Lookup-Patterns - Uncertain Category
|
Lookup-Patterns - Uncertain Category
|
||||||
</us>
|
</us>
|
||||||
|
|
||||||
```html
|
```tpl
|
||||||
<template>
|
<template>
|
||||||
<div class="global-search-wrapper" style="width: 300px">
|
<div class="global-search-wrapper" style="width: 300px">
|
||||||
<a-auto-complete
|
<a-auto-complete
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
Usually used for messages remind.
|
Usually used for messages remind.
|
||||||
</us>
|
</us>
|
||||||
|
|
||||||
```html
|
```tpl
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<span style="margin-right:24px">
|
<span style="margin-right:24px">
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
Three sizes and two shapes are available.
|
Three sizes and two shapes are available.
|
||||||
</us>
|
</us>
|
||||||
|
|
||||||
```html
|
```tpl
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<div>
|
<div>
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
For letter type Avatar, when the letters are too long to display, the font size can be automatically adjusted according to the width of the Avatar.
|
For letter type Avatar, when the letters are too long to display, the font size can be automatically adjusted according to the width of the Avatar.
|
||||||
</us>
|
</us>
|
||||||
|
|
||||||
```html
|
```tpl
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<a-avatar shape="square" size="large" :style="{backgroundColor: color, verticalAlign: 'middle'}"
|
<a-avatar shape="square" size="large" :style="{backgroundColor: color, verticalAlign: 'middle'}"
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
Image, Icon and letter are supported, and the latter two kinds avatar can have custom colors and background colors.
|
Image, Icon and letter are supported, and the latter two kinds avatar can have custom colors and background colors.
|
||||||
</us>
|
</us>
|
||||||
|
|
||||||
```html
|
```tpl
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<a-avatar icon="user" />
|
<a-avatar icon="user" />
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
The most basic usage.
|
The most basic usage.
|
||||||
</us>
|
</us>
|
||||||
|
|
||||||
```html
|
```tpl
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<a-back-top />
|
<a-back-top />
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
You can customize the style of the button, just note the size limit: no more than `40px * 40px`.
|
You can customize the style of the button, just note the size limit: no more than `40px * 40px`.
|
||||||
</us>
|
</us>
|
||||||
|
|
||||||
```html
|
```tpl
|
||||||
<template>
|
<template>
|
||||||
<div id="components-back-top-demo-custom">
|
<div id="components-back-top-demo-custom">
|
||||||
<a-back-top>
|
<a-back-top>
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
Simplest Usage. Badge will be hidden when `count` is `0`, but we can use `showZero` to show it.
|
Simplest Usage. Badge will be hidden when `count` is `0`, but we can use `showZero` to show it.
|
||||||
</us>
|
</us>
|
||||||
|
|
||||||
```html
|
```tpl
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<a-badge count="5">
|
<a-badge count="5">
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
The count will be animated as it changes.
|
The count will be animated as it changes.
|
||||||
</us>
|
</us>
|
||||||
|
|
||||||
```html
|
```tpl
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<div>
|
<div>
|
||||||
|
|
|
@ -9,7 +9,7 @@ This will simply display a red badge, without a specific count.
|
||||||
If count equals 0, it won't display the dot.
|
If count equals 0, it won't display the dot.
|
||||||
</us>
|
</us>
|
||||||
|
|
||||||
```html
|
```tpl
|
||||||
<template>
|
<template>
|
||||||
<div id="components-badge-demo-dot">
|
<div id="components-badge-demo-dot">
|
||||||
<a-badge dot>
|
<a-badge dot>
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
The badge can be wrapped with `a` tag to make it linkable.
|
The badge can be wrapped with `a` tag to make it linkable.
|
||||||
</us>
|
</us>
|
||||||
|
|
||||||
```html
|
```tpl
|
||||||
<template>
|
<template>
|
||||||
<a href="#">
|
<a href="#">
|
||||||
<a-badge count="5">
|
<a-badge count="5">
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
Used in standalone when children is empty.
|
Used in standalone when children is empty.
|
||||||
</us>
|
</us>
|
||||||
|
|
||||||
```html
|
```tpl
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<a-badge count="25" />
|
<a-badge count="25" />
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
`${overflowCount}+` is displayed when count is larger than `overflowCount`. The default value of `overflowCount` is `99`.
|
`${overflowCount}+` is displayed when count is larger than `overflowCount`. The default value of `overflowCount` is `99`.
|
||||||
</us>
|
</us>
|
||||||
|
|
||||||
```html
|
```tpl
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<a-badge :count="99">
|
<a-badge :count="99">
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
Standalone badge with status.
|
Standalone badge with status.
|
||||||
</us>
|
</us>
|
||||||
|
|
||||||
```html
|
```tpl
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<a-badge status="success" />
|
<a-badge status="success" />
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
The badge will display `title` when hovered over, instead of `count`.
|
The badge will display `title` when hovered over, instead of `count`.
|
||||||
</us>
|
</us>
|
||||||
|
|
||||||
```html
|
```tpl
|
||||||
<template>
|
<template>
|
||||||
<div id="components-badge-demo-title">
|
<div id="components-badge-demo-title">
|
||||||
<a-badge :count="5" title="Custom hover text">
|
<a-badge :count="5" title="Custom hover text">
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
The simplest use
|
The simplest use
|
||||||
</us>
|
</us>
|
||||||
|
|
||||||
```html
|
```tpl
|
||||||
<template>
|
<template>
|
||||||
<a-breadcrumb>
|
<a-breadcrumb>
|
||||||
<a-breadcrumb-item>Home</a-breadcrumb-item>
|
<a-breadcrumb-item>Home</a-breadcrumb-item>
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
Used together with `vue-router`
|
Used together with `vue-router`
|
||||||
</us>
|
</us>
|
||||||
|
|
||||||
```html
|
```tpl
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<a-breadcrumb :routes="routes">
|
<a-breadcrumb :routes="routes">
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
slot="separator"
|
slot="separator"
|
||||||
</us>
|
</us>
|
||||||
|
|
||||||
```html
|
```tpl
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<a-breadcrumb separator=">">
|
<a-breadcrumb separator=">">
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
The icon should be placed in front of the text
|
The icon should be placed in front of the text
|
||||||
</us>
|
</us>
|
||||||
|
|
||||||
```html
|
```tpl
|
||||||
<template>
|
<template>
|
||||||
<a-breadcrumb>
|
<a-breadcrumb>
|
||||||
<a-breadcrumb-item href="">
|
<a-breadcrumb-item href="">
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
There are `primary` button, `default` button, `dashed` button and `danger` button and `link` button in antd.
|
There are `primary` button, `default` button, `dashed` button and `danger` button and `link` button in antd.
|
||||||
</us>
|
</us>
|
||||||
|
|
||||||
```html
|
```tpl
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<a-button type="primary">Primary</a-button>
|
<a-button type="primary">Primary</a-button>
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
`block` property will make the button fit to its parent width.
|
`block` property will make the button fit to its parent width.
|
||||||
</us>
|
</us>
|
||||||
|
|
||||||
```html
|
```tpl
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<a-button type="primary" block>Primary</a-button>
|
<a-button type="primary" block>Primary</a-button>
|
||||||
|
|
|
@ -10,7 +10,7 @@ Buttons can be grouped by placing multiple `Button` components into a `Button.Gr
|
||||||
The `size` can be set to `large`, `small` or left unset resulting in a default size.
|
The `size` can be set to `large`, `small` or left unset resulting in a default size.
|
||||||
</us>
|
</us>
|
||||||
|
|
||||||
```html
|
```tpl
|
||||||
<template>
|
<template>
|
||||||
<div id="components-button-demo-button-group">
|
<div id="components-button-demo-button-group">
|
||||||
<h4>Basic</h4>
|
<h4>Basic</h4>
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
To mark a button as disabled, add the `disabled` property to the `Button`.
|
To mark a button as disabled, add the `disabled` property to the `Button`.
|
||||||
</us>
|
</us>
|
||||||
|
|
||||||
```html
|
```tpl
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<a-button type="primary">Primary</a-button>
|
<a-button type="primary">Primary</a-button>
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
`ghost` property will make button's background transparent, it is common used in colored background.
|
`ghost` property will make button's background transparent, it is common used in colored background.
|
||||||
</us>
|
</us>
|
||||||
|
|
||||||
```html
|
```tpl
|
||||||
<template>
|
<template>
|
||||||
<div :style="{ background: 'rgb(190, 200, 200)', padding: '26px 16px 16px' }">
|
<div :style="{ background: 'rgb(190, 200, 200)', padding: '26px 16px 16px' }">
|
||||||
<a-button type="primary" ghost>Primary</a-button>
|
<a-button type="primary" ghost>Primary</a-button>
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
If you want specific control over the positioning and placement of the `Icon`, then that should be done by placing the `Icon` component within the `Button` rather than using the `icon` property.
|
If you want specific control over the positioning and placement of the `Icon`, then that should be done by placing the `Icon` component within the `Button` rather than using the `icon` property.
|
||||||
</us>
|
</us>
|
||||||
|
|
||||||
```html
|
```tpl
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<a-button type="primary" shape="circle" icon="search"></a-button>
|
<a-button type="primary" shape="circle" icon="search"></a-button>
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
A loading indicator can be added to a button by setting the `loading` property on the `Button`.
|
A loading indicator can be added to a button by setting the `loading` property on the `Button`.
|
||||||
</us>
|
</us>
|
||||||
|
|
||||||
```html
|
```tpl
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<a-button type="primary" loading>
|
<a-button type="primary" loading>
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
If you need several buttons, we recommend that you use 1 primary button + n secondary buttons, and if there are more than three operations, you can group some of them into `Dropdown.Button`.
|
If you need several buttons, we recommend that you use 1 primary button + n secondary buttons, and if there are more than three operations, you can group some of them into `Dropdown.Button`.
|
||||||
</us>
|
</us>
|
||||||
|
|
||||||
```html
|
```tpl
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<a-button type="primary">Primary</a-button>
|
<a-button type="primary">Primary</a-button>
|
||||||
|
|
|
@ -10,7 +10,7 @@ Ant Design supports a default button size as well as a large and small size.
|
||||||
If a large or small button is desired, set the `size` property to either `large` or `small` respectively. Omit the `size` property for a button with the default size.
|
If a large or small button is desired, set the `size` property to either `large` or `small` respectively. Omit the `size` property for a button with the default size.
|
||||||
</us>
|
</us>
|
||||||
|
|
||||||
```html
|
```tpl
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<a-radio-group :value="size" @change="handleSizeChange">
|
<a-radio-group :value="size" @change="handleSizeChange">
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
A basic calendar component with Year/Month switch.
|
A basic calendar component with Year/Month switch.
|
||||||
</us>
|
</us>
|
||||||
|
|
||||||
```html
|
```tpl
|
||||||
<template>
|
<template>
|
||||||
<a-calendar @panelChange="onPanelChange" />
|
<a-calendar @panelChange="onPanelChange" />
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
Nested inside a container element for rendering in limited space.
|
Nested inside a container element for rendering in limited space.
|
||||||
</us>
|
</us>
|
||||||
|
|
||||||
```html
|
```tpl
|
||||||
<template>
|
<template>
|
||||||
<div :style="{ width: '300px', border: '1px solid #d9d9d9', borderRadius: '4px' }">
|
<div :style="{ width: '300px', border: '1px solid #d9d9d9', borderRadius: '4px' }">
|
||||||
<a-calendar :fullscreen="false" @panelChange="onPanelChange" />
|
<a-calendar :fullscreen="false" @panelChange="onPanelChange" />
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
This component can be rendered by using `dateCellRender` and `monthCellRender` with the data you need.
|
This component can be rendered by using `dateCellRender` and `monthCellRender` with the data you need.
|
||||||
</us>
|
</us>
|
||||||
|
|
||||||
```html
|
```tpl
|
||||||
<template>
|
<template>
|
||||||
<a-calendar>
|
<a-calendar>
|
||||||
<ul class="events" slot="dateCellRender" slot-scope="value">
|
<ul class="events" slot="dateCellRender" slot-scope="value">
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
A basic calendar component with Year/Month switch.
|
A basic calendar component with Year/Month switch.
|
||||||
</us>
|
</us>
|
||||||
|
|
||||||
```html
|
```tpl
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<a-alert
|
<a-alert
|
||||||
|
|
|
@ -10,7 +10,7 @@ A basic card containing a title, content and an extra corner content.
|
||||||
Supports two sizes: `default` and `small`.
|
Supports two sizes: `default` and `small`.
|
||||||
</us>
|
</us>
|
||||||
|
|
||||||
```html
|
```tpl
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<a-card title="Default size card" style="width: 300px">
|
<a-card title="Default size card" style="width: 300px">
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
A borderless card on a gray background.
|
A borderless card on a gray background.
|
||||||
</us>
|
</us>
|
||||||
|
|
||||||
```html
|
```tpl
|
||||||
<template>
|
<template>
|
||||||
<div style="background:#ECECEC; padding:30px">
|
<div style="background:#ECECEC; padding:30px">
|
||||||
<a-card title="Card title" :bordered="false" style="width: 300px">
|
<a-card title="Card title" :bordered="false" style="width: 300px">
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
You can use `Card.Meta` to support more flexible content.
|
You can use `Card.Meta` to support more flexible content.
|
||||||
</us>
|
</us>
|
||||||
|
|
||||||
```html
|
```tpl
|
||||||
<template>
|
<template>
|
||||||
<a-card hoverable style="width: 240px">
|
<a-card hoverable style="width: 240px">
|
||||||
<img
|
<img
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
Grid style card content.
|
Grid style card content.
|
||||||
</us>
|
</us>
|
||||||
|
|
||||||
```html
|
```tpl
|
||||||
<template>
|
<template>
|
||||||
<a-card title="Card Title">
|
<a-card title="Card Title">
|
||||||
<a-card-grid style="width:25%;textAlign:'center'">Content</a-card-grid>
|
<a-card-grid style="width:25%;textAlign:'center'">Content</a-card-grid>
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
Cards usually cooperate with grid column layout in overview page.
|
Cards usually cooperate with grid column layout in overview page.
|
||||||
</us>
|
</us>
|
||||||
|
|
||||||
```html
|
```tpl
|
||||||
<template>
|
<template>
|
||||||
<div style="background-color: #ececec; padding: 20px;">
|
<div style="background-color: #ececec; padding: 20px;">
|
||||||
<a-row :gutter="16">
|
<a-row :gutter="16">
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
It can be placed inside the ordinary card to display the information of the multilevel structure
|
It can be placed inside the ordinary card to display the information of the multilevel structure
|
||||||
</us>
|
</us>
|
||||||
|
|
||||||
```html
|
```tpl
|
||||||
<template>
|
<template>
|
||||||
<a-card title="Card title">
|
<a-card title="Card title">
|
||||||
<p style="fontSize: 14px;color: rgba(0, 0, 0, 0.85); marginBottom: 16px;fontWeight: 500">
|
<p style="fontSize: 14px;color: rgba(0, 0, 0, 0.85); marginBottom: 16px;fontWeight: 500">
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
Shows a loading indirector while the contents of the card is being featched
|
Shows a loading indirector while the contents of the card is being featched
|
||||||
</us>
|
</us>
|
||||||
|
|
||||||
```html
|
```tpl
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<a-card :loading="loading" title="Card title">
|
<a-card :loading="loading" title="Card title">
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
A Card that supports `cover`, `avatar`, `title` and `description`.
|
A Card that supports `cover`, `avatar`, `title` and `description`.
|
||||||
</us>
|
</us>
|
||||||
|
|
||||||
```html
|
```tpl
|
||||||
<template>
|
<template>
|
||||||
<a-card hoverable style="width: 300px">
|
<a-card hoverable style="width: 300px">
|
||||||
<img
|
<img
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
A simple card only containing a content area.
|
A simple card only containing a content area.
|
||||||
</us>
|
</us>
|
||||||
|
|
||||||
```html
|
```tpl
|
||||||
<template>
|
<template>
|
||||||
<a-card style="width: 300px">
|
<a-card style="width: 300px">
|
||||||
<p>Card content</p>
|
<p>Card content</p>
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
More content can be hosted
|
More content can be hosted
|
||||||
</us>
|
</us>
|
||||||
|
|
||||||
```html
|
```tpl
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<a-card
|
<a-card
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
Timing of scrolling to the next card/picture.
|
Timing of scrolling to the next card/picture.
|
||||||
</us>
|
</us>
|
||||||
|
|
||||||
```html
|
```tpl
|
||||||
<template>
|
<template>
|
||||||
<a-carousel autoplay>
|
<a-carousel autoplay>
|
||||||
<div><h3>1</h3></div>
|
<div><h3>1</h3></div>
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
Basic usage.
|
Basic usage.
|
||||||
</us>
|
</us>
|
||||||
|
|
||||||
```html
|
```tpl
|
||||||
<template>
|
<template>
|
||||||
<a-carousel :afterChange="onChange">
|
<a-carousel :afterChange="onChange">
|
||||||
<div><h3>1</h3></div>
|
<div><h3>1</h3></div>
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
Custom arrows display
|
Custom arrows display
|
||||||
</us>
|
</us>
|
||||||
|
|
||||||
```html
|
```tpl
|
||||||
<template>
|
<template>
|
||||||
<a-carousel arrows>
|
<a-carousel arrows>
|
||||||
<div
|
<div
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
Custom paging display
|
Custom paging display
|
||||||
</us>
|
</us>
|
||||||
|
|
||||||
```html
|
```tpl
|
||||||
<template>
|
<template>
|
||||||
<a-carousel arrows dotsClass="slick-dots slick-thumb">
|
<a-carousel arrows dotsClass="slick-dots slick-thumb">
|
||||||
<a slot="customPaging" slot-scope="props">
|
<a slot="customPaging" slot-scope="props">
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
Slides use fade for transition.
|
Slides use fade for transition.
|
||||||
</us>
|
</us>
|
||||||
|
|
||||||
```html
|
```tpl
|
||||||
<template>
|
<template>
|
||||||
<a-carousel effect="fade">
|
<a-carousel effect="fade">
|
||||||
<div><h3>1</h3></div>
|
<div><h3>1</h3></div>
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
Vertical pagination.
|
Vertical pagination.
|
||||||
</us>
|
</us>
|
||||||
|
|
||||||
```html
|
```tpl
|
||||||
<template>
|
<template>
|
||||||
<a-carousel vertical>
|
<a-carousel vertical>
|
||||||
<div><h3>1</h3></div>
|
<div><h3>1</h3></div>
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
Cascade selection box for selecting province/city/district.
|
Cascade selection box for selecting province/city/district.
|
||||||
</us>
|
</us>
|
||||||
|
|
||||||
```html
|
```tpl
|
||||||
<template>
|
<template>
|
||||||
<a-cascader :options="options" @change="onChange" placeholder="Please select" />
|
<a-cascader :options="options" @change="onChange" placeholder="Please select" />
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
Allow only select parent options.
|
Allow only select parent options.
|
||||||
</us>
|
</us>
|
||||||
|
|
||||||
```html
|
```tpl
|
||||||
<template>
|
<template>
|
||||||
<a-cascader :options="options" @change="onChange" changeOnSelect />
|
<a-cascader :options="options" @change="onChange" changeOnSelect />
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
For instance, add an external link after the selected value.
|
For instance, add an external link after the selected value.
|
||||||
</us>
|
</us>
|
||||||
|
|
||||||
```html
|
```tpl
|
||||||
<template>
|
<template>
|
||||||
<a-cascader
|
<a-cascader
|
||||||
:options="options"
|
:options="options"
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
Separate trigger button and result.
|
Separate trigger button and result.
|
||||||
</us>
|
</us>
|
||||||
|
|
||||||
```html
|
```tpl
|
||||||
<template>
|
<template>
|
||||||
<span>
|
<span>
|
||||||
{{text}}
|
{{text}}
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
Specifies default value by an array.
|
Specifies default value by an array.
|
||||||
</us>
|
</us>
|
||||||
|
|
||||||
```html
|
```tpl
|
||||||
<template>
|
<template>
|
||||||
<a-cascader
|
<a-cascader
|
||||||
:options="options"
|
:options="options"
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
Disable option by specifying the `disabled` property in `options`.
|
Disable option by specifying the `disabled` property in `options`.
|
||||||
</us>
|
</us>
|
||||||
|
|
||||||
```html
|
```tpl
|
||||||
<template>
|
<template>
|
||||||
<a-cascader :options="options" @change="onChange" />
|
<a-cascader :options="options" @change="onChange" />
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
Custom Field Names.
|
Custom Field Names.
|
||||||
</us>
|
</us>
|
||||||
|
|
||||||
```html
|
```tpl
|
||||||
<template>
|
<template>
|
||||||
<a-cascader
|
<a-cascader
|
||||||
:fieldNames="{ label: 'name', value: 'code', children: 'items' }"
|
:fieldNames="{ label: 'name', value: 'code', children: 'items' }"
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
Hover to expand sub menu, click to select option.
|
Hover to expand sub menu, click to select option.
|
||||||
</us>
|
</us>
|
||||||
|
|
||||||
```html
|
```tpl
|
||||||
<template>
|
<template>
|
||||||
<a-cascader
|
<a-cascader
|
||||||
:options="options"
|
:options="options"
|
||||||
|
|
|
@ -10,7 +10,7 @@ Load options lazily with `loadData`.
|
||||||
> Note: `loadData` cannot work with `showSearch`.
|
> Note: `loadData` cannot work with `showSearch`.
|
||||||
</us>
|
</us>
|
||||||
|
|
||||||
```html
|
```tpl
|
||||||
<template>
|
<template>
|
||||||
<a-cascader
|
<a-cascader
|
||||||
:options="options"
|
:options="options"
|
||||||
|
|
|
@ -10,7 +10,7 @@ Search and select options directly.
|
||||||
> Now, `Cascader[showSearch]` doesn't support search on server, more info [#5547](https://github.com/ant-design/ant-design/issues/5547)
|
> Now, `Cascader[showSearch]` doesn't support search on server, more info [#5547](https://github.com/ant-design/ant-design/issues/5547)
|
||||||
</us>
|
</us>
|
||||||
|
|
||||||
```html
|
```tpl
|
||||||
<template>
|
<template>
|
||||||
<a-cascader
|
<a-cascader
|
||||||
:options="options"
|
:options="options"
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
Cascade selection box of different sizes.
|
Cascade selection box of different sizes.
|
||||||
</us>
|
</us>
|
||||||
|
|
||||||
```html
|
```tpl
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<a-cascader size="large" :options="options" @change="onChange" /><br /><br />
|
<a-cascader size="large" :options="options" @change="onChange" /><br /><br />
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
Cascade selection box for selecting province/city/district.
|
Cascade selection box for selecting province/city/district.
|
||||||
</us>
|
</us>
|
||||||
|
|
||||||
```html
|
```tpl
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<a-cascader
|
<a-cascader
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
Basic usage of checkbox
|
Basic usage of checkbox
|
||||||
</us>
|
</us>
|
||||||
|
|
||||||
```html
|
```tpl
|
||||||
<template>
|
<template>
|
||||||
<a-checkbox @change="onChange">Checkbox</a-checkbox>
|
<a-checkbox @change="onChange">Checkbox</a-checkbox>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
The `indeterminate` property can help you to achieve a 'check all' effect.
|
The `indeterminate` property can help you to achieve a 'check all' effect.
|
||||||
</us>
|
</us>
|
||||||
|
|
||||||
```html
|
```tpl
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<div :style="{ borderBottom: '1px solid #E9E9E9' }">
|
<div :style="{ borderBottom: '1px solid #E9E9E9' }">
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
Communicated with other components
|
Communicated with other components
|
||||||
</us>
|
</us>
|
||||||
|
|
||||||
```html
|
```tpl
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<p :style="{ marginBottom: '20px' }">
|
<p :style="{ marginBottom: '20px' }">
|
||||||
|
|
|
@ -8,7 +8,7 @@ checkbox 不可用
|
||||||
Disabled checkbox
|
Disabled checkbox
|
||||||
</us>
|
</us>
|
||||||
|
|
||||||
```html
|
```tpl
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<a-checkbox :defaultChecked="false" disabled />
|
<a-checkbox :defaultChecked="false" disabled />
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
Generate a group of checkboxes from an array
|
Generate a group of checkboxes from an array
|
||||||
</us>
|
</us>
|
||||||
|
|
||||||
```html
|
```tpl
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<a-checkbox-group :options="plainOptions" v-model="value" @change="onChange" />
|
<a-checkbox-group :options="plainOptions" v-model="value" @change="onChange" />
|
||||||
|
|
|
@ -8,7 +8,7 @@ Checkbox.Group内嵌Checkbox并与Grid组件一起使用,可以实现灵活的
|
||||||
We can use Checkbox and Grid Checkbox.group, to implement complex layout
|
We can use Checkbox and Grid Checkbox.group, to implement complex layout
|
||||||
</us>
|
</us>
|
||||||
|
|
||||||
```html
|
```tpl
|
||||||
<template>
|
<template>
|
||||||
<a-checkbox-group @change="onChange">
|
<a-checkbox-group @change="onChange">
|
||||||
<a-row>
|
<a-row>
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
Accordion mode, only one panel can be expanded at a time. The first panel will be expanded by default.
|
Accordion mode, only one panel can be expanded at a time. The first panel will be expanded by default.
|
||||||
</us>
|
</us>
|
||||||
|
|
||||||
```html
|
```tpl
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<a-collapse accordion>
|
<a-collapse accordion>
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
More than one panel can be expanded at a time, the first panel is initialized to be active in this case.
|
More than one panel can be expanded at a time, the first panel is initialized to be active in this case.
|
||||||
</us>
|
</us>
|
||||||
|
|
||||||
```html
|
```tpl
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<a-collapse v-model="activeKey">
|
<a-collapse v-model="activeKey">
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
A borderless style of Collapse.
|
A borderless style of Collapse.
|
||||||
</us>
|
</us>
|
||||||
|
|
||||||
```html
|
```tpl
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<a-collapse defaultActiveKey="1" :bordered="false">
|
<a-collapse defaultActiveKey="1" :bordered="false">
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
Customize the background, border and margin styles and icon for each panel.
|
Customize the background, border and margin styles and icon for each panel.
|
||||||
</us>
|
</us>
|
||||||
|
|
||||||
```html
|
```tpl
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<a-collapse defaultActiveKey="1" :bordered="false">
|
<a-collapse defaultActiveKey="1" :bordered="false">
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
`Collapse` is nested inside the `Collapse`.
|
`Collapse` is nested inside the `Collapse`.
|
||||||
</us>
|
</us>
|
||||||
|
|
||||||
```html
|
```tpl
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<a-collapse @change="changeActivekey">
|
<a-collapse @change="changeActivekey">
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
You can disable showing arrow icon by passing `:showArrow="false"` to `a-collapse-panel` component.
|
You can disable showing arrow icon by passing `:showArrow="false"` to `a-collapse-panel` component.
|
||||||
</us>
|
</us>
|
||||||
|
|
||||||
```html
|
```tpl
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<a-collapse defaultActiveKey="1" @change="changeActivekey">
|
<a-collapse defaultActiveKey="1" @change="changeActivekey">
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
A basic comment with author, avatar, time and actions.
|
A basic comment with author, avatar, time and actions.
|
||||||
</us>
|
</us>
|
||||||
|
|
||||||
```html
|
```tpl
|
||||||
<template>
|
<template>
|
||||||
<a-comment>
|
<a-comment>
|
||||||
<template slot="actions">
|
<template slot="actions">
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
Comment can be used as editor, user can customize the editor component.
|
Comment can be used as editor, user can customize the editor component.
|
||||||
</us>
|
</us>
|
||||||
|
|
||||||
```html
|
```tpl
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<a-list
|
<a-list
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
Displaying a series of comments using the `antd` List Component.
|
Displaying a series of comments using the `antd` List Component.
|
||||||
</us>
|
</us>
|
||||||
|
|
||||||
```html
|
```tpl
|
||||||
<template>
|
<template>
|
||||||
<a-list
|
<a-list
|
||||||
class="comment-list"
|
class="comment-list"
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
Comments can be nested.
|
Comments can be nested.
|
||||||
</us>
|
</us>
|
||||||
|
|
||||||
```html
|
```tpl
|
||||||
<template>
|
<template>
|
||||||
<a-comment>
|
<a-comment>
|
||||||
<span slot="actions">Reply to</span>
|
<span slot="actions">Reply to</span>
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
Basic use case. Users can select or input a date in panel.
|
Basic use case. Users can select or input a date in panel.
|
||||||
</us>
|
</us>
|
||||||
|
|
||||||
```html
|
```tpl
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<a-date-picker @change="onChange" />
|
<a-date-picker @change="onChange" />
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
We can customize the rendering of date cells in the calendar by providing a `dateRender` function to `DatePicker`.
|
We can customize the rendering of date cells in the calendar by providing a `dateRender` function to `DatePicker`.
|
||||||
</us>
|
</us>
|
||||||
|
|
||||||
```html
|
```tpl
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<a-date-picker>
|
<a-date-picker>
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
Disabled part of dates and time by `disabledDate` and `disabledTime` respectively, and `disabledTime` only works with `showTime`.
|
Disabled part of dates and time by `disabledDate` and `disabledTime` respectively, and `disabledTime` only works with `showTime`.
|
||||||
</us>
|
</us>
|
||||||
|
|
||||||
```html
|
```tpl
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<a-date-picker
|
<a-date-picker
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
A disabled state of the `DatePicker`.
|
A disabled state of the `DatePicker`.
|
||||||
</us>
|
</us>
|
||||||
|
|
||||||
```html
|
```tpl
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<a-date-picker :defaultValue="moment('2015-06-06', dateFormat)" disabled />
|
<a-date-picker :defaultValue="moment('2015-06-06', dateFormat)" disabled />
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue