代码拉取完成,页面将自动刷新
同步操作将从 element-plus/doc-archive 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[248],{
/***/ 991:
/***/ (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/jp/loading.md?vue&type=template&id=7013ea3c
const loadingvue_type_template_id_7013ea3c_hoisted_1 = {
class: "content element-doc"
};
const loadingvue_type_template_id_7013ea3c_hoisted_2 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("ローディング ");
const _hoisted_3 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("p", null, "データ読み込み中にアニメーションを表示する。", -1);
const _hoisted_4 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("コンテナ内でのローディング ");
const _hoisted_5 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("p", null, "データの読み込み中にコンテナ(テーブルなど)にアニメーションを表示します。", -1);
const _hoisted_6 = /*#__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"])("要素にはローディングを呼び出すための 2 つの方法があります: ディレクティブとサービスです。カスタムディレクティブ "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "v-loading"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" の場合は、"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "boolean"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" の値をバインドするだけです。デフォルトでは、ローディングマスクはディレクティブが使われている要素に追加されます。"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "body"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" 修飾子を追加すると、マスクは body 要素に追加されます。")])], -1);
const _hoisted_7 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("pre", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", {
class: "html"
}, "<template>\n <el-table v-loading=\"loading\" :data=\"tableData\" style=\"width: 100%\">\n <el-table-column prop=\"date\" label=\"Date\" width=\"180\"> </el-table-column>\n <el-table-column prop=\"name\" label=\"Name\" width=\"180\"> </el-table-column>\n <el-table-column prop=\"address\" label=\"Address\"> </el-table-column>\n </el-table>\n</template>\n\n<style>\n body {\n margin: 0;\n }\n</style>\n\n<script>\n export default {\n data() {\n return {\n tableData: [\n {\n date: '2016-05-02',\n name: 'John Smith',\n address: 'No.1518, Jinshajiang Road, Putuo District',\n },\n {\n date: '2016-05-04',\n name: 'John Smith',\n address: 'No.1518, Jinshajiang Road, Putuo District',\n },\n {\n date: '2016-05-01',\n name: 'John Smith',\n address: 'No.1518, Jinshajiang Road, Putuo District',\n },\n ],\n loading: true,\n }\n },\n }\n</script>\n<!--\n<setup>\n\nimport { defineComponent, reactive, toRefs } from 'vue';\n\nexport default defineComponent({\n setup() {\n const state = reactive({\n tableData: [\n {\n date: '2016-05-02',\n name: 'John Smith',\n address: 'No.1518, Jinshajiang Road, Putuo District',\n },\n {\n date: '2016-05-04',\n name: 'John Smith',\n address: 'No.1518, Jinshajiang Road, Putuo District',\n },\n {\n date: '2016-05-01',\n name: 'John Smith',\n address: 'No.1518, Jinshajiang Road, Putuo District',\n },\n ],\n loading: true,\n });\n return {\n ...toRefs(state),\n };\n },\n});\n\n</setup>\n-->\n")], -1);
const _hoisted_8 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("カスタマイズ ");
const _hoisted_9 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("p", null, "ローディングテキスト、ローディングスピナー、背景色をカスタマイズすることができます。", -1);
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, "v-loading"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" がバインドされている要素に "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "element-loading-text"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" 属性を追加すると、その値がスピナの下に表示されるようになります。同様に、 "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "element-loading-spinner"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("、"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, " element-loading-background"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("、および "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "element-loading-svg"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("属性は、それぞれアイコンクラス名、背景色の値、および読み込みアイコンを設定するために使用されます。")])], -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 <el-table\n v-loading=\"loading\"\n element-loading-text=\"Loading...\"\n element-loading-spinner=\"el-icon-loading\"\n element-loading-background=\"rgba(0, 0, 0, 0.8)\"\n :data=\"tableData\"\n style=\"width: 100%\"\n >\n <el-table-column prop=\"date\" label=\"Date\" width=\"180\"> </el-table-column>\n <el-table-column prop=\"name\" label=\"Name\" width=\"180\"> </el-table-column>\n <el-table-column prop=\"address\" label=\"Address\"> </el-table-column>\n </el-table>\n <el-table\n v-loading=\"loading\"\n :element-loading-svg=\"svg\"\n class=\"custom-loading-svg\"\n element-loading-svg-view-box=\"-10, -10, 50, 50\"\n :data=\"tableData\"\n style=\"width: 100%\"\n >\n <el-table-column prop=\"date\" label=\"Date\" width=\"180\"> </el-table-column>\n <el-table-column prop=\"name\" label=\"Name\" width=\"180\"> </el-table-column>\n <el-table-column prop=\"address\" label=\"Address\"> </el-table-column>\n </el-table>\n</template>\n\n<style>\n .custom-loading-svg .el-loading-mask > .el-loading-spinner > .circular {\n animation: none;\n }\n</style>\n\n<script>\n export default {\n data() {\n return {\n tableData: [\n {\n date: '2016-05-02',\n name: 'John Smith',\n address: 'No.1518, Jinshajiang Road, Putuo District',\n },\n {\n date: '2016-05-04',\n name: 'John Smith',\n address: 'No.1518, Jinshajiang Road, Putuo District',\n },\n {\n date: '2016-05-01',\n name: 'John Smith',\n address: 'No.1518, Jinshajiang Road, Putuo District',\n },\n ],\n loading: true,\n svg: `\n <path class=\"path\" d=\"\n M 30 15\n L 28 17\n M 25.61 25.61\n A 15 15, 0, 0, 1, 15 30\n A 15 15, 0, 1, 1, 27.99 7.5\n L 15 15\n \" style=\"stroke-width: 4px; fill: rgba(0, 0, 0, 0)\"/>\n `,\n }\n },\n }\n</script>\n<!--\n<setup>\n\nimport { defineComponent, reactive, toRefs } from 'vue';\n\nexport default defineComponent({\n setup() {\n const state = reactive({\n tableData: [\n {\n date: '2016-05-02',\n name: 'John Smith',\n address: 'No.1518, Jinshajiang Road, Putuo District',\n },\n {\n date: '2016-05-04',\n name: 'John Smith',\n address: 'No.1518, Jinshajiang Road, Putuo District',\n },\n {\n date: '2016-05-01',\n name: 'John Smith',\n address: 'No.1518, Jinshajiang Road, Putuo District',\n },\n ],\n loading: true,\n svg: `\n <path class=\"path\" d=\"\n M 30 15\n L 28 17\n M 25.61 25.61\n A 15 15, 0, 0, 1, 15 30\n A 15 15, 0, 1, 1, 27.99 7.5\n L 15 15\n \" style=\"stroke-width: 4px; fill: rgba(0, 0, 0, 0)\"/>\n `,\n });\n return {\n ...toRefs(state),\n };\n },\n});\n\n</setup>\n-->\n")], -1);
const _hoisted_12 = {
class: "warning"
};
const _hoisted_13 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "element-loading-svg", -1);
const _hoisted_14 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("属性は受信 HTML フラグメントをサポートしますが、");
const _hoisted_15 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("XSS 攻撃");
const _hoisted_16 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("を引き起こしやすいため、Web サイトで任意の HTML を動的にレンダリングすることは非常に危険です。)。 ");
const _hoisted_17 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "element-loading-svg", -1);
const _hoisted_18 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("のコンテンツが信頼できるものであることを確認してください。**ユーザーが送信したコンテンツを");
const _hoisted_19 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, " element-loading-svg", -1);
const _hoisted_20 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("属性に割り当てないでください。");
const _hoisted_21 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("全画面読み込み ");
const _hoisted_22 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("p", null, "データの読み込み中に全画面アニメーションを表示します。", -1);
const _hoisted_23 = /*#__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"])("ディレクティブとして使われる場合、フルスクリーンの読み込みには "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "fullscreen"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" 修飾子が必要で、それがボディに追加されます。この場合、ボディ上でのスクロールを無効にしたい場合は、別の修飾子 "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "lock"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" を追加します。サービスとして利用される場合、Loading はデフォルトで全画面表示になります。")])], -1);
const _hoisted_24 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("pre", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", {
class: "html"
}, "<template>\n <el-button\n type=\"primary\"\n @click=\"openFullScreen1\"\n v-loading.fullscreen.lock=\"fullscreenLoading\"\n >\n As a directive\n </el-button>\n <el-button type=\"primary\" @click=\"openFullScreen2\"> As a service </el-button>\n</template>\n\n<script>\n export default {\n data() {\n return {\n fullscreenLoading: false,\n }\n },\n methods: {\n openFullScreen1() {\n this.fullscreenLoading = true\n setTimeout(() => {\n this.fullscreenLoading = false\n }, 2000)\n },\n openFullScreen2() {\n const loading = this.$loading({\n lock: true,\n text: 'Loading',\n spinner: 'el-icon-loading',\n background: 'rgba(0, 0, 0, 0.7)',\n })\n setTimeout(() => {\n loading.close()\n }, 2000)\n },\n },\n }\n</script>\n<!--\n<setup>\n\n import { defineComponent, ref } from 'vue';\n import { ElLoading } from 'element-plus';\n\n export default defineComponent({\n setup() {\n const fullscreenLoading = ref(false);\n const openFullScreen1 = () => {\n fullscreenLoading.value = true;\n setTimeout(() => {\n fullscreenLoading.value = false;\n }, 2000);\n };\n\n const openFullScreen2 = () => {\n const loading = ElLoading.service({\n lock: true,\n text: 'Loading',\n spinner: 'el-icon-loading',\n background: 'rgba(0, 0, 0, 0.7)',\n });\n setTimeout(() => {\n loading.close();\n }, 2000);\n };\n\n return {\n fullscreenLoading,\n openFullScreen1,\n openFullScreen2,\n };\n },\n });\n\n</setup>\n-->\n")], -1);
const _hoisted_25 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("サービス ");
const _hoisted_26 = /*#__PURE__*/Object(vue_esm_browser_prod["createStaticVNode"])("<p>サービスで Loading を呼び出すこともできます。Loading サービスをインポートします:</p><pre class=\"example-code\"><code class=\"hljs language-javascript\"><span class=\"hljs-keyword\">import</span> { ElLoading } <span class=\"hljs-keyword\">from</span> <span class=\"hljs-string\">'element-plus'</span>\n</code><span class=\"lang-mark\">js</span></pre><p>呼び出す:</p><pre class=\"example-code\"><code class=\"hljs language-javascript\">ElLoading.service(options)\n</code><span class=\"lang-mark\">js</span></pre><p>パラメータ <code>options</code> は Loading の設定であり、その詳細は以下の表にある。LoadingService<code>はLoadingのインスタンスを返し、その</code>close` メソッドを呼び出すことでインスタンスを閉じることができる。:</p><pre class=\"example-code\"><code class=\"hljs language-javascript\"><span class=\"hljs-keyword\">let</span> loadingInstance = ElLoading.service(options)\n<span class=\"hljs-built_in\">this</span>.$nextTick(<span class=\"hljs-function\">() =></span> {\n <span class=\"hljs-comment\">// Loading should be closed asynchronously</span>\n loadingInstance.close()\n})\n</code><span class=\"lang-mark\">js</span></pre><p>フルスクリーン Loading はシングルトンであることに注意してください。既存のフルスクリーン Loading がクローズされる前に新しいフルスクリーン Loading が呼び出された場合、実際に別の Loading インスタンスを作成するのではなく、既存のフルスクリーン Loading インスタンスが返されます。:</p><pre class=\"example-code\"><code class=\"hljs language-javascript\"><span class=\"hljs-keyword\">let</span> loadingInstance1 = ElLoading.service({ <span class=\"hljs-attr\">fullscreen</span>: <span class=\"hljs-literal\">true</span> })\n<span class=\"hljs-keyword\">let</span> loadingInstance2 = ElLoading.service({ <span class=\"hljs-attr\">fullscreen</span>: <span class=\"hljs-literal\">true</span> })\n<span class=\"hljs-built_in\">console</span>.log(loadingInstance1 === loadingInstance2) <span class=\"hljs-comment\">// true</span>\n</code><span class=\"lang-mark\">js</span></pre><p>これらのいずれかで<code>close</code> メソッドを呼び出すことで、このフルスクリーンの読み込みを閉じることができる。</p><p>Element Plus を完全にインポートしている場合は、Vue.prototype にグローバルメソッド <code>$loading</code> が登録されます。このように呼び出すことができます。このメソッドは、<code>this.$loading(options)</code>のように呼び出すことができます。</p>", 10);
const _hoisted_36 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Options ");
const _hoisted_37 = /*#__PURE__*/Object(vue_esm_browser_prod["createStaticVNode"])("<table><thead><tr><th>Attribute</th><th>Description</th><th>Type</th><th>Accepted Values</th><th>Default</th></tr></thead><tbody><tr><td>target</td><td>コンポーネントがカバーしなければならない DOM ノード。DOM オブジェクトまたは文字列を受け付けます。文字列の場合は document.querySelector に渡され、対応する DOM ノードを取得します。</td><td>object/string</td><td>—</td><td>document.body</td></tr><tr><td>body</td><td><code>v-loading</code> の <code>body</code> 修飾子と同じです。</td><td>boolean</td><td>—</td><td>false</td></tr><tr><td>fullscreen</td><td><code>v-loading</code> の <code>fullscreen</code> 修飾子と同じです。</td><td>boolean</td><td>—</td><td>true</td></tr><tr><td>lock</td><td><code>v-loading</code> の <code>lock</code> 修飾子と同じです。</td><td>boolean</td><td>—</td><td>false</td></tr><tr><td>text</td><td>スピナーの下に表示されるローディングテキスト</td><td>string</td><td>—</td><td>—</td></tr><tr><td>spinner</td><td>カスタムスピナーのクラス名</td><td>string</td><td>—</td><td>—</td></tr><tr><td>background</td><td>マスクの背景色</td><td>string</td><td>—</td><td>—</td></tr><tr><td>customClass</td><td>ローディングのカスタムクラス名</td><td>string</td><td>—</td><td>—</td></tr></tbody></table>", 1);
function loadingvue_type_template_id_7013ea3c_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", loadingvue_type_template_id_7013ea3c_hoisted_1, [Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "rodeingu",
content: "ローディング",
href: "#rodeingu",
level: "2"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [loadingvue_type_template_id_7013ea3c_hoisted_2, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#rodeingu"
})]),
_: 1
}), _hoisted_3, Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "kontenanei-denorodeingu",
content: "コンテナ内でのローディング",
href: "#kontenanei-denorodeingu",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_4, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#kontenanei-denorodeingu"
})]),
_: 1
}), _hoisted_5, 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_7]),
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_6]),
_: 1
}), Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "kasutamaizu",
content: "カスタマイズ",
href: "#kasutamaizu",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_8, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#kasutamaizu"
})]),
_: 1
}), _hoisted_9, 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["createElementVNode"])("div", _hoisted_12, [Object(vue_esm_browser_prod["createElementVNode"])("p", null, [_hoisted_13, _hoisted_14, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
href: "https://en.wikipedia.org/wiki/Cross-site_scripting"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_15]),
_: 1
}), _hoisted_16, _hoisted_17, _hoisted_18, _hoisted_19, _hoisted_20])]), Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "quan-hua-mian-du-miip-mi",
content: "全画面読み込み",
href: "#quan-hua-mian-du-miip-mi",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_21, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#quan-hua-mian-du-miip-mi"
})]),
_: 1
}), _hoisted_22, 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_24]),
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_23]),
_: 1
}), Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "sabisu",
content: "サービス",
href: "#sabisu",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_25, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#sabisu"
})]),
_: 1
}), _hoisted_26, Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "options",
content: "Options",
href: "#options",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_36, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#options"
})]),
_: 1
}), _hoisted_37, Object(vue_esm_browser_prod["createVNode"])(_component_right_nav)]);
}
// CONCATENATED MODULE: ./website/docs/jp/loading.md?vue&type=template&id=7013ea3c
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/dist??ref--3-0!./website/md-loader!./website/docs/jp/loading.md?vue&type=script&lang=ts
/* harmony default export */ var loadingvue_type_script_lang_ts = ({
name: 'component-doc',
components: {
"element-demo0": function () {
const {
resolveComponent: _resolveComponent,
createVNode: _createVNode,
resolveDirective: _resolveDirective,
withCtx: _withCtx,
withDirectives: _withDirectives,
openBlock: _openBlock,
createElementBlock: _createElementBlock
} = vue_esm_browser_prod;
function render(_ctx, _cache) {
const _component_el_table_column = _resolveComponent("el-table-column");
const _component_el_table = _resolveComponent("el-table");
const _directive_loading = _resolveDirective("loading");
return _openBlock(), _createElementBlock("div", null, [_withDirectives(_createVNode(_component_el_table, {
data: _ctx.tableData,
style: {
"width": "100%"
}
}, {
default: _withCtx(() => [_createVNode(_component_el_table_column, {
prop: "date",
label: "Date",
width: "180"
}), _createVNode(_component_el_table_column, {
prop: "name",
label: "Name",
width: "180"
}), _createVNode(_component_el_table_column, {
prop: "address",
label: "Address"
})]),
_: 1
}, 8, ["data"]), [[_directive_loading, _ctx.loading]])]);
}
const democomponentExport = {
data() {
return {
tableData: [{
date: '2016-05-02',
name: 'John Smith',
address: 'No.1518, Jinshajiang Road, Putuo District'
}, {
date: '2016-05-04',
name: 'John Smith',
address: 'No.1518, Jinshajiang Road, Putuo District'
}, {
date: '2016-05-01',
name: 'John Smith',
address: 'No.1518, Jinshajiang Road, Putuo District'
}],
loading: true
};
}
};
return {
render,
...democomponentExport
};
}(),
"element-demo1": function () {
const {
resolveComponent: _resolveComponent,
createVNode: _createVNode,
resolveDirective: _resolveDirective,
withCtx: _withCtx,
withDirectives: _withDirectives,
openBlock: _openBlock,
createElementBlock: _createElementBlock
} = vue_esm_browser_prod;
function render(_ctx, _cache) {
const _component_el_table_column = _resolveComponent("el-table-column");
const _component_el_table = _resolveComponent("el-table");
const _directive_loading = _resolveDirective("loading");
return _openBlock(), _createElementBlock("div", null, [_withDirectives(_createVNode(_component_el_table, {
"element-loading-text": "Loading...",
"element-loading-spinner": "el-icon-loading",
"element-loading-background": "rgba(0, 0, 0, 0.8)",
data: _ctx.tableData,
style: {
"width": "100%"
}
}, {
default: _withCtx(() => [_createVNode(_component_el_table_column, {
prop: "date",
label: "Date",
width: "180"
}), _createVNode(_component_el_table_column, {
prop: "name",
label: "Name",
width: "180"
}), _createVNode(_component_el_table_column, {
prop: "address",
label: "Address"
})]),
_: 1
}, 8, ["data"]), [[_directive_loading, _ctx.loading]]), _withDirectives(_createVNode(_component_el_table, {
"element-loading-svg": _ctx.svg,
class: "custom-loading-svg",
"element-loading-svg-view-box": "-10, -10, 50, 50",
data: _ctx.tableData,
style: {
"width": "100%"
}
}, {
default: _withCtx(() => [_createVNode(_component_el_table_column, {
prop: "date",
label: "Date",
width: "180"
}), _createVNode(_component_el_table_column, {
prop: "name",
label: "Name",
width: "180"
}), _createVNode(_component_el_table_column, {
prop: "address",
label: "Address"
})]),
_: 1
}, 8, ["element-loading-svg", "data"]), [[_directive_loading, _ctx.loading]])]);
}
const democomponentExport = {
data() {
return {
tableData: [{
date: '2016-05-02',
name: 'John Smith',
address: 'No.1518, Jinshajiang Road, Putuo District'
}, {
date: '2016-05-04',
name: 'John Smith',
address: 'No.1518, Jinshajiang Road, Putuo District'
}, {
date: '2016-05-01',
name: 'John Smith',
address: 'No.1518, Jinshajiang Road, Putuo District'
}],
loading: true,
svg: `
<path class="path" d="
M 30 15
L 28 17
M 25.61 25.61
A 15 15, 0, 0, 1, 15 30
A 15 15, 0, 1, 1, 27.99 7.5
L 15 15
" style="stroke-width: 4px; fill: rgba(0, 0, 0, 0)"/>
`
};
}
};
return {
render,
...democomponentExport
};
}(),
"element-demo2": function () {
const {
createTextVNode: _createTextVNode,
resolveComponent: _resolveComponent,
resolveDirective: _resolveDirective,
withCtx: _withCtx,
createVNode: _createVNode,
withDirectives: _withDirectives,
openBlock: _openBlock,
createElementBlock: _createElementBlock
} = vue_esm_browser_prod;
const _hoisted_1 = /*#__PURE__*/_createTextVNode(" As a directive ");
const _hoisted_2 = /*#__PURE__*/_createTextVNode(" As a service ");
function render(_ctx, _cache) {
const _component_el_button = _resolveComponent("el-button");
const _directive_loading = _resolveDirective("loading");
return _openBlock(), _createElementBlock("div", null, [_withDirectives(_createVNode(_component_el_button, {
type: "primary",
onClick: _ctx.openFullScreen1
}, {
default: _withCtx(() => [_hoisted_1]),
_: 1
}, 8, ["onClick"]), [[_directive_loading, _ctx.fullscreenLoading, void 0, {
fullscreen: true,
lock: true
}]]), _createVNode(_component_el_button, {
type: "primary",
onClick: _ctx.openFullScreen2
}, {
default: _withCtx(() => [_hoisted_2]),
_: 1
}, 8, ["onClick"])]);
}
const democomponentExport = {
data() {
return {
fullscreenLoading: false
};
},
methods: {
openFullScreen1() {
this.fullscreenLoading = true;
setTimeout(() => {
this.fullscreenLoading = false;
}, 2000);
},
openFullScreen2() {
const loading = this.$loading({
lock: true,
text: 'Loading',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.7)'
});
setTimeout(() => {
loading.close();
}, 2000);
}
}
};
return {
render,
...democomponentExport
};
}()
}
});
// CONCATENATED MODULE: ./website/docs/jp/loading.md?vue&type=script&lang=ts
// CONCATENATED MODULE: ./website/docs/jp/loading.md
loadingvue_type_script_lang_ts.render = loadingvue_type_template_id_7013ea3c_render
/* harmony default export */ var loading = __webpack_exports__["default"] = (loadingvue_type_script_lang_ts);
/***/ })
}]);
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。