-
Notifications
You must be signed in to change notification settings - Fork 0
/
doc_markdown_nModal_en-US_index_md.main.js
297 lines (256 loc) · 18.2 KB
/
doc_markdown_nModal_en-US_index_md.main.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
"use strict";
(self["webpackChunkninecat_ui"] = self["webpackChunkninecat_ui"] || []).push([["doc_markdown_nModal_en-US_index_md"],{
/***/ "./doc/markdown/nModal/en-US/index.md":
/*!********************************************!*\
!*** ./doc/markdown/nModal/en-US/index.md ***!
\********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _index_md_vue_type_template_id_6ede88c6__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index.md?vue&type=template&id=6ede88c6 */ "./doc/markdown/nModal/en-US/index.md?vue&type=template&id=6ede88c6");
/* harmony import */ var _index_md_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.md?vue&type=script&lang=js */ "./doc/markdown/nModal/en-US/index.md?vue&type=script&lang=js");
/* harmony import */ var _home_travis_build_ninecat_ui_ninecat_ui_node_modules_vue_loader_dist_exportHelper_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./node_modules/vue-loader/dist/exportHelper.js */ "./node_modules/vue-loader/dist/exportHelper.js");
;
const __exports__ = /*#__PURE__*/(0,_home_travis_build_ninecat_ui_ninecat_ui_node_modules_vue_loader_dist_exportHelper_js__WEBPACK_IMPORTED_MODULE_2__["default"])(_index_md_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_1__["default"], [['render',_index_md_vue_type_template_id_6ede88c6__WEBPACK_IMPORTED_MODULE_0__.render],['__file',"doc/markdown/nModal/en-US/index.md"]])
/* hot reload */
if (false) {}
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (__exports__);
/***/ }),
/***/ "./node_modules/vue-loader/dist/index.js??clonedRuleSet-1.use[0]!./build/md-loader/index.js!./doc/markdown/nModal/en-US/index.md?vue&type=script&lang=js":
/*!***************************************************************************************************************************************************************!*\
!*** ./node_modules/vue-loader/dist/index.js??clonedRuleSet-1.use[0]!./build/md-loader/index.js!./doc/markdown/nModal/en-US/index.md?vue&type=script&lang=js ***!
\***************************************************************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ "./node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js");
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
name: 'component-doc',
components: {
"ninecat-demo0": (function() {
const _hoisted_1 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("p", null, "Some contents...", -1 /* HOISTED */)
const _hoisted_2 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("p", null, "Some contents...", -1 /* HOISTED */)
const _hoisted_3 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("p", null, "Some contents...", -1 /* HOISTED */)
function render(_ctx, _cache) {
const _component_n_button = (0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveComponent)("n-button")
const _component_n_modal = (0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveComponent)("n-modal")
return ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", null, [
(0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)(_component_n_button, { onClick: _ctx.openModal }, {
default: (0,vue__WEBPACK_IMPORTED_MODULE_0__.withCtx)(() => [
(0,vue__WEBPACK_IMPORTED_MODULE_0__.createTextVNode)(" Open modal ")
]),
_: 1 /* STABLE */
}, 8 /* PROPS */, ["onClick"]),
(0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)(_component_n_modal, {
show: _ctx.modalShow,
title: _ctx.modalTitle,
confirm: _ctx.confirm,
cancel: _ctx.cancel,
onClose: _ctx.onClose
}, {
default: (0,vue__WEBPACK_IMPORTED_MODULE_0__.withCtx)(() => [
_hoisted_1,
_hoisted_2,
_hoisted_3
]),
_: 1 /* STABLE */
}, 8 /* PROPS */, ["show", "title", "confirm", "cancel", "onClose"])
]))
}
const democomponentExport ={
data:function(){
return {
modalShow:false,
modalTitle:'This is title'
}
},
methods:{
openModal () {
this.modalShow = true
},
confirm () {
console.log('confirm')
},
cancel () {
console.log('cancel')
},
onClose () {
this.modalShow = false
}
}
}
return {
render,
...democomponentExport,
}
})(),"ninecat-demo1": (function() {
const _hoisted_1 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("p", null, "Some contents...", -1 /* HOISTED */)
const _hoisted_2 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("p", null, "Some contents...", -1 /* HOISTED */)
const _hoisted_3 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("p", null, "Some contents...", -1 /* HOISTED */)
function render(_ctx, _cache) {
const _component_n_button = (0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveComponent)("n-button")
const _component_n_modal = (0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveComponent)("n-modal")
return ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", null, [
(0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)(_component_n_button, {
onClick: _cache[0] || (_cache[0] = $event => (_ctx.openModal('xs')))
}, {
default: (0,vue__WEBPACK_IMPORTED_MODULE_0__.withCtx)(() => [
(0,vue__WEBPACK_IMPORTED_MODULE_0__.createTextVNode)(" xs ")
]),
_: 1 /* STABLE */
}),
(0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)(_component_n_button, {
onClick: _cache[1] || (_cache[1] = $event => (_ctx.openModal('sm')))
}, {
default: (0,vue__WEBPACK_IMPORTED_MODULE_0__.withCtx)(() => [
(0,vue__WEBPACK_IMPORTED_MODULE_0__.createTextVNode)(" sm ")
]),
_: 1 /* STABLE */
}),
(0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)(_component_n_button, {
onClick: _cache[2] || (_cache[2] = $event => (_ctx.openModal('md')))
}, {
default: (0,vue__WEBPACK_IMPORTED_MODULE_0__.withCtx)(() => [
(0,vue__WEBPACK_IMPORTED_MODULE_0__.createTextVNode)(" md ")
]),
_: 1 /* STABLE */
}),
(0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)(_component_n_button, {
onClick: _cache[3] || (_cache[3] = $event => (_ctx.openModal('lg')))
}, {
default: (0,vue__WEBPACK_IMPORTED_MODULE_0__.withCtx)(() => [
(0,vue__WEBPACK_IMPORTED_MODULE_0__.createTextVNode)(" lg ")
]),
_: 1 /* STABLE */
}),
(0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)(_component_n_modal, {
size: _ctx.size,
show: _ctx.modalShow,
title: _ctx.modalTitle,
confirm: _ctx.confirm,
cancel: _ctx.cancel
}, {
default: (0,vue__WEBPACK_IMPORTED_MODULE_0__.withCtx)(() => [
_hoisted_1,
_hoisted_2,
_hoisted_3
]),
_: 1 /* STABLE */
}, 8 /* PROPS */, ["size", "show", "title", "confirm", "cancel"])
]))
}
const democomponentExport ={
data:function(){
return {
modalShow: false,
modalTitle: 'This is title',
size:'sm',
}
},
methods:{
openModal (size) {
this.size = size
this.modalShow = true
},
confirm () {
console.log('confirm')
},
cancel () {
console.log('cancel')
}
}
}
return {
render,
...democomponentExport,
}
})(),
}
});
/***/ }),
/***/ "./doc/markdown/nModal/en-US/index.md?vue&type=script&lang=js":
/*!********************************************************************!*\
!*** ./doc/markdown/nModal/en-US/index.md?vue&type=script&lang=js ***!
\********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ "default": () => (/* reexport safe */ _node_modules_vue_loader_dist_index_js_clonedRuleSet_1_use_0_build_md_loader_index_js_index_md_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_0__["default"])
/* harmony export */ });
/* harmony import */ var _node_modules_vue_loader_dist_index_js_clonedRuleSet_1_use_0_build_md_loader_index_js_index_md_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/vue-loader/dist/index.js??clonedRuleSet-1.use[0]!../../../../build/md-loader/index.js!./index.md?vue&type=script&lang=js */ "./node_modules/vue-loader/dist/index.js??clonedRuleSet-1.use[0]!./build/md-loader/index.js!./doc/markdown/nModal/en-US/index.md?vue&type=script&lang=js");
/***/ }),
/***/ "./doc/markdown/nModal/en-US/index.md?vue&type=template&id=6ede88c6":
/*!**************************************************************************!*\
!*** ./doc/markdown/nModal/en-US/index.md?vue&type=template&id=6ede88c6 ***!
\**************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ "render": () => (/* reexport safe */ _node_modules_vue_loader_dist_templateLoader_js_ruleSet_1_rules_2_node_modules_vue_loader_dist_index_js_clonedRuleSet_1_use_0_build_md_loader_index_js_index_md_vue_type_template_id_6ede88c6__WEBPACK_IMPORTED_MODULE_0__.render)
/* harmony export */ });
/* harmony import */ var _node_modules_vue_loader_dist_templateLoader_js_ruleSet_1_rules_2_node_modules_vue_loader_dist_index_js_clonedRuleSet_1_use_0_build_md_loader_index_js_index_md_vue_type_template_id_6ede88c6__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!../../../../node_modules/vue-loader/dist/index.js??clonedRuleSet-1.use[0]!../../../../build/md-loader/index.js!./index.md?vue&type=template&id=6ede88c6 */ "./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/dist/index.js??clonedRuleSet-1.use[0]!./build/md-loader/index.js!./doc/markdown/nModal/en-US/index.md?vue&type=template&id=6ede88c6");
/***/ }),
/***/ "./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/dist/index.js??clonedRuleSet-1.use[0]!./build/md-loader/index.js!./doc/markdown/nModal/en-US/index.md?vue&type=template&id=6ede88c6":
/*!*******************************************************************************************************************************************************************************************************************************************!*\
!*** ./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/dist/index.js??clonedRuleSet-1.use[0]!./build/md-loader/index.js!./doc/markdown/nModal/en-US/index.md?vue&type=template&id=6ede88c6 ***!
\*******************************************************************************************************************************************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ "render": () => (/* binding */ render)
/* harmony export */ });
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ "./node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js");
const _hoisted_1 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("h1", null, "Modal", -1 /* HOISTED */)
const _hoisted_2 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("p", null, "Modal dialog", -1 /* HOISTED */)
const _hoisted_3 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("h2", { id: "when-to-use" }, "When To Use", -1 /* HOISTED */)
const _hoisted_4 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("p", null, "When users need to handle transactions and do not want to jump to the page to interrupt the workflow, you can use Modal to open a floating layer in the middle of the current page to carry the corresponding operations.", -1 /* HOISTED */)
const _hoisted_5 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("h2", { id: "examples" }, "Examples", -1 /* HOISTED */)
const _hoisted_6 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("h3", { id: "basic-use" }, "Basic use", -1 /* HOISTED */)
const _hoisted_7 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("pre", null, [
/*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("code", { class: "vue" }, "<template>\n <n-button \n @click.native=\"openModal\">\n Open modal\n </n-button>\n <n-modal\n :show=\"modalShow\"\n :title=\"modalTitle\"\n :confirm=\"confirm\"\n :cancel=\"cancel\"\n @close=\"onClose\"\n >\n <p>Some contents...</p>\n <p>Some contents...</p>\n <p>Some contents...</p>\n </n-Modal>\n</template>\n<script>\n export default{\n data:function(){\n return {\n modalShow:false,\n modalTitle:'This is title'\n }\n },\n methods:{\n openModal () {\n this.modalShow = true\n },\n confirm () {\n console.log('confirm')\n },\n cancel () {\n console.log('cancel')\n },\n onClose () {\n this.modalShow = false\n }\n }\n }\n</script>\n\n")
], -1 /* HOISTED */)
const _hoisted_8 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("h3", { id: "size" }, "Size", -1 /* HOISTED */)
const _hoisted_9 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("pre", null, [
/*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("code", { class: "vue" }, "<template>\n <n-button \n @click.native=\"openModal('xs')\">\n xs\n </n-button>\n <n-button \n @click.native=\"openModal('sm')\">\n sm\n </n-button>\n <n-button \n @click.native=\"openModal('md')\">\n md\n </n-button>\n <n-button \n @click.native=\"openModal('lg')\">\n lg\n </n-button>\n <n-modal\n :size=\"size\"\n :show.sync=\"modalShow\"\n :title=\"modalTitle\"\n :confirm=\"confirm\"\n :cancel=\"cancel\"\n >\n <p>Some contents...</p>\n <p>Some contents...</p>\n <p>Some contents...</p>\n </n-Modal>\n</template>\n<script>\n export default{\n data:function(){\n return {\n modalShow: false,\n modalTitle: 'This is title',\n size:'sm',\n }\n },\n methods:{\n openModal (size) {\n this.size = size\n this.modalShow = true\n },\n confirm () {\n console.log('confirm')\n },\n cancel () {\n console.log('cancel')\n }\n }\n }\n</script>\n\n")
], -1 /* HOISTED */)
const _hoisted_10 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_0__.createStaticVNode)("<h3 id=\"api\">API</h3><table><thead><tr><th style=\"text-align:left;\">Property</th><th style=\"text-align:left;\">Description</th><th style=\"text-align:left;\">Type</th><th style=\"text-align:left;\">Default</th></tr></thead><tbody><tr><td style=\"text-align:left;\">show</td><td style=\"text-align:left;\">Whether to show modal</td><td style=\"text-align:left;\">Boolean</td><td style=\"text-align:left;\">false</td></tr><tr><td style=\"text-align:left;\">title</td><td style=\"text-align:left;\">Title of the modal</td><td style=\"text-align:left;\">String</td><td style=\"text-align:left;\"></td></tr><tr><td style=\"text-align:left;\">size</td><td style=\"text-align:left;\">Size of the modal</td><td style=\"text-align:left;\">String</td><td style=\"text-align:left;\">sm</td></tr><tr><td style=\"text-align:left;\">confirm</td><td style=\"text-align:left;\">Confirm callback function</td><td style=\"text-align:left;\">Function</td><td style=\"text-align:left;\"></td></tr><tr><td style=\"text-align:left;\">cancel</td><td style=\"text-align:left;\">Cancel callback function</td><td style=\"text-align:left;\">Function</td><td style=\"text-align:left;\"></td></tr></tbody></table>", 2)
function render(_ctx, _cache, $props, $setup, $data, $options) {
const _component_ninecat_demo0 = (0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveComponent)("ninecat-demo0")
const _component_demo_block = (0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveComponent)("demo-block")
const _component_ninecat_demo1 = (0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveComponent)("ninecat-demo1")
return ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("section", null, [
_hoisted_1,
_hoisted_2,
_hoisted_3,
_hoisted_4,
_hoisted_5,
_hoisted_6,
(0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)(_component_demo_block, null, {
source: (0,vue__WEBPACK_IMPORTED_MODULE_0__.withCtx)(() => [
(0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)(_component_ninecat_demo0)
]),
highlight: (0,vue__WEBPACK_IMPORTED_MODULE_0__.withCtx)(() => [
_hoisted_7
]),
_: 1 /* STABLE */
}),
_hoisted_8,
(0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)(_component_demo_block, null, {
source: (0,vue__WEBPACK_IMPORTED_MODULE_0__.withCtx)(() => [
(0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)(_component_ninecat_demo1)
]),
highlight: (0,vue__WEBPACK_IMPORTED_MODULE_0__.withCtx)(() => [
_hoisted_9
]),
_: 1 /* STABLE */
}),
_hoisted_10
]))
}
/***/ })
}]);
//# sourceMappingURL=doc_markdown_nModal_en-US_index_md.main.js.map