-
Notifications
You must be signed in to change notification settings - Fork 1
/
DOCS en-US68.0cb71eee40c7d7b6716e.js
355 lines (299 loc) · 18.4 KB
/
DOCS en-US68.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
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[66],{
/***/ 819:
/***/ (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/transition.md?vue&type=template&id=4dbf1ec0
const transitionvue_type_template_id_4dbf1ec0_hoisted_1 = {
class: "content element-doc"
};
const transitionvue_type_template_id_4dbf1ec0_hoisted_2 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Built-in transition ");
const transitionvue_type_template_id_4dbf1ec0_hoisted_3 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("You can use Element's built-in transitions directly. Before that, please read the ");
const transitionvue_type_template_id_4dbf1ec0_hoisted_4 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("transition docs");
const transitionvue_type_template_id_4dbf1ec0_hoisted_5 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(".");
const _hoisted_6 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("fade ");
const _hoisted_7 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("div", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("p", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("We have two fading effects: "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "el-fade-in-linear"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" and "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "el-fade-in"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(".")])], -1);
const _hoisted_8 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("pre", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", {
class: "html"
}, "<template>\n <div>\n <el-button @click=\"show = !show\">Click Me</el-button>\n\n <div style=\"display: flex; margin-top: 20px; height: 100px;\">\n <transition name=\"el-fade-in-linear\">\n <div v-show=\"show\" class=\"transition-box\">.el-fade-in-linear</div>\n </transition>\n <transition name=\"el-fade-in\">\n <div v-show=\"show\" class=\"transition-box\">.el-fade-in</div>\n </transition>\n </div>\n </div>\n</template>\n\n<script>\n export default {\n data: () => ({\n show: true,\n }),\n }\n</script>\n\n<style>\n .transition-box {\n margin-bottom: 10px;\n width: 200px;\n height: 100px;\n border-radius: 4px;\n background-color: #409eff;\n text-align: center;\n color: #fff;\n padding: 40px 20px;\n box-sizing: border-box;\n margin-right: 20px;\n }\n</style>\n")], -1);
const _hoisted_9 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("zoom ");
const _hoisted_10 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("div", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("p", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "el-zoom-in-center"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(", "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "el-zoom-in-top"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" and "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "el-zoom-in-bottom"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" are provided.")])], -1);
const _hoisted_11 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("pre", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", {
class: "html"
}, "<template>\n <div>\n <el-button @click=\"show2 = !show2\">Click Me</el-button>\n\n <div style=\"display: flex; margin-top: 20px; height: 100px;\">\n <transition name=\"el-zoom-in-center\">\n <div v-show=\"show2\" class=\"transition-box\">.el-zoom-in-center</div>\n </transition>\n\n <transition name=\"el-zoom-in-top\">\n <div v-show=\"show2\" class=\"transition-box\">.el-zoom-in-top</div>\n </transition>\n\n <transition name=\"el-zoom-in-bottom\">\n <div v-show=\"show2\" class=\"transition-box\">.el-zoom-in-bottom</div>\n </transition>\n </div>\n </div>\n</template>\n\n<script>\n export default {\n data: () => ({\n show2: true,\n }),\n }\n</script>\n\n<style>\n .transition-box {\n margin-bottom: 10px;\n width: 200px;\n height: 100px;\n border-radius: 4px;\n background-color: #409eff;\n text-align: center;\n color: #fff;\n padding: 40px 20px;\n box-sizing: border-box;\n margin-right: 20px;\n }\n</style>\n")], -1);
const _hoisted_12 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("collapse ");
const _hoisted_13 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("p", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("For collapse effect, use the "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "el-collapse-transition"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" component.")], -1);
const _hoisted_14 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("pre", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", {
class: "html"
}, "<template>\n <div>\n <el-button @click=\"show3 = !show3\">Click Me</el-button>\n\n <div style=\"margin-top: 20px; height: 200px;\">\n <el-collapse-transition>\n <div v-show=\"show3\">\n <div class=\"transition-box\">el-collapse-transition</div>\n <div class=\"transition-box\">el-collapse-transition</div>\n </div>\n </el-collapse-transition>\n </div>\n </div>\n</template>\n\n<script>\n export default {\n data: () => ({\n show3: true,\n }),\n }\n</script>\n\n<style>\n .transition-box {\n margin-bottom: 10px;\n width: 200px;\n height: 100px;\n border-radius: 4px;\n background-color: #409eff;\n text-align: center;\n color: #fff;\n padding: 40px 20px;\n box-sizing: border-box;\n margin-right: 20px;\n }\n</style>\n")], -1);
const _hoisted_15 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("On demand ");
const _hoisted_16 = /*#__PURE__*/Object(vue_esm_browser_prod["createStaticVNode"])("<pre class=\"example-code\"><code class=\"hljs language-js\"><span class=\"hljs-comment\">// fade/zoom</span>\n<span class=\"hljs-keyword\">import</span> <span class=\"hljs-string\">'element-plus/lib/theme-chalk/base.css'</span>\n<span class=\"hljs-comment\">// collapse</span>\n<span class=\"hljs-keyword\">import</span> { ElCollapseTransition } <span class=\"hljs-keyword\">from</span> <span class=\"hljs-string\">'element-plus'</span>\n<span class=\"hljs-keyword\">import</span> Vue <span class=\"hljs-keyword\">from</span> <span class=\"hljs-string\">'vue'</span>\n\nVue.component(ElCollapseTransition.name, ElCollapseTransition)\n</code><span class=\"lang-mark\">js</span></pre>", 1);
function transitionvue_type_template_id_4dbf1ec0_render(_ctx, _cache, $props, $setup, $data, $options) {
const _component_app_link = Object(vue_esm_browser_prod["resolveComponent"])("app-link");
const _component_app_heading = Object(vue_esm_browser_prod["resolveComponent"])("app-heading");
const _component_element_demo0 = Object(vue_esm_browser_prod["resolveComponent"])("element-demo0");
const _component_demo_block = Object(vue_esm_browser_prod["resolveComponent"])("demo-block");
const _component_element_demo1 = Object(vue_esm_browser_prod["resolveComponent"])("element-demo1");
const _component_element_demo2 = Object(vue_esm_browser_prod["resolveComponent"])("element-demo2");
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", transitionvue_type_template_id_4dbf1ec0_hoisted_1, [Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "built-in-transition",
content: "Built-in transition",
href: "#built-in-transition",
level: "2"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [transitionvue_type_template_id_4dbf1ec0_hoisted_2, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#built-in-transition"
})]),
_: 1
}), Object(vue_esm_browser_prod["createElementVNode"])("p", null, [transitionvue_type_template_id_4dbf1ec0_hoisted_3, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
href: "https://vuejs.org/v2/api/#transition"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [transitionvue_type_template_id_4dbf1ec0_hoisted_4]),
_: 1
}), transitionvue_type_template_id_4dbf1ec0_hoisted_5]), Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "fade",
content: "fade",
href: "#fade",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_6, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#fade"
})]),
_: 1
}), Object(vue_esm_browser_prod["createVNode"])(_component_demo_block, null, {
source: Object(vue_esm_browser_prod["withCtx"])(() => [Object(vue_esm_browser_prod["createVNode"])(_component_element_demo0)]),
highlight: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_8]),
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_7]),
_: 1
}), Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "zoom",
content: "zoom",
href: "#zoom",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_9, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#zoom"
})]),
_: 1
}), Object(vue_esm_browser_prod["createVNode"])(_component_demo_block, null, {
source: Object(vue_esm_browser_prod["withCtx"])(() => [Object(vue_esm_browser_prod["createVNode"])(_component_element_demo1)]),
highlight: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_11]),
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_10]),
_: 1
}), Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "collapse",
content: "collapse",
href: "#collapse",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_12, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#collapse"
})]),
_: 1
}), _hoisted_13, Object(vue_esm_browser_prod["createVNode"])(_component_demo_block, null, {
source: Object(vue_esm_browser_prod["withCtx"])(() => [Object(vue_esm_browser_prod["createVNode"])(_component_element_demo2)]),
highlight: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_14]),
_: 1
}), Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "on-demand",
content: "On demand",
href: "#on-demand",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_15, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#on-demand"
})]),
_: 1
}), _hoisted_16, Object(vue_esm_browser_prod["createVNode"])(_component_right_nav)]);
}
// CONCATENATED MODULE: ./website/docs/en-US/transition.md?vue&type=template&id=4dbf1ec0
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/dist??ref--3-0!./website/md-loader!./website/docs/en-US/transition.md?vue&type=script&lang=ts
/* harmony default export */ var transitionvue_type_script_lang_ts = ({
name: 'component-doc',
components: {
"element-demo0": function () {
const {
createTextVNode: _createTextVNode,
resolveComponent: _resolveComponent,
withCtx: _withCtx,
createVNode: _createVNode,
vShow: _vShow,
createElementVNode: _createElementVNode,
withDirectives: _withDirectives,
Transition: _Transition,
openBlock: _openBlock,
createElementBlock: _createElementBlock
} = vue_esm_browser_prod;
const _hoisted_1 = /*#__PURE__*/_createTextVNode("Click Me");
const _hoisted_2 = {
style: {
"display": "flex",
"margin-top": "20px",
"height": "100px"
}
};
const _hoisted_3 = {
class: "transition-box"
};
const _hoisted_4 = {
class: "transition-box"
};
function render(_ctx, _cache) {
const _component_el_button = _resolveComponent("el-button");
return _openBlock(), _createElementBlock("div", null, [_createElementVNode("div", null, [_createVNode(_component_el_button, {
onClick: _cache[0] || (_cache[0] = $event => _ctx.show = !_ctx.show)
}, {
default: _withCtx(() => [_hoisted_1]),
_: 1
}), _createElementVNode("div", _hoisted_2, [_createVNode(_Transition, {
name: "el-fade-in-linear"
}, {
default: _withCtx(() => [_withDirectives(_createElementVNode("div", _hoisted_3, ".el-fade-in-linear", 512), [[_vShow, _ctx.show]])]),
_: 1
}), _createVNode(_Transition, {
name: "el-fade-in"
}, {
default: _withCtx(() => [_withDirectives(_createElementVNode("div", _hoisted_4, ".el-fade-in", 512), [[_vShow, _ctx.show]])]),
_: 1
})])])]);
}
const democomponentExport = {
data: () => ({
show: true
})
};
return {
render,
...democomponentExport
};
}(),
"element-demo1": function () {
const {
createTextVNode: _createTextVNode,
resolveComponent: _resolveComponent,
withCtx: _withCtx,
createVNode: _createVNode,
vShow: _vShow,
createElementVNode: _createElementVNode,
withDirectives: _withDirectives,
Transition: _Transition,
openBlock: _openBlock,
createElementBlock: _createElementBlock
} = vue_esm_browser_prod;
const _hoisted_1 = /*#__PURE__*/_createTextVNode("Click Me");
const _hoisted_2 = {
style: {
"display": "flex",
"margin-top": "20px",
"height": "100px"
}
};
const _hoisted_3 = {
class: "transition-box"
};
const _hoisted_4 = {
class: "transition-box"
};
const _hoisted_5 = {
class: "transition-box"
};
function render(_ctx, _cache) {
const _component_el_button = _resolveComponent("el-button");
return _openBlock(), _createElementBlock("div", null, [_createElementVNode("div", null, [_createVNode(_component_el_button, {
onClick: _cache[0] || (_cache[0] = $event => _ctx.show2 = !_ctx.show2)
}, {
default: _withCtx(() => [_hoisted_1]),
_: 1
}), _createElementVNode("div", _hoisted_2, [_createVNode(_Transition, {
name: "el-zoom-in-center"
}, {
default: _withCtx(() => [_withDirectives(_createElementVNode("div", _hoisted_3, ".el-zoom-in-center", 512), [[_vShow, _ctx.show2]])]),
_: 1
}), _createVNode(_Transition, {
name: "el-zoom-in-top"
}, {
default: _withCtx(() => [_withDirectives(_createElementVNode("div", _hoisted_4, ".el-zoom-in-top", 512), [[_vShow, _ctx.show2]])]),
_: 1
}), _createVNode(_Transition, {
name: "el-zoom-in-bottom"
}, {
default: _withCtx(() => [_withDirectives(_createElementVNode("div", _hoisted_5, ".el-zoom-in-bottom", 512), [[_vShow, _ctx.show2]])]),
_: 1
})])])]);
}
const democomponentExport = {
data: () => ({
show2: true
})
};
return {
render,
...democomponentExport
};
}(),
"element-demo2": function () {
const {
createTextVNode: _createTextVNode,
resolveComponent: _resolveComponent,
withCtx: _withCtx,
createVNode: _createVNode,
createElementVNode: _createElementVNode,
vShow: _vShow,
withDirectives: _withDirectives,
openBlock: _openBlock,
createElementBlock: _createElementBlock
} = vue_esm_browser_prod;
const _hoisted_1 = /*#__PURE__*/_createTextVNode("Click Me");
const _hoisted_2 = {
style: {
"margin-top": "20px",
"height": "200px"
}
};
const _hoisted_3 = /*#__PURE__*/_createElementVNode("div", {
class: "transition-box"
}, "el-collapse-transition", -1);
const _hoisted_4 = /*#__PURE__*/_createElementVNode("div", {
class: "transition-box"
}, "el-collapse-transition", -1);
const _hoisted_5 = [_hoisted_3, _hoisted_4];
function render(_ctx, _cache) {
const _component_el_button = _resolveComponent("el-button");
const _component_el_collapse_transition = _resolveComponent("el-collapse-transition");
return _openBlock(), _createElementBlock("div", null, [_createElementVNode("div", null, [_createVNode(_component_el_button, {
onClick: _cache[0] || (_cache[0] = $event => _ctx.show3 = !_ctx.show3)
}, {
default: _withCtx(() => [_hoisted_1]),
_: 1
}), _createElementVNode("div", _hoisted_2, [_createVNode(_component_el_collapse_transition, null, {
default: _withCtx(() => [_withDirectives(_createElementVNode("div", null, _hoisted_5, 512), [[_vShow, _ctx.show3]])]),
_: 1
})])])]);
}
const democomponentExport = {
data: () => ({
show3: true
})
};
return {
render,
...democomponentExport
};
}()
}
});
// CONCATENATED MODULE: ./website/docs/en-US/transition.md?vue&type=script&lang=ts
// CONCATENATED MODULE: ./website/docs/en-US/transition.md
transitionvue_type_script_lang_ts.render = transitionvue_type_template_id_4dbf1ec0_render
/* harmony default export */ var transition = __webpack_exports__["default"] = (transitionvue_type_script_lang_ts);
/***/ })
}]);