@element-plus/nightly 0.0.20221019 → 0.0.20221020
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.full.js +289 -249
- package/dist/index.full.min.js +12 -12
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +13 -13
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +289 -249
- package/dist/locale/af.js +1 -1
- package/dist/locale/af.min.js +1 -1
- package/dist/locale/af.min.mjs +1 -1
- package/dist/locale/af.mjs +1 -1
- package/dist/locale/ar.js +1 -1
- package/dist/locale/ar.min.js +1 -1
- package/dist/locale/ar.min.mjs +1 -1
- package/dist/locale/ar.mjs +1 -1
- package/dist/locale/az.js +1 -1
- package/dist/locale/az.min.js +1 -1
- package/dist/locale/az.min.mjs +1 -1
- package/dist/locale/az.mjs +1 -1
- package/dist/locale/bg.js +1 -1
- package/dist/locale/bg.min.js +1 -1
- package/dist/locale/bg.min.mjs +1 -1
- package/dist/locale/bg.mjs +1 -1
- package/dist/locale/bn.js +1 -1
- package/dist/locale/bn.min.js +1 -1
- package/dist/locale/bn.min.mjs +1 -1
- package/dist/locale/bn.mjs +1 -1
- package/dist/locale/ca.js +1 -1
- package/dist/locale/ca.min.js +1 -1
- package/dist/locale/ca.min.mjs +1 -1
- package/dist/locale/ca.mjs +1 -1
- package/dist/locale/cs.js +1 -1
- package/dist/locale/cs.min.js +1 -1
- package/dist/locale/cs.min.mjs +1 -1
- package/dist/locale/cs.mjs +1 -1
- package/dist/locale/da.js +1 -1
- package/dist/locale/da.min.js +1 -1
- package/dist/locale/da.min.mjs +1 -1
- package/dist/locale/da.mjs +1 -1
- package/dist/locale/de.js +1 -1
- package/dist/locale/de.min.js +1 -1
- package/dist/locale/de.min.mjs +1 -1
- package/dist/locale/de.mjs +1 -1
- package/dist/locale/el.js +1 -1
- package/dist/locale/el.min.js +1 -1
- package/dist/locale/el.min.mjs +1 -1
- package/dist/locale/el.mjs +1 -1
- package/dist/locale/en.js +1 -1
- package/dist/locale/en.min.js +1 -1
- package/dist/locale/en.min.mjs +1 -1
- package/dist/locale/en.mjs +1 -1
- package/dist/locale/eo.js +1 -1
- package/dist/locale/eo.min.js +1 -1
- package/dist/locale/eo.min.mjs +1 -1
- package/dist/locale/eo.mjs +1 -1
- package/dist/locale/es.js +1 -1
- package/dist/locale/es.min.js +1 -1
- package/dist/locale/es.min.mjs +1 -1
- package/dist/locale/es.mjs +1 -1
- package/dist/locale/et.js +1 -1
- package/dist/locale/et.min.js +1 -1
- package/dist/locale/et.min.mjs +1 -1
- package/dist/locale/et.mjs +1 -1
- package/dist/locale/eu.js +1 -1
- package/dist/locale/eu.min.js +1 -1
- package/dist/locale/eu.min.mjs +1 -1
- package/dist/locale/eu.mjs +1 -1
- package/dist/locale/fa.js +1 -1
- package/dist/locale/fa.min.js +1 -1
- package/dist/locale/fa.min.mjs +1 -1
- package/dist/locale/fa.mjs +1 -1
- package/dist/locale/fi.js +1 -1
- package/dist/locale/fi.min.js +1 -1
- package/dist/locale/fi.min.mjs +1 -1
- package/dist/locale/fi.mjs +1 -1
- package/dist/locale/fr.js +1 -1
- package/dist/locale/fr.min.js +1 -1
- package/dist/locale/fr.min.mjs +1 -1
- package/dist/locale/fr.mjs +1 -1
- package/dist/locale/he.js +1 -1
- package/dist/locale/he.min.js +1 -1
- package/dist/locale/he.min.mjs +1 -1
- package/dist/locale/he.mjs +1 -1
- package/dist/locale/hr.js +1 -1
- package/dist/locale/hr.min.js +1 -1
- package/dist/locale/hr.min.mjs +1 -1
- package/dist/locale/hr.mjs +1 -1
- package/dist/locale/hu.js +1 -1
- package/dist/locale/hu.min.js +1 -1
- package/dist/locale/hu.min.mjs +1 -1
- package/dist/locale/hu.mjs +1 -1
- package/dist/locale/hy-am.js +1 -1
- package/dist/locale/hy-am.min.js +1 -1
- package/dist/locale/hy-am.min.mjs +1 -1
- package/dist/locale/hy-am.mjs +1 -1
- package/dist/locale/id.js +1 -1
- package/dist/locale/id.min.js +1 -1
- package/dist/locale/id.min.mjs +1 -1
- package/dist/locale/id.mjs +1 -1
- package/dist/locale/it.js +1 -1
- package/dist/locale/it.min.js +1 -1
- package/dist/locale/it.min.mjs +1 -1
- package/dist/locale/it.mjs +1 -1
- package/dist/locale/ja.js +1 -1
- package/dist/locale/ja.min.js +1 -1
- package/dist/locale/ja.min.mjs +1 -1
- package/dist/locale/ja.mjs +1 -1
- package/dist/locale/kk.js +1 -1
- package/dist/locale/kk.min.js +1 -1
- package/dist/locale/kk.min.mjs +1 -1
- package/dist/locale/kk.mjs +1 -1
- package/dist/locale/km.js +1 -1
- package/dist/locale/km.min.js +1 -1
- package/dist/locale/km.min.mjs +1 -1
- package/dist/locale/km.mjs +1 -1
- package/dist/locale/ko.js +1 -1
- package/dist/locale/ko.min.js +1 -1
- package/dist/locale/ko.min.mjs +1 -1
- package/dist/locale/ko.mjs +1 -1
- package/dist/locale/ku.js +1 -1
- package/dist/locale/ku.min.js +1 -1
- package/dist/locale/ku.min.mjs +1 -1
- package/dist/locale/ku.mjs +1 -1
- package/dist/locale/ky.js +1 -1
- package/dist/locale/ky.min.js +1 -1
- package/dist/locale/ky.min.mjs +1 -1
- package/dist/locale/ky.mjs +1 -1
- package/dist/locale/lt.js +1 -1
- package/dist/locale/lt.min.js +1 -1
- package/dist/locale/lt.min.mjs +1 -1
- package/dist/locale/lt.mjs +1 -1
- package/dist/locale/lv.js +1 -1
- package/dist/locale/lv.min.js +1 -1
- package/dist/locale/lv.min.mjs +1 -1
- package/dist/locale/lv.mjs +1 -1
- package/dist/locale/mg.js +1 -1
- package/dist/locale/mg.min.js +1 -1
- package/dist/locale/mg.min.mjs +1 -1
- package/dist/locale/mg.mjs +1 -1
- package/dist/locale/mn.js +1 -1
- package/dist/locale/mn.min.js +1 -1
- package/dist/locale/mn.min.mjs +1 -1
- package/dist/locale/mn.mjs +1 -1
- package/dist/locale/nb-no.js +1 -1
- package/dist/locale/nb-no.min.js +1 -1
- package/dist/locale/nb-no.min.mjs +1 -1
- package/dist/locale/nb-no.mjs +1 -1
- package/dist/locale/nl.js +1 -1
- package/dist/locale/nl.min.js +1 -1
- package/dist/locale/nl.min.mjs +1 -1
- package/dist/locale/nl.mjs +1 -1
- package/dist/locale/pa.js +1 -1
- package/dist/locale/pa.min.js +1 -1
- package/dist/locale/pa.min.mjs +1 -1
- package/dist/locale/pa.mjs +1 -1
- package/dist/locale/pl.js +1 -1
- package/dist/locale/pl.min.js +1 -1
- package/dist/locale/pl.min.mjs +1 -1
- package/dist/locale/pl.mjs +1 -1
- package/dist/locale/pt-br.js +1 -1
- package/dist/locale/pt-br.min.js +1 -1
- package/dist/locale/pt-br.min.mjs +1 -1
- package/dist/locale/pt-br.mjs +1 -1
- package/dist/locale/pt.js +1 -1
- package/dist/locale/pt.min.js +1 -1
- package/dist/locale/pt.min.mjs +1 -1
- package/dist/locale/pt.mjs +1 -1
- package/dist/locale/ro.js +1 -1
- package/dist/locale/ro.min.js +1 -1
- package/dist/locale/ro.min.mjs +1 -1
- package/dist/locale/ro.mjs +1 -1
- package/dist/locale/ru.js +1 -1
- package/dist/locale/ru.min.js +1 -1
- package/dist/locale/ru.min.mjs +1 -1
- package/dist/locale/ru.mjs +1 -1
- package/dist/locale/sk.js +1 -1
- package/dist/locale/sk.min.js +1 -1
- package/dist/locale/sk.min.mjs +1 -1
- package/dist/locale/sk.mjs +1 -1
- package/dist/locale/sl.js +1 -1
- package/dist/locale/sl.min.js +1 -1
- package/dist/locale/sl.min.mjs +1 -1
- package/dist/locale/sl.mjs +1 -1
- package/dist/locale/sr.js +1 -1
- package/dist/locale/sr.min.js +1 -1
- package/dist/locale/sr.min.mjs +1 -1
- package/dist/locale/sr.mjs +1 -1
- package/dist/locale/sv.js +1 -1
- package/dist/locale/sv.min.js +1 -1
- package/dist/locale/sv.min.mjs +1 -1
- package/dist/locale/sv.mjs +1 -1
- package/dist/locale/ta.js +1 -1
- package/dist/locale/ta.min.js +1 -1
- package/dist/locale/ta.min.mjs +1 -1
- package/dist/locale/ta.mjs +1 -1
- package/dist/locale/th.js +1 -1
- package/dist/locale/th.min.js +1 -1
- package/dist/locale/th.min.mjs +1 -1
- package/dist/locale/th.mjs +1 -1
- package/dist/locale/tk.js +1 -1
- package/dist/locale/tk.min.js +1 -1
- package/dist/locale/tk.min.mjs +1 -1
- package/dist/locale/tk.mjs +1 -1
- package/dist/locale/tr.js +1 -1
- package/dist/locale/tr.min.js +1 -1
- package/dist/locale/tr.min.mjs +1 -1
- package/dist/locale/tr.mjs +1 -1
- package/dist/locale/ug-cn.js +1 -1
- package/dist/locale/ug-cn.min.js +1 -1
- package/dist/locale/ug-cn.min.mjs +1 -1
- package/dist/locale/ug-cn.mjs +1 -1
- package/dist/locale/uk.js +1 -1
- package/dist/locale/uk.min.js +1 -1
- package/dist/locale/uk.min.mjs +1 -1
- package/dist/locale/uk.mjs +1 -1
- package/dist/locale/uz-uz.js +1 -1
- package/dist/locale/uz-uz.min.js +1 -1
- package/dist/locale/uz-uz.min.mjs +1 -1
- package/dist/locale/uz-uz.mjs +1 -1
- package/dist/locale/vi.js +1 -1
- package/dist/locale/vi.min.js +1 -1
- package/dist/locale/vi.min.mjs +1 -1
- package/dist/locale/vi.mjs +1 -1
- package/dist/locale/zh-cn.js +1 -1
- package/dist/locale/zh-cn.min.js +1 -1
- package/dist/locale/zh-cn.min.mjs +1 -1
- package/dist/locale/zh-cn.mjs +1 -1
- package/dist/locale/zh-tw.js +1 -1
- package/dist/locale/zh-tw.min.js +1 -1
- package/dist/locale/zh-tw.min.mjs +1 -1
- package/dist/locale/zh-tw.mjs +1 -1
- package/es/components/backtop/index.d.ts +2 -6
- package/es/components/backtop/index.mjs.map +1 -1
- package/es/components/backtop/src/backtop.d.ts +0 -2
- package/es/components/backtop/src/backtop.mjs.map +1 -1
- package/es/components/backtop/src/backtop.vue.d.ts +5 -10
- package/es/components/backtop/src/backtop2.mjs +6 -52
- package/es/components/backtop/src/backtop2.mjs.map +1 -1
- package/es/components/backtop/src/instance.d.ts +2 -0
- package/es/components/backtop/src/instance.mjs +2 -0
- package/es/components/backtop/src/instance.mjs.map +1 -0
- package/es/components/backtop/src/use-backtop.d.ts +6 -0
- package/es/components/backtop/src/use-backtop.mjs +58 -0
- package/es/components/backtop/src/use-backtop.mjs.map +1 -0
- package/es/components/button/index.d.ts +4 -10
- package/es/components/button/index.mjs.map +1 -1
- package/es/components/button/src/button-group.d.ts +0 -2
- package/es/components/button/src/button-group.mjs.map +1 -1
- package/es/components/button/src/button.d.ts +0 -2
- package/es/components/button/src/button.mjs.map +1 -1
- package/es/components/button/src/button.vue.d.ts +3 -10
- package/es/components/button/src/button2.mjs +5 -46
- package/es/components/button/src/button2.mjs.map +1 -1
- package/es/components/button/src/instance.d.ts +4 -0
- package/es/components/button/src/instance.mjs +2 -0
- package/es/components/button/src/instance.mjs.map +1 -0
- package/es/components/button/src/use-button.d.ts +10 -0
- package/es/components/button/src/use-button.mjs +59 -0
- package/es/components/button/src/use-button.mjs.map +1 -0
- package/es/components/calendar/index.d.ts +16 -25
- package/es/components/calendar/index.mjs.map +1 -1
- package/es/components/calendar/src/calendar.vue.d.ts +15 -25
- package/es/components/calendar/src/date-table.d.ts +0 -2
- package/es/components/calendar/src/date-table.mjs.map +1 -1
- package/es/components/calendar/src/date-table.vue.d.ts +26 -31
- package/es/components/calendar/src/date-table2.mjs +14 -82
- package/es/components/calendar/src/date-table2.mjs.map +1 -1
- package/es/components/calendar/src/instance.d.ts +3 -0
- package/es/components/calendar/src/instance.mjs +2 -0
- package/es/components/calendar/src/instance.mjs.map +1 -0
- package/es/components/calendar/src/use-date-table.d.ts +18 -0
- package/es/components/calendar/src/use-date-table.mjs +96 -0
- package/es/components/calendar/src/use-date-table.mjs.map +1 -0
- package/es/components/color-picker/index.d.ts +3 -10
- package/es/components/color-picker/src/color-picker.vue.d.ts +3 -10
- package/es/components/date-picker/src/date-picker-com/panel-date-pick.vue.d.ts +3 -10
- package/es/components/date-picker/src/date-picker-com/panel-date-range.vue.d.ts +3 -10
- package/es/components/date-picker/src/panel-utils.d.ts +6 -20
- package/es/components/index.mjs +4 -4
- package/es/components/menu/src/menu-item2.mjs +1 -1
- package/es/components/message/index.mjs +1 -1
- package/es/components/message/src/message.mjs +146 -86
- package/es/components/message/src/message.mjs.map +1 -1
- package/es/components/message/src/message2.mjs +86 -146
- package/es/components/message/src/message2.mjs.map +1 -1
- package/es/components/message/src/method.mjs +2 -2
- package/es/components/popconfirm/index.d.ts +3 -10
- package/es/components/popconfirm/src/popconfirm.vue.d.ts +3 -10
- package/es/components/popper/index.mjs +4 -4
- package/es/components/popper/src/arrow.mjs +37 -8
- package/es/components/popper/src/arrow.mjs.map +1 -1
- package/es/components/popper/src/arrow2.mjs +8 -37
- package/es/components/popper/src/arrow2.mjs.map +1 -1
- package/es/components/popper/src/popper.mjs +33 -25
- package/es/components/popper/src/popper.mjs.map +1 -1
- package/es/components/popper/src/popper2.mjs +25 -33
- package/es/components/popper/src/popper2.mjs.map +1 -1
- package/es/components/skeleton/index.d.ts +1 -1
- package/es/components/skeleton/src/skeleton.vue.d.ts +1 -1
- package/es/components/tooltip/src/tooltip.mjs +2 -2
- package/es/components/tooltip/src/tooltip2.mjs +1 -1
- package/es/components/transfer/index.d.ts +3 -10
- package/es/components/transfer/src/transfer.vue.d.ts +3 -10
- package/es/index.mjs +4 -4
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/components/backtop/index.d.ts +2 -6
- package/lib/components/backtop/index.js.map +1 -1
- package/lib/components/backtop/src/backtop.d.ts +0 -2
- package/lib/components/backtop/src/backtop.js.map +1 -1
- package/lib/components/backtop/src/backtop.vue.d.ts +5 -10
- package/lib/components/backtop/src/backtop2.js +5 -51
- package/lib/components/backtop/src/backtop2.js.map +1 -1
- package/lib/components/backtop/src/instance.d.ts +2 -0
- package/lib/components/backtop/src/instance.js +3 -0
- package/lib/components/backtop/src/instance.js.map +1 -0
- package/lib/components/backtop/src/use-backtop.d.ts +6 -0
- package/lib/components/backtop/src/use-backtop.js +62 -0
- package/lib/components/backtop/src/use-backtop.js.map +1 -0
- package/lib/components/button/index.d.ts +4 -10
- package/lib/components/button/index.js.map +1 -1
- package/lib/components/button/src/button-group.d.ts +0 -2
- package/lib/components/button/src/button-group.js.map +1 -1
- package/lib/components/button/src/button.d.ts +0 -2
- package/lib/components/button/src/button.js.map +1 -1
- package/lib/components/button/src/button.vue.d.ts +3 -10
- package/lib/components/button/src/button2.js +8 -49
- package/lib/components/button/src/button2.js.map +1 -1
- package/lib/components/button/src/instance.d.ts +4 -0
- package/lib/components/button/src/instance.js +3 -0
- package/lib/components/button/src/instance.js.map +1 -0
- package/lib/components/button/src/use-button.d.ts +10 -0
- package/lib/components/button/src/use-button.js +63 -0
- package/lib/components/button/src/use-button.js.map +1 -0
- package/lib/components/calendar/index.d.ts +16 -25
- package/lib/components/calendar/index.js.map +1 -1
- package/lib/components/calendar/src/calendar.vue.d.ts +15 -25
- package/lib/components/calendar/src/date-table.d.ts +0 -2
- package/lib/components/calendar/src/date-table.js.map +1 -1
- package/lib/components/calendar/src/date-table.vue.d.ts +26 -31
- package/lib/components/calendar/src/date-table2.js +15 -88
- package/lib/components/calendar/src/date-table2.js.map +1 -1
- package/lib/components/calendar/src/instance.d.ts +3 -0
- package/lib/components/calendar/src/instance.js +3 -0
- package/lib/components/calendar/src/instance.js.map +1 -0
- package/lib/components/calendar/src/use-date-table.d.ts +18 -0
- package/lib/components/calendar/src/use-date-table.js +105 -0
- package/lib/components/calendar/src/use-date-table.js.map +1 -0
- package/lib/components/color-picker/index.d.ts +3 -10
- package/lib/components/color-picker/src/color-picker.vue.d.ts +3 -10
- package/lib/components/date-picker/src/date-picker-com/panel-date-pick.vue.d.ts +3 -10
- package/lib/components/date-picker/src/date-picker-com/panel-date-range.vue.d.ts +3 -10
- package/lib/components/date-picker/src/panel-utils.d.ts +6 -20
- package/lib/components/index.js +4 -4
- package/lib/components/menu/src/menu-item2.js +1 -1
- package/lib/components/message/index.js +1 -1
- package/lib/components/message/src/message.js +144 -87
- package/lib/components/message/src/message.js.map +1 -1
- package/lib/components/message/src/message2.js +87 -144
- package/lib/components/message/src/message2.js.map +1 -1
- package/lib/components/message/src/method.js +2 -2
- package/lib/components/popconfirm/index.d.ts +3 -10
- package/lib/components/popconfirm/src/popconfirm.vue.d.ts +3 -10
- package/lib/components/popper/index.js +4 -4
- package/lib/components/popper/src/arrow.js +37 -9
- package/lib/components/popper/src/arrow.js.map +1 -1
- package/lib/components/popper/src/arrow2.js +9 -37
- package/lib/components/popper/src/arrow2.js.map +1 -1
- package/lib/components/popper/src/popper.js +33 -28
- package/lib/components/popper/src/popper.js.map +1 -1
- package/lib/components/popper/src/popper2.js +28 -33
- package/lib/components/popper/src/popper2.js.map +1 -1
- package/lib/components/skeleton/index.d.ts +1 -1
- package/lib/components/skeleton/src/skeleton.vue.d.ts +1 -1
- package/lib/components/tooltip/src/tooltip.js +2 -2
- package/lib/components/tooltip/src/tooltip2.js +1 -1
- package/lib/components/transfer/index.d.ts +3 -10
- package/lib/components/transfer/src/transfer.vue.d.ts +3 -10
- package/lib/index.js +4 -4
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- package/package.json +2 -2
- package/web-types.json +1 -1
|
@@ -3,22 +3,11 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var vue = require('vue');
|
|
6
|
-
var dayjs = require('dayjs');
|
|
7
|
-
var localeData = require('dayjs/plugin/localeData.js');
|
|
8
6
|
require('../../../hooks/index.js');
|
|
9
|
-
require('../../time-picker/index.js');
|
|
10
|
-
require('../../../constants/index.js');
|
|
11
7
|
var dateTable = require('./date-table.js');
|
|
8
|
+
var useDateTable = require('./use-date-table.js');
|
|
12
9
|
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
|
13
|
-
var index = require('../../../hooks/use-
|
|
14
|
-
var index$1 = require('../../../hooks/use-namespace/index.js');
|
|
15
|
-
var utils = require('../../time-picker/src/utils.js');
|
|
16
|
-
var date = require('../../../constants/date.js');
|
|
17
|
-
|
|
18
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
19
|
-
|
|
20
|
-
var dayjs__default = /*#__PURE__*/_interopDefaultLegacy(dayjs);
|
|
21
|
-
var localeData__default = /*#__PURE__*/_interopDefaultLegacy(localeData);
|
|
10
|
+
var index = require('../../../hooks/use-namespace/index.js');
|
|
22
11
|
|
|
23
12
|
const _hoisted_1 = { key: 0 };
|
|
24
13
|
const _hoisted_2 = ["onClick"];
|
|
@@ -31,66 +20,17 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
31
20
|
emits: dateTable.dateTableEmits,
|
|
32
21
|
setup(__props, { expose, emit }) {
|
|
33
22
|
const props = __props;
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
const currentMonthRange = utils.rangeArr(end.date() - start.date() + 1).map((index) => ({
|
|
46
|
-
text: start.date() + index,
|
|
47
|
-
type: "current"
|
|
48
|
-
}));
|
|
49
|
-
let remaining = currentMonthRange.length % 7;
|
|
50
|
-
remaining = remaining === 0 ? 0 : 7 - remaining;
|
|
51
|
-
const nextMonthRange = utils.rangeArr(remaining).map((_, index) => ({
|
|
52
|
-
text: index + 1,
|
|
53
|
-
type: "next"
|
|
54
|
-
}));
|
|
55
|
-
days = currentMonthRange.concat(nextMonthRange);
|
|
56
|
-
} else {
|
|
57
|
-
const firstDay = props.date.startOf("month").day();
|
|
58
|
-
const prevMonthDays = dateTable.getPrevMonthLastDays(props.date, (firstDay - firstDayOfWeek + 7) % 7).map((day) => ({
|
|
59
|
-
text: day,
|
|
60
|
-
type: "prev"
|
|
61
|
-
}));
|
|
62
|
-
const currentMonthDays = dateTable.getMonthDays(props.date).map((day) => ({
|
|
63
|
-
text: day,
|
|
64
|
-
type: "current"
|
|
65
|
-
}));
|
|
66
|
-
days = [...prevMonthDays, ...currentMonthDays];
|
|
67
|
-
const remaining = 7 - (days.length % 7 || 7);
|
|
68
|
-
const nextMonthDays = utils.rangeArr(remaining).map((_, index) => ({
|
|
69
|
-
text: index + 1,
|
|
70
|
-
type: "next"
|
|
71
|
-
}));
|
|
72
|
-
days = days.concat(nextMonthDays);
|
|
73
|
-
}
|
|
74
|
-
return dateTable.toNestedArr(days);
|
|
75
|
-
});
|
|
76
|
-
const weekDays = vue.computed(() => {
|
|
77
|
-
const start = firstDayOfWeek;
|
|
78
|
-
if (start === 0) {
|
|
79
|
-
return date.WEEK_DAYS.map((_) => t(`el.datepicker.weeks.${_}`));
|
|
80
|
-
} else {
|
|
81
|
-
return date.WEEK_DAYS.slice(start).concat(date.WEEK_DAYS.slice(0, start)).map((_) => t(`el.datepicker.weeks.${_}`));
|
|
82
|
-
}
|
|
83
|
-
});
|
|
84
|
-
const getFormattedDate = (day, type) => {
|
|
85
|
-
switch (type) {
|
|
86
|
-
case "prev":
|
|
87
|
-
return props.date.startOf("month").subtract(1, "month").date(day);
|
|
88
|
-
case "next":
|
|
89
|
-
return props.date.startOf("month").add(1, "month").date(day);
|
|
90
|
-
case "current":
|
|
91
|
-
return props.date.date(day);
|
|
92
|
-
}
|
|
93
|
-
};
|
|
23
|
+
const {
|
|
24
|
+
isInRange,
|
|
25
|
+
now,
|
|
26
|
+
rows,
|
|
27
|
+
weekDays,
|
|
28
|
+
getFormattedDate,
|
|
29
|
+
handlePickDay,
|
|
30
|
+
getSlotData
|
|
31
|
+
} = useDateTable.useDateTable(props, emit);
|
|
32
|
+
const nsTable = index.useNamespace("calendar-table");
|
|
33
|
+
const nsDay = index.useNamespace("calendar-day");
|
|
94
34
|
const getCellClass = ({ text, type }) => {
|
|
95
35
|
const classes = [type];
|
|
96
36
|
if (type === "current") {
|
|
@@ -104,19 +44,6 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
104
44
|
}
|
|
105
45
|
return classes;
|
|
106
46
|
};
|
|
107
|
-
const handlePickDay = ({ text, type }) => {
|
|
108
|
-
const date = getFormattedDate(text, type);
|
|
109
|
-
emit("pick", date);
|
|
110
|
-
};
|
|
111
|
-
const getSlotData = ({ text, type }) => {
|
|
112
|
-
const day = getFormattedDate(text, type);
|
|
113
|
-
return {
|
|
114
|
-
isSelected: day.isSame(props.selectedDay),
|
|
115
|
-
type: `${type}-month`,
|
|
116
|
-
day: day.format("YYYY-MM-DD"),
|
|
117
|
-
date: day.toDate()
|
|
118
|
-
};
|
|
119
|
-
};
|
|
120
47
|
expose({
|
|
121
48
|
getFormattedDate
|
|
122
49
|
});
|
|
@@ -144,13 +71,13 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
144
71
|
return vue.openBlock(), vue.createElementBlock("td", {
|
|
145
72
|
key,
|
|
146
73
|
class: vue.normalizeClass(getCellClass(cell)),
|
|
147
|
-
onClick: ($event) => handlePickDay(cell)
|
|
74
|
+
onClick: ($event) => vue.unref(handlePickDay)(cell)
|
|
148
75
|
}, [
|
|
149
76
|
vue.createElementVNode("div", {
|
|
150
77
|
class: vue.normalizeClass(vue.unref(nsDay).b())
|
|
151
78
|
}, [
|
|
152
79
|
vue.renderSlot(_ctx.$slots, "date-cell", {
|
|
153
|
-
data: getSlotData(cell)
|
|
80
|
+
data: vue.unref(getSlotData)(cell)
|
|
154
81
|
}, () => [
|
|
155
82
|
vue.createElementVNode("span", null, vue.toDisplayString(cell.text), 1)
|
|
156
83
|
])
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"date-table2.js","sources":["../../../../../../packages/components/calendar/src/date-table.vue"],"sourcesContent":["<template>\n <table\n :class=\"[nsTable.b(), nsTable.is('range', isInRange)]\"\n cellspacing=\"0\"\n cellpadding=\"0\"\n >\n <thead v-if=\"!hideHeader\">\n <th v-for=\"day in weekDays\" :key=\"day\">{{ day }}</th>\n </thead>\n\n <tbody>\n <tr\n v-for=\"(row, index) in rows\"\n :key=\"index\"\n :class=\"{\n [nsTable.e('row')]: true,\n [nsTable.em('row', 'hide-border')]: index === 0 && hideHeader,\n }\"\n >\n <td\n v-for=\"(cell, key) in row\"\n :key=\"key\"\n :class=\"getCellClass(cell)\"\n @click=\"handlePickDay(cell)\"\n >\n <div :class=\"nsDay.b()\">\n <slot name=\"date-cell\" :data=\"getSlotData(cell)\">\n <span>{{ cell.text }}</span>\n </slot>\n </div>\n </td>\n </tr>\n </tbody>\n </table>\n</template>\n\n<script lang=\"ts\" setup>\nimport {
|
|
1
|
+
{"version":3,"file":"date-table2.js","sources":["../../../../../../packages/components/calendar/src/date-table.vue"],"sourcesContent":["<template>\n <table\n :class=\"[nsTable.b(), nsTable.is('range', isInRange)]\"\n cellspacing=\"0\"\n cellpadding=\"0\"\n >\n <thead v-if=\"!hideHeader\">\n <th v-for=\"day in weekDays\" :key=\"day\">{{ day }}</th>\n </thead>\n\n <tbody>\n <tr\n v-for=\"(row, index) in rows\"\n :key=\"index\"\n :class=\"{\n [nsTable.e('row')]: true,\n [nsTable.em('row', 'hide-border')]: index === 0 && hideHeader,\n }\"\n >\n <td\n v-for=\"(cell, key) in row\"\n :key=\"key\"\n :class=\"getCellClass(cell)\"\n @click=\"handlePickDay(cell)\"\n >\n <div :class=\"nsDay.b()\">\n <slot name=\"date-cell\" :data=\"getSlotData(cell)\">\n <span>{{ cell.text }}</span>\n </slot>\n </div>\n </td>\n </tr>\n </tbody>\n </table>\n</template>\n\n<script lang=\"ts\" setup>\nimport { useNamespace } from '@element-plus/hooks'\nimport { dateTableEmits, dateTableProps } from './date-table'\nimport { useDateTable } from './use-date-table'\n\nimport type { CalendarDateCell } from './date-table'\n\ndefineOptions({\n name: 'DateTable',\n})\n\nconst props = defineProps(dateTableProps)\nconst emit = defineEmits(dateTableEmits)\n\nconst {\n isInRange,\n now,\n rows,\n weekDays,\n getFormattedDate,\n handlePickDay,\n getSlotData,\n} = useDateTable(props, emit)\n\nconst nsTable = useNamespace('calendar-table')\nconst nsDay = useNamespace('calendar-day')\n\nconst getCellClass = ({ text, type }: CalendarDateCell) => {\n const classes: string[] = [type]\n if (type === 'current') {\n const date = getFormattedDate(text, type)\n if (date.isSame(props.selectedDay, 'day')) {\n classes.push(nsDay.is('selected'))\n }\n if (date.isSame(now, 'day')) {\n classes.push(nsDay.is('today'))\n }\n }\n return classes\n}\n\ndefineExpose({\n /** @description toggle date panel */\n getFormattedDate,\n})\n</script>\n"],"names":["useDateTable","useNamespace"],"mappings":";;;;;;;;;;;;;uCA2Cc,CAAA;AAAA,EACZ,IAAM,EAAA,WAAA;AACR,CAAA,CAAA,CAAA;;;;;;;AAKA,IAAM,MAAA;AAAA,MACJ,SAAA;AAAA,MACA,GAAA;AAAA,MACA,IAAA;AAAA,MACA,QAAA;AAAA,MACA,gBAAA;AAAA,MACA,aAAA;AAAA,MACA,WAAA;AAAA,KACE,GAAAA,yBAAA,CAAa,OAAO,IAAI,CAAA,CAAA;AAE5B,IAAM,MAAA,OAAA,GAAUC,mBAAa,gBAAgB,CAAA,CAAA;AAC7C,IAAM,MAAA,KAAA,GAAQA,mBAAa,cAAc,CAAA,CAAA;AAEzC,IAAA,MAAM,YAAe,GAAA,CAAC,EAAE,IAAA,EAAM,IAA6B,EAAA,KAAA;AACzD,MAAM,MAAA,OAAA,GAAoB,CAAC,IAAI,CAAA,CAAA;AAC/B,MAAA,IAAI,SAAS,SAAW,EAAA;AACtB,QAAM,MAAA,IAAA,GAAO,gBAAiB,CAAA,IAAA,EAAM,IAAI,CAAA,CAAA;AACxC,QAAA,IAAI,IAAK,CAAA,MAAA,CAAO,KAAM,CAAA,WAAA,EAAa,KAAK,CAAG,EAAA;AACzC,UAAA,OAAA,CAAQ,IAAK,CAAA,KAAA,CAAM,EAAG,CAAA,UAAU,CAAC,CAAA,CAAA;AAAA,SACnC;AACA,QAAA,IAAI,IAAK,CAAA,MAAA,CAAO,GAAK,EAAA,KAAK,CAAG,EAAA;AAC3B,UAAA,OAAA,CAAQ,IAAK,CAAA,KAAA,CAAM,EAAG,CAAA,OAAO,CAAC,CAAA,CAAA;AAAA,SAChC;AAAA,OACF;AACA,MAAO,OAAA,OAAA,CAAA;AAAA,KACT,CAAA;AAEA,IAAa,MAAA,CAAA;AAAA,MAEX,gBAAA;AAAA,KACD,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"instance.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import dayjs from 'dayjs';
|
|
2
|
+
import type { SetupContext } from 'vue';
|
|
3
|
+
import type { Dayjs } from 'dayjs';
|
|
4
|
+
import type { CalendarDateCell, CalendarDateCellType, DateTableEmits, DateTableProps } from './date-table';
|
|
5
|
+
export declare const useDateTable: (props: DateTableProps, emit: SetupContext<DateTableEmits>['emit']) => {
|
|
6
|
+
now: dayjs.Dayjs;
|
|
7
|
+
isInRange: import("vue").ComputedRef<boolean>;
|
|
8
|
+
rows: import("vue").ComputedRef<CalendarDateCell[][]>;
|
|
9
|
+
weekDays: import("vue").ComputedRef<string[]>;
|
|
10
|
+
getFormattedDate: (day: number, type: CalendarDateCellType) => Dayjs;
|
|
11
|
+
handlePickDay: ({ text, type }: CalendarDateCell) => void;
|
|
12
|
+
getSlotData: ({ text, type }: CalendarDateCell) => {
|
|
13
|
+
isSelected: boolean;
|
|
14
|
+
type: string;
|
|
15
|
+
day: string;
|
|
16
|
+
date: Date;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var vue = require('vue');
|
|
6
|
+
var dayjs = require('dayjs');
|
|
7
|
+
var localeData = require('dayjs/plugin/localeData.js');
|
|
8
|
+
require('../../../hooks/index.js');
|
|
9
|
+
require('../../time-picker/index.js');
|
|
10
|
+
require('../../../constants/index.js');
|
|
11
|
+
var dateTable = require('./date-table.js');
|
|
12
|
+
var index = require('../../../hooks/use-locale/index.js');
|
|
13
|
+
var utils = require('../../time-picker/src/utils.js');
|
|
14
|
+
var date = require('../../../constants/date.js');
|
|
15
|
+
|
|
16
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
17
|
+
|
|
18
|
+
var dayjs__default = /*#__PURE__*/_interopDefaultLegacy(dayjs);
|
|
19
|
+
var localeData__default = /*#__PURE__*/_interopDefaultLegacy(localeData);
|
|
20
|
+
|
|
21
|
+
const useDateTable = (props, emit) => {
|
|
22
|
+
dayjs__default["default"].extend(localeData__default["default"]);
|
|
23
|
+
const firstDayOfWeek = dayjs__default["default"].localeData().firstDayOfWeek();
|
|
24
|
+
const { t, lang } = index.useLocale();
|
|
25
|
+
const now = dayjs__default["default"]().locale(lang.value);
|
|
26
|
+
const isInRange = vue.computed(() => !!props.range && !!props.range.length);
|
|
27
|
+
const rows = vue.computed(() => {
|
|
28
|
+
let days = [];
|
|
29
|
+
if (isInRange.value) {
|
|
30
|
+
const [start, end] = props.range;
|
|
31
|
+
const currentMonthRange = utils.rangeArr(end.date() - start.date() + 1).map((index) => ({
|
|
32
|
+
text: start.date() + index,
|
|
33
|
+
type: "current"
|
|
34
|
+
}));
|
|
35
|
+
let remaining = currentMonthRange.length % 7;
|
|
36
|
+
remaining = remaining === 0 ? 0 : 7 - remaining;
|
|
37
|
+
const nextMonthRange = utils.rangeArr(remaining).map((_, index) => ({
|
|
38
|
+
text: index + 1,
|
|
39
|
+
type: "next"
|
|
40
|
+
}));
|
|
41
|
+
days = currentMonthRange.concat(nextMonthRange);
|
|
42
|
+
} else {
|
|
43
|
+
const firstDay = props.date.startOf("month").day();
|
|
44
|
+
const prevMonthDays = dateTable.getPrevMonthLastDays(props.date, (firstDay - firstDayOfWeek + 7) % 7).map((day) => ({
|
|
45
|
+
text: day,
|
|
46
|
+
type: "prev"
|
|
47
|
+
}));
|
|
48
|
+
const currentMonthDays = dateTable.getMonthDays(props.date).map((day) => ({
|
|
49
|
+
text: day,
|
|
50
|
+
type: "current"
|
|
51
|
+
}));
|
|
52
|
+
days = [...prevMonthDays, ...currentMonthDays];
|
|
53
|
+
const remaining = 7 - (days.length % 7 || 7);
|
|
54
|
+
const nextMonthDays = utils.rangeArr(remaining).map((_, index) => ({
|
|
55
|
+
text: index + 1,
|
|
56
|
+
type: "next"
|
|
57
|
+
}));
|
|
58
|
+
days = days.concat(nextMonthDays);
|
|
59
|
+
}
|
|
60
|
+
return dateTable.toNestedArr(days);
|
|
61
|
+
});
|
|
62
|
+
const weekDays = vue.computed(() => {
|
|
63
|
+
const start = firstDayOfWeek;
|
|
64
|
+
if (start === 0) {
|
|
65
|
+
return date.WEEK_DAYS.map((_) => t(`el.datepicker.weeks.${_}`));
|
|
66
|
+
} else {
|
|
67
|
+
return date.WEEK_DAYS.slice(start).concat(date.WEEK_DAYS.slice(0, start)).map((_) => t(`el.datepicker.weeks.${_}`));
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
const getFormattedDate = (day, type) => {
|
|
71
|
+
switch (type) {
|
|
72
|
+
case "prev":
|
|
73
|
+
return props.date.startOf("month").subtract(1, "month").date(day);
|
|
74
|
+
case "next":
|
|
75
|
+
return props.date.startOf("month").add(1, "month").date(day);
|
|
76
|
+
case "current":
|
|
77
|
+
return props.date.date(day);
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
const handlePickDay = ({ text, type }) => {
|
|
81
|
+
const date = getFormattedDate(text, type);
|
|
82
|
+
emit("pick", date);
|
|
83
|
+
};
|
|
84
|
+
const getSlotData = ({ text, type }) => {
|
|
85
|
+
const day = getFormattedDate(text, type);
|
|
86
|
+
return {
|
|
87
|
+
isSelected: day.isSame(props.selectedDay),
|
|
88
|
+
type: `${type}-month`,
|
|
89
|
+
day: day.format("YYYY-MM-DD"),
|
|
90
|
+
date: day.toDate()
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
return {
|
|
94
|
+
now,
|
|
95
|
+
isInRange,
|
|
96
|
+
rows,
|
|
97
|
+
weekDays,
|
|
98
|
+
getFormattedDate,
|
|
99
|
+
handlePickDay,
|
|
100
|
+
getSlotData
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
exports.useDateTable = useDateTable;
|
|
105
|
+
//# sourceMappingURL=use-date-table.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-date-table.js","sources":["../../../../../../packages/components/calendar/src/use-date-table.ts"],"sourcesContent":["import { computed } from 'vue'\nimport dayjs from 'dayjs'\nimport localeData from 'dayjs/plugin/localeData.js'\nimport { useLocale } from '@element-plus/hooks'\nimport { rangeArr } from '@element-plus/components/time-picker'\nimport { WEEK_DAYS } from '@element-plus/constants'\nimport { getMonthDays, getPrevMonthLastDays, toNestedArr } from './date-table'\n\nimport type { SetupContext } from 'vue'\nimport type { Dayjs } from 'dayjs'\nimport type {\n CalendarDateCell,\n CalendarDateCellType,\n DateTableEmits,\n DateTableProps,\n} from './date-table'\n\nexport const useDateTable = (\n props: DateTableProps,\n emit: SetupContext<DateTableEmits>['emit']\n) => {\n dayjs.extend(localeData)\n // https://day.js.org/docs/en/i18n/locale-data\n const firstDayOfWeek: number = dayjs.localeData().firstDayOfWeek()\n\n const { t, lang } = useLocale()\n const now = dayjs().locale(lang.value)\n\n const isInRange = computed(() => !!props.range && !!props.range.length)\n\n const rows = computed(() => {\n let days: CalendarDateCell[] = []\n if (isInRange.value) {\n const [start, end] = props.range!\n const currentMonthRange: CalendarDateCell[] = rangeArr(\n end.date() - start.date() + 1\n ).map((index) => ({\n text: start.date() + index,\n type: 'current',\n }))\n\n let remaining = currentMonthRange.length % 7\n remaining = remaining === 0 ? 0 : 7 - remaining\n const nextMonthRange: CalendarDateCell[] = rangeArr(remaining).map(\n (_, index) => ({\n text: index + 1,\n type: 'next',\n })\n )\n days = currentMonthRange.concat(nextMonthRange)\n } else {\n const firstDay = props.date.startOf('month').day()\n const prevMonthDays: CalendarDateCell[] = getPrevMonthLastDays(\n props.date,\n (firstDay - firstDayOfWeek + 7) % 7\n ).map((day) => ({\n text: day,\n type: 'prev',\n }))\n const currentMonthDays: CalendarDateCell[] = getMonthDays(props.date).map(\n (day) => ({\n text: day,\n type: 'current',\n })\n )\n days = [...prevMonthDays, ...currentMonthDays]\n const remaining = 7 - (days.length % 7 || 7)\n const nextMonthDays: CalendarDateCell[] = rangeArr(remaining).map(\n (_, index) => ({\n text: index + 1,\n type: 'next',\n })\n )\n days = days.concat(nextMonthDays)\n }\n return toNestedArr(days)\n })\n\n const weekDays = computed(() => {\n const start = firstDayOfWeek\n if (start === 0) {\n return WEEK_DAYS.map((_) => t(`el.datepicker.weeks.${_}`))\n } else {\n return WEEK_DAYS.slice(start)\n .concat(WEEK_DAYS.slice(0, start))\n .map((_) => t(`el.datepicker.weeks.${_}`))\n }\n })\n\n const getFormattedDate = (day: number, type: CalendarDateCellType): Dayjs => {\n switch (type) {\n case 'prev':\n return props.date.startOf('month').subtract(1, 'month').date(day)\n case 'next':\n return props.date.startOf('month').add(1, 'month').date(day)\n case 'current':\n return props.date.date(day)\n }\n }\n\n const handlePickDay = ({ text, type }: CalendarDateCell) => {\n const date = getFormattedDate(text, type)\n emit('pick', date)\n }\n\n const getSlotData = ({ text, type }: CalendarDateCell) => {\n const day = getFormattedDate(text, type)\n return {\n isSelected: day.isSame(props.selectedDay),\n type: `${type}-month`,\n day: day.format('YYYY-MM-DD'),\n date: day.toDate(),\n }\n }\n\n return {\n now,\n isInRange,\n rows,\n weekDays,\n getFormattedDate,\n handlePickDay,\n getSlotData,\n }\n}\n"],"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G,CAAC,CAAC;AACpC,KAAK;AACL,GAAG,CAAC;AACJ,EAAE,MAAM,aAAa,GAAG,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK;AAC5C,IAAI,MAAM,IAAI,GAAG,gBAAgB,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;AAC9C,IAAI,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;AACvB,GAAG,CAAC;AACJ,EAAE,MAAM,WAAW,GAAG,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK;AAC1C,IAAI,MAAM,GAAG,GAAG,gBAAgB,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;AAC7C,IAAI,OAAO;AACX,MAAM,UAAU,EAAE,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,WAAW,CAAC;AAC/C,MAAM,IAAI,EAAE,CAAC,EAAE,IAAI,CAAC,MAAM,CAAC;AAC3B,MAAM,GAAG,EAAE,GAAG,CAAC,MAAM,CAAC,YAAY,CAAC;AACnC,MAAM,IAAI,EAAE,GAAG,CAAC,MAAM,EAAE;AACxB,KAAK,CAAC;AACN,GAAG,CAAC;AACJ,EAAE,OAAO;AACT,IAAI,GAAG;AACP,IAAI,SAAS;AACb,IAAI,IAAI;AACR,IAAI,QAAQ;AACZ,IAAI,gBAAgB;AACpB,IAAI,aAAa;AACjB,IAAI,WAAW;AACf,GAAG,CAAC;AACJ;;;;"}
|
|
@@ -6559,11 +6559,7 @@ export declare const ElColorPicker: import("element-plus/es/utils").SFCWithInsta
|
|
|
6559
6559
|
onClick?: ((evt: MouseEvent) => any) | undefined;
|
|
6560
6560
|
}>>;
|
|
6561
6561
|
emit: (event: "click", evt: MouseEvent) => void;
|
|
6562
|
-
|
|
6563
|
-
[name: string]: import("vue").Slot | undefined;
|
|
6564
|
-
}>;
|
|
6565
|
-
buttonGroupContext: import("../..").ButtonGroupContext | undefined;
|
|
6566
|
-
globalConfig: import("vue").Ref<import("..").ButtonConfigContext | undefined>;
|
|
6562
|
+
buttonStyle: import("vue").ComputedRef<Record<string, string>>;
|
|
6567
6563
|
ns: {
|
|
6568
6564
|
namespace: import("vue").Ref<string>;
|
|
6569
6565
|
b: (blockSuffix?: string) => string;
|
|
@@ -6582,14 +6578,11 @@ export declare const ElColorPicker: import("element-plus/es/utils").SFCWithInsta
|
|
|
6582
6578
|
cssVarBlock: (object: Record<string, string>) => Record<string, string>;
|
|
6583
6579
|
cssVarBlockName: (name: string) => string;
|
|
6584
6580
|
};
|
|
6585
|
-
form: import("../..").FormContext | undefined;
|
|
6586
|
-
_size: import("vue").ComputedRef<"" | "default" | "small" | "large">;
|
|
6587
|
-
_disabled: import("vue").ComputedRef<boolean>;
|
|
6588
6581
|
_ref: import("vue").Ref<HTMLButtonElement | undefined>;
|
|
6582
|
+
_size: import("vue").ComputedRef<"" | "default" | "small" | "large">;
|
|
6589
6583
|
_type: import("vue").ComputedRef<"" | "default" | "primary" | "success" | "warning" | "info" | "danger" | "text">;
|
|
6590
|
-
|
|
6584
|
+
_disabled: import("vue").ComputedRef<boolean>;
|
|
6591
6585
|
shouldAddSpace: import("vue").ComputedRef<boolean>;
|
|
6592
|
-
buttonStyle: import("vue").ComputedRef<Record<string, string>>;
|
|
6593
6586
|
handleClick: (evt: MouseEvent) => void;
|
|
6594
6587
|
ElIcon: import("element-plus/es/utils").SFCWithInstall<import("vue").DefineComponent<{
|
|
6595
6588
|
readonly size: {
|
|
@@ -6561,11 +6561,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
6561
6561
|
onClick?: ((evt: MouseEvent) => any) | undefined;
|
|
6562
6562
|
}>>;
|
|
6563
6563
|
emit: (event: "click", evt: MouseEvent) => void;
|
|
6564
|
-
|
|
6565
|
-
[name: string]: import("vue").Slot | undefined;
|
|
6566
|
-
}>;
|
|
6567
|
-
buttonGroupContext: import("../../..").ButtonGroupContext | undefined;
|
|
6568
|
-
globalConfig: import("vue").Ref<import("element-plus/es/components/button").ButtonConfigContext | undefined>;
|
|
6564
|
+
buttonStyle: import("vue").ComputedRef<Record<string, string>>;
|
|
6569
6565
|
ns: {
|
|
6570
6566
|
namespace: import("vue").Ref<string>;
|
|
6571
6567
|
b: (blockSuffix?: string) => string;
|
|
@@ -6584,14 +6580,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
6584
6580
|
cssVarBlock: (object: Record<string, string>) => Record<string, string>;
|
|
6585
6581
|
cssVarBlockName: (name: string) => string;
|
|
6586
6582
|
};
|
|
6587
|
-
form: import("../../..").FormContext | undefined;
|
|
6588
|
-
_size: import("vue").ComputedRef<"" | "default" | "small" | "large">;
|
|
6589
|
-
_disabled: import("vue").ComputedRef<boolean>;
|
|
6590
6583
|
_ref: import("vue").Ref<HTMLButtonElement | undefined>;
|
|
6584
|
+
_size: import("vue").ComputedRef<"" | "default" | "small" | "large">;
|
|
6591
6585
|
_type: import("vue").ComputedRef<"" | "default" | "primary" | "success" | "warning" | "info" | "danger" | "text">;
|
|
6592
|
-
|
|
6586
|
+
_disabled: import("vue").ComputedRef<boolean>;
|
|
6593
6587
|
shouldAddSpace: import("vue").ComputedRef<boolean>;
|
|
6594
|
-
buttonStyle: import("vue").ComputedRef<Record<string, string>>;
|
|
6595
6588
|
handleClick: (evt: MouseEvent) => void;
|
|
6596
6589
|
ElIcon: import("element-plus/es/utils").SFCWithInstall<import("vue").DefineComponent<{
|
|
6597
6590
|
readonly size: {
|
|
@@ -293,11 +293,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
293
293
|
onClick?: ((evt: MouseEvent) => any) | undefined;
|
|
294
294
|
}>>;
|
|
295
295
|
emit: (event: "click", evt: MouseEvent) => void;
|
|
296
|
-
|
|
297
|
-
[name: string]: import("vue").Slot | undefined;
|
|
298
|
-
}>;
|
|
299
|
-
buttonGroupContext: import("element-plus/es/tokens").ButtonGroupContext | undefined;
|
|
300
|
-
globalConfig: import("vue").Ref<import("element-plus/es/components/button").ButtonConfigContext | undefined>;
|
|
296
|
+
buttonStyle: import("vue").ComputedRef<Record<string, string>>;
|
|
301
297
|
ns: {
|
|
302
298
|
namespace: import("vue").Ref<string>;
|
|
303
299
|
b: (blockSuffix?: string) => string;
|
|
@@ -316,14 +312,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
316
312
|
cssVarBlock: (object: Record<string, string>) => Record<string, string>;
|
|
317
313
|
cssVarBlockName: (name: string) => string;
|
|
318
314
|
};
|
|
319
|
-
form: import("element-plus/es/tokens").FormContext | undefined;
|
|
320
|
-
_size: import("vue").ComputedRef<"" | "default" | "small" | "large">;
|
|
321
|
-
_disabled: import("vue").ComputedRef<boolean>;
|
|
322
315
|
_ref: import("vue").Ref<HTMLButtonElement | undefined>;
|
|
316
|
+
_size: import("vue").ComputedRef<"" | "default" | "small" | "large">;
|
|
323
317
|
_type: import("vue").ComputedRef<"" | "default" | "primary" | "success" | "warning" | "info" | "danger" | "text">;
|
|
324
|
-
|
|
318
|
+
_disabled: import("vue").ComputedRef<boolean>;
|
|
325
319
|
shouldAddSpace: import("vue").ComputedRef<boolean>;
|
|
326
|
-
buttonStyle: import("vue").ComputedRef<Record<string, string>>;
|
|
327
320
|
handleClick: (evt: MouseEvent) => void;
|
|
328
321
|
ElIcon: import("element-plus/es/utils").SFCWithInstall<import("vue").DefineComponent<{
|
|
329
322
|
readonly size: {
|
|
@@ -422,11 +422,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
422
422
|
onClick?: ((evt: MouseEvent) => any) | undefined;
|
|
423
423
|
}>>;
|
|
424
424
|
emit: (event: "click", evt: MouseEvent) => void;
|
|
425
|
-
|
|
426
|
-
[name: string]: import("vue").Slot | undefined;
|
|
427
|
-
}>;
|
|
428
|
-
buttonGroupContext: import("../../../..").ButtonGroupContext | undefined;
|
|
429
|
-
globalConfig: import("vue").Ref<import("element-plus/es/components/button").ButtonConfigContext | undefined>;
|
|
425
|
+
buttonStyle: import("vue").ComputedRef<Record<string, string>>;
|
|
430
426
|
ns: {
|
|
431
427
|
namespace: import("vue").Ref<string>;
|
|
432
428
|
b: (blockSuffix?: string) => string;
|
|
@@ -445,14 +441,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
445
441
|
cssVarBlock: (object: Record<string, string>) => Record<string, string>;
|
|
446
442
|
cssVarBlockName: (name: string) => string;
|
|
447
443
|
};
|
|
448
|
-
form: import("../../../..").FormContext | undefined;
|
|
449
|
-
_size: import("vue").ComputedRef<"" | "default" | "small" | "large">;
|
|
450
|
-
_disabled: import("vue").ComputedRef<boolean>;
|
|
451
444
|
_ref: import("vue").Ref<HTMLButtonElement | undefined>;
|
|
445
|
+
_size: import("vue").ComputedRef<"" | "default" | "small" | "large">;
|
|
452
446
|
_type: import("vue").ComputedRef<"" | "default" | "primary" | "success" | "warning" | "info" | "danger" | "text">;
|
|
453
|
-
|
|
447
|
+
_disabled: import("vue").ComputedRef<boolean>;
|
|
454
448
|
shouldAddSpace: import("vue").ComputedRef<boolean>;
|
|
455
|
-
buttonStyle: import("vue").ComputedRef<Record<string, string>>;
|
|
456
449
|
handleClick: (evt: MouseEvent) => void;
|
|
457
450
|
ElIcon: import("element-plus/es/utils").SFCWithInstall<import("vue").DefineComponent<{
|
|
458
451
|
readonly size: {
|
|
@@ -420,11 +420,7 @@ export declare const getPanel: (type: IDatePickerType) => import("vue").DefineCo
|
|
|
420
420
|
onClick?: ((evt: MouseEvent) => any) | undefined;
|
|
421
421
|
}>>;
|
|
422
422
|
emit: (event: "click", evt: MouseEvent) => void;
|
|
423
|
-
|
|
424
|
-
[name: string]: import("vue").Slot | undefined;
|
|
425
|
-
}>;
|
|
426
|
-
buttonGroupContext: import("../../..").ButtonGroupContext | undefined;
|
|
427
|
-
globalConfig: import("vue").Ref<import("../..").ButtonConfigContext | undefined>;
|
|
423
|
+
buttonStyle: import("vue").ComputedRef<Record<string, string>>;
|
|
428
424
|
ns: {
|
|
429
425
|
namespace: import("vue").Ref<string>;
|
|
430
426
|
b: (blockSuffix?: string) => string;
|
|
@@ -443,14 +439,11 @@ export declare const getPanel: (type: IDatePickerType) => import("vue").DefineCo
|
|
|
443
439
|
cssVarBlock: (object: Record<string, string>) => Record<string, string>;
|
|
444
440
|
cssVarBlockName: (name: string) => string;
|
|
445
441
|
};
|
|
446
|
-
form: import("../../..").FormContext | undefined;
|
|
447
|
-
_size: import("vue").ComputedRef<"" | "default" | "small" | "large">;
|
|
448
|
-
_disabled: import("vue").ComputedRef<boolean>;
|
|
449
442
|
_ref: import("vue").Ref<HTMLButtonElement | undefined>;
|
|
443
|
+
_size: import("vue").ComputedRef<"" | "default" | "small" | "large">;
|
|
450
444
|
_type: import("vue").ComputedRef<"" | "default" | "primary" | "success" | "warning" | "info" | "danger" | "text">;
|
|
451
|
-
|
|
445
|
+
_disabled: import("vue").ComputedRef<boolean>;
|
|
452
446
|
shouldAddSpace: import("vue").ComputedRef<boolean>;
|
|
453
|
-
buttonStyle: import("vue").ComputedRef<Record<string, string>>;
|
|
454
447
|
handleClick: (evt: MouseEvent) => void;
|
|
455
448
|
ElIcon: import("../../../utils").SFCWithInstall<import("vue").DefineComponent<{
|
|
456
449
|
readonly size: {
|
|
@@ -8992,11 +8985,7 @@ export declare const getPanel: (type: IDatePickerType) => import("vue").DefineCo
|
|
|
8992
8985
|
onClick?: ((evt: MouseEvent) => any) | undefined;
|
|
8993
8986
|
}>>;
|
|
8994
8987
|
emit: (event: "click", evt: MouseEvent) => void;
|
|
8995
|
-
|
|
8996
|
-
[name: string]: import("vue").Slot | undefined;
|
|
8997
|
-
}>;
|
|
8998
|
-
buttonGroupContext: import("../../..").ButtonGroupContext | undefined;
|
|
8999
|
-
globalConfig: import("vue").Ref<import("../..").ButtonConfigContext | undefined>;
|
|
8988
|
+
buttonStyle: import("vue").ComputedRef<Record<string, string>>;
|
|
9000
8989
|
ns: {
|
|
9001
8990
|
namespace: import("vue").Ref<string>;
|
|
9002
8991
|
b: (blockSuffix?: string) => string;
|
|
@@ -9015,14 +9004,11 @@ export declare const getPanel: (type: IDatePickerType) => import("vue").DefineCo
|
|
|
9015
9004
|
cssVarBlock: (object: Record<string, string>) => Record<string, string>;
|
|
9016
9005
|
cssVarBlockName: (name: string) => string;
|
|
9017
9006
|
};
|
|
9018
|
-
form: import("../../..").FormContext | undefined;
|
|
9019
|
-
_size: import("vue").ComputedRef<"" | "default" | "small" | "large">;
|
|
9020
|
-
_disabled: import("vue").ComputedRef<boolean>;
|
|
9021
9007
|
_ref: import("vue").Ref<HTMLButtonElement | undefined>;
|
|
9008
|
+
_size: import("vue").ComputedRef<"" | "default" | "small" | "large">;
|
|
9022
9009
|
_type: import("vue").ComputedRef<"" | "default" | "primary" | "success" | "warning" | "info" | "danger" | "text">;
|
|
9023
|
-
|
|
9010
|
+
_disabled: import("vue").ComputedRef<boolean>;
|
|
9024
9011
|
shouldAddSpace: import("vue").ComputedRef<boolean>;
|
|
9025
|
-
buttonStyle: import("vue").ComputedRef<Record<string, string>>;
|
|
9026
9012
|
handleClick: (evt: MouseEvent) => void;
|
|
9027
9013
|
ElIcon: import("../../../utils").SFCWithInstall<import("vue").DefineComponent<{
|
|
9028
9014
|
readonly size: {
|
package/lib/components/index.js
CHANGED
|
@@ -123,11 +123,11 @@ var overlay = require('./overlay/src/overlay.js');
|
|
|
123
123
|
var pageHeader = require('./page-header/src/page-header.js');
|
|
124
124
|
var pagination = require('./pagination/src/pagination.js');
|
|
125
125
|
var popconfirm = require('./popconfirm/src/popconfirm.js');
|
|
126
|
-
var popper = require('./popper/src/
|
|
126
|
+
var popper = require('./popper/src/popper2.js');
|
|
127
127
|
var trigger$1 = require('./popper/src/trigger.js');
|
|
128
128
|
var content$1 = require('./popper/src/content.js');
|
|
129
|
-
var arrow$1 = require('./popper/src/
|
|
130
|
-
var arrow = require('./popper/src/
|
|
129
|
+
var arrow$1 = require('./popper/src/arrow2.js');
|
|
130
|
+
var arrow = require('./popper/src/arrow.js');
|
|
131
131
|
var trigger = require('./popper/src/trigger2.js');
|
|
132
132
|
var content = require('./popper/src/content2.js');
|
|
133
133
|
var progress = require('./progress/src/progress.js');
|
|
@@ -182,7 +182,7 @@ var dynamicSizeGrid = require('./virtual-list/src/components/dynamic-size-grid.j
|
|
|
182
182
|
var props$1 = require('./virtual-list/src/props.js');
|
|
183
183
|
var directive = require('./loading/src/directive.js');
|
|
184
184
|
var service = require('./loading/src/service.js');
|
|
185
|
-
var message = require('./message/src/
|
|
185
|
+
var message = require('./message/src/message2.js');
|
|
186
186
|
var notification = require('./notification/src/notification.js');
|
|
187
187
|
var popover = require('./popover/src/popover.js');
|
|
188
188
|
|
|
@@ -12,7 +12,7 @@ var menuItem = require('./menu-item.js');
|
|
|
12
12
|
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
|
13
13
|
var index$1 = require('../../../hooks/use-namespace/index.js');
|
|
14
14
|
var error = require('../../../utils/error.js');
|
|
15
|
-
var popper = require('../../popper/src/
|
|
15
|
+
var popper = require('../../popper/src/popper2.js');
|
|
16
16
|
|
|
17
17
|
const COMPONENT_NAME = "ElMenuItem";
|
|
18
18
|
const _sfc_main = vue.defineComponent({
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
require('../../utils/index.js');
|
|
6
6
|
var method = require('./src/method.js');
|
|
7
|
-
var message = require('./src/
|
|
7
|
+
var message = require('./src/message2.js');
|
|
8
8
|
var install = require('../../utils/vue/install.js');
|
|
9
9
|
|
|
10
10
|
const ElMessage = install.withInstallFunction(method["default"], "$message");
|