-
Notifications
You must be signed in to change notification settings - Fork 1
/
DOCS en-US34.0cb71eee40c7d7b6716e.js
309 lines (239 loc) · 19.3 KB
/
DOCS en-US34.0cb71eee40c7d7b6716e.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
298
299
300
301
302
303
304
305
306
307
308
309
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[29],{
/***/ 1031:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);
// EXTERNAL MODULE: ./node_modules/vue/dist/vue.esm-browser.prod.js
var vue_esm_browser_prod = __webpack_require__(0);
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/dist/templateLoader.js??ref--6!./node_modules/vue-loader/dist??ref--3-0!./website/md-loader!./website/docs/en-US/installation.md?vue&type=template&id=3206a7b4
const _hoisted_1 = {
class: "content element-doc"
};
const _hoisted_2 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Installing ElementPlus");
const _hoisted_3 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Environment ");
const _hoisted_4 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("ul", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("li", null, "Modern browser")], -1);
const _hoisted_5 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("tbody", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("tr", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "Edge"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "last 2 versions"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "last 2 versions"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "last 2 versions")])], -1);
const _hoisted_6 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("blockquote", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("p", null, "Since Vue3 no longer supports IE11, ElementPlus does not support IE11 and previous versions.")], -1);
const _hoisted_7 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Current latest version ");
const _hoisted_8 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("p", null, "ElementPlus is currently in a rapid development iteration:", -1);
const _hoisted_9 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Install via npm or yarn ");
const _hoisted_10 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("strong", null, "We recommend using the package manager to install ElementPlus", -1);
const _hoisted_11 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(", so that you can utilize bundlers like ");
const _hoisted_12 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("vite");
const _hoisted_13 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" and ");
const _hoisted_14 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("webpack");
const _hoisted_15 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(".");
const _hoisted_16 = /*#__PURE__*/Object(vue_esm_browser_prod["createStaticVNode"])("<pre class=\"example-code\"><code class=\"hljs language-shell\"><span class=\"hljs-meta\">$</span><span class=\"bash\"> npm install element-plus --save</span>\n</code><span class=\"lang-mark\">sh</span></pre><pre class=\"example-code\"><code class=\"hljs language-shell\"><span class=\"hljs-meta\">$</span><span class=\"bash\"> yarn add element-plus</span>\n</code><span class=\"lang-mark\">sh</span></pre><p>If your network environment is not good, it is recommended to use a mirror registry</p>", 3);
const _hoisted_19 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Browser direct introducing ");
const _hoisted_20 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("p", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Directly import ElementPlus through browser HTML tags, and use "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "ElementPlus"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" globally")], -1);
const _hoisted_21 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Introduce ");
const _hoisted_22 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "ElementPlus", -1);
const _hoisted_23 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" in full through ");
const _hoisted_24 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("strong", null, "CDN", -1);
const _hoisted_25 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(". According to different ");
const _hoisted_26 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("strong", null, "CDN", -1);
const _hoisted_27 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" providers, there are different introduction methods. Here we use ");
const _hoisted_28 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("unpkg");
const _hoisted_29 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" and");
const _hoisted_30 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("jsdelivr");
const _hoisted_31 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" For example, You can also use other ");
const _hoisted_32 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("strong", null, "CDN", -1);
const _hoisted_33 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" providers.");
const _hoisted_34 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Use unpkg ");
const _hoisted_35 = /*#__PURE__*/Object(vue_esm_browser_prod["createStaticVNode"])("<pre class=\"example-code\"><code class=\"hljs language-html\"><span class=\"hljs-tag\"><<span class=\"hljs-name\">head</span>></span>\n <span class=\"hljs-comment\"><!-- Introduce style --></span>\n <span class=\"hljs-tag\"><<span class=\"hljs-name\">link</span> <span class=\"hljs-attr\">rel</span>=<span class=\"hljs-string\">"stylesheet"</span> <span class=\"hljs-attr\">href</span>=<span class=\"hljs-string\">"//unpkg.com/element-plus/dist/index.css"</span> /></span>\n <span class=\"hljs-comment\"><!-- Introduce Vue --></span>\n <span class=\"hljs-tag\"><<span class=\"hljs-name\">script</span> <span class=\"hljs-attr\">src</span>=<span class=\"hljs-string\">"//unpkg.com/vue@next"</span>></span><span class=\"hljs-tag\"></<span class=\"hljs-name\">script</span>></span>\n <span class=\"hljs-comment\"><!-- Introduce component library --></span>\n <span class=\"hljs-tag\"><<span class=\"hljs-name\">script</span> <span class=\"hljs-attr\">src</span>=<span class=\"hljs-string\">"//unpkg.com/element-plus"</span>></span><span class=\"hljs-tag\"></<span class=\"hljs-name\">script</span>></span>\n<span class=\"hljs-tag\"></<span class=\"hljs-name\">head</span>></span>\n</code><span class=\"lang-mark\">html</span></pre>", 1);
const _hoisted_36 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Use jsDelivr ");
const _hoisted_37 = /*#__PURE__*/Object(vue_esm_browser_prod["createStaticVNode"])("<pre class=\"example-code\"><code class=\"hljs language-html\"><span class=\"hljs-tag\"><<span class=\"hljs-name\">head</span>></span>\n <span class=\"hljs-comment\"><!-- Introduce style --></span>\n <span class=\"hljs-tag\"><<span class=\"hljs-name\">link</span>\n <span class=\"hljs-attr\">rel</span>=<span class=\"hljs-string\">"stylesheet"</span>\n <span class=\"hljs-attr\">href</span>=<span class=\"hljs-string\">"//cdn.jsdelivr.net/npm/element-plus/dist/index.css"</span>\n /></span>\n <span class=\"hljs-comment\"><!-- Introduce Vue --></span>\n <span class=\"hljs-tag\"><<span class=\"hljs-name\">script</span> <span class=\"hljs-attr\">src</span>=<span class=\"hljs-string\">"//cdn.jsdelivr.net/npm/vue@next"</span>></span><span class=\"hljs-tag\"></<span class=\"hljs-name\">script</span>></span>\n <span class=\"hljs-comment\"><!-- Introduce component library --></span>\n <span class=\"hljs-tag\"><<span class=\"hljs-name\">script</span> <span class=\"hljs-attr\">src</span>=<span class=\"hljs-string\">"//cdn.jsdelivr.net/npm/element-plus"</span>></span><span class=\"hljs-tag\"></<span class=\"hljs-name\">script</span>></span>\n<span class=\"hljs-tag\"></<span class=\"hljs-name\">head</span>></span>\n</code><span class=\"lang-mark\">html</span></pre>", 1);
const _hoisted_38 = {
class: "tip"
};
const _hoisted_39 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("We recommend using ");
const _hoisted_40 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("strong", null, "CDN", -1);
const _hoisted_41 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" to introduce ");
const _hoisted_42 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "ElementPlus", -1);
const _hoisted_43 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" users to lock the version on the link address, so as not to be affected by incompatible updates when ");
const _hoisted_44 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "ElementPlus", -1);
const _hoisted_45 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" is upgraded in the future. Please check ");
const _hoisted_46 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("unpkg.com");
const _hoisted_47 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" for the method to lock the version.");
const _hoisted_48 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Hello world ");
const _hoisted_49 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("With ");
const _hoisted_50 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("strong", null, "CDN", -1);
const _hoisted_51 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(", we can easily use ");
const _hoisted_52 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "ElementPlus", -1);
const _hoisted_53 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" to write a Hello world page. ");
const _hoisted_54 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Online Demo");
const _hoisted_55 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("iframe", {
height: "469",
style: {
"width": "100%"
},
scrolling: "no",
title: "YzWMaVr",
src: "https://codepen.io/iamkun/embed/YzWMaVr?height=469&theme-id=light&default -tab=html,result",
frameborder: "no",
loading: "lazy",
allowtransparency: "true",
allowfullscreen: "true"
}, "\n See the Pen <a href='https://codepen.io/iamkun/pen/YzWMaVr'>YzWMaVr</a> by iamkun\n (<a href='https://codepen.io/iamkun'>@iamkun</a>) on <a href='https://codepen.io'>CodePen</a>.\n", -1);
const _hoisted_56 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("If you are installing via npm / yarn and want to use it with a packaging tool, please read the next section: ");
const _hoisted_57 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Quick Start");
const _hoisted_58 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(".");
function render(_ctx, _cache) {
const _component_app_heading = Object(vue_esm_browser_prod["resolveComponent"])("app-heading");
const _component_app_link = Object(vue_esm_browser_prod["resolveComponent"])("app-link");
const _component_app_img = Object(vue_esm_browser_prod["resolveComponent"])("app-img");
const _component_right_nav = Object(vue_esm_browser_prod["resolveComponent"])("right-nav");
return Object(vue_esm_browser_prod["openBlock"])(), Object(vue_esm_browser_prod["createElementBlock"])("section", _hoisted_1, [Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
content: "Installing ElementPlus",
href: "",
level: "1"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_2]),
_: 1
}), Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "environment",
content: "Environment",
href: "#environment",
level: "2"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_3, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#environment"
})]),
_: 1
}), _hoisted_4, Object(vue_esm_browser_prod["createElementVNode"])("table", null, [Object(vue_esm_browser_prod["createElementVNode"])("thead", null, [Object(vue_esm_browser_prod["createElementVNode"])("tr", null, [Object(vue_esm_browser_prod["createElementVNode"])("th", null, [Object(vue_esm_browser_prod["createElementVNode"])("div", null, [Object(vue_esm_browser_prod["createVNode"])(_component_app_img, {
src: "https://cdn.jsdelivr.net/npm/@browser-logos/edge/edge_32x32.png",
alt: "IE",
title: "null"
})])]), Object(vue_esm_browser_prod["createElementVNode"])("th", null, [Object(vue_esm_browser_prod["createElementVNode"])("div", null, [Object(vue_esm_browser_prod["createVNode"])(_component_app_img, {
src: "https://cdn.jsdelivr.net/npm/@browser-logos/firefox/firefox_32x32.png",
alt: "Firefox",
title: "null"
})])]), Object(vue_esm_browser_prod["createElementVNode"])("th", null, [Object(vue_esm_browser_prod["createElementVNode"])("div", null, [Object(vue_esm_browser_prod["createVNode"])(_component_app_img, {
src: "https://cdn.jsdelivr.net/npm/@browser-logos/chrome/chrome_32x32.png",
alt: "Chrome",
title: "null"
})])]), Object(vue_esm_browser_prod["createElementVNode"])("th", null, [Object(vue_esm_browser_prod["createElementVNode"])("div", null, [Object(vue_esm_browser_prod["createVNode"])(_component_app_img, {
src: "https://cdn.jsdelivr.net/npm/@browser-logos/safari/safari_32x32.png",
alt: "Safari",
title: "null"
})])])])]), _hoisted_5]), _hoisted_6, Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "current-latest-version",
content: "Current latest version",
href: "#current-latest-version",
level: "2"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_7, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#current-latest-version"
})]),
_: 1
}), _hoisted_8, Object(vue_esm_browser_prod["createElementVNode"])("p", null, [Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
href: "https://www.npmjs.org/package/element-plus"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [Object(vue_esm_browser_prod["createElementVNode"])("div", null, [Object(vue_esm_browser_prod["createVNode"])(_component_app_img, {
src: "https://img.shields.io/npm/v/element-plus.svg?style=flat-square",
alt: "ElementPlus version badge",
title: "null"
})])]),
_: 1
})]), Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "install-via-npm-or-yarn",
content: "Install via npm or yarn",
href: "#install-via-npm-or-yarn",
level: "2"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_9, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#install-via-npm-or-yarn"
})]),
_: 1
}), Object(vue_esm_browser_prod["createElementVNode"])("p", null, [_hoisted_10, _hoisted_11, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
href: "https://vitejs.dev"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_12]),
_: 1
}), _hoisted_13, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
href: "https://webpack.js.org/"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_14]),
_: 1
}), _hoisted_15]), _hoisted_16, Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "browser-direct-introducing",
content: "Browser direct introducing",
href: "#browser-direct-introducing",
level: "2"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_19, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#browser-direct-introducing"
})]),
_: 1
}), _hoisted_20, Object(vue_esm_browser_prod["createElementVNode"])("p", null, [_hoisted_21, _hoisted_22, _hoisted_23, _hoisted_24, _hoisted_25, _hoisted_26, _hoisted_27, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
href: "https://unpkg.com"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_28]),
_: 1
}), _hoisted_29, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
href: "https://jsdelivr.com"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_30]),
_: 1
}), _hoisted_31, _hoisted_32, _hoisted_33]), Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "use-unpkg",
content: "Use unpkg",
href: "#use-unpkg",
level: "2"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_34, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#use-unpkg"
})]),
_: 1
}), _hoisted_35, Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "use-jsdelivr",
content: "Use jsDelivr",
href: "#use-jsdelivr",
level: "2"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_36, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#use-jsdelivr"
})]),
_: 1
}), _hoisted_37, Object(vue_esm_browser_prod["createElementVNode"])("div", _hoisted_38, [Object(vue_esm_browser_prod["createElementVNode"])("p", null, [_hoisted_39, _hoisted_40, _hoisted_41, _hoisted_42, _hoisted_43, _hoisted_44, _hoisted_45, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
href: "https://unpkg.com"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_46]),
_: 1
}), _hoisted_47])]), Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "hello-world",
content: "Hello world",
href: "#hello-world",
level: "2"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_48, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#hello-world"
})]),
_: 1
}), Object(vue_esm_browser_prod["createElementVNode"])("p", null, [_hoisted_49, _hoisted_50, _hoisted_51, _hoisted_52, _hoisted_53, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
href: "https://codepen.io/iamkun/pen/YzWMaVr"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_54]),
_: 1
})]), _hoisted_55, Object(vue_esm_browser_prod["createElementVNode"])("p", null, [_hoisted_56, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
href: "/#/en-US/component/quickstart"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_57]),
_: 1
}), _hoisted_58]), Object(vue_esm_browser_prod["createVNode"])(_component_right_nav)]);
}
// CONCATENATED MODULE: ./website/docs/en-US/installation.md?vue&type=template&id=3206a7b4
// CONCATENATED MODULE: ./website/docs/en-US/installation.md
const script = {}
script.render = render
/* harmony default export */ var installation = __webpack_exports__["default"] = (script);
/***/ })
}]);