(window.webpackJsonp=window.webpackJsonp||[]).push([[5],{1206:function(t,s,e){},1207:function(t,s,e){},1208:function(t,s,e){},1209:function(t,s,e){},1299:function(t,s,e){"use strict";var a=e(1206);e.n(a).a},1300:function(t,s,e){"use strict";var a=e(1207);e.n(a).a},1301:function(t,s,e){"use strict";var a=e(1208);e.n(a).a},1302:function(t,s,e){"use strict";var a=e(1209);e.n(a).a},1303:function(t,s,e){"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.default={fill:["account-book","alert","alipay-circle","alipay-square","aliwangwang","amazon-circle","android","amazon-square","api","appstore","audio","apple","backward","bank","behance-circle","bell","behance-square","book","box-plot","bug","bulb","calculator","build","calendar","camera","car","caret-down","caret-left","caret-right","carry-out","caret-up","check-circle","check-square","chrome","ci-circle","clock-circle","close-circle","cloud","close-square","code-sandbox-square","code-sandbox-circle","code","codepen-circle","compass","codepen-square","contacts","container","control","copy","copyright-circle","credit-card","crown","customer-service","dashboard","delete","diff","dingtalk-circle","database","dingtalk-square","dislike","dollar-circle","down-circle","down-square","dribbble-circle","dribbble-square","dropbox-circle","dropbox-square","environment","edit","exclamation-circle","euro-circle","experiment","eye-invisible","eye","facebook","fast-backward","fast-forward","file-add","file-excel","file-exclamation","file-image","file-markdown","file-pdf","file-ppt","file-text","file-unknown","file-word","file-zip","file","filter","fire","flag","folder-add","folder","folder-open","forward","frown","fund","funnel-plot","gift","github","gitlab","golden","google-circle","google-plus-circle","google-plus-square","google-square","hdd","heart","highlight","home","hourglass","html5","idcard","ie-circle","ie-square","info-circle","instagram","insurance","interaction","interation","layout","left-circle","left-square","like","linkedin","lock","mail","medicine-box","medium-circle","medium-square","meh","message","minus-circle","minus-square","mobile","money-collect","pause-circle","pay-circle","notification","phone","picture","pie-chart","play-circle","play-square","plus-circle","plus-square","pound-circle","printer","profile","project","pushpin","property-safety","qq-circle","qq-square","question-circle","read","reconciliation","red-envelope","reddit-circle","reddit-square","rest","right-circle","rocket","right-square","safety-certificate","save","schedule","security-scan","setting","shop","shopping","sketch-circle","sketch-square","skin","slack-circle","skype","slack-square","sliders","smile","snippets","sound","star","step-backward","step-forward","stop","switcher","tablet","tag","tags","taobao-circle","taobao-square","tool","thunderbolt","trademark-circle","twitter-circle","trophy","twitter-square","unlock","up-circle","up-square","usb","video-camera","wallet","warning","wechat","weibo-circle","windows","yahoo","weibo-square","yuque","youtube","zhihu-circle","zhihu-square"],outline:["account-book","alert","alipay-circle","aliwangwang","android","api","appstore","audio","apple","backward","bank","bell","behance-square","book","box-plot","bug","bulb","calculator","build","calendar","camera","car","caret-down","caret-left","caret-right","carry-out","caret-up","check-circle","check-square","chrome","clock-circle","close-circle","cloud","close-square","code","codepen-circle","compass","contacts","container","control","copy","credit-card","crown","customer-service","dashboard","delete","diff","database","dislike","down-circle","down-square","dribbble-square","environment","edit","exclamation-circle","experiment","eye-invisible","eye","facebook","fast-backward","fast-forward","file-add","file-excel","file-exclamation","file-image","file-markdown","file-pdf","file-ppt","file-text","file-unknown","file-word","file-zip","file","filter","fire","flag","folder-add","folder","folder-open","forward","frown","fund","funnel-plot","gift","github","gitlab","hdd","heart","highlight","home","hourglass","html5","idcard","info-circle","instagram","insurance","interaction","interation","layout","left-circle","left-square","like","linkedin","lock","mail","medicine-box","meh","message","minus-circle","minus-square","mobile","money-collect","pause-circle","pay-circle","notification","phone","picture","pie-chart","play-circle","play-square","plus-circle","plus-square","printer","profile","project","pushpin","property-safety","question-circle","read","reconciliation","red-envelope","rest","right-circle","rocket","right-square","safety-certificate","save","schedule","security-scan","setting","shop","shopping","skin","skype","slack-square","sliders","smile","snippets","sound","star","step-backward","step-forward","stop","switcher","tablet","tag","tags","taobao-circle","tool","thunderbolt","trophy","unlock","up-circle","up-square","usb","video-camera","wallet","warning","wechat","weibo-circle","windows","yahoo","weibo-square","yuque","youtube","alibaba","align-center","align-left","align-right","alipay","aliyun","amazon","ant-cloud","apartment","ant-design","area-chart","arrow-left","arrow-down","arrow-up","arrows-alt","arrow-right","audit","bar-chart","barcode","bars","behance","bg-colors","block","bold","border-bottom","border-left","border-outer","border-inner","border-right","border-horizontal","border-top","border-verticle","border","branches","check","ci","close","cloud-download","cloud-server","cloud-sync","cloud-upload","cluster","codepen","code-sandbox","colum-height","column-width","column-height","coffee","copyright","dash","deployment-unit","desktop","dingding","disconnect","dollar","double-left","dot-chart","double-right","down","drag","download","dribbble","dropbox","ellipsis","enter","euro","exception","exclamation","export","fall","file-done","file-jpg","file-protect","file-sync","file-search","font-colors","font-size","fork","form","fullscreen-exit","fullscreen","gateway","global","google-plus","gold","google","heat-map","history","ie","import","inbox","info","italic","key","issues-close","laptop","left","line-chart","link","line-height","line","loading-3-quarters","loading","login","logout","man","medium","medium-workmark","menu-unfold","menu-fold","menu","minus","monitor","more","ordered-list","number","pause","percentage","paper-clip","pic-center","pic-left","pic-right","plus","pound","poweroff","pull-request","qq","question","radar-chart","qrcode","radius-bottomleft","radius-bottomright","radius-upleft","radius-setting","radius-upright","reddit","redo","reload","retweet","right","rise","rollback","safety","robot","scan","search","scissor","select","shake","share-alt","shopping-cart","shrink","sketch","slack","small-dash","solution","sort-descending","sort-ascending","stock","swap-left","swap-right","strikethrough","swap","sync","table","team","taobao","to-top","trademark","transaction","twitter","underline","undo","unordered-list","up","upload","user-add","user-delete","usergroup-add","user","usergroup-delete","vertical-align-bottom","vertical-align-middle","vertical-align-top","vertical-left","vertical-right","weibo","wifi","zhihu","woman","zoom-out","zoom-in"],twotone:["account-book","alert","api","appstore","audio","bank","bell","book","box-plot","bug","bulb","calculator","build","calendar","camera","car","carry-out","check-circle","check-square","clock-circle","close-circle","cloud","close-square","code","compass","contacts","container","control","copy","credit-card","crown","customer-service","dashboard","delete","diff","database","dislike","down-circle","down-square","environment","edit","exclamation-circle","experiment","eye-invisible","eye","file-add","file-excel","file-exclamation","file-image","file-markdown","file-pdf","file-ppt","file-text","file-unknown","file-word","file-zip","file","filter","fire","flag","folder-add","folder","folder-open","frown","fund","funnel-plot","gift","hdd","heart","highlight","home","hourglass","html5","idcard","info-circle","insurance","interaction","interation","layout","left-circle","left-square","like","lock","mail","medicine-box","meh","message","minus-circle","minus-square","mobile","money-collect","pause-circle","notification","phone","picture","pie-chart","play-circle","play-square","plus-circle","plus-square","pound-circle","printer","profile","project","pushpin","property-safety","question-circle","reconciliation","red-envelope","rest","right-circle","rocket","right-square","safety-certificate","save","schedule","security-scan","setting","shop","shopping","skin","sliders","smile","snippets","sound","star","stop","switcher","tablet","tag","tags","tool","thunderbolt","trademark-circle","trophy","unlock","up-circle","up-square","usb","video-camera","wallet","warning","ci","copyright","dollar","euro","gold","canlendar"]}},1451:function(t,s,e){"use strict";e.r(s);var a=e(1303),n=e.n(a),o=e(1191),l=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("li",{directives:[{name:"clipboard",rawName:"v-clipboard:copy",value:t.text,expression:"text",arg:"copy"},{name:"clipboard",rawName:"v-clipboard:success",value:t.onCopied,expression:"onCopied",arg:"success"}],class:t.justCopied===t.type?"copied":""},[e("a-icon",{attrs:{type:t.type,theme:t.theme}}),t._v(" "),e("span",{staticClass:"anticon-class"},[e("a-badge",{attrs:{dot:t.isNew}},[t._v("\n "+t._s(t.type)+"\n ")])],1)],1)};l._withStripped=!0;var r={props:["type","isNew","theme","justCopied"],data:function(){var t=this.type,s=this.theme;return{text:"outlined"===s?' ':' '}},methods:{onCopied:function(){this.$emit("copied",this.type,this.text)}}},i=e(31),c=Object(i.a)(r,l,[],!1,null,null,null);c.options.__file="site/theme/template/IconDisplay/CopyableIcon.vue";var v=c.exports,p={props:["icons","title","newIcons","theme"],data:function(){return{justCopied:null}},methods:{onCopied:function(t,s){var e=this,a=this.$createElement;o.a.success(a("span",[a("code",{class:"copied-code"},[s])," copied 🎉"])),this.justCopied=t,setTimeout((function(){e.justCopied=null}),2e3)}},render:function(){var t=this,s=arguments[0],e=this.$props,a=e.icons,n=e.title,o=e.theme,l=e.newIcons,r=a.map((function(e){return s(v,{key:e,attrs:{type:e,theme:o,isNew:l.indexOf(e)>=0,justCopied:t.justCopied},on:{copied:t.onCopied}})})),i=this.$t("message");return s("div",[s("h3",[i["app.docs.components.icon.category."+n]]),s("ul",{class:"anticons-list"},[r])])}},_={render:function(){var t=arguments[0],s="M864 64H160C107 64 64 107 64 160v704c0 53 43 96 96 96h704c53 0 96-43 96-96V160c0-53-43-96-96-96z";return t("svg",{attrs:{viewBox:"0 0 1024 1024"}},[t("path",{attrs:{d:s}})])}},d={render:function(){var t=arguments[0],s="M864 64H160C107 64 64 107 64 160v704c0 53 43 96 96 96h704c53 0 96-43 96-96V160c0-53-43-96-96-96z m-12 800H172c-6.6 0-12-5.4-12-12V172c0-6.6 5.4-12 12-12h680c6.6 0 12 5.4 12 12v680c0 6.6-5.4 12-12 12z";return t("svg",{attrs:{viewBox:"0 0 1024 1024"}},[t("path",{attrs:{d:s}})])}},h={render:function(){var t=arguments[0],s="M16 512c0 273.932 222.066 496 496 496s496-222.068 496-496S785.932 16 512 16 16 238.066 16 512z m496 368V144c203.41 0 368 164.622 368 368 0 203.41-164.622 368-368 368z";return t("svg",{attrs:{viewBox:"0 0 1024 1024"}},[t("path",{attrs:{d:s}})])}},u={cagetories:{direction:["step-backward","step-forward","fast-backward","fast-forward","shrink","arrows-alt","down","up","left","right","caret-up","caret-down","caret-left","caret-right","up-circle","down-circle","left-circle","right-circle","double-right","double-left","vertical-left","vertical-right","forward","backward","rollback","enter","retweet","swap","swap-left","swap-right","arrow-up","arrow-down","arrow-left","arrow-right","play-circle","up-square","down-square","left-square","right-square","login","logout","menu-fold","menu-unfold","border-bottom","border-horizontal","border-inner","border-outter","border-left","border-right","border-top","border-verticle","pic-center","pic-left","pic-right","radius-bottomleft","radius-bottomright","radius-upleft","fullscreen","fullscreen-exit"],suggestion:["question","question-circle","plus","plus-circle","pause","pause-circle","minus","minus-circle","plus-square","minus-square","info","info-circle","exclamation","exclamation-circle","close","close-circle","close-square","check","check-circle","check-square","clock-circle","warning","issues-close","stop"],edit:["edit","form","copy","scissor","delete","snippets","diff","highlight","align-center","align-left","align-right","bg-colors","bold","italic","underline","strikethrough","redo","undo","zoom-in","zoom-out","font-colors","font-size","line-height","colum-height","colum-width","dash","small-dash","sort-ascending","sort-descending","drag","ordered-list","radius-setting"],data:["area-chart","pie-chart","bar-chart","dot-chart","line-chart","radar-chart","heat-map","fall","rise","stock","box-plot","fund","sliders"],other:["lock","unlock","bars","book","calendar","cloud","cloud-download","code","copy","credit-card","delete","desktop","download","ellipsis","file","file-text","file-unknown","file-pdf","file-word","file-excel","file-jpg","file-ppt","file-markdown","file-add","folder","folder-open","folder-add","hdd","frown","meh","smile","inbox","laptop","appstore","link","mail","mobile","notification","paper-clip","picture","poweroff","reload","search","setting","share-alt","shopping-cart","tablet","tag","tags","to-top","upload","user","video-camera","home","loading","loading-3-quarters","cloud-upload","star","heart","environment","eye","eye-invisible","camera","save","team","solution","phone","filter","exception","export","customer-service","qrcode","scan","like","dislike","message","pay-circle","calculator","pushpin","bulb","select","switcher","rocket","bell","disconnect","database","compass","barcode","hourglass","key","flag","layout","printer","sound","usb","skin","tool","sync","wifi","car","schedule","user-add","user-delete","usergroup-add","usergroup-delete","man","woman","shop","gift","idcard","medicine-box","red-envelope","coffee","copyright","trademark","safety","wallet","bank","trophy","contacts","global","shake","api","fork","dashboard","table","profile","alert","audit","batch-folding","branches","build","border","crown","experiment","fire","money-collect","property-safety","read","reconciliation","rest","security-scan","insurance","interation","safety-certificate","project","thunderbolt","block","cluster","deployment-unit","dollar","euro","pound","file-done","file-exclamation","file-protect","file-search","file-sync","gateway","gold","robot","shopping"],logo:["android","apple","windows","ie","chrome","github","aliwangwang","dingding","weibo-square","weibo-circle","taobao-circle","html5","weibo","twitter","wechat","youtube","alipay-circle","taobao","skype","qq","medium-workmark","gitlab","medium","linkedin","google-plus","dropbox","facebook","codepen","code-sandbox","code-sandbox-circle","amazon","google","codepen-circle","alipay","ant-design","aliyun","zhihu","slack","slack-square","behance","behance-square","dribbble","dribbble-square","instagram","yuque","alibaba","yahoo"]},newIconNames:["border-bottom","border-horizontal","border-inner","border-outter","border-left","border-right","border-top","border-verticle","pic-center","pic-left","pic-right","radius-bottomleft","radius-bottomright","radius-upleft","radius-upleft","fullscreen","fullscreen-exit","issues-close","stop","scissor","snippets","diff","highlight","align-center","align-left","align-right","bg-colors","bold","italic","underline","redo","undo","zoom-in","zoom-out","font-colors","font-size","line-height","colum-height","colum-width","dash","small-dash","sort-ascending","sort-descending","drag","ordered-list","radius-setting","radar-chart","heat-map","fall","rise","stock","box-plot","fund","sliders","alert","audit","batch-folding","branches","build","border","crown","experiment","fire","money-collect","property-safety","read","reconciliation","rest","security-scan","insurance","interation","safety-certificate","project","thunderbolt","block","cluster","deployment-unit","dollar","euro","pound","file-done","file-exclamation","file-protect","file-search","file-sync","gateway","gold","robot","strikethrough","shopping","alibaba","yahoo"],themeTypeMapper:{filled:"fill",outlined:"outline",twoTone:"twotone"},data:function(){return{theme:"outlined"}},methods:{getComputedDisplayList:function(){var t=this;return Object.keys(u.cagetories).map((function(s){return{category:s,icons:u.cagetories[s].filter((function(s){return-1!==n.a[u.themeTypeMapper[t.theme]].indexOf(s)}))}})).filter((function(t){var s=t.icons;return Boolean(s.length)}))},handleChangeTheme:function(t){this.theme=t.target.value},renderCategories:function(t){var s=this,e=this.$createElement;return t.map((function(t){var a=t.category,n=t.icons;return e(p,{key:a,attrs:{title:a,icons:n,theme:s.theme,newIcons:u.newIconNames}})}))}},render:function(){var t=arguments[0],s=this.getComputedDisplayList(),e=this.$t("message");return t("div",[t("h3",[e["app.docs.components.icon.pick-theme"]]),t("a-radio-group",{attrs:{value:this.theme},on:{change:this.handleChangeTheme}},[t("a-radio-button",{attrs:{value:"outlined"}},[t("a-icon",{attrs:{component:d}})," ",e["app.docs.components.icon.outlined"]]),t("a-radio-button",{attrs:{value:"filled"}},[t("a-icon",{attrs:{component:_}})," ",e["app.docs.components.icon.filled"]]),t("a-radio-button",{attrs:{value:"twoTone"}},[t("a-icon",{attrs:{component:h}})," ",e["app.docs.components.icon.two-tone"]])]),this.renderCategories(s)])}},m=u,g=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",[[e("demo-box",{attrs:{jsfiddle:{html:'\n
\n',script:null,style:null,us:"\n#### Basic\nUse tag ` ` to create an icon and set its type in the `type` prop. Specific the `spin` property to show spinning animation and the `theme` property to switch different themes.\n",cn:"\n#### 基本用法\n使用 ` ` 标签声明组件,指定图标对应的 `type` 属性。可以通过 `theme` 属性来设置不同的主题风格的图标,也可以通过设置 `spin` 属性来实现动画旋转效果。\n",sourceCode:'\n \n \n\n'}}},[e("template",{slot:"component"},[e("div",{staticClass:"icons-list"},[e("a-icon",{attrs:{type:"home"}}),t._v(" "),e("a-icon",{attrs:{type:"setting",theme:"filled"}}),t._v(" "),e("a-icon",{attrs:{type:"smile",theme:"outlined"}}),t._v(" "),e("a-icon",{attrs:{type:"sync",spin:""}}),t._v(" "),e("a-icon",{attrs:{type:"smile",rotate:180}}),t._v(" "),e("a-icon",{attrs:{type:"loading"}})],1)]),t._v(" "),e("template",{slot:"description"},[e("h4",{attrs:{id:"基本用法"}},[t._v("基本用法 "),e("a",{staticClass:"anchor",attrs:{href:"#基本用法"}},[t._v("#")])]),t._v(" "),e("p",[t._v("使用 "),e("code",[t._v(" ")]),t._v(" 标签声明组件,指定图标对应的 "),e("code",[t._v("type")]),t._v(" 属性。可以通过 "),e("code",[t._v("theme")]),t._v(" 属性来设置不同的主题风格的图标,也可以通过设置 "),e("code",[t._v("spin")]),t._v(" 属性来实现动画旋转效果。")])]),t._v(" "),e("template",{slot:"us-description"},[e("h4",{attrs:{id:"Basic"}},[t._v("Basic "),e("a",{staticClass:"anchor",attrs:{href:"#Basic"}},[t._v("#")])]),t._v(" "),e("p",[t._v("Use tag "),e("code",[t._v(" ")]),t._v(" to create an icon and set its type in the "),e("code",[t._v("type")]),t._v(" prop. Specific the "),e("code",[t._v("spin")]),t._v(" property to show spinning animation and the "),e("code",[t._v("theme")]),t._v(" property to switch different themes.")])]),t._v(" "),e("template",{slot:"code"},[e("pre",[e("code",{staticClass:"language-html"},[e("span",{staticClass:"hljs-tag"},[t._v("<"),e("span",{staticClass:"hljs-name"},[t._v("template")]),t._v(">")]),t._v("\n "),e("span",{staticClass:"hljs-tag"},[t._v("<"),e("span",{staticClass:"hljs-name"},[t._v("div")]),t._v(" "),e("span",{staticClass:"hljs-attr"},[t._v("class")]),t._v("="),e("span",{staticClass:"hljs-string"},[t._v('"icons-list"')]),t._v(">")]),t._v("\n "),e("span",{staticClass:"hljs-tag"},[t._v("<"),e("span",{staticClass:"hljs-name"},[t._v("a-icon")]),t._v(" "),e("span",{staticClass:"hljs-attr"},[t._v("type")]),t._v("="),e("span",{staticClass:"hljs-string"},[t._v('"home"')]),t._v(" />")]),t._v("\n "),e("span",{staticClass:"hljs-tag"},[t._v("<"),e("span",{staticClass:"hljs-name"},[t._v("a-icon")]),t._v(" "),e("span",{staticClass:"hljs-attr"},[t._v("type")]),t._v("="),e("span",{staticClass:"hljs-string"},[t._v('"setting"')]),t._v(" "),e("span",{staticClass:"hljs-attr"},[t._v("theme")]),t._v("="),e("span",{staticClass:"hljs-string"},[t._v('"filled"')]),t._v(" />")]),t._v("\n "),e("span",{staticClass:"hljs-tag"},[t._v("<"),e("span",{staticClass:"hljs-name"},[t._v("a-icon")]),t._v(" "),e("span",{staticClass:"hljs-attr"},[t._v("type")]),t._v("="),e("span",{staticClass:"hljs-string"},[t._v('"smile"')]),t._v(" "),e("span",{staticClass:"hljs-attr"},[t._v("theme")]),t._v("="),e("span",{staticClass:"hljs-string"},[t._v('"outlined"')]),t._v(" />")]),t._v("\n "),e("span",{staticClass:"hljs-tag"},[t._v("<"),e("span",{staticClass:"hljs-name"},[t._v("a-icon")]),t._v(" "),e("span",{staticClass:"hljs-attr"},[t._v("type")]),t._v("="),e("span",{staticClass:"hljs-string"},[t._v('"sync"')]),t._v(" "),e("span",{staticClass:"hljs-attr"},[t._v("spin")]),t._v(" />")]),t._v("\n "),e("span",{staticClass:"hljs-tag"},[t._v("<"),e("span",{staticClass:"hljs-name"},[t._v("a-icon")]),t._v(" "),e("span",{staticClass:"hljs-attr"},[t._v("type")]),t._v("="),e("span",{staticClass:"hljs-string"},[t._v('"smile"')]),t._v(" "),e("span",{staticClass:"hljs-attr"},[t._v(":rotate")]),t._v("="),e("span",{staticClass:"hljs-string"},[t._v('"180"')]),t._v(" />")]),t._v("\n "),e("span",{staticClass:"hljs-tag"},[t._v("<"),e("span",{staticClass:"hljs-name"},[t._v("a-icon")]),t._v(" "),e("span",{staticClass:"hljs-attr"},[t._v("type")]),t._v("="),e("span",{staticClass:"hljs-string"},[t._v('"loading"')]),t._v(" />")]),t._v("\n "),e("span",{staticClass:"hljs-tag"},[t._v(""),e("span",{staticClass:"hljs-name"},[t._v("div")]),t._v(">")]),t._v("\n"),e("span",{staticClass:"hljs-tag"},[t._v(""),e("span",{staticClass:"hljs-name"},[t._v("template")]),t._v(">")]),t._v("\n"),e("span",{staticClass:"hljs-tag"},[t._v("<"),e("span",{staticClass:"hljs-name"},[t._v("style")]),t._v(" "),e("span",{staticClass:"hljs-attr"},[t._v("scoped")]),t._v(">")]),e("span",{staticClass:"css"},[t._v("\n "),e("span",{staticClass:"hljs-selector-class"},[t._v(".icons-list")]),t._v(" >>> "),e("span",{staticClass:"hljs-selector-class"},[t._v(".anticon")]),t._v(" {\n "),e("span",{staticClass:"hljs-attribute"},[t._v("margin-right")]),t._v(": "),e("span",{staticClass:"hljs-number"},[t._v("6px")]),t._v(";\n "),e("span",{staticClass:"hljs-attribute"},[t._v("font-size")]),t._v(": "),e("span",{staticClass:"hljs-number"},[t._v("24px")]),t._v(";\n }\n")]),e("span",{staticClass:"hljs-tag"},[t._v(""),e("span",{staticClass:"hljs-name"},[t._v("style")]),t._v(">")]),t._v("\n")])])])],2)]],2)};g._withStripped=!0;e(1299);var f=Object(i.a)({},g,[],!1,null,"a48b5360",null);f.options.__file="components/icon/demo/basic.md";var j=f.exports,C=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",[[e("demo-box",{attrs:{jsfiddle:{html:'\n \n',script:'\n const HeartSvg = {\n template: `\n \n \n \n `,\n };\n const PandaSvg = {\n template: `\n \n \n \n \n \n \n \n \n \n \n `,\n };\n\n const HeartIcon = {\n template: `\n \n `,\n data() {\n return {\n HeartSvg,\n };\n },\n };\n\n const PandaIcon = {\n template: `\n \n `,\n data() {\n return {\n PandaSvg,\n };\n },\n };\n\n export default {\n components: {\n HeartIcon,\n PandaIcon,\n },\n };\n',style:null,us:'\n#### Custom Icon\nCreate a reusable Vue component by using ` `. The property `component` takes a Vue component that renders to `svg` element.\n',cn:"\n#### 自定义图标\n利用 `Icon` 组件封装一个可复用的自定义图标。可以通过 `component` 属性传入一个组件来渲染最终的图标,以满足特定的需求。\n",sourceCode:'\n \n \n