2 Star 3 Fork 3

element-plus/doc-archive

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
DOCS jp20.0cb71eee40c7d7b6716e.js 43.34 KB
一键复制 编辑 原始数据 按行查看 历史
iamkun 提交于 2021-09-15 18:54 . chore: update
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[230],{
/***/ 976:
/***/ (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/datetime-picker.md?vue&type=template&id=179ba7a5
const datetime_pickervue_type_template_id_179ba7a5_hoisted_1 = {
class: "content element-doc"
};
const datetime_pickervue_type_template_id_179ba7a5_hoisted_2 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("DateTimePicker ");
const datetime_pickervue_type_template_id_179ba7a5_hoisted_3 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("p", null, "1 つのピッカーで日時を選択します。", -1);
const datetime_pickervue_type_template_id_179ba7a5_hoisted_4 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("div", {
class: "tip"
}, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("p", null, "DateTimePicker は DatePicker と TimePicker から派生したものです。属性についての詳しい説明は、DatePicker と TimePicker を参照してください。")], -1);
const datetime_pickervue_type_template_id_179ba7a5_hoisted_5 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("日付と時間 ");
const datetime_pickervue_type_template_id_179ba7a5_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["createElementVNode"])("code", null, "type"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(""), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "datetime"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("に設定することで、1 つのピッカーで日付と時刻を同時に選択することができます。ショートカットの使い方は日付ピッカーと同じです。")])], -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 <div class=\"block\">\n <span class=\"demonstration\">Default</span>\n <el-date-picker\n v-model=\"value1\"\n type=\"datetime\"\n placeholder=\"Select date and time\"\n >\n </el-date-picker>\n </div>\n <div class=\"block\">\n <span class=\"demonstration\">With shortcuts</span>\n <el-date-picker\n v-model=\"value2\"\n type=\"datetime\"\n placeholder=\"Select date and time\"\n :shortcuts=\"shortcuts\"\n >\n </el-date-picker>\n </div>\n <div class=\"block\">\n <span class=\"demonstration\">With default time</span>\n <el-date-picker\n v-model=\"value3\"\n type=\"datetime\"\n placeholder=\"Select date and time\"\n :default-time=\"defaultTime\"\n >\n </el-date-picker>\n </div>\n</template>\n\n<script>\n export default {\n data() {\n return {\n shortcuts: [\n {\n text: 'Today',\n value: new Date(),\n },\n {\n text: 'Yesterday',\n value: () => {\n const date = new Date()\n date.setTime(date.getTime() - 3600 * 1000 * 24)\n return date\n },\n },\n {\n text: 'A week ago',\n value: () => {\n const date = new Date()\n date.setTime(date.getTime() - 3600 * 1000 * 24 * 7)\n return date\n },\n },\n ],\n value1: '',\n value2: '',\n value3: '',\n defaultTime: new Date(2000, 1, 1, 12, 0, 0), // '12:00:00'\n }\n },\n }\n</script>\n<!--\n<setup>\n\n import { defineComponent, reactive, toRefs } from 'vue';\n\n export default defineComponent({\n setup() {\n const state = reactive({\n shortcuts: [\n {\n text: 'Today',\n value: new Date(),\n },\n {\n text: 'Yesterday',\n value: () => {\n const date = new Date();\n date.setTime(date.getTime() - 3600 * 1000 * 24);\n return date;\n },\n },\n {\n text: 'A week ago',\n value: () => {\n const date = new Date();\n date.setTime(date.getTime() - 3600 * 1000 * 24 * 7);\n return date;\n },\n },\n ],\n value1: '',\n value2: '',\n value3: '',\n defaultTime: new Date(2000, 1, 1, 12, 0, 0), // '12:00:00'\n });\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"])("div", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("p", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "type"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(""), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "datetimerange"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("に設定することで、日付と時間の範囲を選択することができる。")])], -1);
const _hoisted_10 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("pre", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", {
class: "html"
}, "<template>\n <div class=\"block\">\n <span class=\"demonstration\">Default</span>\n <el-date-picker\n v-model=\"value1\"\n type=\"datetimerange\"\n range-separator=\"To\"\n start-placeholder=\"Start date\"\n end-placeholder=\"End date\"\n >\n </el-date-picker>\n </div>\n <div class=\"block\">\n <span class=\"demonstration\">With shortcuts</span>\n <el-date-picker\n v-model=\"value2\"\n type=\"datetimerange\"\n :shortcuts=\"shortcuts\"\n range-separator=\"To\"\n start-placeholder=\"Start date\"\n end-placeholder=\"End date\"\n >\n </el-date-picker>\n </div>\n</template>\n\n<script>\n export default {\n data() {\n return {\n shortcuts: [\n {\n text: 'Last week',\n value: () => {\n const end = new Date()\n const start = new Date()\n start.setTime(start.getTime() - 3600 * 1000 * 24 * 7)\n return [start, end]\n },\n },\n {\n text: 'Last month',\n value: () => {\n const end = new Date()\n const start = new Date()\n start.setTime(start.getTime() - 3600 * 1000 * 24 * 30)\n return [start, end]\n },\n },\n {\n text: 'Last 3 months',\n value: () => {\n const end = new Date()\n const start = new Date()\n start.setTime(start.getTime() - 3600 * 1000 * 24 * 90)\n return [start, end]\n },\n },\n ],\n value1: [\n new Date(2000, 10, 10, 10, 10),\n new Date(2000, 10, 11, 10, 10),\n ],\n value2: '',\n }\n },\n }\n</script>\n<!--\n<setup>\n\n import { defineComponent, reactive, toRefs } from 'vue';\n\n export default defineComponent({\n setup() {\n const state = reactive({\n shortcuts: [\n {\n text: 'Last week',\n value: () => {\n const end = new Date();\n const start = new Date();\n start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);\n return [start, end];\n },\n },\n {\n text: 'Last month',\n value: () => {\n const end = new Date();\n const start = new Date();\n start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);\n return [start, end];\n },\n },\n {\n text: 'Last 3 months',\n value: () => {\n const end = new Date();\n const start = new Date();\n start.setTime(start.getTime() - 3600 * 1000 * 24 * 90);\n return [start, end];\n },\n },\n ],\n value1: [new Date(2000, 10, 10, 10, 10), new Date(2000, 10, 11, 10, 10)],\n value2: '',\n });\n\n return {\n ...toRefs(state),\n };\n },\n });\n\n</setup>\n-->\n")], -1);
const _hoisted_11 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("開始日と終了日のデフォルトの時間値 ");
const _hoisted_12 = /*#__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"])("When picking date range on the date panel with type "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "datetimerange"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(", "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "00:00:00"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" will be used as the default time value for start and end date. We can control it with the "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "default-time"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" attribute. "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "default-time"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" accepts an array of up to two Date objects. The first item controls time value of the start date and the second item controls time value of the end date.")])], -1);
const _hoisted_13 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("pre", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", {
class: "html"
}, "<template>\n <div class=\"block\">\n <span class=\"demonstration\">Start date time 12:00:00</span>\n <el-date-picker\n v-model=\"value1\"\n type=\"datetimerange\"\n start-placeholder=\"Start Date\"\n end-placeholder=\"End Date\"\n :default-time=\"defaultTime1\"\n >\n </el-date-picker>\n </div>\n <div class=\"block\">\n <span class=\"demonstration\"\n >Start date time 12:00:00, end date time 08:00:00</span\n >\n <el-date-picker\n v-model=\"value2\"\n type=\"datetimerange\"\n start-placeholder=\"Start Date\"\n end-placeholder=\"End Date\"\n :default-time=\"defaultTime2\"\n >\n </el-date-picker>\n </div>\n</template>\n\n<script>\n export default {\n data() {\n return {\n value1: '',\n value2: '',\n defaultTime1: [new Date(2000, 1, 1, 12, 0, 0)], // '12:00:00'\n defaultTime2: [\n new Date(2000, 1, 1, 12, 0, 0),\n new Date(2000, 2, 1, 8, 0, 0),\n ], // '12:00:00', '08:00:00'\n }\n },\n }\n</script>\n<!--\n<setup>\n\n import { defineComponent, reactive, toRefs } from 'vue';\n\n export default defineComponent({\n setup() {\n const state = reactive({\n value1: '',\n value2: '',\n defaultTime1: [new Date(2000, 1, 1, 12, 0, 0)], // '12:00:00'\n defaultTime2: [\n new Date(2000, 1, 1, 12, 0, 0),\n new Date(2000, 2, 1, 8, 0, 0),\n ], // '12:00:00', '08:00:00'\n });\n\n return {\n ...toRefs(state),\n };\n },\n });\n\n</setup>\n-->\n")], -1);
const _hoisted_14 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("属性 ");
const _hoisted_15 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("thead", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("tr", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("th", null, "Attribute"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("th", null, "Description"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("th", null, "Type"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("th", null, "Accepted Values"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("th", null, "Default")])], -1);
const _hoisted_16 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("tr", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "model-value / v-model"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "バインディング値"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "date(DateTimePicker) / array(DateTimeRangePicker)"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, ""), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "")], -1);
const _hoisted_17 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("tr", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "readonly"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "DatePicker が読み取り専用かどうか"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "boolean"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, ""), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "false")], -1);
const _hoisted_18 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("tr", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "disabled"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "DatePicker が無効かどうか"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "boolean"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, ""), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "false")], -1);
const _hoisted_19 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("tr", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "editable"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "DatePicker が編集可能かどうか"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "boolean"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, ""), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "true")], -1);
const _hoisted_20 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("tr", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "clearable"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "クリアボタンを表示するかどうか"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "boolean"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, ""), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "true")], -1);
const _hoisted_21 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("tr", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "size"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "インプットサイズ"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "string"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "large/small/mini"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "")], -1);
const _hoisted_22 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("tr", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "placeholder"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "非範囲モード時のプレースホルダ"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "string"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, ""), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "")], -1);
const _hoisted_23 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("tr", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "start-placeholder"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "範囲モードでの開始日のプレースホルダ"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "string"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, ""), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "")], -1);
const _hoisted_24 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("tr", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "end-placeholder"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "範囲終了日のプレースホルダ"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "string"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, ""), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "")], -1);
const _hoisted_25 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("tr", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "time-arrow-control"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "矢印ボタンで時間を選ぶかどうか"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "boolean"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, ""), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "false")], -1);
const _hoisted_26 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("tr", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "type"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "ピッカーのタイプ"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "string"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "year/month/date/datetime/ week/datetimerange/daterange"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "date")], -1);
const _hoisted_27 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "format", -1);
const _hoisted_28 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "インプットボックスの表示値のフォーマット", -1);
const _hoisted_29 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "string", -1);
const _hoisted_30 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("see ");
const _hoisted_31 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("date formats");
const _hoisted_32 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "YYYY-MM-DD HH:mm:ss", -1);
const _hoisted_33 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("tr", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "popper-class"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "DateTimePicker のドロップダウンのカスタムクラス名"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "string"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, ""), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "")], -1);
const _hoisted_34 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("tr", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "range-separator"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "レンジセパレータ"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "string"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "-"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "'-'")], -1);
const _hoisted_35 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("tr", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "default-value"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "オプション、カレンダーのデフォルトの日付"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "Date"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("anything accepted by "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "new Date()")]), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "")], -1);
const _hoisted_36 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("tr", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "default-time"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "the default time value after picking a date"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "non-range: Date / range: Date[]"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("non-range: a Date object, range: array of two Date objects, and the first item is for the start date and second for the end date. Time "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "00:00:00"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" will be used if not specified")]), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "")], -1);
const _hoisted_37 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("tr", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "name"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("ネイティブインプットの "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "name"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" と同じ")]), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "string"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, ""), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "")], -1);
const _hoisted_38 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("tr", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "unlink-panels"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "レンジピッカーで 2 つのデータパネルのリンクを解除する"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "boolean"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, ""), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "false")], -1);
const _hoisted_39 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("tr", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "prefix-icon"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "カスタムプレフィックスアイコンクラス"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "string"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, ""), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "el-icon-date")], -1);
const _hoisted_40 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("tr", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "clear-icon"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "カスタムクリアアイコンクラス"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "string"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, ""), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "el-icon-circle-close")], -1);
const _hoisted_41 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("tr", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "shortcuts"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "an object array to set shortcut options"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "object[{ text: string, value: date / function }]"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, ""), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "")], -1);
const _hoisted_42 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("tr", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "disabledDate"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "a function determining if a date is disabled with that date as its parameter. Should return a Boolean"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "function"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, ""), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "")], -1);
const _hoisted_43 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("tr", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "cellClassName"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "set custom className"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "Function(Date)"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, ""), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "")], -1);
const _hoisted_44 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("イベント ");
const _hoisted_45 = /*#__PURE__*/Object(vue_esm_browser_prod["createStaticVNode"])("<table><thead><tr><th>Event Name</th><th>Description</th><th>Parameters</th></tr></thead><tbody><tr><td>change</td><td>triggers when user confirms the value</td><td>component&#39;s binding value</td></tr><tr><td>blur</td><td>triggers when Input blurs</td><td>component instance</td></tr><tr><td>focus</td><td>triggers when Input focuses</td><td>component instance</td></tr><tr><td>calendar-change</td><td>triggers when the calendar selected date is changed. Only for <code>datetimerange</code></td><td>[Date, Date]</td></tr></tbody></table>", 1);
const _hoisted_46 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("メソッド ");
const _hoisted_47 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("table", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("thead", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("tr", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("th", null, "Method"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("th", null, "Description"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("th", null, "Parameters")])]), /*#__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, "focus"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "focus the Input component"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "")])])], -1);
function datetime_pickervue_type_template_id_179ba7a5_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", datetime_pickervue_type_template_id_179ba7a5_hoisted_1, [Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "datetimepicker",
content: "DateTimePicker",
href: "#datetimepicker",
level: "2"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [datetime_pickervue_type_template_id_179ba7a5_hoisted_2, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#datetimepicker"
})]),
_: 1
}), datetime_pickervue_type_template_id_179ba7a5_hoisted_3, datetime_pickervue_type_template_id_179ba7a5_hoisted_4, Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "ri-fu-toshi-jian",
content: "日付と時間",
href: "#ri-fu-toshi-jian",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [datetime_pickervue_type_template_id_179ba7a5_hoisted_5, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#ri-fu-toshi-jian"
})]),
_: 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_7]),
default: Object(vue_esm_browser_prod["withCtx"])(() => [datetime_pickervue_type_template_id_179ba7a5_hoisted_6]),
_: 1
}), Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "ri-fu-toshi-jian-nofan-wei",
content: "日付と時間の範囲",
href: "#ri-fu-toshi-jian-nofan-wei",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_8, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#ri-fu-toshi-jian-nofan-wei"
})]),
_: 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_10]),
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_9]),
_: 1
}), Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "kai-shi-ri-tozhong-liao-ri-nodehuorutonoshi-jian-zhi",
content: "開始日と終了日のデフォルトの時間値",
href: "#kai-shi-ri-tozhong-liao-ri-nodehuorutonoshi-jian-zhi",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_11, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#kai-shi-ri-tozhong-liao-ri-nodehuorutonoshi-jian-zhi"
})]),
_: 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_demo2)]),
highlight: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_13]),
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_12]),
_: 1
}), Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "shu-xing",
content: "属性",
href: "#shu-xing",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_14, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#shu-xing"
})]),
_: 1
}), Object(vue_esm_browser_prod["createElementVNode"])("table", null, [_hoisted_15, Object(vue_esm_browser_prod["createElementVNode"])("tbody", null, [_hoisted_16, _hoisted_17, _hoisted_18, _hoisted_19, _hoisted_20, _hoisted_21, _hoisted_22, _hoisted_23, _hoisted_24, _hoisted_25, _hoisted_26, Object(vue_esm_browser_prod["createElementVNode"])("tr", null, [_hoisted_27, _hoisted_28, _hoisted_29, Object(vue_esm_browser_prod["createElementVNode"])("td", null, [_hoisted_30, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
href: "#/en-US/component/date-picker#date-formats"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_31]),
_: 1
})]), _hoisted_32]), _hoisted_33, _hoisted_34, _hoisted_35, _hoisted_36, _hoisted_37, _hoisted_38, _hoisted_39, _hoisted_40, _hoisted_41, _hoisted_42, _hoisted_43])]), Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "ibento",
content: "イベント",
href: "#ibento",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_44, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#ibento"
})]),
_: 1
}), _hoisted_45, Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "mesotudo",
content: "メソッド",
href: "#mesotudo",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_46, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#mesotudo"
})]),
_: 1
}), _hoisted_47, Object(vue_esm_browser_prod["createVNode"])(_component_right_nav)]);
}
// CONCATENATED MODULE: ./website/docs/jp/datetime-picker.md?vue&type=template&id=179ba7a5
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/dist??ref--3-0!./website/md-loader!./website/docs/jp/datetime-picker.md?vue&type=script&lang=ts
/* harmony default export */ var datetime_pickervue_type_script_lang_ts = ({
name: 'component-doc',
components: {
"element-demo0": function () {
const {
createElementVNode: _createElementVNode,
resolveComponent: _resolveComponent,
createVNode: _createVNode,
openBlock: _openBlock,
createElementBlock: _createElementBlock
} = vue_esm_browser_prod;
const _hoisted_1 = {
class: "block"
};
const _hoisted_2 = /*#__PURE__*/_createElementVNode("span", {
class: "demonstration"
}, "Default", -1);
const _hoisted_3 = {
class: "block"
};
const _hoisted_4 = /*#__PURE__*/_createElementVNode("span", {
class: "demonstration"
}, "With shortcuts", -1);
const _hoisted_5 = {
class: "block"
};
const _hoisted_6 = /*#__PURE__*/_createElementVNode("span", {
class: "demonstration"
}, "With default time", -1);
function render(_ctx, _cache) {
const _component_el_date_picker = _resolveComponent("el-date-picker");
return _openBlock(), _createElementBlock("div", null, [_createElementVNode("div", _hoisted_1, [_hoisted_2, _createVNode(_component_el_date_picker, {
modelValue: _ctx.value1,
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => _ctx.value1 = $event),
type: "datetime",
placeholder: "Select date and time"
}, null, 8, ["modelValue"])]), _createElementVNode("div", _hoisted_3, [_hoisted_4, _createVNode(_component_el_date_picker, {
modelValue: _ctx.value2,
"onUpdate:modelValue": _cache[1] || (_cache[1] = $event => _ctx.value2 = $event),
type: "datetime",
placeholder: "Select date and time",
shortcuts: _ctx.shortcuts
}, null, 8, ["modelValue", "shortcuts"])]), _createElementVNode("div", _hoisted_5, [_hoisted_6, _createVNode(_component_el_date_picker, {
modelValue: _ctx.value3,
"onUpdate:modelValue": _cache[2] || (_cache[2] = $event => _ctx.value3 = $event),
type: "datetime",
placeholder: "Select date and time",
"default-time": _ctx.defaultTime
}, null, 8, ["modelValue", "default-time"])])]);
}
const democomponentExport = {
data() {
return {
shortcuts: [{
text: 'Today',
value: new Date()
}, {
text: 'Yesterday',
value: () => {
const date = new Date();
date.setTime(date.getTime() - 3600 * 1000 * 24);
return date;
}
}, {
text: 'A week ago',
value: () => {
const date = new Date();
date.setTime(date.getTime() - 3600 * 1000 * 24 * 7);
return date;
}
}],
value1: '',
value2: '',
value3: '',
defaultTime: new Date(2000, 1, 1, 12, 0, 0) // '12:00:00'
};
}
};
return {
render,
...democomponentExport
};
}(),
"element-demo1": function () {
const {
createElementVNode: _createElementVNode,
resolveComponent: _resolveComponent,
createVNode: _createVNode,
openBlock: _openBlock,
createElementBlock: _createElementBlock
} = vue_esm_browser_prod;
const _hoisted_1 = {
class: "block"
};
const _hoisted_2 = /*#__PURE__*/_createElementVNode("span", {
class: "demonstration"
}, "Default", -1);
const _hoisted_3 = {
class: "block"
};
const _hoisted_4 = /*#__PURE__*/_createElementVNode("span", {
class: "demonstration"
}, "With shortcuts", -1);
function render(_ctx, _cache) {
const _component_el_date_picker = _resolveComponent("el-date-picker");
return _openBlock(), _createElementBlock("div", null, [_createElementVNode("div", _hoisted_1, [_hoisted_2, _createVNode(_component_el_date_picker, {
modelValue: _ctx.value1,
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => _ctx.value1 = $event),
type: "datetimerange",
"range-separator": "To",
"start-placeholder": "Start date",
"end-placeholder": "End date"
}, null, 8, ["modelValue"])]), _createElementVNode("div", _hoisted_3, [_hoisted_4, _createVNode(_component_el_date_picker, {
modelValue: _ctx.value2,
"onUpdate:modelValue": _cache[1] || (_cache[1] = $event => _ctx.value2 = $event),
type: "datetimerange",
shortcuts: _ctx.shortcuts,
"range-separator": "To",
"start-placeholder": "Start date",
"end-placeholder": "End date"
}, null, 8, ["modelValue", "shortcuts"])])]);
}
const democomponentExport = {
data() {
return {
shortcuts: [{
text: 'Last week',
value: () => {
const end = new Date();
const start = new Date();
start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
return [start, end];
}
}, {
text: 'Last month',
value: () => {
const end = new Date();
const start = new Date();
start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);
return [start, end];
}
}, {
text: 'Last 3 months',
value: () => {
const end = new Date();
const start = new Date();
start.setTime(start.getTime() - 3600 * 1000 * 24 * 90);
return [start, end];
}
}],
value1: [new Date(2000, 10, 10, 10, 10), new Date(2000, 10, 11, 10, 10)],
value2: ''
};
}
};
return {
render,
...democomponentExport
};
}(),
"element-demo2": function () {
const {
createElementVNode: _createElementVNode,
resolveComponent: _resolveComponent,
createVNode: _createVNode,
openBlock: _openBlock,
createElementBlock: _createElementBlock
} = vue_esm_browser_prod;
const _hoisted_1 = {
class: "block"
};
const _hoisted_2 = /*#__PURE__*/_createElementVNode("span", {
class: "demonstration"
}, "Start date time 12:00:00", -1);
const _hoisted_3 = {
class: "block"
};
const _hoisted_4 = /*#__PURE__*/_createElementVNode("span", {
class: "demonstration"
}, "Start date time 12:00:00, end date time 08:00:00", -1);
function render(_ctx, _cache) {
const _component_el_date_picker = _resolveComponent("el-date-picker");
return _openBlock(), _createElementBlock("div", null, [_createElementVNode("div", _hoisted_1, [_hoisted_2, _createVNode(_component_el_date_picker, {
modelValue: _ctx.value1,
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => _ctx.value1 = $event),
type: "datetimerange",
"start-placeholder": "Start Date",
"end-placeholder": "End Date",
"default-time": _ctx.defaultTime1
}, null, 8, ["modelValue", "default-time"])]), _createElementVNode("div", _hoisted_3, [_hoisted_4, _createVNode(_component_el_date_picker, {
modelValue: _ctx.value2,
"onUpdate:modelValue": _cache[1] || (_cache[1] = $event => _ctx.value2 = $event),
type: "datetimerange",
"start-placeholder": "Start Date",
"end-placeholder": "End Date",
"default-time": _ctx.defaultTime2
}, null, 8, ["modelValue", "default-time"])])]);
}
const democomponentExport = {
data() {
return {
value1: '',
value2: '',
defaultTime1: [new Date(2000, 1, 1, 12, 0, 0)],
// '12:00:00'
defaultTime2: [new Date(2000, 1, 1, 12, 0, 0), new Date(2000, 2, 1, 8, 0, 0)] // '12:00:00', '08:00:00'
};
}
};
return {
render,
...democomponentExport
};
}()
}
});
// CONCATENATED MODULE: ./website/docs/jp/datetime-picker.md?vue&type=script&lang=ts
// CONCATENATED MODULE: ./website/docs/jp/datetime-picker.md
datetime_pickervue_type_script_lang_ts.render = datetime_pickervue_type_template_id_179ba7a5_render
/* harmony default export */ var datetime_picker = __webpack_exports__["default"] = (datetime_pickervue_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

搜索帮助