mirror of
https://github.com/creativetimofficial/muse-vue-ant-design-dashboard.git
synced 2025-08-17 12:01:02 +08:00
1 line
9.8 KiB
JavaScript
1 line
9.8 KiB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([[16,2,3],{1179:function(t,e,n){"use strict";n.r(e);n(106),n(640);var o={props:["anchors"],data:function(){return{url:""}},beforeMount:function(){this.url=window.location.href.split("#")[0]}},l=n(81),component=Object(l.a)(o,(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 o={inheritAttrs:!0,props:["code","lang"],data:function(){return{}},methods:{onCopy:function(t){this.$message.success({content:"Copied!"})}}},l=n(81),component=Object(l.a)(o,(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},1185:function(t,e,n){var content=n(1203);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(135).default)("22481d74",content,!0,{sourceMap:!1})},1202:function(t,e,n){"use strict";n(1185)},1203:function(t,e,n){var o=n(134)(!1);o.push([t.i,"#components-a-tooltip-demo-placement .ant-btn[data-v-4e875ee6]{width:70px;text-align:center;padding:0;margin-right:8px;margin-bottom:8px}",""]),t.exports=o},1230:function(t,e,n){"use strict";n.r(e);var o={head:function(){return{title:"Tooltip | Muse Vue Ant Design Dashboard @ Creative Tim",meta:[{hid:"description",name:"description",content:"A simple text popup tip."}]}},data:function(){return{anchors:{"When-To-Use":"When To Use",Basic:"Basic",Placement:"Placement"},buttonWidth:70,codeSample:'\n<template>\n <a-tooltip>\n <template slot="title">\n prompt text\n </template>\n Tooltip will show when mouse enter.\n </a-tooltip>\n</template>\n',placement:'\n<template>\n <div id="components-a-tooltip-demo-placement">\n <div :style="{ marginLeft: `${buttonWidth}px`, whiteSpace: \'nowrap\' }">\n <a-tooltip placement="topLeft">\n <template slot="title">\n <span>prompt text</span>\n </template>\n <a-button>TL</a-button>\n </a-tooltip>\n <a-tooltip placement="top">\n <template slot="title">\n <span>prompt text</span>\n </template>\n <a-button>Top</a-button>\n </a-tooltip>\n <a-tooltip placement="topRight">\n <template slot="title">\n <span>prompt text</span>\n </template>\n <a-button>TR</a-button>\n </a-tooltip>\n </div>\n <div :style="{ width: `${buttonWidth}px`, float: \'left\' }">\n <a-tooltip placement="leftTop">\n <template slot="title">\n <span>prompt text</span>\n </template>\n <a-button>LT</a-button>\n </a-tooltip>\n <a-tooltip placement="left">\n <template slot="title">\n <span>prompt text</span>\n </template>\n <a-button>Left</a-button>\n </a-tooltip>\n <a-tooltip placement="leftBottom">\n <template slot="title">\n <span>prompt text</span>\n </template>\n <a-button>LB</a-button>\n </a-tooltip>\n </div>\n <div :style="{ width: `${buttonWidth}px`, marginLeft: `${buttonWidth * 4 + 24}px` }">\n <a-tooltip placement="rightTop">\n <template slot="title">\n <span>prompt text</span>\n </template>\n <a-button>RT</a-button>\n </a-tooltip>\n <a-tooltip placement="right">\n <template slot="title">\n <span>prompt text</span>\n </template>\n <a-button>Right</a-button>\n </a-tooltip>\n <a-tooltip placement="rightBottom">\n <template slot="title">\n <span>prompt text</span>\n </template>\n <a-button>RB</a-button>\n </a-tooltip>\n </div>\n <div :style="{ marginLeft: `${buttonWidth}px`, clear: \'both\', whiteSpace: \'nowrap\' }">\n <a-tooltip placement="bottomLeft">\n <template slot="title">\n <span>prompt text</span>\n </template>\n <a-button>BL</a-button>\n </a-tooltip>\n <a-tooltip placement="bottom">\n <template slot="title">\n <span>prompt text</span>\n </template>\n <a-button>Bottom</a-button>\n </a-tooltip>\n <a-tooltip placement="bottomRight">\n <template slot="title">\n <span>prompt text</span>\n </template>\n <a-button>BR</a-button>\n </a-tooltip>\n </div>\n </div>\n</template>\n<script>\n\texport default {\n\t\tdata() {\n\t\t\treturn {\n\t\t\t\tbuttonWidth: 70,\n\t\t\t};\n\t\t},\n\t};\n<\/script>\n<style scoped>\n\t#components-a-tooltip-demo-placement .ant-btn {\n\twidth: 70px;\n\ttext-align: center;\n\tpadding: 0;\n\tmargin-right: 8px;\n\tmargin-bottom: 8px;\n\t}\n</style>'}},methods:{}},l=(n(1202),n(81)),component=Object(l.a)(o,(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\tThe simplest usage.\n\t\t\t\t\t")]),t._v(" "),n("div",{staticClass:"showcase"},[n("a-tooltip",[n("template",{slot:"title"},[t._v("\n\t\t\t\t\t\t\tprompt text\n\t\t\t\t\t\t\t")]),t._v("\n\t\t\t\t\t\t\tTooltip will show when mouse enter.\n\t\t\t\t\t\t")],2)],1),t._v(" "),n("muse-snippet",{attrs:{code:t.codeSample}})],1),t._v(" "),n("section",{staticClass:"mb-24",attrs:{id:"Placement"}},[n("a-divider",{attrs:{orientation:"left"}},[t._v("Placement")]),t._v(" "),n("p",[t._v("\n\t\t\t\t\t\tThere are 12 placement options available.\n\t\t\t\t\t")]),t._v(" "),n("div",{staticClass:"showcase"},[n("div",{attrs:{id:"components-a-tooltip-demo-placement"}},[n("div",{style:{marginLeft:t.buttonWidth+"px",whiteSpace:"nowrap"}},[n("a-tooltip",{attrs:{placement:"topLeft"}},[n("template",{slot:"title"},[n("span",[t._v("prompt text")])]),t._v(" "),n("a-button",[t._v("TL")])],2),t._v(" "),n("a-tooltip",{attrs:{placement:"top"}},[n("template",{slot:"title"},[n("span",[t._v("prompt text")])]),t._v(" "),n("a-button",[t._v("Top")])],2),t._v(" "),n("a-tooltip",{attrs:{placement:"topRight"}},[n("template",{slot:"title"},[n("span",[t._v("prompt text")])]),t._v(" "),n("a-button",[t._v("TR")])],2)],1),t._v(" "),n("div",{style:{width:t.buttonWidth+"px",float:"left"}},[n("a-tooltip",{attrs:{placement:"leftTop"}},[n("template",{slot:"title"},[n("span",[t._v("prompt text")])]),t._v(" "),n("a-button",[t._v("LT")])],2),t._v(" "),n("a-tooltip",{attrs:{placement:"left"}},[n("template",{slot:"title"},[n("span",[t._v("prompt text")])]),t._v(" "),n("a-button",[t._v("Left")])],2),t._v(" "),n("a-tooltip",{attrs:{placement:"leftBottom"}},[n("template",{slot:"title"},[n("span",[t._v("prompt text")])]),t._v(" "),n("a-button",[t._v("LB")])],2)],1),t._v(" "),n("div",{style:{width:t.buttonWidth+"px",marginLeft:4*t.buttonWidth+24+"px"}},[n("a-tooltip",{attrs:{placement:"rightTop"}},[n("template",{slot:"title"},[n("span",[t._v("prompt text")])]),t._v(" "),n("a-button",[t._v("RT")])],2),t._v(" "),n("a-tooltip",{attrs:{placement:"right"}},[n("template",{slot:"title"},[n("span",[t._v("prompt text")])]),t._v(" "),n("a-button",[t._v("Right")])],2),t._v(" "),n("a-tooltip",{attrs:{placement:"rightBottom"}},[n("template",{slot:"title"},[n("span",[t._v("prompt text")])]),t._v(" "),n("a-button",[t._v("RB")])],2)],1),t._v(" "),n("div",{style:{marginLeft:t.buttonWidth+"px",clear:"both",whiteSpace:"nowrap"}},[n("a-tooltip",{attrs:{placement:"bottomLeft"}},[n("template",{slot:"title"},[n("span",[t._v("prompt text")])]),t._v(" "),n("a-button",[t._v("BL")])],2),t._v(" "),n("a-tooltip",{attrs:{placement:"bottom"}},[n("template",{slot:"title"},[n("span",[t._v("prompt text")])]),t._v(" "),n("a-button",[t._v("Bottom")])],2),t._v(" "),n("a-tooltip",{attrs:{placement:"bottomRight"}},[n("template",{slot:"title"},[n("span",[t._v("prompt text")])]),t._v(" "),n("a-button",[t._v("BR")])],2)],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("Tooltip")]),t._v(" "),n("p",{staticClass:"text-dark"},[t._v("\n\t\t\t\t\t\tA simple text popup tip.\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("The tip is shown on mouse enter, and is hidden on mouse leave. The Tooltip doesn’t support complex text or operations.")]),t._v(" "),n("li",[t._v("To provide an explanation of a ‘button/text/operation’. It’s often used instead of the html ‘title’ attribute.")])])])},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 Tooltip? Please check the\n\t\t\t\t\t"),n("a",{attrs:{target:"_blank",href:"https://antdv.com/components/tooltip/"}},[t._v("official docs")]),t._v(".\n\t\t\t\t")])}],!1,null,"4e875ee6",null);e.default=component.exports;installComponents(component,{MuseSnippet:n(1180).default,MuseAnchor:n(1179).default})}}]); |