Files
2021-07-23 17:15:54 +03:00

1 line
5.3 KiB
JavaScript

(window.webpackJsonp=window.webpackJsonp||[]).push([[21,2,3],{1179:function(t,e,n){"use strict";n.r(e);n(106),n(640);var l={props:["anchors"],data:function(){return{url:""}},beforeMount:function(){this.url=window.location.href.split("#")[0]}},c=n(81),component=Object(c.a)(l,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"page-anchor"},[n("a-anchor",{attrs:{targetOffset:80,offsetTop:85}},t._l(t.anchors,(function(title,e){return n("a-anchor-link",{key:e,attrs:{href:t.url+"#"+e,title:title}})})),1)],1)}),[],!1,null,null,null);e.default=component.exports},1180:function(t,e,n){"use strict";n.r(e);var l={inheritAttrs:!0,props:["code","lang"],data:function(){return{}},methods:{onCopy:function(t){this.$message.success({content:"Copied!"})}}},c=n(81),component=Object(c.a)(l,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("section",{staticClass:"highlight-section"},[n("a-button",{directives:[{name:"clipboard",rawName:"v-clipboard:copy",value:t.code.trim(),expression:"code.trim()",arg:"copy"},{name:"clipboard",rawName:"v-clipboard:success",value:t.onCopy,expression:"onCopy",arg:"success"}],staticClass:"btn-copy",attrs:{type:"primary",icon:"copy",size:"small"}},[t._v("Copy")]),t._v(" "),n("highlight-code",{staticStyle:{"max-height":"500px"},attrs:{lang:t.lang?t.lang:"html"}},[t._v("\n\t\t"+t._s(t.code)+"\n\t")])],1)}),[],!1,null,null,null);e.default=component.exports},1235:function(t,e,n){"use strict";n.r(e);var l={head:function(){return{title:"Select | Muse Dashboard Ant Design Vue @ Creative Tim",meta:[{hid:"description",name:"description",content:"Select component to select value from options."}]}},data:function(){return{anchors:{"When-To-Use":"When To Use",Basic:"Basic"},codeSample:'\n<template>\n <div>\n <a-select default-value="lucy" style="width: 120px" @change="handleChange">\n <a-select-option value="jack">\n Jack\n </a-select-option>\n <a-select-option value="lucy">\n Lucy\n </a-select-option>\n <a-select-option value="disabled" disabled>\n Disabled\n </a-select-option>\n <a-select-option value="Yiminghe">\n yiminghe\n </a-select-option>\n </a-select>\n <a-select default-value="lucy" style="width: 120px" disabled>\n <a-select-option value="lucy">\n Lucy\n </a-select-option>\n </a-select>\n <a-select default-value="lucy" style="width: 120px" loading>\n <a-select-option value="lucy">\n Lucy\n </a-select-option>\n </a-select>\n </div>\n</template>\n<script>\nexport default {\n methods: {\n handleChange(value) {\n console.log(`selected ${value}`);\n },\n },\n};\n<\/script>'}},methods:{}},c=n(81),component=Object(c.a)(l,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"page-row"},[n("div",{staticClass:"page-content"},[t._m(0),t._v(" "),n("a-divider"),t._v(" "),t._m(1),t._v(" "),n("h2",[t._v("Examples")]),t._v(" "),n("section",{staticClass:"mb-24",attrs:{id:"Basic"}},[n("a-divider",{attrs:{orientation:"left"}},[t._v("Basic")]),t._v(" "),n("p",[t._v("\n\t\t\t\t\t\tBasic Usage\n\t\t\t\t\t")]),t._v(" "),n("div",{staticClass:"showcase"},[n("a-select",{staticStyle:{width:"120px"},attrs:{"default-value":"lucy"}},[n("a-select-option",{attrs:{value:"jack"}},[t._v("\n\t\t\t\t\t\t\t\tJack\n\t\t\t\t\t\t\t")]),t._v(" "),n("a-select-option",{attrs:{value:"lucy"}},[t._v("\n\t\t\t\t\t\t\t\tLucy\n\t\t\t\t\t\t\t")]),t._v(" "),n("a-select-option",{attrs:{value:"disabled",disabled:""}},[t._v("\n\t\t\t\t\t\t\t\tDisabled\n\t\t\t\t\t\t\t")]),t._v(" "),n("a-select-option",{attrs:{value:"Yiminghe"}},[t._v("\n\t\t\t\t\t\t\t\tyiminghe\n\t\t\t\t\t\t\t")])],1),t._v(" "),n("a-select",{staticStyle:{width:"120px"},attrs:{"default-value":"lucy",disabled:""}},[n("a-select-option",{attrs:{value:"lucy"}},[t._v("\n\t\t\t\t\t\t\t\tLucy\n\t\t\t\t\t\t\t")])],1),t._v(" "),n("a-select",{staticStyle:{width:"120px"},attrs:{"default-value":"lucy",loading:""}},[n("a-select-option",{attrs:{value:"lucy"}},[t._v("\n\t\t\t\t\t\t\t\tLucy\n\t\t\t\t\t\t\t")])],1)],1),t._v(" "),n("muse-snippet",{attrs:{code:t.codeSample}})],1),t._v(" "),t._m(2)],1),t._v(" "),n("muse-anchor",{attrs:{anchors:t.anchors}})],1)])}),[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("section",{staticClass:"mb-24"},[n("h1",[t._v("Select")]),t._v(" "),n("p",{staticClass:"text-dark"},[t._v("\n\t\t\t\t\t\tSelect component to select value from options.\n\t\t\t\t\t")])])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("section",{staticClass:"mb-24",attrs:{id:"When-To-Use"}},[n("h2",[t._v("When To Use")]),t._v(" "),n("ul",[n("li",[t._v("A dropdown menu for displaying choices - an elegant alternative to the native "),n("code",[t._v("<select>")]),t._v(" element.")]),t._v(" "),n("li",[t._v("Utilizing Radio is recommended when there are fewer total options (less than 5).")])])])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("p",{staticClass:"text-right font-semibold mb-24"},[t._v("\n\t\t\t\t\tLooking for more Ant Design Vue Select? Please check the\n\t\t\t\t\t"),n("a",{attrs:{target:"_blank",href:"https://antdv.com/components/select/"}},[t._v("official docs")]),t._v(".\n\t\t\t\t")])}],!1,null,"d53b1522",null);e.default=component.exports;installComponents(component,{MuseSnippet:n(1180).default,MuseAnchor:n(1179).default})}}]);