update demo style
parent
53dd986297
commit
2824082c43
|
@ -30,7 +30,7 @@ export default {
|
||||||
title: 'Alert',
|
title: 'Alert',
|
||||||
render () {
|
render () {
|
||||||
return (
|
return (
|
||||||
<div>
|
<div id='components-alert-demo'>
|
||||||
<md cn={md.cn} us={md.us}/>
|
<md cn={md.cn} us={md.us}/>
|
||||||
< Banner/>
|
< Banner/>
|
||||||
<Basic/>
|
<Basic/>
|
||||||
|
@ -49,7 +49,7 @@ export default {
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<style>
|
<style>
|
||||||
.ant-alert {
|
#components-alert-demo .ant-alert {
|
||||||
margin-bottom: 16px;
|
margin-bottom: 16px;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -92,12 +92,7 @@ export default {
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
.certain-category-search.ant-select-auto-complete .ant-input-affix-wrapper .ant-input-suffix {
|
|
||||||
right: 12px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.certain-category-search-dropdown .ant-select-dropdown-menu-item-group-title {
|
.certain-category-search-dropdown .ant-select-dropdown-menu-item-group-title {
|
||||||
color: #666;
|
color: #666;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
|
@ -119,18 +114,20 @@ export default {
|
||||||
.certain-category-search-dropdown .ant-select-dropdown-menu {
|
.certain-category-search-dropdown .ant-select-dropdown-menu {
|
||||||
max-height: 300px;
|
max-height: 300px;
|
||||||
}
|
}
|
||||||
|
</style>
|
||||||
.certain-search-item-count {
|
<style scoped>
|
||||||
|
.certain-category-search-wrapper >>> .certain-category-search.ant-select-auto-complete .ant-input-affix-wrapper .ant-input-suffix {
|
||||||
|
right: 12px;
|
||||||
|
}
|
||||||
|
.certain-category-search-wrapper >>> .certain-search-item-count {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
color: #999;
|
color: #999;
|
||||||
right: 16px;
|
right: 16px;
|
||||||
}
|
}
|
||||||
|
.certain-category-search-wrapper >>> .certain-category-search.ant-select-focused .certain-category-icon {
|
||||||
.certain-category-search.ant-select-focused .certain-category-icon {
|
|
||||||
color: #108ee9;
|
color: #108ee9;
|
||||||
}
|
}
|
||||||
|
.certain-category-search-wrapper >>> .certain-category-icon {
|
||||||
.certain-category-icon {
|
|
||||||
color: #6E6E6E;
|
color: #6E6E6E;
|
||||||
transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
|
transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
|
|
|
@ -40,3 +40,55 @@ export default {
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
<style>
|
||||||
|
.certain-category-search-dropdown .ant-select-dropdown-menu-item-group-title {
|
||||||
|
color: #666;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
.certain-category-search-dropdown .ant-select-dropdown-menu-item-group {
|
||||||
|
border-bottom: 1px solid #F6F6F6;
|
||||||
|
}
|
||||||
|
|
||||||
|
.certain-category-search-dropdown .ant-select-dropdown-menu-item {
|
||||||
|
padding-left: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.certain-category-search-dropdown .ant-select-dropdown-menu-item.show-all {
|
||||||
|
text-align: center;
|
||||||
|
cursor: default;
|
||||||
|
}
|
||||||
|
|
||||||
|
.certain-category-search-dropdown .ant-select-dropdown-menu {
|
||||||
|
max-height: 300px;
|
||||||
|
}
|
||||||
|
.global-search-wrapper {
|
||||||
|
padding-right: 50px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.global-search {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.global-search.ant-select-auto-complete .ant-select-selection--single {
|
||||||
|
margin-right: -46px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.global-search.ant-select-auto-complete .ant-input-affix-wrapper .ant-input:not(:last-child) {
|
||||||
|
padding-right: 62px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.global-search.ant-select-auto-complete .ant-input-affix-wrapper .ant-input-suffix {
|
||||||
|
right: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.global-search.ant-select-auto-complete .ant-input-affix-wrapper .ant-input-suffix button {
|
||||||
|
border-top-left-radius: 0;
|
||||||
|
border-bottom-left-radius: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.global-search-item-count {
|
||||||
|
position: absolute;
|
||||||
|
right: 16px;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
|
@ -19,7 +19,7 @@ You can customize the style of the button, just note the size limit: no more tha
|
||||||
button.
|
button.
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<style>
|
<style scoped>
|
||||||
#components-back-top-demo-custom .ant-back-top {
|
#components-back-top-demo-custom .ant-back-top {
|
||||||
bottom: 100px;
|
bottom: 100px;
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,7 +19,7 @@ This will simply display a red badge, without a specific count.
|
||||||
</a-badge>
|
</a-badge>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<style>
|
<style scoped>
|
||||||
#components-badge-demo-dot .anticon-notification {
|
#components-badge-demo-dot .anticon-notification {
|
||||||
width: 16px;
|
width: 16px;
|
||||||
height: 16px;
|
height: 16px;
|
||||||
|
|
|
@ -31,7 +31,7 @@ const md = {
|
||||||
export default {
|
export default {
|
||||||
render () {
|
render () {
|
||||||
return (
|
return (
|
||||||
<div>
|
<div id='components-cascader-demo'>
|
||||||
<md cn={md.cn} us={md.us}/>
|
<md cn={md.cn} us={md.us}/>
|
||||||
<Basic />
|
<Basic />
|
||||||
<ChangeOnSelect/>
|
<ChangeOnSelect/>
|
||||||
|
@ -53,7 +53,7 @@ export default {
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<style>
|
<style>
|
||||||
.ant-cascader-picker {
|
#components-cascader-demo .ant-cascader-picker {
|
||||||
width: 300px;
|
width: 300px;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -29,8 +29,8 @@ You can set it to a object like `{ xs: 8, sm: 16, md: 24, lg: 32 }` for responsi
|
||||||
</a-row>
|
</a-row>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<style>
|
<style scoped>
|
||||||
.gutter-example .ant-row > div {
|
.gutter-example >>> .ant-row > div {
|
||||||
background: transparent;
|
background: transparent;
|
||||||
border: 0;
|
border: 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -60,4 +60,23 @@ export default {
|
||||||
#components-modal-demo .ant-btn {
|
#components-modal-demo .ant-btn {
|
||||||
margin-right: 8px;
|
margin-right: 8px;
|
||||||
}
|
}
|
||||||
|
.vertical-center-modal {
|
||||||
|
text-align: center;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
.vertical-center-modal:before {
|
||||||
|
content: '';
|
||||||
|
display: inline-block;
|
||||||
|
height: 100%;
|
||||||
|
vertical-align: middle;
|
||||||
|
width: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.vertical-center-modal .ant-modal {
|
||||||
|
display: inline-block;
|
||||||
|
vertical-align: middle;
|
||||||
|
top: 0;
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -11,7 +11,7 @@ You can use `style.top` or other styles to set position of modal dialog.
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div id="components-modal-demo-position">
|
||||||
<a-button type="primary" @click="() => setModal1Visible(true)">Display a modal dialog at 20px to Top</a-button>
|
<a-button type="primary" @click="() => setModal1Visible(true)">Display a modal dialog at 20px to Top</a-button>
|
||||||
<a-modal
|
<a-modal
|
||||||
title="20px to Top"
|
title="20px to Top"
|
||||||
|
|
|
@ -42,10 +42,5 @@ Customize dropdown options such as adding all options
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<style scoped>
|
|
||||||
.ant-select {
|
|
||||||
margin-bottom: 0 !important;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -11,17 +11,14 @@ Mini size pagination.
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div id="components-pagination-demo-mini">
|
||||||
<a-pagination size="small" :total="50" />
|
<a-pagination size="small" :total="50" />
|
||||||
<a-pagination size="small" :total="50" showSizeChanger showQuickJumper />
|
<a-pagination size="small" :total="50" showSizeChanger showQuickJumper />
|
||||||
<a-pagination size="small" :total="50" :showTotal="total => `Total ${total} items`" />
|
<a-pagination size="small" :total="50" :showTotal="total => `Total ${total} items`" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<style scoped>
|
<style scoped>
|
||||||
.ant-select {
|
#components-pagination-demo-mini .ant-pagination:not(:last-child) {
|
||||||
margin-bottom: 0 !important;
|
|
||||||
}
|
|
||||||
.code-box-demo .ant-pagination:not(:last-child) {
|
|
||||||
margin-bottom: 24px;
|
margin-bottom: 24px;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -32,7 +32,7 @@ const md = {
|
||||||
export default {
|
export default {
|
||||||
render () {
|
render () {
|
||||||
return (
|
return (
|
||||||
<div>
|
<div id='components-select-demo'>
|
||||||
<md cn={md.cn} us={md.us}/>
|
<md cn={md.cn} us={md.us}/>
|
||||||
<Basic/>
|
<Basic/>
|
||||||
<Size/>
|
<Size/>
|
||||||
|
@ -55,3 +55,9 @@ export default {
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
<style>
|
||||||
|
#components-select-demo .ant-select {
|
||||||
|
margin: 0 8px 10px 0;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
>
|
||||||
|
|
|
@ -9,7 +9,7 @@ Specifies a delay for loading state. If `spinning` ends during delay, loading st
|
||||||
</us>
|
</us>
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<style>
|
<style scoped>
|
||||||
.spin-content{
|
.spin-content{
|
||||||
border: 1px solid #91d5ff;
|
border: 1px solid #91d5ff;
|
||||||
background-color: #e6f7ff;
|
background-color: #e6f7ff;
|
||||||
|
|
|
@ -9,7 +9,7 @@ Spin in a container.
|
||||||
</us>
|
</us>
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<style>
|
<style scoped>
|
||||||
.example {
|
.example {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
background: rgba(0,0,0,0.05);
|
background: rgba(0,0,0,0.05);
|
||||||
|
|
|
@ -9,7 +9,7 @@ Embedding content into `Spin` will alter it into loading state.
|
||||||
</us>
|
</us>
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<style>
|
<style scoped>
|
||||||
.spin-content{
|
.spin-content{
|
||||||
border: 1px solid #91d5ff;
|
border: 1px solid #91d5ff;
|
||||||
background-color: #e6f7ff;
|
background-color: #e6f7ff;
|
||||||
|
|
|
@ -9,7 +9,7 @@ Customized description content.
|
||||||
</us>
|
</us>
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<style>
|
<style scoped>
|
||||||
.spin-content{
|
.spin-content{
|
||||||
border: 1px solid #91d5ff;
|
border: 1px solid #91d5ff;
|
||||||
background-color: #e6f7ff;
|
background-color: #e6f7ff;
|
||||||
|
|
|
@ -66,7 +66,7 @@ Cooperate with the content and buttons, to represent the progress of a process.
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<style>
|
<style scoped>
|
||||||
.steps-content {
|
.steps-content {
|
||||||
margin-top: 16px;
|
margin-top: 16px;
|
||||||
border: 1px dashed #e9e9e9;
|
border: 1px dashed #e9e9e9;
|
||||||
|
|
|
@ -59,8 +59,4 @@
|
||||||
right: 15px;
|
right: 15px;
|
||||||
top: 10px;
|
top: 10px;
|
||||||
}
|
}
|
||||||
.code-box-demo {
|
|
||||||
.ant-select {
|
|
||||||
margin: 0 8px 10px 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in New Issue