2 Star 3 Fork 3

element-plus/doc-archive

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
DOCS zh-CN7.0cb71eee40c7d7b6716e.js 44.02 KB
一键复制 编辑 原始数据 按行查看 历史
iamkun 提交于 2021-09-15 18:54 . chore: update
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[356],{
/***/ 696:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);
// EXTERNAL MODULE: ./node_modules/vue/dist/vue.esm-browser.prod.js
var vue_esm_browser_prod = __webpack_require__(0);
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/dist/templateLoader.js??ref--6!./node_modules/vue-loader/dist??ref--3-0!./website/md-loader!./website/docs/zh-CN/button.md?vue&type=template&id=0e0332d3
const buttonvue_type_template_id_0e0332d3_hoisted_1 = {
class: "content element-doc"
};
const buttonvue_type_template_id_0e0332d3_hoisted_2 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Button 按钮 ");
const buttonvue_type_template_id_0e0332d3_hoisted_3 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("p", null, "常用的操作按钮。", -1);
const buttonvue_type_template_id_0e0332d3_hoisted_4 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("基础用法 ");
const buttonvue_type_template_id_0e0332d3_hoisted_5 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("p", null, "基础的按钮用法。", -1);
const buttonvue_type_template_id_0e0332d3_hoisted_6 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("div", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("p", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("使用"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "type"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(""), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "plain"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(""), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "round"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(""), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "circle"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("属性来定义 Button 的样式。")])], -1);
const buttonvue_type_template_id_0e0332d3_hoisted_7 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("pre", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", {
class: "html"
}, "<el-row>\n <el-button>默认按钮</el-button>\n <el-button type=\"primary\">主要按钮</el-button>\n <el-button type=\"success\">成功按钮</el-button>\n <el-button type=\"info\">信息按钮</el-button>\n <el-button type=\"warning\">警告按钮</el-button>\n <el-button type=\"danger\">危险按钮</el-button>\n</el-row>\n\n<el-row>\n <el-button plain>朴素按钮</el-button>\n <el-button type=\"primary\" plain>主要按钮</el-button>\n <el-button type=\"success\" plain>成功按钮</el-button>\n <el-button type=\"info\" plain>信息按钮</el-button>\n <el-button type=\"warning\" plain>警告按钮</el-button>\n <el-button type=\"danger\" plain>危险按钮</el-button>\n</el-row>\n\n<el-row>\n <el-button round>圆角按钮</el-button>\n <el-button type=\"primary\" round>主要按钮</el-button>\n <el-button type=\"success\" round>成功按钮</el-button>\n <el-button type=\"info\" round>信息按钮</el-button>\n <el-button type=\"warning\" round>警告按钮</el-button>\n <el-button type=\"danger\" round>危险按钮</el-button>\n</el-row>\n\n<el-row>\n <el-button icon=\"el-icon-search\" circle></el-button>\n <el-button type=\"primary\" icon=\"el-icon-edit\" circle></el-button>\n <el-button type=\"success\" icon=\"el-icon-check\" circle></el-button>\n <el-button type=\"info\" icon=\"el-icon-message\" circle></el-button>\n <el-button type=\"warning\" icon=\"el-icon-star-off\" circle></el-button>\n <el-button type=\"danger\" icon=\"el-icon-delete\" circle></el-button>\n</el-row>\n")], -1);
const buttonvue_type_template_id_0e0332d3_hoisted_8 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("禁用状态 ");
const buttonvue_type_template_id_0e0332d3_hoisted_9 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("p", null, "按钮不可用状态。", -1);
const buttonvue_type_template_id_0e0332d3_hoisted_10 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("div", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("p", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("你可以使用"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "disabled"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("属性来定义按钮是否可用,它接受一个"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "Boolean"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("值。")])], -1);
const buttonvue_type_template_id_0e0332d3_hoisted_11 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("pre", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", {
class: "html"
}, "<el-row>\n <el-button disabled>默认按钮</el-button>\n <el-button type=\"primary\" disabled>主要按钮</el-button>\n <el-button type=\"success\" disabled>成功按钮</el-button>\n <el-button type=\"info\" disabled>信息按钮</el-button>\n <el-button type=\"warning\" disabled>警告按钮</el-button>\n <el-button type=\"danger\" disabled>危险按钮</el-button>\n</el-row>\n\n<el-row>\n <el-button plain disabled>朴素按钮</el-button>\n <el-button type=\"primary\" plain disabled>主要按钮</el-button>\n <el-button type=\"success\" plain disabled>成功按钮</el-button>\n <el-button type=\"info\" plain disabled>信息按钮</el-button>\n <el-button type=\"warning\" plain disabled>警告按钮</el-button>\n <el-button type=\"danger\" plain disabled>危险按钮</el-button>\n</el-row>\n")], -1);
const buttonvue_type_template_id_0e0332d3_hoisted_12 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("文字按钮 ");
const buttonvue_type_template_id_0e0332d3_hoisted_13 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("p", null, "没有边框和背景色的按钮。", -1);
const buttonvue_type_template_id_0e0332d3_hoisted_14 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("pre", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", {
class: "html"
}, "<el-button type=\"text\">文字按钮</el-button>\n<el-button type=\"text\" disabled>文字按钮</el-button>\n")], -1);
const buttonvue_type_template_id_0e0332d3_hoisted_15 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("图标按钮 ");
const buttonvue_type_template_id_0e0332d3_hoisted_16 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("p", null, "带图标的按钮可增强辨识度(有文字)或节省空间(无文字)。", -1);
const buttonvue_type_template_id_0e0332d3_hoisted_17 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("div", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("p", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("设置"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "icon"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("属性即可,icon 的列表可以参考 Element Plus 的 icon 组件,也可以设置在文字右边的 icon ,只要使用"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "i"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("标签即可,可以使用自定义图标。")])], -1);
const buttonvue_type_template_id_0e0332d3_hoisted_18 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("pre", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", {
class: "html"
}, "<el-button type=\"primary\" icon=\"el-icon-edit\"></el-button>\n<el-button type=\"primary\" icon=\"el-icon-share\"></el-button>\n<el-button type=\"primary\" icon=\"el-icon-delete\"></el-button>\n<el-button type=\"primary\" icon=\"el-icon-search\">搜索</el-button>\n<el-button type=\"primary\"\n >上传<i class=\"el-icon-upload el-icon--right\"></i\n></el-button>\n")], -1);
const _hoisted_19 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("按钮组 ");
const _hoisted_20 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("p", null, "以按钮组的方式出现,常用于多项类似操作。", -1);
const _hoisted_21 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("div", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("p", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("使用"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "<el-button-group>"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("标签来嵌套你的按钮。")])], -1);
const _hoisted_22 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("pre", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", {
class: "html"
}, "<el-button-group>\n <el-button type=\"primary\" icon=\"el-icon-arrow-left\">上一页</el-button>\n <el-button type=\"primary\"\n >下一页<i class=\"el-icon-arrow-right el-icon--right\"></i\n ></el-button>\n</el-button-group>\n<el-button-group>\n <el-button type=\"primary\" icon=\"el-icon-edit\"></el-button>\n <el-button type=\"primary\" icon=\"el-icon-share\"></el-button>\n <el-button type=\"primary\" icon=\"el-icon-delete\"></el-button>\n</el-button-group>\n")], -1);
const _hoisted_23 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("加载中 ");
const _hoisted_24 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("p", null, "点击按钮后进行数据加载操作,在按钮上显示加载状态。", -1);
const _hoisted_25 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("div", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("p", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("要设置为 loading 状态,只要设置"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "loading"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("属性为"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "true"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("即可。")])], -1);
const _hoisted_26 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("pre", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", {
class: "html"
}, "<el-button type=\"primary\" :loading=\"true\">加载中</el-button>\n")], -1);
const _hoisted_27 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("不同尺寸 ");
const _hoisted_28 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("p", null, "Button 组件提供除了默认值以外的三种尺寸,可以在不同场景下选择合适的按钮尺寸。", -1);
const _hoisted_29 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("div", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("p", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("额外的尺寸:"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "medium"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(""), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "small"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(""), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "mini"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(",通过设置"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "size"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("属性来配置它们。")])], -1);
const _hoisted_30 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("pre", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", {
class: "html"
}, "<el-row>\n <el-button>默认按钮</el-button>\n <el-button size=\"medium\">中等按钮</el-button>\n <el-button size=\"small\">小型按钮</el-button>\n <el-button size=\"mini\">超小按钮</el-button>\n</el-row>\n<el-row>\n <el-button round>默认按钮</el-button>\n <el-button size=\"medium\" round>中等按钮</el-button>\n <el-button size=\"small\" round>小型按钮</el-button>\n <el-button size=\"mini\" round>超小按钮</el-button>\n</el-row>\n<el-row>\n <el-button icon=\"el-icon-search\" circle></el-button>\n <el-button icon=\"el-icon-search\" size=\"medium\" circle></el-button>\n <el-button icon=\"el-icon-search\" size=\"small\" circle></el-button>\n <el-button icon=\"el-icon-search\" size=\"mini\" circle></el-button>\n</el-row>\n")], -1);
const _hoisted_31 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Button Attributes ");
const _hoisted_32 = /*#__PURE__*/Object(vue_esm_browser_prod["createStaticVNode"])("<table><thead><tr><th>参数</th><th>说明</th><th>类型</th><th>可选值</th><th>默认值</th></tr></thead><tbody><tr><td>size</td><td>尺寸</td><td>string</td><td>medium / small / mini</td><td>—</td></tr><tr><td>type</td><td>类型</td><td>string</td><td>primary / success / warning / danger / info / text</td><td>—</td></tr><tr><td>plain</td><td>是否朴素按钮</td><td>boolean</td><td>—</td><td>false</td></tr><tr><td>round</td><td>是否圆角按钮</td><td>boolean</td><td>—</td><td>false</td></tr><tr><td>circle</td><td>是否圆形按钮</td><td>boolean</td><td>—</td><td>false</td></tr><tr><td>loading</td><td>是否加载中状态</td><td>boolean</td><td>—</td><td>false</td></tr><tr><td>disabled</td><td>是否禁用状态</td><td>boolean</td><td>—</td><td>false</td></tr><tr><td>icon</td><td>图标类名</td><td>string</td><td>—</td><td>—</td></tr><tr><td>autofocus</td><td>是否默认聚焦</td><td>boolean</td><td>—</td><td>false</td></tr><tr><td>native-type</td><td>原生 type 属性</td><td>string</td><td>button / submit / reset</td><td>button</td></tr></tbody></table>", 1);
const _hoisted_33 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Button-Group Attributes ");
const _hoisted_34 = /*#__PURE__*/Object(vue_esm_browser_prod["createStaticVNode"])("<table><thead><tr><th>参数</th><th>说明</th><th>类型</th><th>可选值</th><th>默认值</th></tr></thead><tbody><tr><td>size</td><td>用于控制该按钮组内按钮的尺寸</td><td>string</td><td>medium / small / mini</td><td>—</td></tr></tbody></table>", 1);
const _hoisted_35 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Button-Group Slots ");
const _hoisted_36 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("table", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("thead", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("tr", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("th", null, "Name"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("th", null, "Description")])]), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("tbody", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("tr", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "default"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "自定义按钮组内容")])])], -1);
function buttonvue_type_template_id_0e0332d3_render(_ctx, _cache, $props, $setup, $data, $options) {
const _component_app_link = Object(vue_esm_browser_prod["resolveComponent"])("app-link");
const _component_app_heading = Object(vue_esm_browser_prod["resolveComponent"])("app-heading");
const _component_element_demo0 = Object(vue_esm_browser_prod["resolveComponent"])("element-demo0");
const _component_demo_block = Object(vue_esm_browser_prod["resolveComponent"])("demo-block");
const _component_element_demo1 = Object(vue_esm_browser_prod["resolveComponent"])("element-demo1");
const _component_element_demo2 = Object(vue_esm_browser_prod["resolveComponent"])("element-demo2");
const _component_element_demo3 = Object(vue_esm_browser_prod["resolveComponent"])("element-demo3");
const _component_element_demo4 = Object(vue_esm_browser_prod["resolveComponent"])("element-demo4");
const _component_element_demo5 = Object(vue_esm_browser_prod["resolveComponent"])("element-demo5");
const _component_element_demo6 = Object(vue_esm_browser_prod["resolveComponent"])("element-demo6");
const _component_right_nav = Object(vue_esm_browser_prod["resolveComponent"])("right-nav");
return Object(vue_esm_browser_prod["openBlock"])(), Object(vue_esm_browser_prod["createElementBlock"])("section", buttonvue_type_template_id_0e0332d3_hoisted_1, [Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "button-an-niu",
content: "Button 按钮",
href: "#button-an-niu",
level: "2"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [buttonvue_type_template_id_0e0332d3_hoisted_2, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#button-an-niu"
})]),
_: 1
}), buttonvue_type_template_id_0e0332d3_hoisted_3, Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "ji-chu-yong-fa",
content: "基础用法",
href: "#ji-chu-yong-fa",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [buttonvue_type_template_id_0e0332d3_hoisted_4, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#ji-chu-yong-fa"
})]),
_: 1
}), buttonvue_type_template_id_0e0332d3_hoisted_5, Object(vue_esm_browser_prod["createVNode"])(_component_demo_block, null, {
source: Object(vue_esm_browser_prod["withCtx"])(() => [Object(vue_esm_browser_prod["createVNode"])(_component_element_demo0)]),
highlight: Object(vue_esm_browser_prod["withCtx"])(() => [buttonvue_type_template_id_0e0332d3_hoisted_7]),
default: Object(vue_esm_browser_prod["withCtx"])(() => [buttonvue_type_template_id_0e0332d3_hoisted_6]),
_: 1
}), Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "jin-yong-zhuang-tai",
content: "禁用状态",
href: "#jin-yong-zhuang-tai",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [buttonvue_type_template_id_0e0332d3_hoisted_8, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#jin-yong-zhuang-tai"
})]),
_: 1
}), buttonvue_type_template_id_0e0332d3_hoisted_9, Object(vue_esm_browser_prod["createVNode"])(_component_demo_block, null, {
source: Object(vue_esm_browser_prod["withCtx"])(() => [Object(vue_esm_browser_prod["createVNode"])(_component_element_demo1)]),
highlight: Object(vue_esm_browser_prod["withCtx"])(() => [buttonvue_type_template_id_0e0332d3_hoisted_11]),
default: Object(vue_esm_browser_prod["withCtx"])(() => [buttonvue_type_template_id_0e0332d3_hoisted_10]),
_: 1
}), Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "wen-zi-an-niu",
content: "文字按钮",
href: "#wen-zi-an-niu",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [buttonvue_type_template_id_0e0332d3_hoisted_12, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#wen-zi-an-niu"
})]),
_: 1
}), buttonvue_type_template_id_0e0332d3_hoisted_13, Object(vue_esm_browser_prod["createVNode"])(_component_demo_block, null, {
source: Object(vue_esm_browser_prod["withCtx"])(() => [Object(vue_esm_browser_prod["createVNode"])(_component_element_demo2)]),
highlight: Object(vue_esm_browser_prod["withCtx"])(() => [buttonvue_type_template_id_0e0332d3_hoisted_14]),
_: 1
}), Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "tu-biao-an-niu",
content: "图标按钮",
href: "#tu-biao-an-niu",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [buttonvue_type_template_id_0e0332d3_hoisted_15, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#tu-biao-an-niu"
})]),
_: 1
}), buttonvue_type_template_id_0e0332d3_hoisted_16, Object(vue_esm_browser_prod["createVNode"])(_component_demo_block, null, {
source: Object(vue_esm_browser_prod["withCtx"])(() => [Object(vue_esm_browser_prod["createVNode"])(_component_element_demo3)]),
highlight: Object(vue_esm_browser_prod["withCtx"])(() => [buttonvue_type_template_id_0e0332d3_hoisted_18]),
default: Object(vue_esm_browser_prod["withCtx"])(() => [buttonvue_type_template_id_0e0332d3_hoisted_17]),
_: 1
}), Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "an-niu-zu",
content: "按钮组",
href: "#an-niu-zu",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_19, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#an-niu-zu"
})]),
_: 1
}), _hoisted_20, Object(vue_esm_browser_prod["createVNode"])(_component_demo_block, null, {
source: Object(vue_esm_browser_prod["withCtx"])(() => [Object(vue_esm_browser_prod["createVNode"])(_component_element_demo4)]),
highlight: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_22]),
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_21]),
_: 1
}), Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "jia-zai-zhong",
content: "加载中",
href: "#jia-zai-zhong",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_23, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#jia-zai-zhong"
})]),
_: 1
}), _hoisted_24, Object(vue_esm_browser_prod["createVNode"])(_component_demo_block, null, {
source: Object(vue_esm_browser_prod["withCtx"])(() => [Object(vue_esm_browser_prod["createVNode"])(_component_element_demo5)]),
highlight: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_26]),
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_25]),
_: 1
}), Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "bu-tong-chi-cun",
content: "不同尺寸",
href: "#bu-tong-chi-cun",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_27, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#bu-tong-chi-cun"
})]),
_: 1
}), _hoisted_28, Object(vue_esm_browser_prod["createVNode"])(_component_demo_block, null, {
source: Object(vue_esm_browser_prod["withCtx"])(() => [Object(vue_esm_browser_prod["createVNode"])(_component_element_demo6)]),
highlight: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_30]),
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_29]),
_: 1
}), Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "button-attributes",
content: "Button Attributes",
href: "#button-attributes",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_31, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#button-attributes"
})]),
_: 1
}), _hoisted_32, Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "button-group-attributes",
content: "Button-Group Attributes",
href: "#button-group-attributes",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_33, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#button-group-attributes"
})]),
_: 1
}), _hoisted_34, Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "button-group-slots",
content: "Button-Group Slots",
href: "#button-group-slots",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_35, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#button-group-slots"
})]),
_: 1
}), _hoisted_36, Object(vue_esm_browser_prod["createVNode"])(_component_right_nav)]);
}
// CONCATENATED MODULE: ./website/docs/zh-CN/button.md?vue&type=template&id=0e0332d3
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/dist??ref--3-0!./website/md-loader!./website/docs/zh-CN/button.md?vue&type=script&lang=ts
/* harmony default export */ var buttonvue_type_script_lang_ts = ({
name: 'component-doc',
components: {
"element-demo0": function () {
const {
createTextVNode: _createTextVNode,
resolveComponent: _resolveComponent,
withCtx: _withCtx,
createVNode: _createVNode,
openBlock: _openBlock,
createElementBlock: _createElementBlock
} = vue_esm_browser_prod;
const _hoisted_1 = /*#__PURE__*/_createTextVNode("默认按钮");
const _hoisted_2 = /*#__PURE__*/_createTextVNode("主要按钮");
const _hoisted_3 = /*#__PURE__*/_createTextVNode("成功按钮");
const _hoisted_4 = /*#__PURE__*/_createTextVNode("信息按钮");
const _hoisted_5 = /*#__PURE__*/_createTextVNode("警告按钮");
const _hoisted_6 = /*#__PURE__*/_createTextVNode("危险按钮");
const _hoisted_7 = /*#__PURE__*/_createTextVNode("朴素按钮");
const _hoisted_8 = /*#__PURE__*/_createTextVNode("主要按钮");
const _hoisted_9 = /*#__PURE__*/_createTextVNode("成功按钮");
const _hoisted_10 = /*#__PURE__*/_createTextVNode("信息按钮");
const _hoisted_11 = /*#__PURE__*/_createTextVNode("警告按钮");
const _hoisted_12 = /*#__PURE__*/_createTextVNode("危险按钮");
const _hoisted_13 = /*#__PURE__*/_createTextVNode("圆角按钮");
const _hoisted_14 = /*#__PURE__*/_createTextVNode("主要按钮");
const _hoisted_15 = /*#__PURE__*/_createTextVNode("成功按钮");
const _hoisted_16 = /*#__PURE__*/_createTextVNode("信息按钮");
const _hoisted_17 = /*#__PURE__*/_createTextVNode("警告按钮");
const _hoisted_18 = /*#__PURE__*/_createTextVNode("危险按钮");
function render(_ctx, _cache) {
const _component_el_button = _resolveComponent("el-button");
const _component_el_row = _resolveComponent("el-row");
return _openBlock(), _createElementBlock("div", null, [_createVNode(_component_el_row, null, {
default: _withCtx(() => [_createVNode(_component_el_button, null, {
default: _withCtx(() => [_hoisted_1]),
_: 1
}), _createVNode(_component_el_button, {
type: "primary"
}, {
default: _withCtx(() => [_hoisted_2]),
_: 1
}), _createVNode(_component_el_button, {
type: "success"
}, {
default: _withCtx(() => [_hoisted_3]),
_: 1
}), _createVNode(_component_el_button, {
type: "info"
}, {
default: _withCtx(() => [_hoisted_4]),
_: 1
}), _createVNode(_component_el_button, {
type: "warning"
}, {
default: _withCtx(() => [_hoisted_5]),
_: 1
}), _createVNode(_component_el_button, {
type: "danger"
}, {
default: _withCtx(() => [_hoisted_6]),
_: 1
})]),
_: 1
}), _createVNode(_component_el_row, null, {
default: _withCtx(() => [_createVNode(_component_el_button, {
plain: ""
}, {
default: _withCtx(() => [_hoisted_7]),
_: 1
}), _createVNode(_component_el_button, {
type: "primary",
plain: ""
}, {
default: _withCtx(() => [_hoisted_8]),
_: 1
}), _createVNode(_component_el_button, {
type: "success",
plain: ""
}, {
default: _withCtx(() => [_hoisted_9]),
_: 1
}), _createVNode(_component_el_button, {
type: "info",
plain: ""
}, {
default: _withCtx(() => [_hoisted_10]),
_: 1
}), _createVNode(_component_el_button, {
type: "warning",
plain: ""
}, {
default: _withCtx(() => [_hoisted_11]),
_: 1
}), _createVNode(_component_el_button, {
type: "danger",
plain: ""
}, {
default: _withCtx(() => [_hoisted_12]),
_: 1
})]),
_: 1
}), _createVNode(_component_el_row, null, {
default: _withCtx(() => [_createVNode(_component_el_button, {
round: ""
}, {
default: _withCtx(() => [_hoisted_13]),
_: 1
}), _createVNode(_component_el_button, {
type: "primary",
round: ""
}, {
default: _withCtx(() => [_hoisted_14]),
_: 1
}), _createVNode(_component_el_button, {
type: "success",
round: ""
}, {
default: _withCtx(() => [_hoisted_15]),
_: 1
}), _createVNode(_component_el_button, {
type: "info",
round: ""
}, {
default: _withCtx(() => [_hoisted_16]),
_: 1
}), _createVNode(_component_el_button, {
type: "warning",
round: ""
}, {
default: _withCtx(() => [_hoisted_17]),
_: 1
}), _createVNode(_component_el_button, {
type: "danger",
round: ""
}, {
default: _withCtx(() => [_hoisted_18]),
_: 1
})]),
_: 1
}), _createVNode(_component_el_row, null, {
default: _withCtx(() => [_createVNode(_component_el_button, {
icon: "el-icon-search",
circle: ""
}), _createVNode(_component_el_button, {
type: "primary",
icon: "el-icon-edit",
circle: ""
}), _createVNode(_component_el_button, {
type: "success",
icon: "el-icon-check",
circle: ""
}), _createVNode(_component_el_button, {
type: "info",
icon: "el-icon-message",
circle: ""
}), _createVNode(_component_el_button, {
type: "warning",
icon: "el-icon-star-off",
circle: ""
}), _createVNode(_component_el_button, {
type: "danger",
icon: "el-icon-delete",
circle: ""
})]),
_: 1
})]);
}
const democomponentExport = {};
return {
render,
...democomponentExport
};
}(),
"element-demo1": function () {
const {
createTextVNode: _createTextVNode,
resolveComponent: _resolveComponent,
withCtx: _withCtx,
createVNode: _createVNode,
openBlock: _openBlock,
createElementBlock: _createElementBlock
} = vue_esm_browser_prod;
const _hoisted_1 = /*#__PURE__*/_createTextVNode("默认按钮");
const _hoisted_2 = /*#__PURE__*/_createTextVNode("主要按钮");
const _hoisted_3 = /*#__PURE__*/_createTextVNode("成功按钮");
const _hoisted_4 = /*#__PURE__*/_createTextVNode("信息按钮");
const _hoisted_5 = /*#__PURE__*/_createTextVNode("警告按钮");
const _hoisted_6 = /*#__PURE__*/_createTextVNode("危险按钮");
const _hoisted_7 = /*#__PURE__*/_createTextVNode("朴素按钮");
const _hoisted_8 = /*#__PURE__*/_createTextVNode("主要按钮");
const _hoisted_9 = /*#__PURE__*/_createTextVNode("成功按钮");
const _hoisted_10 = /*#__PURE__*/_createTextVNode("信息按钮");
const _hoisted_11 = /*#__PURE__*/_createTextVNode("警告按钮");
const _hoisted_12 = /*#__PURE__*/_createTextVNode("危险按钮");
function render(_ctx, _cache) {
const _component_el_button = _resolveComponent("el-button");
const _component_el_row = _resolveComponent("el-row");
return _openBlock(), _createElementBlock("div", null, [_createVNode(_component_el_row, null, {
default: _withCtx(() => [_createVNode(_component_el_button, {
disabled: ""
}, {
default: _withCtx(() => [_hoisted_1]),
_: 1
}), _createVNode(_component_el_button, {
type: "primary",
disabled: ""
}, {
default: _withCtx(() => [_hoisted_2]),
_: 1
}), _createVNode(_component_el_button, {
type: "success",
disabled: ""
}, {
default: _withCtx(() => [_hoisted_3]),
_: 1
}), _createVNode(_component_el_button, {
type: "info",
disabled: ""
}, {
default: _withCtx(() => [_hoisted_4]),
_: 1
}), _createVNode(_component_el_button, {
type: "warning",
disabled: ""
}, {
default: _withCtx(() => [_hoisted_5]),
_: 1
}), _createVNode(_component_el_button, {
type: "danger",
disabled: ""
}, {
default: _withCtx(() => [_hoisted_6]),
_: 1
})]),
_: 1
}), _createVNode(_component_el_row, null, {
default: _withCtx(() => [_createVNode(_component_el_button, {
plain: "",
disabled: ""
}, {
default: _withCtx(() => [_hoisted_7]),
_: 1
}), _createVNode(_component_el_button, {
type: "primary",
plain: "",
disabled: ""
}, {
default: _withCtx(() => [_hoisted_8]),
_: 1
}), _createVNode(_component_el_button, {
type: "success",
plain: "",
disabled: ""
}, {
default: _withCtx(() => [_hoisted_9]),
_: 1
}), _createVNode(_component_el_button, {
type: "info",
plain: "",
disabled: ""
}, {
default: _withCtx(() => [_hoisted_10]),
_: 1
}), _createVNode(_component_el_button, {
type: "warning",
plain: "",
disabled: ""
}, {
default: _withCtx(() => [_hoisted_11]),
_: 1
}), _createVNode(_component_el_button, {
type: "danger",
plain: "",
disabled: ""
}, {
default: _withCtx(() => [_hoisted_12]),
_: 1
})]),
_: 1
})]);
}
const democomponentExport = {};
return {
render,
...democomponentExport
};
}(),
"element-demo2": function () {
const {
createTextVNode: _createTextVNode,
resolveComponent: _resolveComponent,
withCtx: _withCtx,
createVNode: _createVNode,
openBlock: _openBlock,
createElementBlock: _createElementBlock
} = vue_esm_browser_prod;
const _hoisted_1 = /*#__PURE__*/_createTextVNode("文字按钮");
const _hoisted_2 = /*#__PURE__*/_createTextVNode("文字按钮");
function render(_ctx, _cache) {
const _component_el_button = _resolveComponent("el-button");
return _openBlock(), _createElementBlock("div", null, [_createVNode(_component_el_button, {
type: "text"
}, {
default: _withCtx(() => [_hoisted_1]),
_: 1
}), _createVNode(_component_el_button, {
type: "text",
disabled: ""
}, {
default: _withCtx(() => [_hoisted_2]),
_: 1
})]);
}
const democomponentExport = {};
return {
render,
...democomponentExport
};
}(),
"element-demo3": function () {
const {
resolveComponent: _resolveComponent,
createVNode: _createVNode,
createTextVNode: _createTextVNode,
withCtx: _withCtx,
createElementVNode: _createElementVNode,
openBlock: _openBlock,
createElementBlock: _createElementBlock
} = vue_esm_browser_prod;
const _hoisted_1 = /*#__PURE__*/_createTextVNode("搜索");
const _hoisted_2 = /*#__PURE__*/_createTextVNode("上传");
const _hoisted_3 = /*#__PURE__*/_createElementVNode("i", {
class: "el-icon-upload el-icon--right"
}, null, -1);
function render(_ctx, _cache) {
const _component_el_button = _resolveComponent("el-button");
return _openBlock(), _createElementBlock("div", null, [_createVNode(_component_el_button, {
type: "primary",
icon: "el-icon-edit"
}), _createVNode(_component_el_button, {
type: "primary",
icon: "el-icon-share"
}), _createVNode(_component_el_button, {
type: "primary",
icon: "el-icon-delete"
}), _createVNode(_component_el_button, {
type: "primary",
icon: "el-icon-search"
}, {
default: _withCtx(() => [_hoisted_1]),
_: 1
}), _createVNode(_component_el_button, {
type: "primary"
}, {
default: _withCtx(() => [_hoisted_2, _hoisted_3]),
_: 1
})]);
}
const democomponentExport = {};
return {
render,
...democomponentExport
};
}(),
"element-demo4": function () {
const {
createTextVNode: _createTextVNode,
resolveComponent: _resolveComponent,
withCtx: _withCtx,
createVNode: _createVNode,
createElementVNode: _createElementVNode,
openBlock: _openBlock,
createElementBlock: _createElementBlock
} = vue_esm_browser_prod;
const _hoisted_1 = /*#__PURE__*/_createTextVNode("上一页");
const _hoisted_2 = /*#__PURE__*/_createTextVNode("下一页");
const _hoisted_3 = /*#__PURE__*/_createElementVNode("i", {
class: "el-icon-arrow-right el-icon--right"
}, null, -1);
function render(_ctx, _cache) {
const _component_el_button = _resolveComponent("el-button");
const _component_el_button_group = _resolveComponent("el-button-group");
return _openBlock(), _createElementBlock("div", null, [_createVNode(_component_el_button_group, null, {
default: _withCtx(() => [_createVNode(_component_el_button, {
type: "primary",
icon: "el-icon-arrow-left"
}, {
default: _withCtx(() => [_hoisted_1]),
_: 1
}), _createVNode(_component_el_button, {
type: "primary"
}, {
default: _withCtx(() => [_hoisted_2, _hoisted_3]),
_: 1
})]),
_: 1
}), _createVNode(_component_el_button_group, null, {
default: _withCtx(() => [_createVNode(_component_el_button, {
type: "primary",
icon: "el-icon-edit"
}), _createVNode(_component_el_button, {
type: "primary",
icon: "el-icon-share"
}), _createVNode(_component_el_button, {
type: "primary",
icon: "el-icon-delete"
})]),
_: 1
})]);
}
const democomponentExport = {};
return {
render,
...democomponentExport
};
}(),
"element-demo5": function () {
const {
createTextVNode: _createTextVNode,
resolveComponent: _resolveComponent,
withCtx: _withCtx,
createVNode: _createVNode,
openBlock: _openBlock,
createElementBlock: _createElementBlock
} = vue_esm_browser_prod;
const _hoisted_1 = /*#__PURE__*/_createTextVNode("加载中");
function render(_ctx, _cache) {
const _component_el_button = _resolveComponent("el-button");
return _openBlock(), _createElementBlock("div", null, [_createVNode(_component_el_button, {
type: "primary",
loading: true
}, {
default: _withCtx(() => [_hoisted_1]),
_: 1
})]);
}
const democomponentExport = {};
return {
render,
...democomponentExport
};
}(),
"element-demo6": function () {
const {
createTextVNode: _createTextVNode,
resolveComponent: _resolveComponent,
withCtx: _withCtx,
createVNode: _createVNode,
openBlock: _openBlock,
createElementBlock: _createElementBlock
} = vue_esm_browser_prod;
const _hoisted_1 = /*#__PURE__*/_createTextVNode("默认按钮");
const _hoisted_2 = /*#__PURE__*/_createTextVNode("中等按钮");
const _hoisted_3 = /*#__PURE__*/_createTextVNode("小型按钮");
const _hoisted_4 = /*#__PURE__*/_createTextVNode("超小按钮");
const _hoisted_5 = /*#__PURE__*/_createTextVNode("默认按钮");
const _hoisted_6 = /*#__PURE__*/_createTextVNode("中等按钮");
const _hoisted_7 = /*#__PURE__*/_createTextVNode("小型按钮");
const _hoisted_8 = /*#__PURE__*/_createTextVNode("超小按钮");
function render(_ctx, _cache) {
const _component_el_button = _resolveComponent("el-button");
const _component_el_row = _resolveComponent("el-row");
return _openBlock(), _createElementBlock("div", null, [_createVNode(_component_el_row, null, {
default: _withCtx(() => [_createVNode(_component_el_button, null, {
default: _withCtx(() => [_hoisted_1]),
_: 1
}), _createVNode(_component_el_button, {
size: "medium"
}, {
default: _withCtx(() => [_hoisted_2]),
_: 1
}), _createVNode(_component_el_button, {
size: "small"
}, {
default: _withCtx(() => [_hoisted_3]),
_: 1
}), _createVNode(_component_el_button, {
size: "mini"
}, {
default: _withCtx(() => [_hoisted_4]),
_: 1
})]),
_: 1
}), _createVNode(_component_el_row, null, {
default: _withCtx(() => [_createVNode(_component_el_button, {
round: ""
}, {
default: _withCtx(() => [_hoisted_5]),
_: 1
}), _createVNode(_component_el_button, {
size: "medium",
round: ""
}, {
default: _withCtx(() => [_hoisted_6]),
_: 1
}), _createVNode(_component_el_button, {
size: "small",
round: ""
}, {
default: _withCtx(() => [_hoisted_7]),
_: 1
}), _createVNode(_component_el_button, {
size: "mini",
round: ""
}, {
default: _withCtx(() => [_hoisted_8]),
_: 1
})]),
_: 1
}), _createVNode(_component_el_row, null, {
default: _withCtx(() => [_createVNode(_component_el_button, {
icon: "el-icon-search",
circle: ""
}), _createVNode(_component_el_button, {
icon: "el-icon-search",
size: "medium",
circle: ""
}), _createVNode(_component_el_button, {
icon: "el-icon-search",
size: "small",
circle: ""
}), _createVNode(_component_el_button, {
icon: "el-icon-search",
size: "mini",
circle: ""
})]),
_: 1
})]);
}
const democomponentExport = {};
return {
render,
...democomponentExport
};
}()
}
});
// CONCATENATED MODULE: ./website/docs/zh-CN/button.md?vue&type=script&lang=ts
// CONCATENATED MODULE: ./website/docs/zh-CN/button.md
buttonvue_type_script_lang_ts.render = buttonvue_type_template_id_0e0332d3_render
/* harmony default export */ var zh_CN_button = __webpack_exports__["default"] = (buttonvue_type_script_lang_ts);
/***/ })
}]);
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/element-plus/doc-archive.git
git@gitee.com:element-plus/doc-archive.git
element-plus
doc-archive
doc-archive
main

搜索帮助