mirror of
https://github.com/Hopiu/vue-material.git
synced 2026-05-04 21:44:43 +00:00
1 line
21 KiB
JavaScript
1 line
21 KiB
JavaScript
|
|
webpackJsonp([7,32],{106:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={data:function(){return{alert:{content:"Your post has been deleted!",ok:"Cool!"},alert2:{title:"Post created!",contentHtml:"Your post <strong>Material Design is awesome</strong> has been created."},confirm:{title:"Use Google's location service?",contentHtml:"Let Google help apps determine location. <br> This means sending <strong>anonymous</strong> location data to Google, even when no apps are running.",ok:"Agree",cancel:"Disagree"},prompt:{title:"What's your name?",ok:"Done",cancel:"Cancel",id:"name",name:"name",placeholder:"Type your name...",maxlength:30,value:""}}},methods:{openDialog:function(e){this.$refs[e].open()},closeDialog:function(e){this.$refs[e].close()},onOpen:function(){console.log("Opened")},onClose:function(e){console.log("Closed",e)}}},e.exports=t.default},259:function(e,t,o){t=e.exports=o(1)(),t.push([e.id,".dialog-fab[data-v-e65f137a]{height:200px}",""])},348:function(e,t,o){var l,n;o(580),l=o(106);var a=o(538);n=l=l||{},"object"!=typeof l.default&&"function"!=typeof l.default||(n=l=l.default),"function"==typeof n&&(n=n.options),n.render=a.render,n.staticRenderFns=a.staticRenderFns,n._scopeId="data-v-e65f137a",e.exports=l},538:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("page-content",{attrs:{"page-title":"Components - Dialog"}},[o("docs-component",[o("div",{slot:"description"},[o("p",[e._v("Dialogs inform users about a specific task and may contain critical information, require decisions, or involve multiple tasks.")]),e._v(" "),o("p",[e._v("The dialog component works with any plain html content. You can have tabs, all form components and more.")]),e._v(" "),o("p",[e._v("Alternativelly you can use three presets to build Alerts, Confirms and Prompt dialogs.")]),e._v(" "),o("p",[e._v("The preset component is created on top of "),o("code",[e._v("<md-dialog>")]),e._v(". You should provide the content or the HTML content at least.")]),e._v(" "),o("p",[e._v("All the pressets can use the same options and events from the "),o("code",[e._v("<md-dialog>")]),e._v(" component.")])]),e._v(" "),o("div",{slot:"api"},[o("api-table",{attrs:{name:"md-dialog"}},[o("md-table",{slot:"properties"},[o("md-table-header",[o("md-table-row",[o("md-table-head",[e._v("Name")]),e._v(" "),o("md-table-head",[e._v("Type")]),e._v(" "),o("md-table-head",[e._v("Description")])],1)],1),e._v(" "),o("md-table-body",[o("md-table-row",[o("md-table-cell",[e._v("md-click-outside-to-close")]),e._v(" "),o("md-table-cell",[o("code",[e._v("Boolean")])]),e._v(" "),o("md-table-cell",[e._v("Enable or disable click outside to close. Default: "),o("code",[e._v("true")])])],1),e._v(" "),o("md-table-row",[o("md-table-cell",[e._v("md-esc-to-close")]),e._v(" "),o("md-table-cell",[o("code",[e._v("Boolean")])]),e._v(" "),o("md-table-cell",[e._v("Enable or disable close on esc key. Default: "),o("code",[e._v("true")])])],1),e._v(" "),o("md-table-row",[o("md-table-cell",[e._v("md-backdrop")]),e._v(" "),o("md-table-cell",[o("code",[e._v("Boolean")])]),e._v(" "),o("md-table-cell",[e._v("Create an opaque backdrop behind the dialog. Default: "),o("code",[e._v("true")])])],1),e._v(" "),o("md-table-row",[o("md-table-cell",[e._v("md-open-from")]),e._v(" "),o("md-table-cell",[o("code",[e._v("String")])]),e._v(" "),o("md-table-cell",[e._v("The query selector of the element that is used to determine from which the Dialog will open.")])],1),e._v(" "),o("md-table-row",[o("md-table-cell",[e._v("md-close-to")]),e._v(" "),o("md-table-cell",[o("code",[e._v("String")])]),e._v(" "),o("md-table-cell",[e._v("The query selector of the element that is used to determine from which the Dialog will close.")])],1)],1)],1),e._v(" "),o("md-table",{slot:"events"},[o("md-table-header",[o("md-table-row",[o("md-table-head",[e._v("Name")]),e._v(" "),o("md-table-head",[e._v("Value")]),e._v(" "),o("md-table-head",[e._v("Description")])],1)],1),e._v(" "),o("md-table-body",[o("md-table-row",[o("md-table-cell",[e._v("open")]),e._v(
|