diff --git a/CHANGELOG.fr-FR.md b/CHANGELOG.fr-FR.md
index 0636e7195..b0aa00bc7 100644
--- a/CHANGELOG.fr-FR.md
+++ b/CHANGELOG.fr-FR.md
@@ -870,4 +870,4 @@
- Les paramètres de la méthode `row-class-name` et `row-style` sont maintenant un objet
##
-* Rendre du HTML arbitraire de façon dynamique sur votre site Web peut être très dangereux car cela peut facilement mener à[des attaques XSS](https://en.wikipedia.org/wiki/Cross-site_scripting). Donc quand `dangerouslyUseHTMLString' est activé, assurez-vous que le contenu du `message' est fiable, et **ne jamais** assigner `message` au contenu fourni par l'utilisateur..
+* Rendre du HTML arbitraire de façon dynamique sur votre site Web peut être très dangereux car cela peut facilement mener à[des attaques XSS](https://en.wikipedia.org/wiki/Cross-site_scripting). Donc quand `dangerouslyUseHTMLString' est activé, assurez-vous que le contenu du `message' est fiable, et **ne jamais** assigner `message` au contenu fourni par l'utilisateur..
diff --git a/build/md-loader/config.js b/build/md-loader/config.js
new file mode 100644
index 000000000..b491c538b
--- /dev/null
+++ b/build/md-loader/config.js
@@ -0,0 +1,26 @@
+const Config = require('markdown-it-chain');
+const anchorPlugin = require('markdown-it-anchor');
+const slugify = require('transliteration').slugify;
+const containers = require('./containers');
+const overWriteFenceRule = require('./fence');
+
+const config = new Config();
+
+config
+ .options.html(true).end()
+
+ .plugin('anchor').use(anchorPlugin, [
+ {
+ level: 2,
+ slugify: slugify,
+ permalink: true,
+ permalinkBefore: true
+ }
+ ]).end()
+
+ .plugin('containers').use(containers).end();
+
+const md = config.toMd();
+overWriteFenceRule(md);
+
+module.exports = md;
diff --git a/build/md-loader/containers.js b/build/md-loader/containers.js
new file mode 100644
index 000000000..bcdce5be8
--- /dev/null
+++ b/build/md-loader/containers.js
@@ -0,0 +1,24 @@
+const mdContainer = require('markdown-it-container');
+
+module.exports = md => {
+ md.use(mdContainer, 'demo', {
+ validate(params) {
+ return params.trim().match(/^demo\s*(.*)$/);
+ },
+ render(tokens, idx) {
+ const m = tokens[idx].info.trim().match(/^demo\s*(.*)$/);
+ if (tokens[idx].nesting === 1) {
+ const description = m && m.length > 1 ? m[1] : '';
+ const content = tokens[idx + 1].type === 'fence' ? tokens[idx + 1].content : '';
+ return `
`;
+ }
+ return defaultRender(tokens, idx, options, env, self);
+ };
+};
diff --git a/build/md-loader/index.js b/build/md-loader/index.js
new file mode 100644
index 000000000..610128bca
--- /dev/null
+++ b/build/md-loader/index.js
@@ -0,0 +1,67 @@
+const {
+ stripScript,
+ stripTemplate,
+ genInlineComponentText
+} = require('./util');
+const md = require('./config');
+
+module.exports = function(source) {
+ const content = md.render(source);
+
+ const startTag = '';
+ const endTagLen = endTag.length;
+
+ let componenetsString = '';
+ let id = 0; // demo 的 id
+ let output = []; // 输出的内容
+ let start = 0; // 字符串开始位置
+
+ let commentStart = content.indexOf(startTag);
+ let commentEnd = content.indexOf(endTag, commentStart + startTagLen);
+ while (commentStart !== -1 && commentEnd !== -1) {
+ output.push(content.slice(start, commentStart));
+
+ const commentContent = content.slice(commentStart + startTagLen, commentEnd);
+ const html = stripTemplate(commentContent);
+ const script = stripScript(commentContent);
+ let demoComponentContent = genInlineComponentText(html, script);
+ const demoComponentName = `element-demo${id}`;
+ output.push(`<${demoComponentName} slot="source" />`);
+ componenetsString += `${JSON.stringify(demoComponentName)}: ${demoComponentContent},`;
+
+ // 重新计算下一次的位置
+ id++;
+ start = commentEnd + endTagLen;
+ commentStart = content.indexOf(startTag, start);
+ commentEnd = content.indexOf(endTag, commentStart + startTagLen);
+ }
+
+ // 仅允许在 demo 不存在时,才可以在 Markdown 中写 script 标签
+ // todo: 优化这段逻辑
+ let pageScript = '';
+ if (componenetsString) {
+ pageScript = ``;
+ } else if (content.indexOf('') + ''.length;
+ pageScript = content.slice(0, start);
+ }
+
+ output.push(content.slice(start));
+ return `
+
+ ${md.utils.escapeHtml(token.content)}
', '');
- };
-}
-
const webpackConfig = {
mode: process.env.NODE_ENV,
entry: isProd ? {
@@ -93,67 +75,24 @@ const webpackConfig = {
},
{
test: /\.md$/,
- loaders: [
+ use: [
{
- loader: 'vue-loader'
+ loader: 'vue-loader',
+ options: {
+ compilerOptions: {
+ preserveWhitespace: false
+ }
+ }
},
{
- loader: 'vue-markdown-loader/lib/markdown-compiler',
- options: {
- preventExtract: true,
- raw: true,
- preprocess: function(MarkdownIt, source) {
- MarkdownIt.renderer.rules.table_open = function() {
- return '';
- };
- MarkdownIt.renderer.rules.fence = wrap(MarkdownIt.renderer.rules.fence);
- return source;
- },
- use: [
- [require('markdown-it-anchor'), {
- level: 2,
- slugify: slugify,
- permalink: true,
- permalinkBefore: true
- }],
- [require('markdown-it-container'), 'demo', {
- validate: function(params) {
- return params.trim().match(/^demo\s*(.*)$/);
- },
-
- render: function(tokens, idx) {
- var m = tokens[idx].info.trim().match(/^demo\s*(.*)$/);
- if (tokens[idx].nesting === 1) {
- var description = (m && m.length > 1) ? m[1] : '';
- var content = tokens[idx + 1].content;
- var html = convert(striptags.strip(content, ['script', 'style'])).replace(/(<[^>]*)=""(?=.*>)/g, '$1');
- var script = striptags.fetch(content, 'script');
- var style = striptags.fetch(content, 'style');
- var jsfiddle = { html: html, script: script, style: style };
- var descriptionHTML = description
- ? md.render(description)
- : '';
-
- jsfiddle = md.utils.escapeHtml(JSON.stringify(jsfiddle));
-
- return `
- ${html}
- ${descriptionHTML}
- `;
- }
- return ' \n';
- }
- }],
- [require('markdown-it-container'), 'tip'],
- [require('markdown-it-container'), 'warning']
- ]
- }
+ loader: path.resolve(__dirname, './md-loader/index.js')
}
]
},
{
test: /\.(svg|otf|ttf|woff2?|eot|gif|png|jpe?g)(\?\S*)?$/,
loader: 'url-loader',
+ // todo: 这种写法有待调整
query: {
limit: 10000,
name: path.posix.join('static', '[name].[hash:7].[ext]')
@@ -189,6 +128,11 @@ const webpackConfig = {
};
if (isProd) {
+ webpackConfig.externals = {
+ vue: 'Vue',
+ 'vue-router': 'VueRouter',
+ 'highlight.js': 'hljs'
+ };
webpackConfig.plugins.push(
new MiniCssExtractPlugin({
filename: '[name].[contenthash:7].css'
diff --git a/examples/components/demo-block.vue b/examples/components/demo-block.vue
index 8381ad407..62d3a6664 100644
--- a/examples/components/demo-block.vue
+++ b/examples/components/demo-block.vue
@@ -4,12 +4,16 @@
:class="[blockClass, { 'hover': hovering }]"
@mouseenter="hovering = true"
@mouseleave="hovering = false">
-
+
+
+
import compoLang from '../i18n/component.json';
import Element from 'main/index.js';
+ import { stripScript, stripStyle, stripTemplate } from '../util';
const { version } = Element;
export default {
data() {
return {
+ jsfiddle: {
+ script: '',
+ html: '',
+ style: ''
+ },
hovering: false,
isExpanded: false,
fixedControl: false,
@@ -191,13 +201,6 @@
};
},
- props: {
- jsfiddle: Object,
- default() {
- return {};
- }
- },
-
methods: {
goJsfiddle() {
const { script, html, style } = this.jsfiddle;
@@ -299,6 +302,25 @@
}
},
+ created() {
+ const highlight = this.$slots.highlight;
+ if (highlight && highlight[0]) {
+ let code = '';
+ let cur = highlight[0];
+ if (cur.tag === 'pre' && (cur.children && cur.children[0])) {
+ cur = cur.children[0];
+ if (cur.tag === 'code') {
+ code = cur.children[0].text;
+ }
+ }
+ if (code) {
+ this.jsfiddle.html = stripTemplate(code);
+ this.jsfiddle.script = stripScript(code);
+ this.jsfiddle.style = stripStyle(code);
+ }
+ }
+ },
+
mounted() {
this.$nextTick(() => {
let highlight = this.$el.getElementsByClassName('highlight')[0];
diff --git a/examples/components/header.vue b/examples/components/header.vue
index 3a3820f88..2452d3e69 100644
--- a/examples/components/header.vue
+++ b/examples/components/header.vue
@@ -55,9 +55,15 @@
height: 100%;
line-height: 80px;
background: transparent;
- @utils-clearfix;
padding: 0;
margin: 0;
+ &::before, &::after {
+ display: table;
+ content: "";
+ }
+ &::after {
+ clear: both;
+ }
}
.nav-gap {
diff --git a/examples/demo-styles/alert.scss b/examples/demo-styles/alert.scss
new file mode 100644
index 000000000..dae5f062a
--- /dev/null
+++ b/examples/demo-styles/alert.scss
@@ -0,0 +1,7 @@
+.demo-block.demo-alert .el-alert {
+ margin: 20px 0 0;
+}
+
+.demo-block.demo-alert .el-alert:first-child {
+ margin: 0;
+}
diff --git a/examples/demo-styles/badge.scss b/examples/demo-styles/badge.scss
new file mode 100644
index 000000000..494dacded
--- /dev/null
+++ b/examples/demo-styles/badge.scss
@@ -0,0 +1,19 @@
+.demo-badge.demo-block .el-dropdown {
+ vertical-align: middle;
+}
+.demo-badge.demo-block {
+ .share-button {
+ width: 36px;
+ padding: 10px;
+ }
+
+ .mark {
+ margin-top: 8px;
+ line-height: 1;
+ float: right;
+ }
+
+ .item {
+ margin-right: 40px;
+ }
+}
diff --git a/examples/demo-styles/border.scss b/examples/demo-styles/border.scss
new file mode 100644
index 000000000..b8a921983
--- /dev/null
+++ b/examples/demo-styles/border.scss
@@ -0,0 +1,44 @@
+.demo-border .text {
+ width: 15%;
+}
+.demo-border .line {
+ width: 70%;
+}
+.demo-border .line div {
+ width: 100%;
+ height: 0;
+ border: 1px solid #eee;
+}
+.demo-border .line .dashed {
+ border: 2px dashed #eee;
+}
+.demo-shadow {
+ height: 100px;
+ width: 50%;
+ border: 1px solid #eee;
+}
+.demo-shadow-text {
+ line-height: 50px;
+ color: #666;
+ font-size: 14px;
+}
+.demo-radius .title {
+ color: #666;
+ font-size: 18px;
+ margin: 10px 0;
+}
+.demo-radius .value {
+ color: #333;
+ font-size: 16px;
+ margin: 10px 0;
+}
+.demo-radius .radius {
+ height: 60px;
+ width: 70%;
+ border: 1px solid #d7dae2;
+ border-radius: 0;
+ margin-top: 20px;
+}
+.demo-radius .radius-30 {
+ border-radius: 30px;
+}
diff --git a/examples/demo-styles/button.scss b/examples/demo-styles/button.scss
new file mode 100644
index 000000000..bc8b7881a
--- /dev/null
+++ b/examples/demo-styles/button.scss
@@ -0,0 +1,21 @@
+.demo-block.demo-button {
+ .el-row {
+ margin-bottom: 20px;
+
+ &:last-child {
+ margin-bottom: 0;
+ }
+ }
+ .el-button + .el-button {
+ margin-left: 10px;
+ }
+ .el-button-group {
+ .el-button + .el-button {
+ margin-left: 0;
+ }
+
+ & + .el-button-group {
+ margin-left: 10px;
+ }
+ }
+}
diff --git a/examples/demo-styles/card.scss b/examples/demo-styles/card.scss
new file mode 100644
index 000000000..a558b1496
--- /dev/null
+++ b/examples/demo-styles/card.scss
@@ -0,0 +1,33 @@
+.demo-block.demo-card {
+ .text {
+ font-size: 14px;
+ }
+
+ .time {
+ font-size: 13px;
+ color: #999;
+ }
+
+ .bottom {
+ margin-top: 13px;
+ line-height: 12px;
+ }
+
+ .item {
+ margin-bottom: 18px;
+ }
+
+ .button {
+ padding: 0;
+ float: right;
+ }
+
+ .image {
+ width: 100%;
+ display: block;
+ }
+
+ .box-card {
+ width: 480px;
+ }
+}
diff --git a/examples/demo-styles/carousel.scss b/examples/demo-styles/carousel.scss
new file mode 100644
index 000000000..02f137f04
--- /dev/null
+++ b/examples/demo-styles/carousel.scss
@@ -0,0 +1,47 @@
+.demo-carousel .block {
+ padding: 30px;
+ text-align: center;
+ border-right: solid 1px #eff2f6;
+ display: inline-block;
+ width: 50%;
+ box-sizing: border-box;
+ &:last-child {
+ border-right: none;
+ }
+}
+
+.demo-carousel .demonstration {
+ display: block;
+ color: #8492a6;
+ font-size: 14px;
+ margin-bottom: 20px;
+}
+
+.demo-carousel .el-carousel__container {
+ text-align: center;
+}
+
+.demo-carousel .el-carousel__item {
+ h3 {
+ color: #fff;
+ font-size: 18px;
+ line-height: 300px;
+ margin: 0;
+ }
+ &:nth-child(2n) {
+ background-color: #99a9bf;
+ }
+ &:nth-child(2n + 1) {
+ background-color: #d3dce6;
+ }
+}
+
+.demo-carousel .small h3 {
+ font-size: 14px;
+ line-height: 150px;
+}
+
+.demo-carousel .medium h3 {
+ font-size: 14px;
+ line-height: 200px;
+}
diff --git a/examples/demo-styles/cascader.scss b/examples/demo-styles/cascader.scss
new file mode 100644
index 000000000..48d2e7c49
--- /dev/null
+++ b/examples/demo-styles/cascader.scss
@@ -0,0 +1,28 @@
+.demo-cascader {
+ .el-cascader {
+ width: 222px;
+ }
+}
+.demo-cascader-size {
+ .el-cascader {
+ vertical-align: top;
+ margin-right: 15px;
+ }
+}
+.demo-cascader .block {
+ padding: 30px 0;
+ text-align: center;
+ border-right: solid 1px #eff2f6;
+ display: inline-block;
+ width: 50%;
+ box-sizing: border-box;
+ &:last-child {
+ border-right: none;
+ }
+}
+.demo-cascader .demonstration {
+ display: block;
+ color: #8492a6;
+ font-size: 14px;
+ margin-bottom: 20px;
+}
diff --git a/examples/demo-styles/collapse.scss b/examples/demo-styles/collapse.scss
new file mode 100644
index 000000000..11c0d36f6
--- /dev/null
+++ b/examples/demo-styles/collapse.scss
@@ -0,0 +1,7 @@
+.demo-collapse {
+ .el-collapse-item__header {
+ .header-icon {
+ margin-left: 5px;
+ }
+ }
+}
diff --git a/examples/demo-styles/color-picker.scss b/examples/demo-styles/color-picker.scss
new file mode 100644
index 000000000..621cc8acc
--- /dev/null
+++ b/examples/demo-styles/color-picker.scss
@@ -0,0 +1,20 @@
+.demo-color-picker .block {
+ padding: 30px 0;
+ text-align: center;
+ border-right: solid 1px #eff2f6;
+ display: inline-block;
+ width: 50%;
+ box-sizing: border-box;
+ &:last-child {
+ border-right: none;
+ }
+}
+.demo-color-picker .demonstration {
+ display: block;
+ color: #8492a6;
+ font-size: 14px;
+ margin-bottom: 20px;
+}
+.demo-color-picker .el-color-picker + .el-color-picker {
+ margin-left: 20px;
+}
diff --git a/examples/demo-styles/color.scss b/examples/demo-styles/color.scss
new file mode 100644
index 000000000..c8a145700
--- /dev/null
+++ b/examples/demo-styles/color.scss
@@ -0,0 +1,72 @@
+.demo-color-box {
+ position: relative;
+ border-radius: 4px;
+ padding: 20px;
+ margin: 5px 0;
+ height: 114px;
+ box-sizing: border-box;
+ color: #fff;
+ font-size: 14px;
+
+ & .value {
+ font-size: 12px;
+ opacity: 0.69;
+ line-height: 24px;
+ }
+}
+.demo-color-box-other {
+ height: 74px;
+ margin: 10px 0 !important;
+ border-radius: 4px 4px 4px 4px !important;
+ padding: 15px 20px;
+}
+.demo-color-box-group {
+ .demo-color-box {
+ border-radius: 0;
+ margin: 0;
+ }
+ .demo-color-box:first-child {
+ border-radius: 4px 4px 0 0;
+ }
+ .demo-color-box:last-child {
+ border-radius: 0 0 4px 4px;
+ }
+}
+.bg-color-sub {
+ width: 100%;
+ height: 40px;
+ left: 0;
+ bottom: 0;
+ position: absolute;
+ border-radius: 0 0 4px 4px;
+}
+.bg-blue-sub-item {
+ width: 11.1111111%;
+ height: 100%;
+ display: inline-block;
+}
+.bg-blue-sub-item:first-child {
+ border-radius: 0 0 0 4px;
+}
+.bg-success-sub-item {
+ width: 50%;
+ height: 100%;
+ display: inline-block;
+}
+.bg-success-sub-item:first-child {
+ border-radius: 0 0 0 4px;
+}
+.bg-success-sub-item:last-child {
+ border-radius: 0 0 4px 0;
+}
+.bg-transparent {
+ border: 1px solid #fcc3c3;
+ color: #303133;
+ background: url("data:image/svg+xml;utf8,");
+ background-repeat: no-repeat;
+ background-position: center center;
+ background-size: 100% 100%, auto;
+}
+.demo-color-box-lite {
+ color: #303133;
+}
diff --git a/examples/demo-styles/container.scss b/examples/demo-styles/container.scss
new file mode 100644
index 000000000..f97fc74e9
--- /dev/null
+++ b/examples/demo-styles/container.scss
@@ -0,0 +1,43 @@
+.el-header,
+.el-footer {
+ background-color: #b3c0d1;
+ color: #333;
+ line-height: 60px;
+}
+
+.el-aside {
+ color: #333;
+}
+
+#chang-jian-ye-mian-bu-ju + .demo-container {
+ .el-header,
+ .el-footer {
+ text-align: center;
+ }
+
+ .el-aside {
+ background-color: #d3dce6;
+ text-align: center;
+ line-height: 200px;
+ }
+
+ .el-main {
+ background-color: #e9eef3;
+ color: #333;
+ text-align: center;
+ line-height: 160px;
+ }
+
+ & > .source > .el-container {
+ margin-bottom: 40px;
+
+ &:nth-child(5) .el-aside,
+ &:nth-child(6) .el-aside {
+ line-height: 260px;
+ }
+
+ &:nth-child(7) .el-aside {
+ line-height: 320px;
+ }
+ }
+}
diff --git a/examples/demo-styles/date-picker.scss b/examples/demo-styles/date-picker.scss
new file mode 100644
index 000000000..96bee1a42
--- /dev/null
+++ b/examples/demo-styles/date-picker.scss
@@ -0,0 +1,36 @@
+.demo-block.demo-date-picker .source > div {
+ padding: 0;
+ display: flex;
+ flex-wrap: wrap;
+}
+
+.demo-date-picker .block {
+ padding: 30px 0;
+ text-align: center;
+ border-right: solid 1px #eff2f6;
+ flex: 1;
+ &:last-child {
+ border-right: none;
+ }
+}
+
+.demo-date-picker .container {
+ flex: 1;
+ border-right: solid 1px #eff2f6;
+ .block {
+ border-right: none;
+ &:last-child {
+ border-top: solid 1px #eff2f6;
+ }
+ }
+ &:last-child {
+ border-right: none;
+ }
+}
+
+.demo-date-picker .demonstration {
+ display: block;
+ color: #8492a6;
+ font-size: 14px;
+ margin-bottom: 20px;
+}
diff --git a/examples/demo-styles/datetime-picker.scss b/examples/demo-styles/datetime-picker.scss
new file mode 100644
index 000000000..481fe02ff
--- /dev/null
+++ b/examples/demo-styles/datetime-picker.scss
@@ -0,0 +1,21 @@
+.demo-block.demo-datetime-picker .source {
+ padding: 0;
+ display: flex;
+}
+
+.demo-datetime-picker .block {
+ padding: 30px 0;
+ text-align: center;
+ border-right: solid 1px #eff2f6;
+ flex: 1;
+ &:last-child {
+ border-right: none;
+ }
+}
+
+.demo-datetime-picker .demonstration {
+ display: block;
+ color: #8492a6;
+ font-size: 14px;
+ margin-bottom: 20px;
+}
diff --git a/examples/demo-styles/dialog.scss b/examples/demo-styles/dialog.scss
new file mode 100644
index 000000000..ddf104332
--- /dev/null
+++ b/examples/demo-styles/dialog.scss
@@ -0,0 +1,20 @@
+.demo-block.demo-dialog {
+ .dialog-footer button:first-child {
+ margin-right: 10px;
+ }
+ .full-image {
+ width: 100%;
+ }
+ .el-dialog__wrapper {
+ margin: 0;
+ }
+ .el-select {
+ width: 300px;
+ }
+ .el-input {
+ width: 300px;
+ }
+ .el-button--text {
+ margin-right: 15px;
+ }
+}
diff --git a/examples/demo-styles/dropdown.scss b/examples/demo-styles/dropdown.scss
new file mode 100644
index 000000000..07c20b6cb
--- /dev/null
+++ b/examples/demo-styles/dropdown.scss
@@ -0,0 +1,37 @@
+.demo-block {
+ .el-dropdown {
+ vertical-align: top;
+
+ & + .el-dropdown {
+ margin-left: 15px;
+ }
+ }
+ .el-dropdown-link {
+ cursor: pointer;
+ color: #409eff;
+ }
+ .el-icon-arrow-down {
+ font-size: 12px;
+ }
+}
+
+.block-col-2 {
+ margin: -24px;
+
+ .el-col {
+ padding: 30px 0;
+ text-align: center;
+ border-right: 1px solid #eff2f6;
+
+ &:last-child {
+ border-right: 0;
+ }
+ }
+}
+
+.demo-dropdown .demonstration {
+ display: block;
+ color: #8492a6;
+ font-size: 14px;
+ margin-bottom: 20px;
+}
diff --git a/examples/demo-styles/form.scss b/examples/demo-styles/form.scss
new file mode 100644
index 000000000..365bf62d3
--- /dev/null
+++ b/examples/demo-styles/form.scss
@@ -0,0 +1,73 @@
+.demo-form.demo-zh-CN {
+ .el-select .el-input {
+ width: 380px;
+ }
+ .el-form {
+ width: 460px;
+ }
+
+ .line {
+ text-align: center;
+ }
+
+ .el-checkbox-group {
+ width: 320px;
+ margin: 0;
+ padding: 0;
+ list-style: none;
+
+ &:after,
+ &:before {
+ content: " ";
+ display: table;
+ }
+ &:after {
+ clear: both;
+ visibility: hidden;
+ font-size: 0;
+ height: 0;
+ }
+
+ .el-checkbox {
+ float: left;
+ width: 160px;
+ padding-right: 20px;
+ margin: 0;
+ padding: 0;
+
+ + .el-checkbox {
+ margin-left: 0;
+ }
+ }
+ }
+ .demo-form-normal {
+ width: 460px;
+ }
+ .demo-form-inline {
+ width: auto;
+
+ .el-input {
+ width: 150px;
+ }
+ > * {
+ margin-right: 10px;
+ }
+ }
+ .demo-ruleForm {
+ width: 460px;
+
+ .el-select .el-input {
+ width: 360px;
+ }
+ }
+ .demo-dynamic {
+ .el-input {
+ margin-right: 10px;
+ width: 270px;
+ vertical-align: top;
+ }
+ }
+ .fr {
+ float: right;
+ }
+}
diff --git a/examples/demo-styles/i18n.scss b/examples/demo-styles/i18n.scss
new file mode 100644
index 000000000..eabe9ce05
--- /dev/null
+++ b/examples/demo-styles/i18n.scss
@@ -0,0 +1,8 @@
+ul.language-list {
+ color: #5e6d82;
+ font-size: 14px;
+ padding-left: 20px;
+ li {
+ line-height: 1.8;
+ }
+}
diff --git a/examples/demo-styles/icon.scss b/examples/demo-styles/icon.scss
new file mode 100644
index 000000000..283a65616
--- /dev/null
+++ b/examples/demo-styles/icon.scss
@@ -0,0 +1,69 @@
+.demo-icon .source > div > i {
+ color: #606266;
+ margin: 0 20px;
+ font-size: 1.5em;
+ vertical-align: middle;
+}
+
+.demo-icon .source button {
+ margin: 0 20px;
+}
+
+.page-component .content > ul.icon-list {
+ overflow: hidden;
+ list-style: none;
+ padding: 0;
+ border: solid 1px #eaeefb;
+ border-radius: 4px;
+}
+.icon-list li {
+ float: left;
+ width: 16.66%;
+ text-align: center;
+ height: 120px;
+ line-height: 120px;
+ color: #666;
+ font-size: 13px;
+ border-right: 1px solid #eee;
+ border-bottom: 1px solid #eee;
+ margin-right: -1px;
+ margin-bottom: -1px;
+
+ &::after {
+ display: inline-block;
+ content: "";
+ height: 100%;
+ vertical-align: middle;
+ }
+
+ span {
+ display: inline-block;
+ line-height: normal;
+ vertical-align: middle;
+ font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB",
+ "Microsoft YaHei", SimSun, sans-serif;
+ color: #99a9bf;
+ transition: color 0.15s linear;
+ }
+
+ i {
+ display: block;
+ font-size: 32px;
+ margin-bottom: 15px;
+ color: #606266;
+ transition: color 0.15s linear;
+ }
+
+ .icon-name {
+ display: inline-block;
+ padding: 0 3px;
+ height: 1em;
+ }
+
+ &:hover {
+ span,
+ i {
+ color: rgb(92, 182, 255);
+ }
+ }
+}
diff --git a/examples/demo-styles/index.scss b/examples/demo-styles/index.scss
new file mode 100644
index 000000000..95458e83b
--- /dev/null
+++ b/examples/demo-styles/index.scss
@@ -0,0 +1,40 @@
+@import "./alert.scss";
+@import "./badge.scss";
+@import "./border.scss";
+@import "./button.scss";
+@import "./card.scss";
+@import "./carousel.scss";
+@import "./cascader.scss";
+@import "./collapse.scss";
+@import "./color-picker.scss";
+@import "./color.scss";
+@import "./container.scss";
+@import "./date-picker.scss";
+@import "./datetime-picker.scss";
+@import "./dialog.scss";
+@import "./dropdown.scss";
+@import "./form.scss";
+@import "./i18n.scss";
+@import "./icon.scss";
+@import "./input-number.scss";
+@import "./input.scss";
+@import "./layout.scss";
+@import "./loading.scss";
+@import "./menu.scss";
+@import "./pagination.scss";
+@import "./popover.scss";
+@import "./progress.scss";
+@import "./rate.scss";
+@import "./select.scss";
+@import "./slider.scss";
+@import "./switch.scss";
+@import "./table.scss";
+@import "./tag.scss";
+@import "./time-picker.scss";
+@import "./timeline.scss";
+@import "./tooltip.scss";
+@import "./transition.scss";
+@import "./transfer.scss";
+@import "./tree.scss";
+@import "./typography.scss";
+@import "./upload.scss";
diff --git a/examples/demo-styles/input-number.scss b/examples/demo-styles/input-number.scss
new file mode 100644
index 000000000..b85cff708
--- /dev/null
+++ b/examples/demo-styles/input-number.scss
@@ -0,0 +1,5 @@
+.demo-block.demo-input-number {
+ .el-input-number + .el-input-number {
+ margin-left: 10px;
+ }
+}
diff --git a/examples/demo-styles/input.scss b/examples/demo-styles/input.scss
new file mode 100644
index 000000000..affcd4a32
--- /dev/null
+++ b/examples/demo-styles/input.scss
@@ -0,0 +1,65 @@
+.demo-input.demo-zh-CN {
+ .el-select .el-input {
+ width: 130px;
+ }
+ .el-input {
+ width: 180px;
+ }
+ .el-textarea {
+ width: 414px;
+ }
+ .el-input-group {
+ width: 100%;
+ }
+ .demo-input-size {
+ .el-input {
+ vertical-align: top;
+ margin: 0 10px 10px 0;
+ }
+ }
+ .input-with-select .el-input-group__prepend {
+ background-color: #fff;
+ }
+ .demo-autocomplete {
+ text-align: center;
+
+ .sub-title {
+ margin-bottom: 10px;
+ font-size: 14px;
+ color: #8492a6;
+ }
+
+ .el-col:not(:last-child) {
+ border-right: 1px solid rgba(224, 230, 237, 0.5);
+ }
+
+ .el-autocomplete {
+ text-align: left;
+ }
+ }
+}
+.el-autocomplete-suggestion.my-autocomplete {
+ li {
+ line-height: normal;
+ padding-top: 7px;
+ padding-bottom: 7px;
+
+ .name {
+ text-overflow: ellipsis;
+ overflow: hidden;
+ }
+ .addr {
+ font-size: 12px;
+ color: #b4b4b4;
+ }
+ .highlighted .addr {
+ color: #ddd;
+ }
+ }
+}
+.demo-input-suffix {
+ margin-bottom: 15px;
+ .el-input {
+ margin-right: 15px;
+ }
+}
diff --git a/examples/demo-styles/layout.scss b/examples/demo-styles/layout.scss
new file mode 100644
index 000000000..df639344f
--- /dev/null
+++ b/examples/demo-styles/layout.scss
@@ -0,0 +1,28 @@
+.demo-layout {
+ .el-row {
+ margin-bottom: 20px;
+ &:last-child {
+ margin-bottom: 0;
+ }
+ }
+ .el-col {
+ border-radius: 4px;
+ }
+ .bg-purple-dark {
+ background: #99a9bf;
+ }
+ .bg-purple {
+ background: #d3dce6;
+ }
+ .bg-purple-light {
+ background: #e5e9f2;
+ }
+ .grid-content {
+ border-radius: 4px;
+ min-height: 36px;
+ }
+ .row-bg {
+ padding: 10px 0;
+ background-color: #f9fafc;
+ }
+}
diff --git a/examples/demo-styles/loading.scss b/examples/demo-styles/loading.scss
new file mode 100644
index 000000000..0fd6e26dc
--- /dev/null
+++ b/examples/demo-styles/loading.scss
@@ -0,0 +1,3 @@
+.demo-loading .el-table {
+ border: none;
+}
diff --git a/examples/demo-styles/menu.scss b/examples/demo-styles/menu.scss
new file mode 100644
index 000000000..3b350216f
--- /dev/null
+++ b/examples/demo-styles/menu.scss
@@ -0,0 +1,27 @@
+.demo-block.demo-menu {
+ .el-menu-demo {
+ padding-left: 55px;
+ }
+ .el-menu-vertical-demo:not(.el-menu--collapse) {
+ width: 240px;
+ min-height: 400px;
+ }
+ .line {
+ height: 1px;
+ background-color: #e0e6ed;
+ margin: 35px -24px;
+ }
+ h5 {
+ font-size: 14px;
+ color: #8492a6;
+ margin-top: 10px;
+ }
+ .tac {
+ text-align: center;
+
+ .el-menu-vertical-demo {
+ display: inline-block;
+ text-align: left;
+ }
+ }
+}
diff --git a/examples/demo-styles/pagination.scss b/examples/demo-styles/pagination.scss
new file mode 100644
index 000000000..09f751d66
--- /dev/null
+++ b/examples/demo-styles/pagination.scss
@@ -0,0 +1,46 @@
+.demo-pagination .source.first {
+ padding: 0;
+}
+
+.demo-pagination .first .block {
+ padding: 30px 0;
+ text-align: center;
+ border-right: solid 1px #eff2f6;
+ display: inline-block;
+ width: 50%;
+ box-sizing: border-box;
+
+ &:last-child {
+ border-right: none;
+ }
+}
+
+.demo-pagination .first .demonstration {
+ display: block;
+ color: #8492a6;
+ font-size: 14px;
+ margin-bottom: 20px;
+}
+
+.demo-pagination .source.last {
+ padding: 0;
+}
+
+.demo-pagination .last .block {
+ padding: 30px 24px;
+ border-bottom: solid 1px #eff2f6;
+ &:last-child {
+ border-bottom: none;
+ }
+}
+
+.demo-pagination .last .demonstration {
+ font-size: 14px;
+ color: #8492a6;
+ line-height: 44px;
+}
+
+.demo-pagination .last .demonstration + .el-pagination {
+ width: 70%;
+ margin: 5px 20px 0 0;
+}
diff --git a/examples/demo-styles/popover.scss b/examples/demo-styles/popover.scss
new file mode 100644
index 000000000..ee18df753
--- /dev/null
+++ b/examples/demo-styles/popover.scss
@@ -0,0 +1,11 @@
+.demo-block.demo-popover {
+ .el-popover + .el-popover {
+ margin-left: 10px;
+ }
+ .el-input {
+ width: 360px;
+ }
+ .el-button {
+ margin-left: 10px;
+ }
+}
diff --git a/examples/demo-styles/progress.scss b/examples/demo-styles/progress.scss
new file mode 100644
index 000000000..216c8d8ae
--- /dev/null
+++ b/examples/demo-styles/progress.scss
@@ -0,0 +1,9 @@
+.demo-block.demo-progress {
+ .el-progress--line {
+ margin-bottom: 15px;
+ width: 350px;
+ }
+ .el-progress--circle {
+ margin-right: 15px;
+ }
+}
diff --git a/examples/demo-styles/rate.scss b/examples/demo-styles/rate.scss
new file mode 100644
index 000000000..938c072f3
--- /dev/null
+++ b/examples/demo-styles/rate.scss
@@ -0,0 +1,18 @@
+.demo-rate .block {
+ padding: 30px 0;
+ text-align: center;
+ border-right: solid 1px #eff2f6;
+ display: inline-block;
+ width: 50%;
+ box-sizing: border-box;
+ &:last-child {
+ border-right: none;
+ }
+}
+
+.demo-rate .demonstration {
+ display: block;
+ color: #8492a6;
+ font-size: 14px;
+ margin-bottom: 20px;
+}
diff --git a/examples/demo-styles/select.scss b/examples/demo-styles/select.scss
new file mode 100644
index 000000000..3d3c8e97f
--- /dev/null
+++ b/examples/demo-styles/select.scss
@@ -0,0 +1,3 @@
+.demo-select .el-select {
+ width: 240px;
+}
diff --git a/examples/demo-styles/slider.scss b/examples/demo-styles/slider.scss
new file mode 100644
index 000000000..1b600a2c7
--- /dev/null
+++ b/examples/demo-styles/slider.scss
@@ -0,0 +1,24 @@
+.demo-block.demo-slider .source {
+ padding: 0;
+}
+
+.demo-block.demo-slider .block {
+ padding: 30px 24px;
+ overflow: hidden;
+ border-bottom: solid 1px #eff2f6;
+ &:last-child {
+ border-bottom: none;
+ }
+}
+
+.demo-block.demo-slider .demonstration {
+ font-size: 14px;
+ color: #8492a6;
+ line-height: 44px;
+}
+
+.demo-block.demo-slider .demonstration + .el-slider {
+ float: right;
+ width: 70%;
+ margin-right: 20px;
+}
diff --git a/examples/demo-styles/switch.scss b/examples/demo-styles/switch.scss
new file mode 100644
index 000000000..d62bb6458
--- /dev/null
+++ b/examples/demo-styles/switch.scss
@@ -0,0 +1,5 @@
+.demo-block.demo-switch {
+ .el-switch {
+ margin: 20px 20px 20px 0;
+ }
+}
diff --git a/examples/demo-styles/table.scss b/examples/demo-styles/table.scss
new file mode 100644
index 000000000..ccd16e6e6
--- /dev/null
+++ b/examples/demo-styles/table.scss
@@ -0,0 +1,23 @@
+.el-table .warning-row {
+ background: oldlace;
+}
+
+.el-table .success-row {
+ background: #f0f9eb;
+}
+
+.demo-table .name-wrapper {
+ display: inline-block;
+}
+
+.demo-table .demo-table-expand {
+ label {
+ width: 90px;
+ color: #99a9bf;
+ }
+ .el-form-item {
+ margin-right: 0;
+ margin-bottom: 0;
+ width: 50%;
+ }
+}
diff --git a/examples/demo-styles/tag.scss b/examples/demo-styles/tag.scss
new file mode 100644
index 000000000..32225698b
--- /dev/null
+++ b/examples/demo-styles/tag.scss
@@ -0,0 +1,17 @@
+.demo-block.demo-tag {
+ .el-tag + .el-tag {
+ margin-left: 10px;
+ }
+ .button-new-tag {
+ margin-left: 10px;
+ height: 32px;
+ line-height: 30px;
+ padding-top: 0;
+ padding-bottom: 0;
+ }
+ .input-new-tag {
+ width: 90px;
+ margin-left: 10px;
+ vertical-align: bottom;
+ }
+}
diff --git a/examples/demo-styles/time-picker.scss b/examples/demo-styles/time-picker.scss
new file mode 100644
index 000000000..f3c19a6ac
--- /dev/null
+++ b/examples/demo-styles/time-picker.scss
@@ -0,0 +1,5 @@
+.demo-block {
+ .el-date-editor + .el-date-editor {
+ margin-left: 10px;
+ }
+}
diff --git a/examples/demo-styles/timeline.scss b/examples/demo-styles/timeline.scss
new file mode 100644
index 000000000..0a50028f0
--- /dev/null
+++ b/examples/demo-styles/timeline.scss
@@ -0,0 +1,6 @@
+.demo-timeline .source .radio {
+ margin-bottom: 20px;
+}
+.demo-timeline .source .radio .el-radio-group {
+ margin-left: 20px;
+}
diff --git a/examples/demo-styles/tooltip.scss b/examples/demo-styles/tooltip.scss
new file mode 100644
index 000000000..74e3e238b
--- /dev/null
+++ b/examples/demo-styles/tooltip.scss
@@ -0,0 +1,39 @@
+.demo-tooltip {
+ .el-tooltip + .el-tooltip {
+ margin-left: 15px;
+ }
+ .box {
+ width: 400px;
+
+ .top {
+ text-align: center;
+ }
+
+ .left {
+ float: left;
+ width: 60px;
+ }
+
+ .right {
+ float: right;
+ width: 60px;
+ }
+
+ .bottom {
+ clear: both;
+ text-align: center;
+ }
+
+ .item {
+ margin: 4px;
+ }
+
+ .left .el-tooltip__popper,
+ .right .el-tooltip__popper {
+ padding: 8px 10px;
+ }
+ .el-tooltip {
+ margin-left: 0;
+ }
+ }
+}
diff --git a/examples/demo-styles/transfer.scss b/examples/demo-styles/transfer.scss
new file mode 100644
index 000000000..a5b49433f
--- /dev/null
+++ b/examples/demo-styles/transfer.scss
@@ -0,0 +1,6 @@
+.demo-transfer {
+ .transfer-footer {
+ margin-left: 15px;
+ padding: 6px 5px;
+ }
+}
diff --git a/examples/demo-styles/transition.scss b/examples/demo-styles/transition.scss
new file mode 100644
index 000000000..f7828c54d
--- /dev/null
+++ b/examples/demo-styles/transition.scss
@@ -0,0 +1,14 @@
+.demo-transition {
+ .transition-box {
+ margin-bottom: 10px;
+ width: 200px;
+ height: 100px;
+ border-radius: 4px;
+ background-color: #409EFF;
+ text-align: center;
+ color: #fff;
+ padding: 40px 20px;
+ margin-right: 20px;
+ box-sizing: border-box;
+ }
+}
diff --git a/examples/demo-styles/tree.scss b/examples/demo-styles/tree.scss
new file mode 100644
index 000000000..286b0f3bd
--- /dev/null
+++ b/examples/demo-styles/tree.scss
@@ -0,0 +1,48 @@
+.demo-tree {
+ .leaf {
+ width: 20px;
+ background: #ddd;
+ }
+
+ .folder {
+ width: 20px;
+ background: #888;
+ }
+
+ .buttons {
+ margin-top: 20px;
+ }
+
+ .filter-tree {
+ margin-top: 20px;
+ }
+
+ .custom-tree-container {
+ display: flex;
+ margin: -24px;
+ }
+
+ .block {
+ flex: 1;
+ padding: 8px 24px 24px;
+
+ &:first-child {
+ border-right: solid 1px #eff2f6;
+ }
+
+ > p {
+ text-align: center;
+ margin: 0;
+ line-height: 4;
+ }
+ }
+
+ .custom-tree-node {
+ flex: 1;
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ font-size: 14px;
+ padding-right: 8px;
+ }
+}
diff --git a/examples/demo-styles/typography.scss b/examples/demo-styles/typography.scss
new file mode 100644
index 000000000..ff9c0a261
--- /dev/null
+++ b/examples/demo-styles/typography.scss
@@ -0,0 +1,30 @@
+.demo-typo-size {
+ .color-dark-light {
+ color: #99a9bf;
+ }
+}
+.demo-term-box img {
+ width: 24%;
+ margin: 0 4% 20px 0;
+}
+
+.lineH-left {
+ display: inline-block;
+ height: 80px;
+}
+.lineH-right {
+ display: inline-block;
+ list-style: none;
+ padding: 0 0 0 90px;
+ margin: 0;
+ vertical-align: top;
+}
+.lineH-right li {
+ font-size: 13px;
+ color: #666;
+ height: 20px;
+ line-height: 20px;
+}
+.lineH-right li span {
+ padding-left: 40px;
+}
diff --git a/examples/demo-styles/upload.scss b/examples/demo-styles/upload.scss
new file mode 100644
index 000000000..e7f8a941b
--- /dev/null
+++ b/examples/demo-styles/upload.scss
@@ -0,0 +1,39 @@
+.upload-tip {
+ color: #8492a6;
+ font-size: 12px;
+ margin-top: 7px;
+}
+.demo-block {
+ margin-bottom: 24px;
+
+ .upload-demo {
+ width: 360px;
+ }
+ .avatar-uploader {
+ .el-upload {
+ border: 1px dashed #d9d9d9;
+ border-radius: 6px;
+ cursor: pointer;
+ position: relative;
+ overflow: hidden;
+
+ &:hover,
+ &:focus {
+ border-color: #409eff;
+ }
+ }
+ .avatar-uploader-icon {
+ font-size: 28px;
+ color: #8c939d;
+ width: 178px;
+ height: 178px;
+ line-height: 178px;
+ text-align: center;
+ }
+ .avatar {
+ width: 178px;
+ height: 178px;
+ display: block;
+ }
+ }
+}
diff --git a/examples/docs/en-US/alert.md b/examples/docs/en-US/alert.md
index 5eb3bdbd9..7cea46f3a 100644
--- a/examples/docs/en-US/alert.md
+++ b/examples/docs/en-US/alert.md
@@ -1,22 +1,3 @@
-
-
-
## Alert
Displays important alert messages.
diff --git a/examples/docs/en-US/badge.md b/examples/docs/en-US/badge.md
index 0636dd0ef..9f9a687d7 100644
--- a/examples/docs/en-US/badge.md
+++ b/examples/docs/en-US/badge.md
@@ -114,27 +114,6 @@ Use a red dot to mark content that needs to be noticed.
```
:::
-
-
### Attributes
| Attribute | Description | Type | Accepted Values | Default |
|------------- |---------------- |---------------- |---------------------- |-------- |
diff --git a/examples/docs/en-US/border.md b/examples/docs/en-US/border.md
index 406dc047b..aef773ad4 100644
--- a/examples/docs/en-US/border.md
+++ b/examples/docs/en-US/border.md
@@ -52,53 +52,6 @@
}
-
-
## Border
We standardize the borders that can be used in buttons, cards, pop-ups and other components.
diff --git a/examples/docs/en-US/button.md b/examples/docs/en-US/button.md
index 6bad26ba8..9c00fff0e 100644
--- a/examples/docs/en-US/button.md
+++ b/examples/docs/en-US/button.md
@@ -1,27 +1,3 @@
-
-
## Button
Commonly used button.
diff --git a/examples/docs/en-US/card.md b/examples/docs/en-US/card.md
index d657fc85e..55c940a49 100644
--- a/examples/docs/en-US/card.md
+++ b/examples/docs/en-US/card.md
@@ -1,51 +1,3 @@
-
-
-
## Card
Integrate information in a card container.
diff --git a/examples/docs/en-US/carousel.md b/examples/docs/en-US/carousel.md
index 8d3919451..e2b5f68b1 100644
--- a/examples/docs/en-US/carousel.md
+++ b/examples/docs/en-US/carousel.md
@@ -1,64 +1,3 @@
-
-
## Carousel
Loop a series of images or texts in a limited space
diff --git a/examples/docs/en-US/cascader.md b/examples/docs/en-US/cascader.md
index 6eafc6dce..6387acd24 100644
--- a/examples/docs/en-US/cascader.md
+++ b/examples/docs/en-US/cascader.md
@@ -1,283 +1,3 @@
-
-
-
-
## Cascader
If the options have a clear hierarchical structure, Cascader can be used to view and select them.
diff --git a/examples/docs/en-US/checkbox.md b/examples/docs/en-US/checkbox.md
index 215c76146..35f9eddc3 100644
--- a/examples/docs/en-US/checkbox.md
+++ b/examples/docs/en-US/checkbox.md
@@ -1,48 +1,3 @@
-
-
## Checkbox
A group of options for multiple choices.
diff --git a/examples/docs/en-US/collapse.md b/examples/docs/en-US/collapse.md
index 9a7bcab06..ed206d120 100644
--- a/examples/docs/en-US/collapse.md
+++ b/examples/docs/en-US/collapse.md
@@ -1,29 +1,3 @@
-
-
-
-
## Collapse
Use Collapse to store contents.
diff --git a/examples/docs/en-US/color-picker.md b/examples/docs/en-US/color-picker.md
index 0db28de4f..6ebf3e3ec 100644
--- a/examples/docs/en-US/color-picker.md
+++ b/examples/docs/en-US/color-picker.md
@@ -1,62 +1,3 @@
-
-
-
-
## ColorPicker
ColorPicker is a color selector supporting multiple color formats.
diff --git a/examples/docs/en-US/color.md b/examples/docs/en-US/color.md
index 85ade5e03..a9d2deae7 100644
--- a/examples/docs/en-US/color.md
+++ b/examples/docs/en-US/color.md
@@ -89,81 +89,6 @@
}
-
-
## Color
Element uses a specific set of palettes to specify colors to provide a consistent look and feel for the products you build.
@@ -191,6 +116,7 @@ The main color of Element is bright and friendly blue.
>
+
@@ -318,6 +244,7 @@ Neutral colors are for text, background and border colors. You can use different
:style="{ background: white, color: '#303133', border: '1px solid #eee' }"
>Basic White{{white}}
TransparentTransparent
+
diff --git a/examples/docs/en-US/container.md b/examples/docs/en-US/container.md
index e1a5e4e07..1fd23b489 100644
--- a/examples/docs/en-US/container.md
+++ b/examples/docs/en-US/container.md
@@ -1,62 +1,3 @@
-
-
-
-
## Container
Container components for scaffolding basic structure of the page:
diff --git a/examples/docs/en-US/date-picker.md b/examples/docs/en-US/date-picker.md
index e89174670..707f9971f 100644
--- a/examples/docs/en-US/date-picker.md
+++ b/examples/docs/en-US/date-picker.md
@@ -1,116 +1,3 @@
-
-
-
-
## DatePicker
Use Date Picker for date input.
diff --git a/examples/docs/en-US/datetime-picker.md b/examples/docs/en-US/datetime-picker.md
index 5f44cd21f..728fe4697 100644
--- a/examples/docs/en-US/datetime-picker.md
+++ b/examples/docs/en-US/datetime-picker.md
@@ -1,92 +1,3 @@
-
-
-
-
## DateTimePicker
Select date and time in one picker.
diff --git a/examples/docs/en-US/dialog.md b/examples/docs/en-US/dialog.md
index 3f60fd8e3..ee01418ed 100644
--- a/examples/docs/en-US/dialog.md
+++ b/examples/docs/en-US/dialog.md
@@ -1,78 +1,3 @@
-
-
-
-
## Dialog
Informs users while preserving the current page state.
diff --git a/examples/docs/en-US/dropdown.md b/examples/docs/en-US/dropdown.md
index 1f593d709..39f0695be 100644
--- a/examples/docs/en-US/dropdown.md
+++ b/examples/docs/en-US/dropdown.md
@@ -1,55 +1,3 @@
-
-
-
## Dropdown
Toggleable menu for displaying lists of links and actions.
diff --git a/examples/docs/en-US/form.md b/examples/docs/en-US/form.md
index 5c653211a..1b9ad7aa6 100644
--- a/examples/docs/en-US/form.md
+++ b/examples/docs/en-US/form.md
@@ -1,250 +1,3 @@
-
-
-
-
## Form
Form consists of `input`, `radio`, `select`, `checkbox` and so on. With form, you can collect, verify and submit data.
diff --git a/examples/docs/en-US/icon.md b/examples/docs/en-US/icon.md
index a4898fb0c..9a9648181 100644
--- a/examples/docs/en-US/icon.md
+++ b/examples/docs/en-US/icon.md
@@ -1,75 +1,3 @@
-
-
-
-
## Icon
Element provides a set of common icons.
@@ -92,7 +20,7 @@ Just assign the class name to `el-icon-iconName`.
### Icons
- -
+
-
{{'el-icon-' + name}}
diff --git a/examples/docs/en-US/input-number.md b/examples/docs/en-US/input-number.md
index e7f277cd7..cf182edda 100644
--- a/examples/docs/en-US/input-number.md
+++ b/examples/docs/en-US/input-number.md
@@ -1,34 +1,3 @@
-
-
-
-
## InputNumber
Input numerical values with a customizable range.
diff --git a/examples/docs/en-US/input.md b/examples/docs/en-US/input.md
index 6e4484991..5e7f0531b 100644
--- a/examples/docs/en-US/input.md
+++ b/examples/docs/en-US/input.md
@@ -1,150 +1,3 @@
-
-
-
-
## Input
Input data using mouse or keyboard.
diff --git a/examples/docs/en-US/layout.md b/examples/docs/en-US/layout.md
index fa6bf95e8..ac516e8bc 100644
--- a/examples/docs/en-US/layout.md
+++ b/examples/docs/en-US/layout.md
@@ -1,34 +1,3 @@
-
-
## Layout
Quickly and easily create layouts with the basic 24-column.
diff --git a/examples/docs/en-US/loading.md b/examples/docs/en-US/loading.md
index c355a7bb3..a305498a1 100644
--- a/examples/docs/en-US/loading.md
+++ b/examples/docs/en-US/loading.md
@@ -1,54 +1,3 @@
-
-
-
-
## Loading
Show animation while loading data.
diff --git a/examples/docs/en-US/menu.md b/examples/docs/en-US/menu.md
index 5bae6c194..802e8d96d 100644
--- a/examples/docs/en-US/menu.md
+++ b/examples/docs/en-US/menu.md
@@ -1,56 +1,3 @@
-
-
-
-
## NavMenu
Menu that provides navigation for your website.
diff --git a/examples/docs/en-US/message-box.md b/examples/docs/en-US/message-box.md
index c0d183df9..2616e3507 100644
--- a/examples/docs/en-US/message-box.md
+++ b/examples/docs/en-US/message-box.md
@@ -1,148 +1,3 @@
-
-
## MessageBox
A set of modal boxes simulating system message box, mainly for alerting information, confirm operations and prompting messages.
diff --git a/examples/docs/en-US/message.md b/examples/docs/en-US/message.md
index aee106f95..976c38f76 100644
--- a/examples/docs/en-US/message.md
+++ b/examples/docs/en-US/message.md
@@ -1,86 +1,3 @@
-
-
## Message
Used to show feedback after an activity. The difference with Notification is that the latter is often used to show a system level passive notification.
diff --git a/examples/docs/en-US/notification.md b/examples/docs/en-US/notification.md
index dc8116197..1c1eceb03 100644
--- a/examples/docs/en-US/notification.md
+++ b/examples/docs/en-US/notification.md
@@ -1,115 +1,3 @@
-
-
## Notification
Displays a global notification message at a corner of the page.
diff --git a/examples/docs/en-US/pagination.md b/examples/docs/en-US/pagination.md
index 777da3f51..e6ea0796a 100644
--- a/examples/docs/en-US/pagination.md
+++ b/examples/docs/en-US/pagination.md
@@ -1,52 +1,3 @@
-
-
## Pagination
If you have too much data to display in one page, use pagination.
@@ -188,36 +139,6 @@ Add more modules based on your scenario.
```
:::
-
### Attributes
| Attribute | Description | Type | Accepted Values | Default |
diff --git a/examples/docs/en-US/popover.md b/examples/docs/en-US/popover.md
index ec3622dec..40c747a4f 100644
--- a/examples/docs/en-US/popover.md
+++ b/examples/docs/en-US/popover.md
@@ -1,100 +1,3 @@
-
-
-
-
## Popover
### Basic usage
diff --git a/examples/docs/en-US/progress.md b/examples/docs/en-US/progress.md
index c8c24a0f8..3f686c1a3 100644
--- a/examples/docs/en-US/progress.md
+++ b/examples/docs/en-US/progress.md
@@ -1,14 +1,3 @@
-
## Progress
Progress is used to show the progress of current operation, and inform the user the current status.
diff --git a/examples/docs/en-US/radio.md b/examples/docs/en-US/radio.md
index dfbf16d47..e1192bf90 100644
--- a/examples/docs/en-US/radio.md
+++ b/examples/docs/en-US/radio.md
@@ -1,23 +1,3 @@
-
-
## Radio
Single selection among multiple options.
diff --git a/examples/docs/en-US/rate.md b/examples/docs/en-US/rate.md
index 14997b22e..6cc77c236 100644
--- a/examples/docs/en-US/rate.md
+++ b/examples/docs/en-US/rate.md
@@ -1,44 +1,3 @@
-
-
-
-
## Rate
Used for rating
diff --git a/examples/docs/en-US/select.md b/examples/docs/en-US/select.md
index 8d574cb20..1e62fec9b 100644
--- a/examples/docs/en-US/select.md
+++ b/examples/docs/en-US/select.md
@@ -1,138 +1,3 @@
-
-
-
-
## Select
When there are plenty of options, use a drop-down menu to display and select desired ones.
diff --git a/examples/docs/en-US/slider.md b/examples/docs/en-US/slider.md
index 6b7206581..9ff299e6e 100644
--- a/examples/docs/en-US/slider.md
+++ b/examples/docs/en-US/slider.md
@@ -1,54 +1,3 @@
-
-
-
-
## Slider
Drag the slider within a fixed range.
diff --git a/examples/docs/en-US/steps.md b/examples/docs/en-US/steps.md
index a40404e52..34a03f18a 100644
--- a/examples/docs/en-US/steps.md
+++ b/examples/docs/en-US/steps.md
@@ -1,19 +1,3 @@
-
-
## Steps
Guide the user to complete tasks in accordance with the process. Its steps can be set according to the actual application scenario and the number of the steps can't be less than 2.
diff --git a/examples/docs/en-US/switch.md b/examples/docs/en-US/switch.md
index d8b8bdbcc..f4c30b112 100644
--- a/examples/docs/en-US/switch.md
+++ b/examples/docs/en-US/switch.md
@@ -1,27 +1,3 @@
-
-
-
-
## Switch
Switch is used for switching between two opposing states.
diff --git a/examples/docs/en-US/table.md b/examples/docs/en-US/table.md
index 658dd762a..5479fa0ea 100644
--- a/examples/docs/en-US/table.md
+++ b/examples/docs/en-US/table.md
@@ -1,372 +1,3 @@
-
-
-
-
## Table
Display multiple data with similar format. You can sort, filter, compare your data in a table.
@@ -1977,7 +1608,7 @@ Configuring rowspan and colspan allows you to merge cells
### Custom index
You can customize row index in `type=index` columns.
-:::demo To customize row indices, use `index` attribute on
with `type=index`. If it is assigned to a number, all indices will have an offset of that number. It also accepts a method with each index (starting from `0`) as parameter, and the returned value will be displayed as index.
+:::demo To customize row indices, use `index` attribute on `el-table-column` with `type=index`. If it is assigned to a number, all indices will have an offset of that number. It also accepts a method with each index (starting from `0`) as parameter, and the returned value will be displayed as index.
```html
diff --git a/examples/docs/en-US/tabs.md b/examples/docs/en-US/tabs.md
index df1b07f0d..20b19375e 100644
--- a/examples/docs/en-US/tabs.md
+++ b/examples/docs/en-US/tabs.md
@@ -1,95 +1,3 @@
-
-
## Tabs
Divide data collections which are related yet belong to different types.
diff --git a/examples/docs/en-US/tag.md b/examples/docs/en-US/tag.md
index 94ce236a9..e54384705 100644
--- a/examples/docs/en-US/tag.md
+++ b/examples/docs/en-US/tag.md
@@ -1,63 +1,3 @@
-
-
-
-
## Tag
Used for marking and selection.
diff --git a/examples/docs/en-US/time-picker.md b/examples/docs/en-US/time-picker.md
index b649b7ba7..5143e3059 100644
--- a/examples/docs/en-US/time-picker.md
+++ b/examples/docs/en-US/time-picker.md
@@ -1,11 +1,3 @@
-
-
## TimePicker
Use Time Picker for time input.
@@ -154,22 +146,6 @@ Can pick an arbitrary time range.
```
:::
-
-
### Attributes
| Attribute | Description | Type | Accepted Values | Default |
|---------- |-------------- |---------- |-------------------------------- |-------- |
diff --git a/examples/docs/en-US/timeline.md b/examples/docs/en-US/timeline.md
index dd8a706ca..dfe334869 100644
--- a/examples/docs/en-US/timeline.md
+++ b/examples/docs/en-US/timeline.md
@@ -1,49 +1,3 @@
-
-
-
## Timeline
Visually display timeline.
diff --git a/examples/docs/en-US/tooltip.md b/examples/docs/en-US/tooltip.md
index 5bd0ae5d0..c25e1c7f2 100644
--- a/examples/docs/en-US/tooltip.md
+++ b/examples/docs/en-US/tooltip.md
@@ -1,60 +1,3 @@
-
-
-
-
## Tooltip
Display prompt information for mouse hover.
diff --git a/examples/docs/en-US/transfer.md b/examples/docs/en-US/transfer.md
index 4b5f96484..3a30453e2 100644
--- a/examples/docs/en-US/transfer.md
+++ b/examples/docs/en-US/transfer.md
@@ -1,76 +1,3 @@
-
-
-
-
## Transfer
### Basic usage
diff --git a/examples/docs/en-US/transition.md b/examples/docs/en-US/transition.md
index 2658239d0..91de61234 100644
--- a/examples/docs/en-US/transition.md
+++ b/examples/docs/en-US/transition.md
@@ -153,28 +153,3 @@ import Vue from 'vue'
Vue.component(CollapseTransition.name, CollapseTransition)
```
-
-
-
-
diff --git a/examples/docs/en-US/tree.md b/examples/docs/en-US/tree.md
index ccfc6fa45..23e680f16 100644
--- a/examples/docs/en-US/tree.md
+++ b/examples/docs/en-US/tree.md
@@ -1,382 +1,3 @@
-
-
-
-
## Tree
Display a set of data with hierarchies.
diff --git a/examples/docs/en-US/typography.md b/examples/docs/en-US/typography.md
index a65563d43..8d5b285b0 100644
--- a/examples/docs/en-US/typography.md
+++ b/examples/docs/en-US/typography.md
@@ -61,38 +61,6 @@
},
}
-
## Typography
diff --git a/examples/docs/en-US/upload.md b/examples/docs/en-US/upload.md
index ab6f145c9..e9dd53d1a 100644
--- a/examples/docs/en-US/upload.md
+++ b/examples/docs/en-US/upload.md
@@ -1,122 +1,3 @@
-
-
-
## Upload
Upload files by clicking or drag-and-drop
diff --git a/examples/docs/es/alert.md b/examples/docs/es/alert.md
index 07840a24a..8e8761853 100644
--- a/examples/docs/es/alert.md
+++ b/examples/docs/es/alert.md
@@ -1,22 +1,3 @@
-
-
-
## Alert
Mostrar mensajes de alertas importantes.
diff --git a/examples/docs/es/badge.md b/examples/docs/es/badge.md
index 7f91c7cbe..0231d488a 100644
--- a/examples/docs/es/badge.md
+++ b/examples/docs/es/badge.md
@@ -114,27 +114,6 @@ Puede utilizar un punto rojo para marcar contenido que debe ser notado.
```
:::
-
-
### Atributos
| Atributo | Descripción | Tipo | Valores aceptados | Por defecto |
| -------- | ---------------------------------------- | -------------- | ----------------- | ----------- |
diff --git a/examples/docs/es/border.md b/examples/docs/es/border.md
index 406dc047b..aef773ad4 100644
--- a/examples/docs/es/border.md
+++ b/examples/docs/es/border.md
@@ -52,53 +52,6 @@
}
-
-
## Border
We standardize the borders that can be used in buttons, cards, pop-ups and other components.
diff --git a/examples/docs/es/button.md b/examples/docs/es/button.md
index a27672622..dd95f1656 100644
--- a/examples/docs/es/button.md
+++ b/examples/docs/es/button.md
@@ -1,27 +1,3 @@
-
-
## Button
Botones comúnmente usados.
diff --git a/examples/docs/es/card.md b/examples/docs/es/card.md
index a5bd12f54..b33712200 100644
--- a/examples/docs/es/card.md
+++ b/examples/docs/es/card.md
@@ -1,51 +1,3 @@
-
-
-
## Card
Muestra información dentro de un contenedor `card`
diff --git a/examples/docs/es/carousel.md b/examples/docs/es/carousel.md
index 42ea9f5e1..fa5d45458 100644
--- a/examples/docs/es/carousel.md
+++ b/examples/docs/es/carousel.md
@@ -1,64 +1,3 @@
-
-
## Carousel
Presenta una serie de imágenes o textos en un espacio limitado
diff --git a/examples/docs/es/cascader.md b/examples/docs/es/cascader.md
index e02afedea..c8ccc575f 100644
--- a/examples/docs/es/cascader.md
+++ b/examples/docs/es/cascader.md
@@ -1,283 +1,3 @@
-
-
-
-
## Cascader
Si las opciones tienen una estructura jerárquica clara, Cascader puede utilizarse para visualizarlas y seleccionarlas.
diff --git a/examples/docs/es/checkbox.md b/examples/docs/es/checkbox.md
index 996f5b23a..20df278a7 100644
--- a/examples/docs/es/checkbox.md
+++ b/examples/docs/es/checkbox.md
@@ -1,48 +1,3 @@
-
-
## Checkbox
Un grupo de opciones para manejar múltiples elecciones.
diff --git a/examples/docs/es/collapse.md b/examples/docs/es/collapse.md
index 1ed937d1a..c0562ed40 100644
--- a/examples/docs/es/collapse.md
+++ b/examples/docs/es/collapse.md
@@ -1,29 +1,3 @@
-
-
-
-
## Collapse
Use Collapse para almacenar contenidos.
diff --git a/examples/docs/es/color-picker.md b/examples/docs/es/color-picker.md
index 51a75a2a1..ed3e21e44 100644
--- a/examples/docs/es/color-picker.md
+++ b/examples/docs/es/color-picker.md
@@ -1,62 +1,3 @@
-
-
-
-
## ColorPicker
ColorPicker es un selector de color que soporta varios formatos de color.
diff --git a/examples/docs/es/color.md b/examples/docs/es/color.md
index f5cb68567..419d7b2f4 100644
--- a/examples/docs/es/color.md
+++ b/examples/docs/es/color.md
@@ -89,81 +89,6 @@
}
-
-
## Color
Element utiliza un conjunto de paletas para especificar colores, y así, proporcionar una apariencia y sensación coherente para los productos que construye.
@@ -190,6 +115,7 @@ El color principal de Element es el azul brillante y amigable.
>
+
@@ -317,6 +243,7 @@ Los colores neutrales son para texto, fondos y bordes. Puede usar diferentes col
:style="{ background: white, color: '#303133', border: '1px solid #eee' }"
>Basic White{{white}}
TransparentTransparent
+
diff --git a/examples/docs/es/container.md b/examples/docs/es/container.md
index 2639063a9..1b84f3e8a 100644
--- a/examples/docs/es/container.md
+++ b/examples/docs/es/container.md
@@ -1,62 +1,3 @@
-
-
-
-
## Contenedor
Componentes contenedores para iniciar una estructura básica de un sitio:
diff --git a/examples/docs/es/date-picker.md b/examples/docs/es/date-picker.md
index fa7fbce0c..9be02f2a4 100644
--- a/examples/docs/es/date-picker.md
+++ b/examples/docs/es/date-picker.md
@@ -1,116 +1,3 @@
-
-
-
-
## DatePicker
Utilice Date Picker para introducir la fecha.
diff --git a/examples/docs/es/datetime-picker.md b/examples/docs/es/datetime-picker.md
index 208321168..5ddbeb27b 100644
--- a/examples/docs/es/datetime-picker.md
+++ b/examples/docs/es/datetime-picker.md
@@ -1,92 +1,3 @@
-
-
-
-
## DateTimePicker
Seleccionar fecha y tiempo juntos en un picker.
diff --git a/examples/docs/es/dialog.md b/examples/docs/es/dialog.md
index 6539462c3..a8d919418 100644
--- a/examples/docs/es/dialog.md
+++ b/examples/docs/es/dialog.md
@@ -1,78 +1,3 @@
-
-
-
-
## Dialog
Informar a usuarios preservando el estado de la página actual.
diff --git a/examples/docs/es/dropdown.md b/examples/docs/es/dropdown.md
index 8ee560116..24a6fd5e0 100644
--- a/examples/docs/es/dropdown.md
+++ b/examples/docs/es/dropdown.md
@@ -1,55 +1,3 @@
-
-
-
## Dropdown
Menú conmutable para visualizar listas de enlaces y acciones.
diff --git a/examples/docs/es/form.md b/examples/docs/es/form.md
index d3a863389..21e533e5c 100644
--- a/examples/docs/es/form.md
+++ b/examples/docs/es/form.md
@@ -1,250 +1,3 @@
-
-
-
-
## Form
Form consiste en `input`, `radio`, `select`, `checkbox`, etcétera. Con el formulario, usted puede recopilar, verificar y enviar datos.
diff --git a/examples/docs/es/icon.md b/examples/docs/es/icon.md
index a8cf4e296..72783af96 100644
--- a/examples/docs/es/icon.md
+++ b/examples/docs/es/icon.md
@@ -1,75 +1,3 @@
-
-
-
-
## Icon
Element proporciona un conjunto de iconos propios.
@@ -92,7 +20,7 @@ Simplemente asigna el nombre de la clase a `el-icon-iconName`.
### Iconos
- -
+
-
{{'el-icon-' + name}}
diff --git a/examples/docs/es/input-number.md b/examples/docs/es/input-number.md
index 61ebb279b..cf1f0e1b8 100644
--- a/examples/docs/es/input-number.md
+++ b/examples/docs/es/input-number.md
@@ -1,41 +1,10 @@
-
-
-
-
## InputNumber
Input de valores numéricos con un rango personalizable.
### Uso básico
-:::demo Vincule una variable con `v-model` en el elemento
y estará listo.
+:::demo Vincule una variable con `v-model` en el elemento `` y estará listo.
```html
diff --git a/examples/docs/es/input.md b/examples/docs/es/input.md
index 788daab2b..0ddaf9744 100644
--- a/examples/docs/es/input.md
+++ b/examples/docs/es/input.md
@@ -1,150 +1,3 @@
-
-
-
-
## Input
Ingresa datos usando el ratón o teclado.
diff --git a/examples/docs/es/layout.md b/examples/docs/es/layout.md
index 55a8ee6be..d8721fa7b 100644
--- a/examples/docs/es/layout.md
+++ b/examples/docs/es/layout.md
@@ -1,34 +1,3 @@
-
-
## Layout
Rápido y facilmente crea un layout básico con 24 columnas.
diff --git a/examples/docs/es/loading.md b/examples/docs/es/loading.md
index 542c9034b..b0694a03f 100644
--- a/examples/docs/es/loading.md
+++ b/examples/docs/es/loading.md
@@ -1,54 +1,3 @@
-
-
-
-
## Cargando
Se muestra la animación mientras se cargan los datos.
diff --git a/examples/docs/es/menu.md b/examples/docs/es/menu.md
index bb16bf6e9..8abfa627f 100644
--- a/examples/docs/es/menu.md
+++ b/examples/docs/es/menu.md
@@ -1,56 +1,3 @@
-
-
-
-
## NavMenu
Menú que provee la navegación para tu sitio.
diff --git a/examples/docs/es/message-box.md b/examples/docs/es/message-box.md
index 05015d220..a9a1c744f 100644
--- a/examples/docs/es/message-box.md
+++ b/examples/docs/es/message-box.md
@@ -1,148 +1,3 @@
-
-
## MessageBox
Un conjunto de cajas modales simulando un sistema de message box, principalmente para alertar informacion, confirmar operaciones y mostrar mensajes de aviso.
diff --git a/examples/docs/es/message.md b/examples/docs/es/message.md
index 20fbd9d9e..80bbbb0ff 100644
--- a/examples/docs/es/message.md
+++ b/examples/docs/es/message.md
@@ -1,86 +1,3 @@
-
-
## Message
Utilizado para mostrar retroalimentacion despues de una actividad. La diferencia con el componente Notification es que este ultimo es utilizado para mostrar una notificacion pasiva a nivel de sistema.
diff --git a/examples/docs/es/notification.md b/examples/docs/es/notification.md
index 66fae1f25..cf48f2a68 100644
--- a/examples/docs/es/notification.md
+++ b/examples/docs/es/notification.md
@@ -1,115 +1,3 @@
-
-
## Notification
Muestra un mensaje de notificación global en una esquina de la página.
diff --git a/examples/docs/es/pagination.md b/examples/docs/es/pagination.md
index cfc46c4bc..2fb0d93e3 100644
--- a/examples/docs/es/pagination.md
+++ b/examples/docs/es/pagination.md
@@ -1,52 +1,3 @@
-
-
## Paginación
Si tiene que mostrar muchos datos en una página, utilice la paginación.
@@ -175,36 +126,6 @@ Agrega más modulos basados en su escenario.
```
:::
-
### Atributos
| Atributo | Descripción | Tipo | Valores aceptados | Por defecto |
diff --git a/examples/docs/es/popover.md b/examples/docs/es/popover.md
index b1714f23f..9f8ec89e2 100644
--- a/examples/docs/es/popover.md
+++ b/examples/docs/es/popover.md
@@ -1,100 +1,3 @@
-
-
-
-
## Popover
### Uso básico
diff --git a/examples/docs/es/progress.md b/examples/docs/es/progress.md
index 788382299..aa044e9bf 100644
--- a/examples/docs/es/progress.md
+++ b/examples/docs/es/progress.md
@@ -1,14 +1,3 @@
-
## Progreso
Progreso es usado para mostrar el estado de la operación actual e informar al usuario acerca de ésta.
diff --git a/examples/docs/es/radio.md b/examples/docs/es/radio.md
index 2bdc7eacf..44ce0c3f5 100644
--- a/examples/docs/es/radio.md
+++ b/examples/docs/es/radio.md
@@ -1,23 +1,3 @@
-
-
## Radio
Selección única entre múltiples opciones.
diff --git a/examples/docs/es/rate.md b/examples/docs/es/rate.md
index e05600b70..3c2596f19 100644
--- a/examples/docs/es/rate.md
+++ b/examples/docs/es/rate.md
@@ -1,44 +1,3 @@
-
-
-
-
## Calificación
Usado para la calificación
diff --git a/examples/docs/es/select.md b/examples/docs/es/select.md
index 487ff6b7a..3def4d681 100644
--- a/examples/docs/es/select.md
+++ b/examples/docs/es/select.md
@@ -1,138 +1,3 @@
-
-
-
-
## Select
Cuando haya muchas opciones, utilice un menú desplegable para mostrar y seleccionar las que desee.
diff --git a/examples/docs/es/slider.md b/examples/docs/es/slider.md
index aa8ef2d3e..693b3d054 100644
--- a/examples/docs/es/slider.md
+++ b/examples/docs/es/slider.md
@@ -1,54 +1,3 @@
-
-
-
-
## Slider
Desliza el slider dentro de un rango fijo.
diff --git a/examples/docs/es/steps.md b/examples/docs/es/steps.md
index 8eff2e205..4e83777f2 100644
--- a/examples/docs/es/steps.md
+++ b/examples/docs/es/steps.md
@@ -1,19 +1,3 @@
-
-
## Steps
Guía al usuario para completar tareas de acuerdo con el proceso. Sus pasos pueden configurarse de acuerdo con el escenario de aplicación real y el número de pasos no puede ser inferior a dos.
diff --git a/examples/docs/es/switch.md b/examples/docs/es/switch.md
index 55273c755..efb533a5e 100644
--- a/examples/docs/es/switch.md
+++ b/examples/docs/es/switch.md
@@ -1,27 +1,3 @@
-
-
-
-
## Switch
Switch es utilizdo para realizar cambios entre dos estados opuestos.
diff --git a/examples/docs/es/table.md b/examples/docs/es/table.md
index 5721cefc8..11265b912 100644
--- a/examples/docs/es/table.md
+++ b/examples/docs/es/table.md
@@ -1,369 +1,3 @@
-
-
-
-
## Tablas
Visualiza múltiples datos con un formato en particular. Podrá ordenar, filtrar y comparar datos en una tabla.
diff --git a/examples/docs/es/tabs.md b/examples/docs/es/tabs.md
index 0830e6226..a56ea12cb 100644
--- a/examples/docs/es/tabs.md
+++ b/examples/docs/es/tabs.md
@@ -1,95 +1,3 @@
-
-
## Tabulación
Divide colecciones de datos que están relacionados pero pertenecen a diferentes tipos.
diff --git a/examples/docs/es/tag.md b/examples/docs/es/tag.md
index 386866933..b5b415cd2 100644
--- a/examples/docs/es/tag.md
+++ b/examples/docs/es/tag.md
@@ -1,63 +1,3 @@
-
-
-
-
## Tag
Se utiliza para marcar y seleccionar.
diff --git a/examples/docs/es/time-picker.md b/examples/docs/es/time-picker.md
index 1b587b85b..9f4963896 100644
--- a/examples/docs/es/time-picker.md
+++ b/examples/docs/es/time-picker.md
@@ -1,11 +1,3 @@
-
-
## Selector de Tiempo
Use el Time Picker para input de tipo time.
@@ -154,22 +146,6 @@ Es posible escoger un rango de tiempo arbitrario.
```
:::
-
-
### Atributos
| Atributo | Descripción | Tipo | Valores aceptados | Por defecto |
| ----------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -------------------- |
diff --git a/examples/docs/es/timeline.md b/examples/docs/es/timeline.md
index 0f0afca8e..1cc12bbd9 100644
--- a/examples/docs/es/timeline.md
+++ b/examples/docs/es/timeline.md
@@ -1,49 +1,3 @@
-
-
-
## Timeline
Visually display timeline.
diff --git a/examples/docs/es/tooltip.md b/examples/docs/es/tooltip.md
index d0c2b6b2e..e62b237f8 100644
--- a/examples/docs/es/tooltip.md
+++ b/examples/docs/es/tooltip.md
@@ -1,60 +1,3 @@
-
-
-
-
## Tooltip
Mostrar aviso de información con el hover del mouse.
diff --git a/examples/docs/es/transfer.md b/examples/docs/es/transfer.md
index f05173a7f..54588d7ad 100644
--- a/examples/docs/es/transfer.md
+++ b/examples/docs/es/transfer.md
@@ -1,76 +1,3 @@
-
-
-
-
## Transfer
### Uso básico
diff --git a/examples/docs/es/transition.md b/examples/docs/es/transition.md
index f3adc4d94..bb31cd380 100644
--- a/examples/docs/es/transition.md
+++ b/examples/docs/es/transition.md
@@ -151,28 +151,3 @@ import Vue from 'vue'
Vue.component(CollapseTransition.name, CollapseTransition)
```
-
-
-
-
diff --git a/examples/docs/es/tree.md b/examples/docs/es/tree.md
index 57801385a..d4b80a348 100644
--- a/examples/docs/es/tree.md
+++ b/examples/docs/es/tree.md
@@ -1,382 +1,3 @@
-
-
-
-
## Tree
Muestra un conjunto de datos jerárquicos.
diff --git a/examples/docs/es/typography.md b/examples/docs/es/typography.md
index 7cbdfb782..7af97947c 100644
--- a/examples/docs/es/typography.md
+++ b/examples/docs/es/typography.md
@@ -61,38 +61,6 @@
},
}
-
## Tipografía
diff --git a/examples/docs/es/upload.md b/examples/docs/es/upload.md
index 931730a62..7632cff0d 100644
--- a/examples/docs/es/upload.md
+++ b/examples/docs/es/upload.md
@@ -1,119 +1,3 @@
-
-
-
## Carga de archivos
Carga archivos haciendo clic o arrastrándolos.
diff --git a/examples/docs/fr-FR/alert.md b/examples/docs/fr-FR/alert.md
index aecf64a4c..ac75ad4b6 100644
--- a/examples/docs/fr-FR/alert.md
+++ b/examples/docs/fr-FR/alert.md
@@ -1,22 +1,3 @@
-
-
-
## Alerte
Affiche des messages importants.
diff --git a/examples/docs/fr-FR/badge.md b/examples/docs/fr-FR/badge.md
index 8fd221bb1..cf21b165f 100644
--- a/examples/docs/fr-FR/badge.md
+++ b/examples/docs/fr-FR/badge.md
@@ -114,27 +114,6 @@ Utilisez un point rouge pour signaler du contenu devant être remarqué.
```
:::
-
-
### Attributs
| Attribut | Description | Type | Valeurs acceptées | Défaut |
diff --git a/examples/docs/fr-FR/border.md b/examples/docs/fr-FR/border.md
index 406dc047b..aef773ad4 100644
--- a/examples/docs/fr-FR/border.md
+++ b/examples/docs/fr-FR/border.md
@@ -52,53 +52,6 @@
}
-
-
## Border
We standardize the borders that can be used in buttons, cards, pop-ups and other components.
diff --git a/examples/docs/fr-FR/button.md b/examples/docs/fr-FR/button.md
index 7423da756..7ab86cb07 100644
--- a/examples/docs/fr-FR/button.md
+++ b/examples/docs/fr-FR/button.md
@@ -1,27 +1,3 @@
-
-
## Bouton
Bouton communément utilisé.
diff --git a/examples/docs/fr-FR/card.md b/examples/docs/fr-FR/card.md
index 2a03a1981..a94dad684 100644
--- a/examples/docs/fr-FR/card.md
+++ b/examples/docs/fr-FR/card.md
@@ -1,52 +1,3 @@
-
-
-
-
## Card
Conteneur intégrant des informations.
diff --git a/examples/docs/fr-FR/carousel.md b/examples/docs/fr-FR/carousel.md
index 7045808b4..ba1e44ae0 100644
--- a/examples/docs/fr-FR/carousel.md
+++ b/examples/docs/fr-FR/carousel.md
@@ -1,65 +1,3 @@
-
-
-
## Carousel
Affiche en boucle une série d'images ou de textes dans un espace limité.
diff --git a/examples/docs/fr-FR/cascader.md b/examples/docs/fr-FR/cascader.md
index 73a01c7bd..750546f1b 100644
--- a/examples/docs/fr-FR/cascader.md
+++ b/examples/docs/fr-FR/cascader.md
@@ -1,283 +1,3 @@
-
-
-
-
## Cascader
Si les options ont une structure hiérarchique claire, un Cascader peut être utilisé pour les afficher et les selectionner.
diff --git a/examples/docs/fr-FR/checkbox.md b/examples/docs/fr-FR/checkbox.md
index eebc13f57..73b1bdd9d 100644
--- a/examples/docs/fr-FR/checkbox.md
+++ b/examples/docs/fr-FR/checkbox.md
@@ -1,48 +1,3 @@
-
-
## Checkbox
Un groupe d'options à choix multiples.
diff --git a/examples/docs/fr-FR/collapse.md b/examples/docs/fr-FR/collapse.md
index 8292df4af..bf7fed403 100644
--- a/examples/docs/fr-FR/collapse.md
+++ b/examples/docs/fr-FR/collapse.md
@@ -1,29 +1,3 @@
-
-
-
-
## Collapse
Utilisez Collapse pour stocker du contenu.
diff --git a/examples/docs/fr-FR/color-picker.md b/examples/docs/fr-FR/color-picker.md
index a44b1924c..c1bdc5d59 100644
--- a/examples/docs/fr-FR/color-picker.md
+++ b/examples/docs/fr-FR/color-picker.md
@@ -1,62 +1,3 @@
-
-
-
-
## ColorPicker
ColorPicker est un sélecteur de couleur qui supporte plusieurs formats.
diff --git a/examples/docs/fr-FR/color.md b/examples/docs/fr-FR/color.md
index daabad8d9..d4742ffe6 100644
--- a/examples/docs/fr-FR/color.md
+++ b/examples/docs/fr-FR/color.md
@@ -89,81 +89,6 @@
}
-
-
## Couleur
Element utilise un ensemble de palettes spécifiques afin de fournir un style consistant pour vos produits.
@@ -173,22 +98,16 @@ La couleur principale d'Element est un bleu clair et agréable.
-
- Brand Color#409EFF
-
-
-
+ Brand Color
+ #409EFF
+
+
+
@@ -199,70 +118,54 @@ En plus de la couleur principale, vous devrez sans doute utiliser d'autres coule
- Success#67C23A
-
- Success
+ #67C23A
+
+
-
+ >
- Warning#E6A23C
-
- Warning
+ #E6A23C
+
+
-
+ >
- Danger#F56C6C
-
- Danger
+ #F56C6C
+
+
-
+ >
- Info#909399
-
- Info
+ #909399
+
+
-
+ >
@@ -317,6 +220,7 @@ Les couleurs neutres sont les couleurs du fond, du texte et des bordures. Vous p
:style="{ background: white, color: '#303133', border: '1px solid #eee' }"
>Basic White{{white}}
TransparentTransparent
+
diff --git a/examples/docs/fr-FR/container.md b/examples/docs/fr-FR/container.md
index 1c44d979a..9570fe875 100644
--- a/examples/docs/fr-FR/container.md
+++ b/examples/docs/fr-FR/container.md
@@ -1,62 +1,3 @@
-
-
-
-
## Container
Les composants Container servent à structurer la page:
diff --git a/examples/docs/fr-FR/date-picker.md b/examples/docs/fr-FR/date-picker.md
index 1eb89e3d5..297f95d64 100644
--- a/examples/docs/fr-FR/date-picker.md
+++ b/examples/docs/fr-FR/date-picker.md
@@ -1,116 +1,3 @@
-
-
-
-
## DatePicker
Utilisez le DatePicker pour les champs de dates.
diff --git a/examples/docs/fr-FR/datetime-picker.md b/examples/docs/fr-FR/datetime-picker.md
index f4fa74d11..bea0687c8 100644
--- a/examples/docs/fr-FR/datetime-picker.md
+++ b/examples/docs/fr-FR/datetime-picker.md
@@ -1,92 +1,3 @@
-
-
-
-
## DateTimePicker
Selectionnez une date et un heure dans un seul picker.
diff --git a/examples/docs/fr-FR/dialog.md b/examples/docs/fr-FR/dialog.md
index 265de75a3..e90174f7f 100644
--- a/examples/docs/fr-FR/dialog.md
+++ b/examples/docs/fr-FR/dialog.md
@@ -1,78 +1,3 @@
-
-
-
-
## Dialog
Informe les utilisateurs tout en préservant l'état de la page.
diff --git a/examples/docs/fr-FR/dropdown.md b/examples/docs/fr-FR/dropdown.md
index 517feb439..f1679896a 100644
--- a/examples/docs/fr-FR/dropdown.md
+++ b/examples/docs/fr-FR/dropdown.md
@@ -1,56 +1,3 @@
-
-
-
-
## Dropdown
Menu déroulant pour afficher des listes de liens et d'actions possibles.
diff --git a/examples/docs/fr-FR/form.md b/examples/docs/fr-FR/form.md
index f11907032..c7fe9b351 100644
--- a/examples/docs/fr-FR/form.md
+++ b/examples/docs/fr-FR/form.md
@@ -1,250 +1,3 @@
-
-
-
-
## Form
Un formulaire est constitué des éléments `input`, `radio`, `select`, `checkbox`, etc. Il sert principalement à collecter, vérifier et soumettre des données.
diff --git a/examples/docs/fr-FR/icon.md b/examples/docs/fr-FR/icon.md
index a199c1747..cb7ec0ce2 100644
--- a/examples/docs/fr-FR/icon.md
+++ b/examples/docs/fr-FR/icon.md
@@ -1,82 +1,10 @@
-
-
-
-
## Icônes
Element fournit un ensemble d'icônes basiques.
### Usage
-Il vous suffit d'assigner le nom de classe `el-icon-iconName` à une balise .
+Il vous suffit d'assigner le nom de classe `el-icon-iconName` à une balise ``.
:::demo
@@ -92,7 +20,7 @@ Il vous suffit d'assigner le nom de classe `el-icon-iconName` à une balise .
### Icônes
- -
+
-
{{'el-icon-' + name}}
diff --git a/examples/docs/fr-FR/input-number.md b/examples/docs/fr-FR/input-number.md
index 969900efb..c17d6a978 100644
--- a/examples/docs/fr-FR/input-number.md
+++ b/examples/docs/fr-FR/input-number.md
@@ -1,34 +1,3 @@
-
-
-
-
## InputNumber
Un champs d'input de valeurs numériques, avec un domaine personnalisable.
diff --git a/examples/docs/fr-FR/input.md b/examples/docs/fr-FR/input.md
index 867ef3466..f16cc203a 100644
--- a/examples/docs/fr-FR/input.md
+++ b/examples/docs/fr-FR/input.md
@@ -1,149 +1,3 @@
-
-
-
-
## Input
Le champs d'input de base.
diff --git a/examples/docs/fr-FR/layout.md b/examples/docs/fr-FR/layout.md
index 77af02e2f..0cf9712a8 100644
--- a/examples/docs/fr-FR/layout.md
+++ b/examples/docs/fr-FR/layout.md
@@ -1,34 +1,3 @@
-
-
## Layout
Vous pouvez créer une mise en page facilement et rapidement grâce à une base de 24 colonnes.
diff --git a/examples/docs/fr-FR/loading.md b/examples/docs/fr-FR/loading.md
index eeeb8c396..22ec081ee 100644
--- a/examples/docs/fr-FR/loading.md
+++ b/examples/docs/fr-FR/loading.md
@@ -1,54 +1,3 @@
-
-
-
-
## Loading
Affiche une animation durant le chargement de données.
diff --git a/examples/docs/fr-FR/menu.md b/examples/docs/fr-FR/menu.md
index 8649518bb..ddb4a3fda 100644
--- a/examples/docs/fr-FR/menu.md
+++ b/examples/docs/fr-FR/menu.md
@@ -1,56 +1,3 @@
-
-
-
-
## NavMenu
Menu qui fournit un système de navigation à votre site.
diff --git a/examples/docs/fr-FR/message-box.md b/examples/docs/fr-FR/message-box.md
index 597f61026..712352f9a 100644
--- a/examples/docs/fr-FR/message-box.md
+++ b/examples/docs/fr-FR/message-box.md
@@ -1,148 +1,3 @@
-
-
## MessageBox
Un ensemble de fenêtres modales pour afficher des messages système, tels que des alertes, des demandes de confirmation ou des informations importantes.
diff --git a/examples/docs/fr-FR/message.md b/examples/docs/fr-FR/message.md
index 02c5a00f6..4c47df23e 100644
--- a/examples/docs/fr-FR/message.md
+++ b/examples/docs/fr-FR/message.md
@@ -1,86 +1,3 @@
-
-
## Message
Utilisé pour avoir un retour après une action particulière. La différence avec Notification est que ce-dernier est surtout utilisé pour afficher des notifications système passives.
diff --git a/examples/docs/fr-FR/notification.md b/examples/docs/fr-FR/notification.md
index 923611ca6..5747bbd62 100644
--- a/examples/docs/fr-FR/notification.md
+++ b/examples/docs/fr-FR/notification.md
@@ -1,115 +1,3 @@
-
-
## Notification
Affiche une notification globale dans un coin de la page.
diff --git a/examples/docs/fr-FR/pagination.md b/examples/docs/fr-FR/pagination.md
index 1e44483ba..a065d6df5 100644
--- a/examples/docs/fr-FR/pagination.md
+++ b/examples/docs/fr-FR/pagination.md
@@ -1,52 +1,3 @@
-
-
## Pagination
Si vous avez beaucoup de données à afficher sur une seule page, il est préférable d'utiliser une pagination.
@@ -192,36 +143,6 @@ Vous pouvez ajouter plus de modules suivant vos besoins.
```
:::
-
### Attributs
diff --git a/examples/docs/fr-FR/popover.md b/examples/docs/fr-FR/popover.md
index 6ec0dca45..f99bf2b32 100644
--- a/examples/docs/fr-FR/popover.md
+++ b/examples/docs/fr-FR/popover.md
@@ -1,100 +1,3 @@
-
-
-
-
## Popover
### Usage
diff --git a/examples/docs/fr-FR/progress.md b/examples/docs/fr-FR/progress.md
index fbe50717f..ea9cd712e 100644
--- a/examples/docs/fr-FR/progress.md
+++ b/examples/docs/fr-FR/progress.md
@@ -1,15 +1,3 @@
-
-
## Progress
Progress est utilisé pour afficher la progression d'une opération et informer l'utilisateur de son status actuel.
diff --git a/examples/docs/fr-FR/radio.md b/examples/docs/fr-FR/radio.md
index eeae405e2..605a0d66e 100644
--- a/examples/docs/fr-FR/radio.md
+++ b/examples/docs/fr-FR/radio.md
@@ -1,23 +1,3 @@
-
-
## Radio
Boutons de sélection entre plusieurs options.
diff --git a/examples/docs/fr-FR/rate.md b/examples/docs/fr-FR/rate.md
index 338644568..38a02ac46 100644
--- a/examples/docs/fr-FR/rate.md
+++ b/examples/docs/fr-FR/rate.md
@@ -1,44 +1,3 @@
-
-
-
-
## Rate
Utilisé pour donner une note sur cinq étoiles.
diff --git a/examples/docs/fr-FR/select.md b/examples/docs/fr-FR/select.md
index 088d4090c..81113f62f 100644
--- a/examples/docs/fr-FR/select.md
+++ b/examples/docs/fr-FR/select.md
@@ -1,138 +1,3 @@
-
-
-
-
## Select
Utile lorsqu'il faut sélectionner des options parmi un large choix, affiché grâce à un menu déroulant.
diff --git a/examples/docs/fr-FR/slider.md b/examples/docs/fr-FR/slider.md
index 78a2a6333..00591aafa 100644
--- a/examples/docs/fr-FR/slider.md
+++ b/examples/docs/fr-FR/slider.md
@@ -1,54 +1,3 @@
-
-
-
-
## Slider
Permet de sélectionner une valeur au sein d'un intervalle.
diff --git a/examples/docs/fr-FR/steps.md b/examples/docs/fr-FR/steps.md
index d064fad82..33af263a0 100644
--- a/examples/docs/fr-FR/steps.md
+++ b/examples/docs/fr-FR/steps.md
@@ -1,19 +1,3 @@
-
-
## Steps
Permet de guider l'utilisateur dans l'accomplissement de toutes les taches d'un processus. Les étapes peuvent être créées de manière à refléter le scénario en question et leur nombre ne peut être inférieur à 2.
diff --git a/examples/docs/fr-FR/switch.md b/examples/docs/fr-FR/switch.md
index 9d6afae3c..ff4a74bed 100644
--- a/examples/docs/fr-FR/switch.md
+++ b/examples/docs/fr-FR/switch.md
@@ -1,27 +1,3 @@
-
-
-
-
## Switch
Switch est utilisé pour choisir entre deux états opposés.
diff --git a/examples/docs/fr-FR/table.md b/examples/docs/fr-FR/table.md
index 72234a785..6db411766 100644
--- a/examples/docs/fr-FR/table.md
+++ b/examples/docs/fr-FR/table.md
@@ -1,372 +1,3 @@
-
-
-
-
## Table
Permet d'afficher de nombreuses données possédant un format similaire. Vous pouvez ainsi trier, filtrer et comparer les données de votre tableau.
diff --git a/examples/docs/fr-FR/tabs.md b/examples/docs/fr-FR/tabs.md
index be7668f2d..19e42587d 100644
--- a/examples/docs/fr-FR/tabs.md
+++ b/examples/docs/fr-FR/tabs.md
@@ -1,95 +1,3 @@
-
-
## Tabs
Divise des collections de données de types différents, mais reliées entre elles par un contexte ou un type global.
diff --git a/examples/docs/fr-FR/tag.md b/examples/docs/fr-FR/tag.md
index edc989961..3d65cdb35 100644
--- a/examples/docs/fr-FR/tag.md
+++ b/examples/docs/fr-FR/tag.md
@@ -1,63 +1,3 @@
-
-
-
-
## Tag
Les tags sont utiles sont marquer certaines données afin d'ajouter des informations et de les retrouver plus facilement.
diff --git a/examples/docs/fr-FR/time-picker.md b/examples/docs/fr-FR/time-picker.md
index 84f771e55..bd516e016 100644
--- a/examples/docs/fr-FR/time-picker.md
+++ b/examples/docs/fr-FR/time-picker.md
@@ -1,11 +1,3 @@
-
-
## TimePicker
Utiliser TimePicker pour sélectionner un horaire.
@@ -154,22 +146,6 @@ Vous pouvez également définir un intervalle libre.
```
:::
-
-
### Attributs
| Attribut | Description | Type | Valeurs acceptées | Défaut |
diff --git a/examples/docs/fr-FR/timeline.md b/examples/docs/fr-FR/timeline.md
index bc4015129..fdf55f20d 100644
--- a/examples/docs/fr-FR/timeline.md
+++ b/examples/docs/fr-FR/timeline.md
@@ -1,49 +1,3 @@
-
-
-
## Timeline
Affiche une suite d'évènements dans un ordre chronologique.
diff --git a/examples/docs/fr-FR/tooltip.md b/examples/docs/fr-FR/tooltip.md
index 63d70d282..71ac35367 100644
--- a/examples/docs/fr-FR/tooltip.md
+++ b/examples/docs/fr-FR/tooltip.md
@@ -1,60 +1,3 @@
-
-
-
-
## Tooltip
Permet d'afficher des informations au passage de la souris sur un élément.
diff --git a/examples/docs/fr-FR/transfer.md b/examples/docs/fr-FR/transfer.md
index 0e15fb602..387d0ad0e 100644
--- a/examples/docs/fr-FR/transfer.md
+++ b/examples/docs/fr-FR/transfer.md
@@ -1,76 +1,3 @@
-
-
-
-
## Transfer
Permet de transférer des options d'une liste à une autre de manière ergonomique.
diff --git a/examples/docs/fr-FR/transition.md b/examples/docs/fr-FR/transition.md
index f9db249a8..1a49cb18d 100644
--- a/examples/docs/fr-FR/transition.md
+++ b/examples/docs/fr-FR/transition.md
@@ -153,28 +153,3 @@ import Vue from 'vue'
Vue.component(CollapseTransition.name, CollapseTransition)
```
-
-
-
-
diff --git a/examples/docs/fr-FR/tree.md b/examples/docs/fr-FR/tree.md
index 3a93ef9e0..8326b6359 100644
--- a/examples/docs/fr-FR/tree.md
+++ b/examples/docs/fr-FR/tree.md
@@ -1,382 +1,3 @@
-
-
-
-
## Tree
Affiche un ensemble de données possédant plusieurs niveaux de hiérarchie ou d'imbrication.
diff --git a/examples/docs/fr-FR/typography.md b/examples/docs/fr-FR/typography.md
index 484b01ca9..55804725b 100644
--- a/examples/docs/fr-FR/typography.md
+++ b/examples/docs/fr-FR/typography.md
@@ -61,38 +61,6 @@
},
}
-
## Typographie
diff --git a/examples/docs/fr-FR/upload.md b/examples/docs/fr-FR/upload.md
index c1fd540d0..208ba09d5 100644
--- a/examples/docs/fr-FR/upload.md
+++ b/examples/docs/fr-FR/upload.md
@@ -1,123 +1,3 @@
-
-
-
-
## Upload
Permet d'uploader des fichiers en cliquant ou en les déplaçant sur le composant.
diff --git a/examples/docs/zh-CN/alert.md b/examples/docs/zh-CN/alert.md
index 47b1e1798..4da75b7f4 100644
--- a/examples/docs/zh-CN/alert.md
+++ b/examples/docs/zh-CN/alert.md
@@ -1,22 +1,3 @@
-
-
-
## Alert 警告
用于页面中展示重要的提示信息。
diff --git a/examples/docs/zh-CN/badge.md b/examples/docs/zh-CN/badge.md
index 1d866f182..b6cabcef4 100644
--- a/examples/docs/zh-CN/badge.md
+++ b/examples/docs/zh-CN/badge.md
@@ -1,9 +1,3 @@
-
-
## Badge 标记
出现在按钮、图标旁的数字或状态标记。
@@ -116,27 +110,6 @@
```
:::
-
-
### Attributes
| 参数 | 说明 | 类型 | 可选值 | 默认值 |
|------------- |---------------- |---------------- |---------------------- |-------- |
diff --git a/examples/docs/zh-CN/border.md b/examples/docs/zh-CN/border.md
index e9ca548b7..e27748e2f 100644
--- a/examples/docs/zh-CN/border.md
+++ b/examples/docs/zh-CN/border.md
@@ -52,53 +52,6 @@
}
-
-
## Border 边框
我们对边框进行统一规范,可用于按钮、卡片、弹窗等组件里。
diff --git a/examples/docs/zh-CN/button.md b/examples/docs/zh-CN/button.md
index 892aa605a..37364aebc 100644
--- a/examples/docs/zh-CN/button.md
+++ b/examples/docs/zh-CN/button.md
@@ -1,27 +1,3 @@
-
-
## Button 按钮
常用的操作按钮。
diff --git a/examples/docs/zh-CN/card.md b/examples/docs/zh-CN/card.md
index a25f89c0b..506a5107a 100644
--- a/examples/docs/zh-CN/card.md
+++ b/examples/docs/zh-CN/card.md
@@ -1,51 +1,3 @@
-
-
-
## Card 卡片
将信息聚合在卡片容器中展示。
diff --git a/examples/docs/zh-CN/carousel.md b/examples/docs/zh-CN/carousel.md
index bb1a33464..12850f237 100644
--- a/examples/docs/zh-CN/carousel.md
+++ b/examples/docs/zh-CN/carousel.md
@@ -1,64 +1,3 @@
-
-
## Carousel 走马灯
在有限空间内,循环播放同一类型的图片、文字等内容
diff --git a/examples/docs/zh-CN/cascader.md b/examples/docs/zh-CN/cascader.md
index c3088af5e..3bc00ef0c 100644
--- a/examples/docs/zh-CN/cascader.md
+++ b/examples/docs/zh-CN/cascader.md
@@ -1,283 +1,3 @@
-
-
-
-
## Cascader 级联选择器
当一个数据集合有清晰的层级结构时,可通过级联选择器逐级查看并选择。
diff --git a/examples/docs/zh-CN/checkbox.md b/examples/docs/zh-CN/checkbox.md
index 7cd229f0a..fd895b541 100644
--- a/examples/docs/zh-CN/checkbox.md
+++ b/examples/docs/zh-CN/checkbox.md
@@ -1,47 +1,3 @@
-
## Checkbox 多选框
一组备选项中进行多选
diff --git a/examples/docs/zh-CN/collapse.md b/examples/docs/zh-CN/collapse.md
index 609d242a1..a7c40d661 100644
--- a/examples/docs/zh-CN/collapse.md
+++ b/examples/docs/zh-CN/collapse.md
@@ -1,28 +1,3 @@
-
-
-
## Collapse 折叠面板
通过折叠面板收纳内容区域
diff --git a/examples/docs/zh-CN/color-picker.md b/examples/docs/zh-CN/color-picker.md
index 2642a6375..af0db6ac6 100644
--- a/examples/docs/zh-CN/color-picker.md
+++ b/examples/docs/zh-CN/color-picker.md
@@ -1,62 +1,3 @@
-
-
-
-
## ColorPicker 颜色选择器
用于颜色选择,支持多种格式。
diff --git a/examples/docs/zh-CN/color.md b/examples/docs/zh-CN/color.md
index f360476f9..9f5737d9f 100644
--- a/examples/docs/zh-CN/color.md
+++ b/examples/docs/zh-CN/color.md
@@ -89,81 +89,6 @@
}
-
-
## Color 色彩
Element 为了避免视觉传达差异,使用一套特定的调色板来规定颜色,为你所搭建的产品提供一致的外观视觉感受。
@@ -174,22 +99,16 @@ Element 主要品牌颜色是鲜艳、友好的蓝色。
-
- Brand Color#409EFF
-
-
-
+ Brand Color
+ #409EFF
+
+
+
@@ -318,6 +237,7 @@ Element 主要品牌颜色是鲜艳、友好的蓝色。
:style="{ background: white, color: '#303133', border: '1px solid #eee' }"
>基础白色{{white}}
透明Transparent
+
diff --git a/examples/docs/zh-CN/container.md b/examples/docs/zh-CN/container.md
index d650eebdb..9d91fd61c 100644
--- a/examples/docs/zh-CN/container.md
+++ b/examples/docs/zh-CN/container.md
@@ -1,62 +1,3 @@
-
-
-
-
## Container 布局容器
用于布局的容器组件,方便快速搭建页面的基本结构:
diff --git a/examples/docs/zh-CN/date-picker.md b/examples/docs/zh-CN/date-picker.md
index 563d95c3f..40393d54b 100644
--- a/examples/docs/zh-CN/date-picker.md
+++ b/examples/docs/zh-CN/date-picker.md
@@ -1,117 +1,3 @@
-
-
-
-
## DatePicker 日期选择器
用于选择或输入日期
diff --git a/examples/docs/zh-CN/datetime-picker.md b/examples/docs/zh-CN/datetime-picker.md
index a071be7c3..f8c25bc0b 100644
--- a/examples/docs/zh-CN/datetime-picker.md
+++ b/examples/docs/zh-CN/datetime-picker.md
@@ -1,92 +1,3 @@
-
-
-
-
## DateTimePicker 日期时间选择器
在同一个选择器里选择日期和时间
diff --git a/examples/docs/zh-CN/dialog.md b/examples/docs/zh-CN/dialog.md
index 091a42315..524864208 100644
--- a/examples/docs/zh-CN/dialog.md
+++ b/examples/docs/zh-CN/dialog.md
@@ -1,77 +1,3 @@
-
-
-
## Dialog 对话框
在保留当前页面状态的情况下,告知用户并承载相关操作。
diff --git a/examples/docs/zh-CN/dropdown.md b/examples/docs/zh-CN/dropdown.md
index cdcee4158..4abba67b9 100644
--- a/examples/docs/zh-CN/dropdown.md
+++ b/examples/docs/zh-CN/dropdown.md
@@ -1,55 +1,3 @@
-
-
-
## Dropdown 下拉菜单
将动作或菜单折叠到下拉菜单中。
@@ -73,7 +21,6 @@
蚵仔煎
-```
-
+```
:::
### 触发对象
@@ -180,7 +127,6 @@
-```
-
+```
:::
### 菜单隐藏方式
diff --git a/examples/docs/zh-CN/form.md b/examples/docs/zh-CN/form.md
index c264bd2cc..ec02b70c7 100644
--- a/examples/docs/zh-CN/form.md
+++ b/examples/docs/zh-CN/form.md
@@ -1,243 +1,3 @@
-
-
-
-
## Form 表单
由输入框、选择器、单选框、多选框等控件组成,用以收集、校验、提交数据
diff --git a/examples/docs/zh-CN/i18n.md b/examples/docs/zh-CN/i18n.md
index cf07f9002..1f3afd7c0 100644
--- a/examples/docs/zh-CN/i18n.md
+++ b/examples/docs/zh-CN/i18n.md
@@ -1,13 +1,3 @@
-
## 国际化
Element 组件内部默认使用中文,若希望使用其他语言,则需要进行多语言设置。以英文为例,在 main.js 中:
diff --git a/examples/docs/zh-CN/icon.md b/examples/docs/zh-CN/icon.md
index a4c7eefbb..ca7d420de 100644
--- a/examples/docs/zh-CN/icon.md
+++ b/examples/docs/zh-CN/icon.md
@@ -1,76 +1,3 @@
-
-
## Icon 图标
提供了一套常用的图标集合。
@@ -92,7 +19,7 @@
### 图标集合
- -
+
-
{{'el-icon-' + name}}
diff --git a/examples/docs/zh-CN/input-number.md b/examples/docs/zh-CN/input-number.md
index b65ce64ad..8069a5df8 100644
--- a/examples/docs/zh-CN/input-number.md
+++ b/examples/docs/zh-CN/input-number.md
@@ -1,33 +1,3 @@
-
-
-
## InputNumber 计数器
仅允许输入标准的数字值,可定义范围
diff --git a/examples/docs/zh-CN/input.md b/examples/docs/zh-CN/input.md
index 91229a5a7..69a956c58 100644
--- a/examples/docs/zh-CN/input.md
+++ b/examples/docs/zh-CN/input.md
@@ -1,187 +1,3 @@
-
-
-
-
## Input 输入框
通过鼠标或键盘输入字符
diff --git a/examples/docs/zh-CN/layout.md b/examples/docs/zh-CN/layout.md
index fb89e92c6..f6ef59c95 100644
--- a/examples/docs/zh-CN/layout.md
+++ b/examples/docs/zh-CN/layout.md
@@ -1,34 +1,3 @@
-
-
## Layout 布局
通过基础的 24 分栏,迅速简便地创建布局。
diff --git a/examples/docs/zh-CN/loading.md b/examples/docs/zh-CN/loading.md
index 51f7b354b..4e461bfe3 100644
--- a/examples/docs/zh-CN/loading.md
+++ b/examples/docs/zh-CN/loading.md
@@ -1,53 +1,3 @@
-
-
-
## Loading 加载
加载数据时显示动效。
diff --git a/examples/docs/zh-CN/menu.md b/examples/docs/zh-CN/menu.md
index ca158ab50..19f55c846 100644
--- a/examples/docs/zh-CN/menu.md
+++ b/examples/docs/zh-CN/menu.md
@@ -1,56 +1,3 @@
-
-
-
-
## NavMenu 导航菜单
为网站提供导航功能的菜单。
diff --git a/examples/docs/zh-CN/message-box.md b/examples/docs/zh-CN/message-box.md
index a448a31c7..c4a02d15f 100644
--- a/examples/docs/zh-CN/message-box.md
+++ b/examples/docs/zh-CN/message-box.md
@@ -1,148 +1,3 @@
-
## MessageBox 弹框
模拟系统的消息提示框而实现的一套模态对话框组件,用于消息提示、确认消息和提交内容。
diff --git a/examples/docs/zh-CN/message.md b/examples/docs/zh-CN/message.md
index d2225814c..4aec4d218 100644
--- a/examples/docs/zh-CN/message.md
+++ b/examples/docs/zh-CN/message.md
@@ -1,86 +1,3 @@
-
-
## Message 消息提示
常用于主动操作后的反馈提示。与 Notification 的区别是后者更多用于系统级通知的被动提醒。
diff --git a/examples/docs/zh-CN/notification.md b/examples/docs/zh-CN/notification.md
index 9876f785a..83653fa4c 100644
--- a/examples/docs/zh-CN/notification.md
+++ b/examples/docs/zh-CN/notification.md
@@ -1,115 +1,3 @@
-
-
## Notification 通知
悬浮出现在页面角落,显示全局的通知提醒消息。
diff --git a/examples/docs/zh-CN/pagination.md b/examples/docs/zh-CN/pagination.md
index 75de95610..aa104374a 100644
--- a/examples/docs/zh-CN/pagination.md
+++ b/examples/docs/zh-CN/pagination.md
@@ -139,85 +139,6 @@
```
:::
-
-
-
### Attributes
| 参数 | 说明 | 类型 | 可选值 | 默认值 |
diff --git a/examples/docs/zh-CN/popover.md b/examples/docs/zh-CN/popover.md
index ad307a2cf..18d7aa921 100644
--- a/examples/docs/zh-CN/popover.md
+++ b/examples/docs/zh-CN/popover.md
@@ -1,100 +1,3 @@
-
-
-
-
## Popover 弹出框
### 基础用法
diff --git a/examples/docs/zh-CN/progress.md b/examples/docs/zh-CN/progress.md
index d00aca7c3..8a4ef798b 100644
--- a/examples/docs/zh-CN/progress.md
+++ b/examples/docs/zh-CN/progress.md
@@ -1,15 +1,3 @@
-
-
## Progress 进度条
用于展示操作进度,告知用户当前状态和预期。
diff --git a/examples/docs/zh-CN/radio.md b/examples/docs/zh-CN/radio.md
index d11d37e68..65afe6f94 100644
--- a/examples/docs/zh-CN/radio.md
+++ b/examples/docs/zh-CN/radio.md
@@ -1,23 +1,3 @@
-
-
## Radio 单选框
在一组备选项中进行单选
diff --git a/examples/docs/zh-CN/rate.md b/examples/docs/zh-CN/rate.md
index 568a84223..a00ed1ad7 100644
--- a/examples/docs/zh-CN/rate.md
+++ b/examples/docs/zh-CN/rate.md
@@ -1,43 +1,3 @@
-
-
-
## Rate 评分
评分组件
diff --git a/examples/docs/zh-CN/select.md b/examples/docs/zh-CN/select.md
index d2fbac3ae..8282d35e3 100644
--- a/examples/docs/zh-CN/select.md
+++ b/examples/docs/zh-CN/select.md
@@ -1,138 +1,3 @@
-
-
-
-
## Select 选择器
当选项过多时,使用下拉菜单展示并选择内容。
diff --git a/examples/docs/zh-CN/slider.md b/examples/docs/zh-CN/slider.md
index a25b51c5d..79005d89e 100644
--- a/examples/docs/zh-CN/slider.md
+++ b/examples/docs/zh-CN/slider.md
@@ -1,54 +1,3 @@
-
-
-
-
## Slider 滑块
通过拖动滑块在一个固定区间内进行选择
diff --git a/examples/docs/zh-CN/steps.md b/examples/docs/zh-CN/steps.md
index 2117d8549..533053c2b 100644
--- a/examples/docs/zh-CN/steps.md
+++ b/examples/docs/zh-CN/steps.md
@@ -1,19 +1,3 @@
-
-
## Steps 步骤条
引导用户按照流程完成任务的分步导航条,可根据实际应用场景设定步骤,步骤不得少于 2 步。
diff --git a/examples/docs/zh-CN/switch.md b/examples/docs/zh-CN/switch.md
index 11ec9dffb..329de248b 100644
--- a/examples/docs/zh-CN/switch.md
+++ b/examples/docs/zh-CN/switch.md
@@ -1,27 +1,3 @@
-
-
-
-
## Switch 开关
表示两种相互对立的状态间的切换,多用于触发「开/关」。
diff --git a/examples/docs/zh-CN/table.md b/examples/docs/zh-CN/table.md
index ef08d4797..e63d53019 100644
--- a/examples/docs/zh-CN/table.md
+++ b/examples/docs/zh-CN/table.md
@@ -1,410 +1,3 @@
-
-
-
-
## Table 表格
用于展示多条结构类似的数据,可对数据进行排序、筛选、对比或其他自定义操作。
diff --git a/examples/docs/zh-CN/tabs.md b/examples/docs/zh-CN/tabs.md
index 9246f06a9..1117ae250 100644
--- a/examples/docs/zh-CN/tabs.md
+++ b/examples/docs/zh-CN/tabs.md
@@ -1,95 +1,3 @@
-
-
## Tabs 标签页
分隔内容上有关联但属于不同类别的数据集合。
diff --git a/examples/docs/zh-CN/tag.md b/examples/docs/zh-CN/tag.md
index 2757730e3..45e25cdb9 100644
--- a/examples/docs/zh-CN/tag.md
+++ b/examples/docs/zh-CN/tag.md
@@ -1,63 +1,3 @@
-
-
-
-
## Tag 标签
用于标记和选择。
diff --git a/examples/docs/zh-CN/time-picker.md b/examples/docs/zh-CN/time-picker.md
index a3d3ae59c..226239a1f 100644
--- a/examples/docs/zh-CN/time-picker.md
+++ b/examples/docs/zh-CN/time-picker.md
@@ -1,11 +1,3 @@
-
-
## TimePicker 时间选择器
用于选择或输入日期
@@ -155,22 +147,6 @@
```
:::
-
-
### Attributes
| 参数 | 说明 | 类型 | 可选值 | 默认值 |
|---------- |-------------- |---------- |-------------------------------- |-------- |
diff --git a/examples/docs/zh-CN/timeline.md b/examples/docs/zh-CN/timeline.md
index 5f8fbde07..fb5f87792 100644
--- a/examples/docs/zh-CN/timeline.md
+++ b/examples/docs/zh-CN/timeline.md
@@ -1,49 +1,3 @@
-
-
-
## Timeline 时间线
可视化地呈现时间流信息。
diff --git a/examples/docs/zh-CN/tooltip.md b/examples/docs/zh-CN/tooltip.md
index 7db40e192..e66bfa1b7 100644
--- a/examples/docs/zh-CN/tooltip.md
+++ b/examples/docs/zh-CN/tooltip.md
@@ -1,54 +1,3 @@
-
-
-
## Tooltip 文字提示
常用于展示鼠标 hover 时的提示信息。
diff --git a/examples/docs/zh-CN/transfer.md b/examples/docs/zh-CN/transfer.md
index 784570cbb..b7b8383fd 100644
--- a/examples/docs/zh-CN/transfer.md
+++ b/examples/docs/zh-CN/transfer.md
@@ -1,76 +1,3 @@
-
-
-
-
## Transfer 穿梭框
### 基础用法
diff --git a/examples/docs/zh-CN/transition.md b/examples/docs/zh-CN/transition.md
index 02a7a9a12..b76a4dc2f 100644
--- a/examples/docs/zh-CN/transition.md
+++ b/examples/docs/zh-CN/transition.md
@@ -153,28 +153,3 @@ import Vue from 'vue'
Vue.component(CollapseTransition.name, CollapseTransition)
```
-
-
-
-
diff --git a/examples/docs/zh-CN/tree.md b/examples/docs/zh-CN/tree.md
index 7764c212b..86be7b296 100644
--- a/examples/docs/zh-CN/tree.md
+++ b/examples/docs/zh-CN/tree.md
@@ -1,392 +1,3 @@
-
-
-
-
## Tree 树形控件
用清晰的层级结构展示信息,可展开或折叠。
diff --git a/examples/docs/zh-CN/typography.md b/examples/docs/zh-CN/typography.md
index 59a95f421..7ce930751 100644
--- a/examples/docs/zh-CN/typography.md
+++ b/examples/docs/zh-CN/typography.md
@@ -61,38 +61,6 @@
},
}
-
## Typography 字体
diff --git a/examples/docs/zh-CN/upload.md b/examples/docs/zh-CN/upload.md
index fa0ffd8d6..7b8474282 100644
--- a/examples/docs/zh-CN/upload.md
+++ b/examples/docs/zh-CN/upload.md
@@ -1,122 +1,3 @@
-
-
-
## Upload 上传
通过点击或者拖拽上传文件
diff --git a/examples/entry.js b/examples/entry.js
index d8d1c3e44..b0b48e2d0 100644
--- a/examples/entry.js
+++ b/examples/entry.js
@@ -2,6 +2,7 @@ import Vue from 'vue';
import entry from './app';
import VueRouter from 'vue-router';
import Element from 'main/index.js';
+import hljs from 'highlight.js';
import routes from './route.config';
import demoBlock from './components/demo-block';
import MainFooter from './components/footer';
@@ -11,7 +12,7 @@ import FooterNav from './components/footer-nav';
import title from './i18n/title';
import 'packages/theme-chalk/src/index.scss';
-import 'highlight.js/styles/color-brewer.css';
+import './demo-styles/index.scss';
import './assets/styles/common.css';
import './assets/styles/fonts/style.css';
@@ -30,6 +31,11 @@ const router = new VueRouter({
});
router.afterEach(route => {
+ // https://github.com/highlightjs/highlight.js/issues/909#issuecomment-131686186
+ Vue.nextTick(() => {
+ const blocks = document.querySelectorAll('pre code:not(.hljs)');
+ Array.prototype.forEach.call(blocks, hljs.highlightBlock);
+ });
const data = title[route.meta.lang];
for (let val in data) {
if (new RegExp('^' + val, 'g').test(route.name)) {
diff --git a/examples/index.tpl b/examples/index.tpl
index d8c55eaaa..d3cfe316a 100644
--- a/examples/index.tpl
+++ b/examples/index.tpl
@@ -5,6 +5,7 @@
+
Element
@@ -14,6 +15,11 @@
}
+ <% if (process.env.NODE_ENV === 'production') { %>
+
+
+
+ <% } %>
<% if (process.env.NODE_ENV === 'production') { %>