2 Star 3 Fork 3

element-plus/doc-archive

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
DOCS fr-FR9.0cb71eee40c7d7b6716e.js 21.47 KB
一键复制 编辑 原始数据 按行查看 历史
iamkun 提交于 2021-09-15 18:54 . chore: update
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[216],{
/***/ 899:
/***/ (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/fr-FR/card.md?vue&type=template&id=4fafb253
const cardvue_type_template_id_4fafb253_hoisted_1 = {
class: "content element-doc"
};
const cardvue_type_template_id_4fafb253_hoisted_2 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Card ");
const cardvue_type_template_id_4fafb253_hoisted_3 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("p", null, "Conteneur intégrant des informations.", -1);
const cardvue_type_template_id_4fafb253_hoisted_4 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Usage ");
const cardvue_type_template_id_4fafb253_hoisted_5 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("p", null, "Le composant Card comprend un titre, un contenu et des opérations.", -1);
const cardvue_type_template_id_4fafb253_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"])("Card est composé d'un "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "header"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" et d'un "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "body"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(". "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "header"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" est optionnel et son contenu nécessite l'utilisation d'un slot.")])], -1);
const _hoisted_7 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("pre", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", {
class: "html"
}, "<el-card class=\"box-card\">\n <template #header>\n <div class=\"card-header\">\n <span>Card name</span>\n <el-button class=\"button\" type=\"text\">Bouton</el-button>\n </div>\n </template>\n <div v-for=\"o in 4\" :key=\"o\" class=\"text item\">{{'List item ' + o }}</div>\n</el-card>\n\n<style>\n .card-header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n }\n\n .text {\n font-size: 14px;\n }\n\n .item {\n margin-bottom: 18px;\n }\n\n .box-card {\n width: 480px;\n }\n</style>\n")], -1);
const _hoisted_8 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Card simple ");
const _hoisted_9 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("p", null, "Le header peut être omis.", -1);
const _hoisted_10 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("pre", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", {
class: "html"
}, "<el-card class=\"box-card\">\n <div v-for=\"o in 4\" :key=\"o\" class=\"text item\">{{'List item ' + o }}</div>\n</el-card>\n\n<style>\n .text {\n font-size: 14px;\n }\n\n .item {\n padding: 18px 0;\n }\n\n .box-card {\n width: 480px;\n }\n</style>\n")], -1);
const _hoisted_11 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Images ");
const _hoisted_12 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("p", null, "Affichez un contenu plus riche grâce à la configuration.", -1);
const _hoisted_13 = /*#__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"])("L'attribut "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "body-style"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" définit le style CSS du "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "body"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(". Cet exemple utilise aussi "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "el-col"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" pour la mise en page.")])], -1);
const _hoisted_14 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("pre", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", {
class: "html"
}, "<el-row>\n <el-col\n :span=\"8\"\n v-for=\"(o, index) in 2\"\n :key=\"o\"\n :offset=\"index > 0 ? 2 : 0\"\n >\n <el-card :body-style=\"{ padding: '0px' }\">\n <img\n src=\"https://shadow.elemecdn.com/app/element/hamburger.9cf7b091-55e9-11e9-a976-7f4d0b07eef6.png\"\n class=\"image\"\n />\n <div style=\"padding: 14px;\">\n <span>Yummy hamburger</span>\n <div class=\"bottom\">\n <time class=\"time\">{{ currentDate }}</time>\n <el-button type=\"text\" class=\"button\">Operating</el-button>\n </div>\n </div>\n </el-card>\n </el-col>\n</el-row>\n\n<style>\n .time {\n font-size: 13px;\n color: #999;\n }\n\n .bottom {\n margin-top: 13px;\n line-height: 12px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n }\n\n .button {\n padding: 0;\n min-height: auto;\n }\n\n .image {\n width: 100%;\n display: block;\n }\n</style>\n\n<script>\n export default {\n data() {\n return {\n currentDate: new Date(),\n }\n },\n }\n</script>\n<!--\n<setup>\n\n import { defineComponent, ref } from 'vue';\n\n export default defineComponent({\n setup() {\n const currentDate = ref(new Date());\n\n return {\n currentDate,\n };\n },\n });\n\n</setup>\n-->\n")], -1);
const _hoisted_15 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Ombres ");
const _hoisted_16 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("p", null, "Vous pouvez définir quand l'ombre des Cards doivent apparaître.", -1);
const _hoisted_17 = /*#__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"])("L'attribut "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "shadow"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" détermine quand l'ombre doit apparaître. Les valeurs possibles sont "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "always"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(", "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "hover"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" ou "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "never"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(".")])], -1);
const _hoisted_18 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("pre", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", {
class: "html"
}, "<el-row :gutter=\"12\">\n <el-col :span=\"8\">\n <el-card shadow=\"always\"> Always </el-card>\n </el-col>\n <el-col :span=\"8\">\n <el-card shadow=\"hover\"> Hover </el-card>\n </el-col>\n <el-col :span=\"8\">\n <el-card shadow=\"never\"> Never </el-card>\n </el-col>\n</el-row>\n")], -1);
const _hoisted_19 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Attributs ");
const _hoisted_20 = /*#__PURE__*/Object(vue_esm_browser_prod["createStaticVNode"])("<table><thead><tr><th>Attribut</th><th>Description</th><th>Type</th><th>Valeurs acceptées</th><th>Défaut</th></tr></thead><tbody><tr><td>header</td><td>Titre de la Card. Accepte aussi un template DOM passé via <code>slot#header</code>.</td><td>string</td><td>—</td><td>—</td></tr><tr><td>body-style</td><td>Style CSS du body.</td><td>object</td><td>—</td><td>{ padding: &#39;20px&#39; }</td></tr><tr><td>shadow</td><td>Quand l&#39;ombre doit apparaître</td><td>string</td><td>always / hover / never</td><td>always</td></tr></tbody></table>", 1);
function cardvue_type_template_id_4fafb253_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_element_demo3 = Object(vue_esm_browser_prod["resolveComponent"])("element-demo3");
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", cardvue_type_template_id_4fafb253_hoisted_1, [Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "card",
content: "Card",
href: "#card",
level: "2"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [cardvue_type_template_id_4fafb253_hoisted_2, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#card"
})]),
_: 1
}), cardvue_type_template_id_4fafb253_hoisted_3, Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "usage",
content: "Usage",
href: "#usage",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [cardvue_type_template_id_4fafb253_hoisted_4, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#usage"
})]),
_: 1
}), cardvue_type_template_id_4fafb253_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"])(() => [cardvue_type_template_id_4fafb253_hoisted_6]),
_: 1
}), Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "card-simple",
content: "Card simple",
href: "#card-simple",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_8, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#card-simple"
})]),
_: 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_10]),
_: 1
}), Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "images",
content: "Images",
href: "#images",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_11, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#images"
})]),
_: 1
}), _hoisted_12, 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]),
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_13]),
_: 1
}), Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "ombres",
content: "Ombres",
href: "#ombres",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_15, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#ombres"
})]),
_: 1
}), _hoisted_16, 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_demo3)]),
highlight: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_18]),
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_17]),
_: 1
}), Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "attributs",
content: "Attributs",
href: "#attributs",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_19, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#attributs"
})]),
_: 1
}), _hoisted_20, Object(vue_esm_browser_prod["createVNode"])(_component_right_nav)]);
}
// CONCATENATED MODULE: ./website/docs/fr-FR/card.md?vue&type=template&id=4fafb253
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/dist??ref--3-0!./website/md-loader!./website/docs/fr-FR/card.md?vue&type=script&lang=ts
/* harmony default export */ var cardvue_type_script_lang_ts = ({
name: 'component-doc',
components: {
"element-demo0": function () {
const {
createElementVNode: _createElementVNode,
createTextVNode: _createTextVNode,
resolveComponent: _resolveComponent,
withCtx: _withCtx,
createVNode: _createVNode,
renderList: _renderList,
Fragment: _Fragment,
openBlock: _openBlock,
createElementBlock: _createElementBlock,
toDisplayString: _toDisplayString
} = vue_esm_browser_prod;
const _hoisted_1 = {
class: "card-header"
};
const _hoisted_2 = /*#__PURE__*/_createElementVNode("span", null, "Card name", -1);
const _hoisted_3 = /*#__PURE__*/_createTextVNode("Bouton");
function render(_ctx, _cache) {
const _component_el_button = _resolveComponent("el-button");
const _component_el_card = _resolveComponent("el-card");
return _openBlock(), _createElementBlock("div", null, [_createVNode(_component_el_card, {
class: "box-card"
}, {
header: _withCtx(() => [_createElementVNode("div", _hoisted_1, [_hoisted_2, _createVNode(_component_el_button, {
class: "button",
type: "text"
}, {
default: _withCtx(() => [_hoisted_3]),
_: 1
})])]),
default: _withCtx(() => [(_openBlock(), _createElementBlock(_Fragment, null, _renderList(4, o => {
return _createElementVNode("div", {
key: o,
class: "text item"
}, _toDisplayString('List item ' + o), 1);
}), 64))]),
_: 1
})]);
}
const democomponentExport = {};
return {
render,
...democomponentExport
};
}(),
"element-demo1": function () {
const {
renderList: _renderList,
Fragment: _Fragment,
openBlock: _openBlock,
createElementBlock: _createElementBlock,
toDisplayString: _toDisplayString,
createElementVNode: _createElementVNode,
resolveComponent: _resolveComponent,
withCtx: _withCtx,
createVNode: _createVNode
} = vue_esm_browser_prod;
function render(_ctx, _cache) {
const _component_el_card = _resolveComponent("el-card");
return _openBlock(), _createElementBlock("div", null, [_createVNode(_component_el_card, {
class: "box-card"
}, {
default: _withCtx(() => [(_openBlock(), _createElementBlock(_Fragment, null, _renderList(4, o => {
return _createElementVNode("div", {
key: o,
class: "text item"
}, _toDisplayString('List item ' + o), 1);
}), 64))]),
_: 1
})]);
}
const democomponentExport = {};
return {
render,
...democomponentExport
};
}(),
"element-demo2": function () {
const {
renderList: _renderList,
Fragment: _Fragment,
openBlock: _openBlock,
createElementBlock: _createElementBlock,
createElementVNode: _createElementVNode,
toDisplayString: _toDisplayString,
createTextVNode: _createTextVNode,
resolveComponent: _resolveComponent,
withCtx: _withCtx,
createVNode: _createVNode
} = vue_esm_browser_prod;
const _hoisted_1 = /*#__PURE__*/_createElementVNode("img", {
src: "https://shadow.elemecdn.com/app/element/hamburger.9cf7b091-55e9-11e9-a976-7f4d0b07eef6.png",
class: "image"
}, null, -1);
const _hoisted_2 = {
style: {
"padding": "14px"
}
};
const _hoisted_3 = /*#__PURE__*/_createElementVNode("span", null, "Yummy hamburger", -1);
const _hoisted_4 = {
class: "bottom"
};
const _hoisted_5 = {
class: "time"
};
const _hoisted_6 = /*#__PURE__*/_createTextVNode("Operating");
function render(_ctx, _cache) {
const _component_el_button = _resolveComponent("el-button");
const _component_el_card = _resolveComponent("el-card");
const _component_el_col = _resolveComponent("el-col");
const _component_el_row = _resolveComponent("el-row");
return _openBlock(), _createElementBlock("div", null, [_createVNode(_component_el_row, null, {
default: _withCtx(() => [(_openBlock(), _createElementBlock(_Fragment, null, _renderList(2, (o, index) => {
return _createVNode(_component_el_col, {
span: 8,
key: o,
offset: index > 0 ? 2 : 0
}, {
default: _withCtx(() => [_createVNode(_component_el_card, {
"body-style": {
padding: '0px'
}
}, {
default: _withCtx(() => [_hoisted_1, _createElementVNode("div", _hoisted_2, [_hoisted_3, _createElementVNode("div", _hoisted_4, [_createElementVNode("time", _hoisted_5, _toDisplayString(_ctx.currentDate), 1), _createVNode(_component_el_button, {
type: "text",
class: "button"
}, {
default: _withCtx(() => [_hoisted_6]),
_: 1
})])])]),
_: 1
})]),
_: 2
}, 1032, ["offset"]);
}), 64))]),
_: 1
})]);
}
const democomponentExport = {
data() {
return {
currentDate: new Date()
};
}
};
return {
render,
...democomponentExport
};
}(),
"element-demo3": function () {
const {
createTextVNode: _createTextVNode,
resolveComponent: _resolveComponent,
withCtx: _withCtx,
createVNode: _createVNode,
openBlock: _openBlock,
createElementBlock: _createElementBlock
} = vue_esm_browser_prod;
const _hoisted_1 = /*#__PURE__*/_createTextVNode(" Always ");
const _hoisted_2 = /*#__PURE__*/_createTextVNode(" Hover ");
const _hoisted_3 = /*#__PURE__*/_createTextVNode(" Never ");
function render(_ctx, _cache) {
const _component_el_card = _resolveComponent("el-card");
const _component_el_col = _resolveComponent("el-col");
const _component_el_row = _resolveComponent("el-row");
return _openBlock(), _createElementBlock("div", null, [_createVNode(_component_el_row, {
gutter: 12
}, {
default: _withCtx(() => [_createVNode(_component_el_col, {
span: 8
}, {
default: _withCtx(() => [_createVNode(_component_el_card, {
shadow: "always"
}, {
default: _withCtx(() => [_hoisted_1]),
_: 1
})]),
_: 1
}), _createVNode(_component_el_col, {
span: 8
}, {
default: _withCtx(() => [_createVNode(_component_el_card, {
shadow: "hover"
}, {
default: _withCtx(() => [_hoisted_2]),
_: 1
})]),
_: 1
}), _createVNode(_component_el_col, {
span: 8
}, {
default: _withCtx(() => [_createVNode(_component_el_card, {
shadow: "never"
}, {
default: _withCtx(() => [_hoisted_3]),
_: 1
})]),
_: 1
})]),
_: 1
})]);
}
const democomponentExport = {};
return {
render,
...democomponentExport
};
}()
}
});
// CONCATENATED MODULE: ./website/docs/fr-FR/card.md?vue&type=script&lang=ts
// CONCATENATED MODULE: ./website/docs/fr-FR/card.md
cardvue_type_script_lang_ts.render = cardvue_type_template_id_4fafb253_render
/* harmony default export */ var card = __webpack_exports__["default"] = (cardvue_type_script_lang_ts);
/***/ })
}]);
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/element-plus/doc-archive.git
git@gitee.com:element-plus/doc-archive.git
element-plus
doc-archive
doc-archive
main

搜索帮助