-
Notifications
You must be signed in to change notification settings - Fork 0
/
doc_markdown_nMessage_zh-CN_index_md.main.js
189 lines (154 loc) · 12.5 KB
/
doc_markdown_nMessage_zh-CN_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
"use strict";
(self["webpackChunkninecat_ui"] = self["webpackChunkninecat_ui"] || []).push([["doc_markdown_nMessage_zh-CN_index_md"],{
/***/ "./doc/markdown/nMessage/zh-CN/index.md":
/*!**********************************************!*\
!*** ./doc/markdown/nMessage/zh-CN/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_2c72781b__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index.md?vue&type=template&id=2c72781b */ "./doc/markdown/nMessage/zh-CN/index.md?vue&type=template&id=2c72781b");
/* 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/nMessage/zh-CN/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_2c72781b__WEBPACK_IMPORTED_MODULE_0__.render],['__file',"doc/markdown/nMessage/zh-CN/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/nMessage/zh-CN/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/nMessage/zh-CN/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() {
function render(_ctx, _cache) {
const _component_n_button = (0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveComponent)("n-button")
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.openMessage('info')))
}, {
default: (0,vue__WEBPACK_IMPORTED_MODULE_0__.withCtx)(() => [
(0,vue__WEBPACK_IMPORTED_MODULE_0__.createTextVNode)("普通消息")
]),
_: 1 /* STABLE */
}),
(0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)(_component_n_button, {
onClick: _cache[1] || (_cache[1] = $event => (_ctx.openMessage('success')))
}, {
default: (0,vue__WEBPACK_IMPORTED_MODULE_0__.withCtx)(() => [
(0,vue__WEBPACK_IMPORTED_MODULE_0__.createTextVNode)("成功消息")
]),
_: 1 /* STABLE */
}),
(0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)(_component_n_button, {
onClick: _cache[2] || (_cache[2] = $event => (_ctx.openMessage('warning')))
}, {
default: (0,vue__WEBPACK_IMPORTED_MODULE_0__.withCtx)(() => [
(0,vue__WEBPACK_IMPORTED_MODULE_0__.createTextVNode)("警告消息")
]),
_: 1 /* STABLE */
}),
(0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)(_component_n_button, {
onClick: _cache[3] || (_cache[3] = $event => (_ctx.openMessage('error')))
}, {
default: (0,vue__WEBPACK_IMPORTED_MODULE_0__.withCtx)(() => [
(0,vue__WEBPACK_IMPORTED_MODULE_0__.createTextVNode)("错误消息")
]),
_: 1 /* STABLE */
})
]))
}
const democomponentExport = {
methods: {
openMessage(type){
this.$nMessage({
type,
message: '打开了提示框...',
})
}
}
}
return {
render,
...democomponentExport,
}
})(),
}
});
/***/ }),
/***/ "./doc/markdown/nMessage/zh-CN/index.md?vue&type=script&lang=js":
/*!**********************************************************************!*\
!*** ./doc/markdown/nMessage/zh-CN/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/nMessage/zh-CN/index.md?vue&type=script&lang=js");
/***/ }),
/***/ "./doc/markdown/nMessage/zh-CN/index.md?vue&type=template&id=2c72781b":
/*!****************************************************************************!*\
!*** ./doc/markdown/nMessage/zh-CN/index.md?vue&type=template&id=2c72781b ***!
\****************************************************************************/
/***/ ((__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_2c72781b__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_2c72781b__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=2c72781b */ "./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/nMessage/zh-CN/index.md?vue&type=template&id=2c72781b");
/***/ }),
/***/ "./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/nMessage/zh-CN/index.md?vue&type=template&id=2c72781b":
/*!*********************************************************************************************************************************************************************************************************************************************!*\
!*** ./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/nMessage/zh-CN/index.md?vue&type=template&id=2c72781b ***!
\*********************************************************************************************************************************************************************************************************************************************/
/***/ ((__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, "Message 信息提示", -1 /* HOISTED */)
const _hoisted_2 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("p", null, "用于页面信息提示。", -1 /* HOISTED */)
const _hoisted_3 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("h2", { id: "he-shi-shi-yong" }, "何时使用", -1 /* HOISTED */)
const _hoisted_4 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("p", null, "页面中需要有操作提示或者信息提示的时候使用。", -1 /* HOISTED */)
const _hoisted_5 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("h2", { id: "dai-ma-yan-shi" }, "代码演示", -1 /* HOISTED */)
const _hoisted_6 = /*#__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 @click=\"openMessage('info')\">普通消息</n-button>\n <n-button @click=\"openMessage('success')\">成功消息</n-button>\n <n-button @click=\"openMessage('warning')\">警告消息</n-button>\n <n-button @click=\"openMessage('error')\">错误消息</n-button>\n</template>\n<script>\n export default {\n methods: {\n openMessage(type){\n this.$nMessage({\n type,\n message: '打开了提示框...',\n })\n }\n }\n }\n</script>\n")
], -1 /* HOISTED */)
const _hoisted_7 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_0__.createStaticVNode)("<h2 id=\"api\">API</h2><table><thead><tr><th style=\"text-align:left;\">参数</th><th style=\"text-align:left;\">说明</th><th style=\"text-align:left;\">类型</th><th style=\"text-align:left;\">默认值</th></tr></thead><tbody><tr><td style=\"text-align:left;\">type</td><td style=\"text-align:left;\">信息类型,可选值<code>info</code>,<code>success</code>,<code>warning</code>,<code>error</code></td><td style=\"text-align:left;\">String</td><td style=\"text-align:left;\">info</td></tr><tr><td style=\"text-align:left;\">message</td><td style=\"text-align:left;\">信息内容</td><td style=\"text-align:left;\">String</td><td style=\"text-align:left;\"></td></tr><tr><td style=\"text-align:left;\">duration</td><td style=\"text-align:left;\">信息展示的时间(ms)</td><td style=\"text-align:left;\">Number</td><td style=\"text-align:left;\">3000</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")
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,
(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_6
]),
_: 1 /* STABLE */
}),
_hoisted_7
]))
}
/***/ })
}]);
//# sourceMappingURL=doc_markdown_nMessage_zh-CN_index_md.main.js.map