@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
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { ExtractPropTypes } from 'vue';
|
|
2
|
-
import type button from './button.vue';
|
|
3
2
|
export declare const buttonTypes: readonly ["default", "primary", "success", "warning", "info", "danger", "text", ""];
|
|
4
3
|
export declare const buttonNativeTypes: readonly ["button", "submit", "reset"];
|
|
5
4
|
export declare const buttonProps: {
|
|
@@ -38,7 +37,6 @@ export declare type ButtonProps = ExtractPropTypes<typeof buttonProps>;
|
|
|
38
37
|
export declare type ButtonEmits = typeof buttonEmits;
|
|
39
38
|
export declare type ButtonType = ButtonProps['type'];
|
|
40
39
|
export declare type ButtonNativeType = ButtonProps['nativeType'];
|
|
41
|
-
export declare type ButtonInstance = InstanceType<typeof button>;
|
|
42
40
|
export interface ButtonConfigContext {
|
|
43
41
|
autoInsertSpace?: boolean;
|
|
44
42
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.js","sources":["../../../../../../packages/components/button/src/button.ts"],"sourcesContent":["import { useSizeProp } from '@element-plus/hooks'\nimport { buildProps, iconPropType } from '@element-plus/utils'\nimport { Loading } from '@element-plus/icons-vue'\nimport type { ExtractPropTypes } from 'vue'\
|
|
1
|
+
{"version":3,"file":"button.js","sources":["../../../../../../packages/components/button/src/button.ts"],"sourcesContent":["import { useSizeProp } from '@element-plus/hooks'\nimport { buildProps, iconPropType } from '@element-plus/utils'\nimport { Loading } from '@element-plus/icons-vue'\nimport type { ExtractPropTypes } from 'vue'\n\nexport const buttonTypes = [\n 'default',\n 'primary',\n 'success',\n 'warning',\n 'info',\n 'danger',\n /**\n * @deprecated\n * Text type will be deprecated in the next major version (3.0.0)\n */\n 'text',\n '',\n] as const\nexport const buttonNativeTypes = ['button', 'submit', 'reset'] as const\n\nexport const buttonProps = buildProps({\n size: useSizeProp,\n disabled: Boolean,\n type: {\n type: String,\n values: buttonTypes,\n default: '',\n },\n icon: {\n type: iconPropType,\n },\n nativeType: {\n type: String,\n values: buttonNativeTypes,\n default: 'button',\n },\n loading: Boolean,\n loadingIcon: {\n type: iconPropType,\n default: () => Loading,\n },\n plain: Boolean,\n text: Boolean,\n link: Boolean,\n bg: Boolean,\n autofocus: Boolean,\n round: Boolean,\n circle: Boolean,\n color: String,\n dark: Boolean,\n autoInsertSpace: {\n type: Boolean,\n default: undefined,\n },\n} as const)\nexport const buttonEmits = {\n click: (evt: MouseEvent) => evt instanceof MouseEvent,\n}\n\nexport type ButtonProps = ExtractPropTypes<typeof buttonProps>\nexport type ButtonEmits = typeof buttonEmits\n\nexport type ButtonType = ButtonProps['type']\nexport type ButtonNativeType = ButtonProps['nativeType']\n\nexport interface ButtonConfigContext {\n autoInsertSpace?: boolean\n}\n"],"names":["buildProps","useSizeProp","iconPropType","Loading"],"mappings":";;;;;;;;;;;AAGY,MAAC,WAAW,GAAG;AAC3B,EAAE,SAAS;AACX,EAAE,SAAS;AACX,EAAE,SAAS;AACX,EAAE,SAAS;AACX,EAAE,MAAM;AACR,EAAE,QAAQ;AACV,EAAE,MAAM;AACR,EAAE,EAAE;AACJ,EAAE;AACU,MAAC,iBAAiB,GAAG,CAAC,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE;AACnD,MAAC,WAAW,GAAGA,kBAAU,CAAC;AACtC,EAAE,IAAI,EAAEC,iBAAW;AACnB,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,WAAW;AACvB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAEC,iBAAY;AACtB,GAAG;AACH,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,iBAAiB;AAC7B,IAAI,OAAO,EAAE,QAAQ;AACrB,GAAG;AACH,EAAE,OAAO,EAAE,OAAO;AAClB,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAEA,iBAAY;AACtB,IAAI,OAAO,EAAE,MAAMC,gBAAO;AAC1B,GAAG;AACH,EAAE,KAAK,EAAE,OAAO;AAChB,EAAE,IAAI,EAAE,OAAO;AACf,EAAE,IAAI,EAAE,OAAO;AACf,EAAE,EAAE,EAAE,OAAO;AACb,EAAE,SAAS,EAAE,OAAO;AACpB,EAAE,KAAK,EAAE,OAAO;AAChB,EAAE,MAAM,EAAE,OAAO;AACjB,EAAE,KAAK,EAAE,MAAM;AACf,EAAE,IAAI,EAAE,OAAO;AACf,EAAE,eAAe,EAAE;AACnB,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,CAAC,EAAE;AACS,MAAC,WAAW,GAAG;AAC3B,EAAE,KAAK,EAAE,CAAC,GAAG,KAAK,GAAG,YAAY,UAAU;AAC3C;;;;;;;"}
|
|
@@ -59,11 +59,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
59
59
|
onClick?: ((evt: MouseEvent) => any) | undefined;
|
|
60
60
|
}>>;
|
|
61
61
|
emit: (event: "click", evt: MouseEvent) => void;
|
|
62
|
-
|
|
63
|
-
[name: string]: import("vue").Slot | undefined;
|
|
64
|
-
}>;
|
|
65
|
-
buttonGroupContext: import("element-plus/es/tokens").ButtonGroupContext | undefined;
|
|
66
|
-
globalConfig: import("vue").Ref<import("./button").ButtonConfigContext | undefined>;
|
|
62
|
+
buttonStyle: import("vue").ComputedRef<Record<string, string>>;
|
|
67
63
|
ns: {
|
|
68
64
|
namespace: import("vue").Ref<string>;
|
|
69
65
|
b: (blockSuffix?: string) => string;
|
|
@@ -82,14 +78,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
82
78
|
cssVarBlock: (object: Record<string, string>) => Record<string, string>;
|
|
83
79
|
cssVarBlockName: (name: string) => string;
|
|
84
80
|
};
|
|
85
|
-
form: import("element-plus/es/tokens").FormContext | undefined;
|
|
86
|
-
_size: import("vue").ComputedRef<"" | "default" | "small" | "large">;
|
|
87
|
-
_disabled: import("vue").ComputedRef<boolean>;
|
|
88
81
|
_ref: import("vue").Ref<HTMLButtonElement | undefined>;
|
|
82
|
+
_size: import("vue").ComputedRef<"" | "default" | "small" | "large">;
|
|
89
83
|
_type: import("vue").ComputedRef<"" | "default" | "primary" | "success" | "warning" | "info" | "danger" | "text">;
|
|
90
|
-
|
|
84
|
+
_disabled: import("vue").ComputedRef<boolean>;
|
|
91
85
|
shouldAddSpace: import("vue").ComputedRef<boolean>;
|
|
92
|
-
buttonStyle: import("vue").ComputedRef<Record<string, string>>;
|
|
93
86
|
handleClick: (evt: MouseEvent) => void;
|
|
94
87
|
ElIcon: import("../../../utils").SFCWithInstall<import("vue").DefineComponent<{
|
|
95
88
|
readonly size: {
|
|
@@ -3,18 +3,13 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var vue = require('vue');
|
|
6
|
-
var index$
|
|
6
|
+
var index$1 = require('../../icon/index.js');
|
|
7
7
|
require('../../../hooks/index.js');
|
|
8
|
-
require('
|
|
8
|
+
var useButton = require('./use-button.js');
|
|
9
9
|
var button = require('./button.js');
|
|
10
10
|
var buttonCustom = require('./button-custom.js');
|
|
11
11
|
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
|
12
|
-
var index = require('../../../hooks/use-
|
|
13
|
-
var button$1 = require('../../../tokens/button.js');
|
|
14
|
-
var index$1 = require('../../../hooks/use-global-config/index.js');
|
|
15
|
-
var index$2 = require('../../../hooks/use-namespace/index.js');
|
|
16
|
-
var index$3 = require('../../../hooks/use-form-item/index.js');
|
|
17
|
-
var index$4 = require('../../../hooks/use-common-props/index.js');
|
|
12
|
+
var index = require('../../../hooks/use-namespace/index.js');
|
|
18
13
|
|
|
19
14
|
const _hoisted_1 = ["aria-disabled", "disabled", "autofocus", "type"];
|
|
20
15
|
const __default__ = vue.defineComponent({
|
|
@@ -26,45 +21,9 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
26
21
|
emits: button.buttonEmits,
|
|
27
22
|
setup(__props, { expose, emit }) {
|
|
28
23
|
const props = __props;
|
|
29
|
-
const slots = vue.useSlots();
|
|
30
|
-
index.useDeprecated({
|
|
31
|
-
from: "type.text",
|
|
32
|
-
replacement: "link",
|
|
33
|
-
version: "3.0.0",
|
|
34
|
-
scope: "props",
|
|
35
|
-
ref: "https://element-plus.org/en-US/component/button.html#button-attributes"
|
|
36
|
-
}, vue.computed(() => props.type === "text"));
|
|
37
|
-
const buttonGroupContext = vue.inject(button$1.buttonGroupContextKey, void 0);
|
|
38
|
-
const globalConfig = index$1.useGlobalConfig("button");
|
|
39
|
-
const ns = index$2.useNamespace("button");
|
|
40
|
-
const { form } = index$3.useFormItem();
|
|
41
|
-
const _size = index$4.useSize(vue.computed(() => buttonGroupContext == null ? void 0 : buttonGroupContext.size));
|
|
42
|
-
const _disabled = index$4.useDisabled();
|
|
43
|
-
const _ref = vue.ref();
|
|
44
|
-
const _type = vue.computed(() => props.type || (buttonGroupContext == null ? void 0 : buttonGroupContext.type) || "");
|
|
45
|
-
const autoInsertSpace = vue.computed(() => {
|
|
46
|
-
var _a, _b, _c;
|
|
47
|
-
return (_c = (_b = props.autoInsertSpace) != null ? _b : (_a = globalConfig.value) == null ? void 0 : _a.autoInsertSpace) != null ? _c : false;
|
|
48
|
-
});
|
|
49
|
-
const shouldAddSpace = vue.computed(() => {
|
|
50
|
-
var _a;
|
|
51
|
-
const defaultSlot = (_a = slots.default) == null ? void 0 : _a.call(slots);
|
|
52
|
-
if (autoInsertSpace.value && (defaultSlot == null ? void 0 : defaultSlot.length) === 1) {
|
|
53
|
-
const slot = defaultSlot[0];
|
|
54
|
-
if ((slot == null ? void 0 : slot.type) === vue.Text) {
|
|
55
|
-
const text = slot.children;
|
|
56
|
-
return /^\p{Unified_Ideograph}{2}$/u.test(text.trim());
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
return false;
|
|
60
|
-
});
|
|
61
24
|
const buttonStyle = buttonCustom.useButtonCustomStyle(props);
|
|
62
|
-
const
|
|
63
|
-
|
|
64
|
-
form == null ? void 0 : form.resetFields();
|
|
65
|
-
}
|
|
66
|
-
emit("click", evt);
|
|
67
|
-
};
|
|
25
|
+
const ns = index.useNamespace("button");
|
|
26
|
+
const { _ref, _size, _type, _disabled, shouldAddSpace, handleClick } = useButton.useButton(props, emit);
|
|
68
27
|
expose({
|
|
69
28
|
ref: _ref,
|
|
70
29
|
size: _size,
|
|
@@ -94,10 +53,10 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
94
53
|
autofocus: _ctx.autofocus,
|
|
95
54
|
type: _ctx.nativeType,
|
|
96
55
|
style: vue.normalizeStyle(vue.unref(buttonStyle)),
|
|
97
|
-
onClick: handleClick
|
|
56
|
+
onClick: _cache[0] || (_cache[0] = (...args) => vue.unref(handleClick) && vue.unref(handleClick)(...args))
|
|
98
57
|
}, [
|
|
99
58
|
_ctx.loading ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
100
|
-
_ctx.$slots.loading ? vue.renderSlot(_ctx.$slots, "loading", { key: 0 }) : (vue.openBlock(), vue.createBlock(vue.unref(index$
|
|
59
|
+
_ctx.$slots.loading ? vue.renderSlot(_ctx.$slots, "loading", { key: 0 }) : (vue.openBlock(), vue.createBlock(vue.unref(index$1.ElIcon), {
|
|
101
60
|
key: 1,
|
|
102
61
|
class: vue.normalizeClass(vue.unref(ns).is("loading"))
|
|
103
62
|
}, {
|
|
@@ -106,7 +65,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
106
65
|
]),
|
|
107
66
|
_: 1
|
|
108
67
|
}, 8, ["class"]))
|
|
109
|
-
], 64)) : _ctx.icon || _ctx.$slots.icon ? (vue.openBlock(), vue.createBlock(vue.unref(index$
|
|
68
|
+
], 64)) : _ctx.icon || _ctx.$slots.icon ? (vue.openBlock(), vue.createBlock(vue.unref(index$1.ElIcon), { key: 1 }, {
|
|
110
69
|
default: vue.withCtx(() => [
|
|
111
70
|
_ctx.icon ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.icon), { key: 0 })) : vue.renderSlot(_ctx.$slots, "icon", { key: 1 })
|
|
112
71
|
]),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button2.js","sources":["../../../../../../packages/components/button/src/button.vue"],"sourcesContent":["<template>\n <button\n ref=\"_ref\"\n :class=\"[\n ns.b(),\n ns.m(_type),\n ns.m(_size),\n ns.is('disabled', _disabled),\n ns.is('loading', loading),\n ns.is('plain', plain),\n ns.is('round', round),\n ns.is('circle', circle),\n ns.is('text', text),\n ns.is('link', link),\n ns.is('has-bg', bg),\n ]\"\n :aria-disabled=\"_disabled || loading\"\n :disabled=\"_disabled || loading\"\n :autofocus=\"autofocus\"\n :type=\"nativeType\"\n :style=\"buttonStyle\"\n @click=\"handleClick\"\n >\n <template v-if=\"loading\">\n <slot v-if=\"$slots.loading\" name=\"loading\" />\n <el-icon v-else :class=\"ns.is('loading')\">\n <component :is=\"loadingIcon\" />\n </el-icon>\n </template>\n <el-icon v-else-if=\"icon || $slots.icon\">\n <component :is=\"icon\" v-if=\"icon\" />\n <slot v-else name=\"icon\" />\n </el-icon>\n <span\n v-if=\"$slots.default\"\n :class=\"{ [ns.em('text', 'expand')]: shouldAddSpace }\"\n >\n <slot />\n </span>\n </button>\n</template>\n\n<script lang=\"ts\" setup>\nimport {
|
|
1
|
+
{"version":3,"file":"button2.js","sources":["../../../../../../packages/components/button/src/button.vue"],"sourcesContent":["<template>\n <button\n ref=\"_ref\"\n :class=\"[\n ns.b(),\n ns.m(_type),\n ns.m(_size),\n ns.is('disabled', _disabled),\n ns.is('loading', loading),\n ns.is('plain', plain),\n ns.is('round', round),\n ns.is('circle', circle),\n ns.is('text', text),\n ns.is('link', link),\n ns.is('has-bg', bg),\n ]\"\n :aria-disabled=\"_disabled || loading\"\n :disabled=\"_disabled || loading\"\n :autofocus=\"autofocus\"\n :type=\"nativeType\"\n :style=\"buttonStyle\"\n @click=\"handleClick\"\n >\n <template v-if=\"loading\">\n <slot v-if=\"$slots.loading\" name=\"loading\" />\n <el-icon v-else :class=\"ns.is('loading')\">\n <component :is=\"loadingIcon\" />\n </el-icon>\n </template>\n <el-icon v-else-if=\"icon || $slots.icon\">\n <component :is=\"icon\" v-if=\"icon\" />\n <slot v-else name=\"icon\" />\n </el-icon>\n <span\n v-if=\"$slots.default\"\n :class=\"{ [ns.em('text', 'expand')]: shouldAddSpace }\"\n >\n <slot />\n </span>\n </button>\n</template>\n\n<script lang=\"ts\" setup>\nimport { ElIcon } from '@element-plus/components/icon'\nimport { useNamespace } from '@element-plus/hooks'\nimport { useButton } from './use-button'\nimport { buttonEmits, buttonProps } from './button'\nimport { useButtonCustomStyle } from './button-custom'\n\ndefineOptions({\n name: 'ElButton',\n})\n\nconst props = defineProps(buttonProps)\nconst emit = defineEmits(buttonEmits)\n\nconst buttonStyle = useButtonCustomStyle(props)\nconst ns = useNamespace('button')\nconst { _ref, _size, _type, _disabled, shouldAddSpace, handleClick } =\n useButton(props, emit)\n\ndefineExpose({\n /** @description button html element */\n ref: _ref,\n /** @description button size */\n size: _size,\n /** @description button type */\n type: _type,\n /** @description button disabled */\n disabled: _disabled,\n /** @description whether adding space */\n shouldAddSpace,\n})\n</script>\n"],"names":["useButtonCustomStyle","useNamespace","useButton"],"mappings":";;;;;;;;;;;;;;uCAiDc,CAAA;AAAA,EACZ,IAAM,EAAA,UAAA;AACR,CAAA,CAAA,CAAA;;;;;;;AAKA,IAAM,MAAA,WAAA,GAAcA,kCAAqB,KAAK,CAAA,CAAA;AAC9C,IAAM,MAAA,EAAA,GAAKC,mBAAa,QAAQ,CAAA,CAAA;AAChC,IAAM,MAAA,EAAE,MAAM,KAAO,EAAA,KAAA,EAAO,WAAW,cAAgB,EAAA,WAAA,EAAA,GACrDC,mBAAU,CAAA,KAAA,EAAO,IAAI,CAAA,CAAA;AAEvB,IAAa,MAAA,CAAA;AAAA,MAEX,GAAK,EAAA,IAAA;AAAA,MAEL,IAAM,EAAA,KAAA;AAAA,MAEN,IAAM,EAAA,KAAA;AAAA,MAEN,QAAU,EAAA,SAAA;AAAA,MAEV,cAAA;AAAA,KACD,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"instance.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { SetupContext } from 'vue';
|
|
2
|
+
import type { ButtonEmits, ButtonProps } from './button';
|
|
3
|
+
export declare const useButton: (props: ButtonProps, emit: SetupContext<ButtonEmits>['emit']) => {
|
|
4
|
+
_disabled: import("vue").ComputedRef<boolean>;
|
|
5
|
+
_size: import("vue").ComputedRef<"" | "default" | "small" | "large">;
|
|
6
|
+
_type: import("vue").ComputedRef<"" | "default" | "primary" | "success" | "warning" | "info" | "danger" | "text">;
|
|
7
|
+
_ref: import("vue").Ref<HTMLButtonElement | undefined>;
|
|
8
|
+
shouldAddSpace: import("vue").ComputedRef<boolean>;
|
|
9
|
+
handleClick: (evt: MouseEvent) => void;
|
|
10
|
+
};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var vue = require('vue');
|
|
6
|
+
require('../../../hooks/index.js');
|
|
7
|
+
require('../../../tokens/index.js');
|
|
8
|
+
var index = require('../../../hooks/use-deprecated/index.js');
|
|
9
|
+
var button = require('../../../tokens/button.js');
|
|
10
|
+
var index$1 = require('../../../hooks/use-global-config/index.js');
|
|
11
|
+
var index$2 = require('../../../hooks/use-form-item/index.js');
|
|
12
|
+
var index$3 = require('../../../hooks/use-common-props/index.js');
|
|
13
|
+
|
|
14
|
+
const useButton = (props, emit) => {
|
|
15
|
+
index.useDeprecated({
|
|
16
|
+
from: "type.text",
|
|
17
|
+
replacement: "link",
|
|
18
|
+
version: "3.0.0",
|
|
19
|
+
scope: "props",
|
|
20
|
+
ref: "https://element-plus.org/en-US/component/button.html#button-attributes"
|
|
21
|
+
}, vue.computed(() => props.type === "text"));
|
|
22
|
+
const buttonGroupContext = vue.inject(button.buttonGroupContextKey, void 0);
|
|
23
|
+
const globalConfig = index$1.useGlobalConfig("button");
|
|
24
|
+
const { form } = index$2.useFormItem();
|
|
25
|
+
const _size = index$3.useSize(vue.computed(() => buttonGroupContext == null ? void 0 : buttonGroupContext.size));
|
|
26
|
+
const _disabled = index$3.useDisabled();
|
|
27
|
+
const _ref = vue.ref();
|
|
28
|
+
const slots = vue.useSlots();
|
|
29
|
+
const _type = vue.computed(() => props.type || (buttonGroupContext == null ? void 0 : buttonGroupContext.type) || "");
|
|
30
|
+
const autoInsertSpace = vue.computed(() => {
|
|
31
|
+
var _a, _b, _c;
|
|
32
|
+
return (_c = (_b = props.autoInsertSpace) != null ? _b : (_a = globalConfig.value) == null ? void 0 : _a.autoInsertSpace) != null ? _c : false;
|
|
33
|
+
});
|
|
34
|
+
const shouldAddSpace = vue.computed(() => {
|
|
35
|
+
var _a;
|
|
36
|
+
const defaultSlot = (_a = slots.default) == null ? void 0 : _a.call(slots);
|
|
37
|
+
if (autoInsertSpace.value && (defaultSlot == null ? void 0 : defaultSlot.length) === 1) {
|
|
38
|
+
const slot = defaultSlot[0];
|
|
39
|
+
if ((slot == null ? void 0 : slot.type) === vue.Text) {
|
|
40
|
+
const text = slot.children;
|
|
41
|
+
return /^\p{Unified_Ideograph}{2}$/u.test(text.trim());
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
return false;
|
|
45
|
+
});
|
|
46
|
+
const handleClick = (evt) => {
|
|
47
|
+
if (props.nativeType === "reset") {
|
|
48
|
+
form == null ? void 0 : form.resetFields();
|
|
49
|
+
}
|
|
50
|
+
emit("click", evt);
|
|
51
|
+
};
|
|
52
|
+
return {
|
|
53
|
+
_disabled,
|
|
54
|
+
_size,
|
|
55
|
+
_type,
|
|
56
|
+
_ref,
|
|
57
|
+
shouldAddSpace,
|
|
58
|
+
handleClick
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
exports.useButton = useButton;
|
|
63
|
+
//# sourceMappingURL=use-button.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-button.js","sources":["../../../../../../packages/components/button/src/use-button.ts"],"sourcesContent":["import { Text, computed, inject, ref, useSlots } from 'vue'\nimport {\n useDeprecated,\n useDisabled,\n useFormItem,\n useGlobalConfig,\n useSize,\n} from '@element-plus/hooks'\nimport { buttonGroupContextKey } from '@element-plus/tokens'\n\nimport type { SetupContext } from 'vue'\nimport type { ButtonEmits, ButtonProps } from './button'\n\nexport const useButton = (\n props: ButtonProps,\n emit: SetupContext<ButtonEmits>['emit']\n) => {\n useDeprecated(\n {\n from: 'type.text',\n replacement: 'link',\n version: '3.0.0',\n scope: 'props',\n ref: 'https://element-plus.org/en-US/component/button.html#button-attributes',\n },\n computed(() => props.type === 'text')\n )\n\n const buttonGroupContext = inject(buttonGroupContextKey, undefined)\n const globalConfig = useGlobalConfig('button')\n const { form } = useFormItem()\n const _size = useSize(computed(() => buttonGroupContext?.size))\n const _disabled = useDisabled()\n const _ref = ref<HTMLButtonElement>()\n const slots = useSlots()\n\n const _type = computed(() => props.type || buttonGroupContext?.type || '')\n const autoInsertSpace = computed(\n () => props.autoInsertSpace ?? globalConfig.value?.autoInsertSpace ?? false\n )\n\n // add space between two characters in Chinese\n const shouldAddSpace = computed(() => {\n const defaultSlot = slots.default?.()\n if (autoInsertSpace.value && defaultSlot?.length === 1) {\n const slot = defaultSlot[0]\n if (slot?.type === Text) {\n const text = slot.children as string\n return /^\\p{Unified_Ideograph}{2}$/u.test(text.trim())\n }\n }\n return false\n })\n\n const handleClick = (evt: MouseEvent) => {\n if (props.nativeType === 'reset') {\n form?.resetFields()\n }\n emit('click', evt)\n }\n\n return {\n _disabled,\n _size,\n _type,\n _ref,\n shouldAddSpace,\n handleClick,\n }\n}\n"],"names":["useDeprecated","computed","inject","buttonGroupContextKey","useGlobalConfig","useFormItem","useSize","useDisabled","ref","useSlots","Text"],"mappings":";;;;;;;;;;;;;AASY,MAAC,SAAS,GAAG,CAAC,KAAK,EAAE,IAAI,KAAK;AAC1C,EAAEA,mBAAa,CAAC;AAChB,IAAI,IAAI,EAAE,WAAW;AACrB,IAAI,WAAW,EAAE,MAAM;AACvB,IAAI,OAAO,EAAE,OAAO;AACpB,IAAI,KAAK,EAAE,OAAO;AAClB,IAAI,GAAG,EAAE,wEAAwE;AACjF,GAAG,EAAEC,YAAQ,CAAC,MAAM,KAAK,CAAC,IAAI,KAAK,MAAM,CAAC,CAAC,CAAC;AAC5C,EAAE,MAAM,kBAAkB,GAAGC,UAAM,CAACC,4BAAqB,EAAE,KAAK,CAAC,CAAC,CAAC;AACnE,EAAE,MAAM,YAAY,GAAGC,uBAAe,CAAC,QAAQ,CAAC,CAAC;AACjD,EAAE,MAAM,EAAE,IAAI,EAAE,GAAGC,mBAAW,EAAE,CAAC;AACjC,EAAE,MAAM,KAAK,GAAGC,eAAO,CAACL,YAAQ,CAAC,MAAM,kBAAkB,IAAI,IAAI,GAAG,KAAK,CAAC,GAAG,kBAAkB,CAAC,IAAI,CAAC,CAAC,CAAC;AACvG,EAAE,MAAM,SAAS,GAAGM,mBAAW,EAAE,CAAC;AAClC,EAAE,MAAM,IAAI,GAAGC,OAAG,EAAE,CAAC;AACrB,EAAE,MAAM,KAAK,GAAGC,YAAQ,EAAE,CAAC;AAC3B,EAAE,MAAM,KAAK,GAAGR,YAAQ,CAAC,MAAM,KAAK,CAAC,IAAI,KAAK,kBAAkB,IAAI,IAAI,GAAG,KAAK,CAAC,GAAG,kBAAkB,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;AACpH,EAAE,MAAM,eAAe,GAAGA,YAAQ,CAAC,MAAM;AACzC,IAAI,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC;AACnB,IAAI,OAAO,CAAC,EAAE,GAAG,CAAC,EAAE,GAAG,KAAK,CAAC,eAAe,KAAK,IAAI,GAAG,EAAE,GAAG,CAAC,EAAE,GAAG,YAAY,CAAC,KAAK,KAAK,IAAI,GAAG,KAAK,CAAC,GAAG,EAAE,CAAC,eAAe,KAAK,IAAI,GAAG,EAAE,GAAG,KAAK,CAAC;AACnJ,GAAG,CAAC,CAAC;AACL,EAAE,MAAM,cAAc,GAAGA,YAAQ,CAAC,MAAM;AACxC,IAAI,IAAI,EAAE,CAAC;AACX,IAAI,MAAM,WAAW,GAAG,CAAC,EAAE,GAAG,KAAK,CAAC,OAAO,KAAK,IAAI,GAAG,KAAK,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AAC/E,IAAI,IAAI,eAAe,CAAC,KAAK,IAAI,CAAC,WAAW,IAAI,IAAI,GAAG,KAAK,CAAC,GAAG,WAAW,CAAC,MAAM,MAAM,CAAC,EAAE;AAC5F,MAAM,MAAM,IAAI,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC;AAClC,MAAM,IAAI,CAAC,IAAI,IAAI,IAAI,GAAG,KAAK,CAAC,GAAG,IAAI,CAAC,IAAI,MAAMS,QAAI,EAAE;AACxD,QAAQ,MAAM,IAAI,GAAG,IAAI,CAAC,QAAQ,CAAC;AACnC,QAAQ,OAAO,6BAA6B,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;AAC/D,OAAO;AACP,KAAK;AACL,IAAI,OAAO,KAAK,CAAC;AACjB,GAAG,CAAC,CAAC;AACL,EAAE,MAAM,WAAW,GAAG,CAAC,GAAG,KAAK;AAC/B,IAAI,IAAI,KAAK,CAAC,UAAU,KAAK,OAAO,EAAE;AACtC,MAAM,IAAI,IAAI,IAAI,GAAG,KAAK,CAAC,GAAG,IAAI,CAAC,WAAW,EAAE,CAAC;AACjD,KAAK;AACL,IAAI,IAAI,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC;AACvB,GAAG,CAAC;AACJ,EAAE,OAAO;AACT,IAAI,SAAS;AACb,IAAI,KAAK;AACT,IAAI,KAAK;AACT,IAAI,IAAI;AACR,IAAI,cAAc;AAClB,IAAI,WAAW;AACf,GAAG,CAAC;AACJ;;;;"}
|
|
@@ -128,11 +128,7 @@ export declare const ElCalendar: import("element-plus/es/utils").SFCWithInstall<
|
|
|
128
128
|
onClick?: ((evt: MouseEvent) => any) | undefined;
|
|
129
129
|
}>>;
|
|
130
130
|
emit: (event: "click", evt: MouseEvent) => void;
|
|
131
|
-
|
|
132
|
-
[name: string]: import("vue").Slot | undefined;
|
|
133
|
-
}>;
|
|
134
|
-
buttonGroupContext: import("../..").ButtonGroupContext | undefined;
|
|
135
|
-
globalConfig: import("vue").Ref<import("..").ButtonConfigContext | undefined>;
|
|
131
|
+
buttonStyle: import("vue").ComputedRef<Record<string, string>>;
|
|
136
132
|
ns: {
|
|
137
133
|
namespace: import("vue").Ref<string>;
|
|
138
134
|
b: (blockSuffix?: string) => string;
|
|
@@ -151,14 +147,11 @@ export declare const ElCalendar: import("element-plus/es/utils").SFCWithInstall<
|
|
|
151
147
|
cssVarBlock: (object: Record<string, string>) => Record<string, string>;
|
|
152
148
|
cssVarBlockName: (name: string) => string;
|
|
153
149
|
};
|
|
154
|
-
form: import("../..").FormContext | undefined;
|
|
155
|
-
_size: import("vue").ComputedRef<"" | "default" | "small" | "large">;
|
|
156
|
-
_disabled: import("vue").ComputedRef<boolean>;
|
|
157
150
|
_ref: import("vue").Ref<HTMLButtonElement | undefined>;
|
|
151
|
+
_size: import("vue").ComputedRef<"" | "default" | "small" | "large">;
|
|
158
152
|
_type: import("vue").ComputedRef<"" | "default" | "primary" | "success" | "warning" | "info" | "danger" | "text">;
|
|
159
|
-
|
|
153
|
+
_disabled: import("vue").ComputedRef<boolean>;
|
|
160
154
|
shouldAddSpace: import("vue").ComputedRef<boolean>;
|
|
161
|
-
buttonStyle: import("vue").ComputedRef<Record<string, string>>;
|
|
162
155
|
handleClick: (evt: MouseEvent) => void;
|
|
163
156
|
ElIcon: import("element-plus/es/utils").SFCWithInstall<import("vue").DefineComponent<{
|
|
164
157
|
readonly size: {
|
|
@@ -425,8 +418,18 @@ export declare const ElCalendar: import("element-plus/es/utils").SFCWithInstall<
|
|
|
425
418
|
onPick?: ((value: import("dayjs").Dayjs) => any) | undefined;
|
|
426
419
|
}>>;
|
|
427
420
|
emit: (event: "pick", value: import("dayjs").Dayjs) => void;
|
|
428
|
-
|
|
429
|
-
|
|
421
|
+
isInRange: import("vue").ComputedRef<boolean>;
|
|
422
|
+
now: import("dayjs").Dayjs;
|
|
423
|
+
rows: import("vue").ComputedRef<import("./src/date-table").CalendarDateCell[][]>;
|
|
424
|
+
weekDays: import("vue").ComputedRef<string[]>;
|
|
425
|
+
getFormattedDate: (day: number, type: import("./src/date-table").CalendarDateCellType) => import("dayjs").Dayjs;
|
|
426
|
+
handlePickDay: ({ text, type }: import("./src/date-table").CalendarDateCell) => void;
|
|
427
|
+
getSlotData: ({ text, type }: import("./src/date-table").CalendarDateCell) => {
|
|
428
|
+
isSelected: boolean;
|
|
429
|
+
type: string;
|
|
430
|
+
day: string;
|
|
431
|
+
date: Date;
|
|
432
|
+
};
|
|
430
433
|
nsTable: {
|
|
431
434
|
namespace: import("vue").Ref<string>;
|
|
432
435
|
b: (blockSuffix?: string) => string;
|
|
@@ -463,20 +466,7 @@ export declare const ElCalendar: import("element-plus/es/utils").SFCWithInstall<
|
|
|
463
466
|
cssVarBlock: (object: Record<string, string>) => Record<string, string>;
|
|
464
467
|
cssVarBlockName: (name: string) => string;
|
|
465
468
|
};
|
|
466
|
-
now: import("dayjs").Dayjs;
|
|
467
|
-
firstDayOfWeek: number;
|
|
468
|
-
isInRange: import("vue").ComputedRef<boolean>;
|
|
469
|
-
rows: import("vue").ComputedRef<import("./src/date-table").CalendarDateCell[][]>;
|
|
470
|
-
weekDays: import("vue").ComputedRef<string[]>;
|
|
471
|
-
getFormattedDate: (day: number, type: import("./src/date-table").CalendarDateCellType) => import("dayjs").Dayjs;
|
|
472
469
|
getCellClass: ({ text, type }: import("./src/date-table").CalendarDateCell) => string[];
|
|
473
|
-
handlePickDay: ({ text, type }: import("./src/date-table").CalendarDateCell) => void;
|
|
474
|
-
getSlotData: ({ text, type }: import("./src/date-table").CalendarDateCell) => {
|
|
475
|
-
isSelected: boolean;
|
|
476
|
-
type: string;
|
|
477
|
-
day: string;
|
|
478
|
-
date: Date;
|
|
479
|
-
};
|
|
480
470
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
481
471
|
pick: (value: import("dayjs").Dayjs) => boolean;
|
|
482
472
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -529,3 +519,4 @@ export declare const ElCalendar: import("element-plus/es/utils").SFCWithInstall<
|
|
|
529
519
|
}, {}>> & Record<string, any>;
|
|
530
520
|
export default ElCalendar;
|
|
531
521
|
export * from './src/calendar';
|
|
522
|
+
export type { CalendarDateTableInstance, DateTableInstance, } from './src/instance';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../packages/components/calendar/index.ts"],"sourcesContent":["import { withInstall } from '@element-plus/utils'\nimport Calendar from './src/calendar.vue'\n\nexport const ElCalendar = withInstall(Calendar)\nexport default ElCalendar\n\nexport * from './src/calendar'\n"],"names":["withInstall","Calendar"],"mappings":";;;;;;;;;AAEY,MAAC,UAAU,GAAGA,mBAAW,CAACC,qBAAQ;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../packages/components/calendar/index.ts"],"sourcesContent":["import { withInstall } from '@element-plus/utils'\nimport Calendar from './src/calendar.vue'\n\nexport const ElCalendar = withInstall(Calendar)\nexport default ElCalendar\n\nexport * from './src/calendar'\nexport type {\n CalendarDateTableInstance,\n DateTableInstance,\n} from './src/instance'\n"],"names":["withInstall","Calendar"],"mappings":";;;;;;;;;AAEY,MAAC,UAAU,GAAGA,mBAAW,CAACC,qBAAQ;;;;;;;"}
|
|
@@ -132,11 +132,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
132
132
|
onClick?: ((evt: MouseEvent) => any) | undefined;
|
|
133
133
|
}>>;
|
|
134
134
|
emit: (event: "click", evt: MouseEvent) => void;
|
|
135
|
-
|
|
136
|
-
[name: string]: import("vue").Slot | undefined;
|
|
137
|
-
}>;
|
|
138
|
-
buttonGroupContext: import("../../..").ButtonGroupContext | undefined;
|
|
139
|
-
globalConfig: import("vue").Ref<import("element-plus/es/components/button").ButtonConfigContext | undefined>;
|
|
135
|
+
buttonStyle: ComputedRef<Record<string, string>>;
|
|
140
136
|
ns: {
|
|
141
137
|
namespace: import("vue").Ref<string>;
|
|
142
138
|
b: (blockSuffix?: string) => string;
|
|
@@ -155,14 +151,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
155
151
|
cssVarBlock: (object: Record<string, string>) => Record<string, string>;
|
|
156
152
|
cssVarBlockName: (name: string) => string;
|
|
157
153
|
};
|
|
158
|
-
form: import("../../..").FormContext | undefined;
|
|
159
|
-
_size: ComputedRef<"" | "default" | "small" | "large">;
|
|
160
|
-
_disabled: ComputedRef<boolean>;
|
|
161
154
|
_ref: import("vue").Ref<HTMLButtonElement | undefined>;
|
|
155
|
+
_size: ComputedRef<"" | "default" | "small" | "large">;
|
|
162
156
|
_type: ComputedRef<"" | "default" | "primary" | "success" | "warning" | "info" | "danger" | "text">;
|
|
163
|
-
|
|
157
|
+
_disabled: ComputedRef<boolean>;
|
|
164
158
|
shouldAddSpace: ComputedRef<boolean>;
|
|
165
|
-
buttonStyle: ComputedRef<Record<string, string>>;
|
|
166
159
|
handleClick: (evt: MouseEvent) => void;
|
|
167
160
|
ElIcon: import("element-plus/es/utils").SFCWithInstall<import("vue").DefineComponent<{
|
|
168
161
|
readonly size: {
|
|
@@ -429,8 +422,18 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
429
422
|
onPick?: ((value: dayjs.Dayjs) => any) | undefined;
|
|
430
423
|
}>>;
|
|
431
424
|
emit: (event: "pick", value: dayjs.Dayjs) => void;
|
|
432
|
-
|
|
433
|
-
|
|
425
|
+
isInRange: ComputedRef<boolean>;
|
|
426
|
+
now: dayjs.Dayjs;
|
|
427
|
+
rows: ComputedRef<import("./date-table").CalendarDateCell[][]>;
|
|
428
|
+
weekDays: ComputedRef<string[]>;
|
|
429
|
+
getFormattedDate: (day: number, type: import("./date-table").CalendarDateCellType) => dayjs.Dayjs;
|
|
430
|
+
handlePickDay: ({ text, type }: import("./date-table").CalendarDateCell) => void;
|
|
431
|
+
getSlotData: ({ text, type }: import("./date-table").CalendarDateCell) => {
|
|
432
|
+
isSelected: boolean;
|
|
433
|
+
type: string;
|
|
434
|
+
day: string;
|
|
435
|
+
date: Date;
|
|
436
|
+
};
|
|
434
437
|
nsTable: {
|
|
435
438
|
namespace: import("vue").Ref<string>;
|
|
436
439
|
b: (blockSuffix?: string) => string;
|
|
@@ -467,20 +470,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
467
470
|
cssVarBlock: (object: Record<string, string>) => Record<string, string>;
|
|
468
471
|
cssVarBlockName: (name: string) => string;
|
|
469
472
|
};
|
|
470
|
-
now: dayjs.Dayjs;
|
|
471
|
-
firstDayOfWeek: number;
|
|
472
|
-
isInRange: ComputedRef<boolean>;
|
|
473
|
-
rows: ComputedRef<import("./date-table").CalendarDateCell[][]>;
|
|
474
|
-
weekDays: ComputedRef<string[]>;
|
|
475
|
-
getFormattedDate: (day: number, type: import("./date-table").CalendarDateCellType) => dayjs.Dayjs;
|
|
476
473
|
getCellClass: ({ text, type }: import("./date-table").CalendarDateCell) => string[];
|
|
477
|
-
handlePickDay: ({ text, type }: import("./date-table").CalendarDateCell) => void;
|
|
478
|
-
getSlotData: ({ text, type }: import("./date-table").CalendarDateCell) => {
|
|
479
|
-
isSelected: boolean;
|
|
480
|
-
type: string;
|
|
481
|
-
day: string;
|
|
482
|
-
date: Date;
|
|
483
|
-
};
|
|
484
474
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
485
475
|
pick: (value: dayjs.Dayjs) => boolean;
|
|
486
476
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { ExtractPropTypes } from 'vue';
|
|
2
2
|
import type { Dayjs } from 'dayjs';
|
|
3
|
-
import type DateTable from './date-table.vue';
|
|
4
3
|
export declare type CalendarDateCellType = 'next' | 'prev' | 'current';
|
|
5
4
|
export declare type CalendarDateCell = {
|
|
6
5
|
text: number;
|
|
@@ -40,4 +39,3 @@ export declare const dateTableEmits: {
|
|
|
40
39
|
pick: (value: Dayjs) => boolean;
|
|
41
40
|
};
|
|
42
41
|
export declare type DateTableEmits = typeof dateTableEmits;
|
|
43
|
-
export declare type DateTableInstance = InstanceType<typeof DateTable>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"date-table.js","sources":["../../../../../../packages/components/calendar/src/date-table.ts"],"sourcesContent":["import { buildProps, definePropType, isObject } from '@element-plus/utils'\nimport { rangeArr } from '@element-plus/components/time-picker'\nimport type { ExtractPropTypes } from 'vue'\nimport type { Dayjs } from 'dayjs'\
|
|
1
|
+
{"version":3,"file":"date-table.js","sources":["../../../../../../packages/components/calendar/src/date-table.ts"],"sourcesContent":["import { buildProps, definePropType, isObject } from '@element-plus/utils'\nimport { rangeArr } from '@element-plus/components/time-picker'\nimport type { ExtractPropTypes } from 'vue'\nimport type { Dayjs } from 'dayjs'\n\nexport type CalendarDateCellType = 'next' | 'prev' | 'current'\nexport type CalendarDateCell = {\n text: number\n type: CalendarDateCellType\n}\n\nexport const getPrevMonthLastDays = (date: Dayjs, count: number) => {\n const lastDay = date.subtract(1, 'month').endOf('month').date()\n return rangeArr(count).map((_, index) => lastDay - (count - index - 1))\n}\n\nexport const getMonthDays = (date: Dayjs) => {\n const days = date.daysInMonth()\n return rangeArr(days).map((_, index) => index + 1)\n}\n\nexport const toNestedArr = (days: CalendarDateCell[]) =>\n rangeArr(days.length / 7).map((index) => {\n const start = index * 7\n return days.slice(start, start + 7)\n })\n\nexport const dateTableProps = buildProps({\n selectedDay: {\n type: definePropType<Dayjs>(Object),\n },\n range: {\n type: definePropType<[Dayjs, Dayjs]>(Array),\n },\n date: {\n type: definePropType<Dayjs>(Object),\n required: true,\n },\n hideHeader: {\n type: Boolean,\n },\n} as const)\nexport type DateTableProps = ExtractPropTypes<typeof dateTableProps>\n\nexport const dateTableEmits = {\n pick: (value: Dayjs) => isObject(value),\n}\nexport type DateTableEmits = typeof dateTableEmits\n"],"names":["rangeArr","buildProps","definePropType","isObject"],"mappings":";;;;;;;;;;AAEY,MAAC,oBAAoB,GAAG,CAAC,IAAI,EAAE,KAAK,KAAK;AACrD,EAAE,MAAM,OAAO,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,CAAC;AAClE,EAAE,OAAOA,cAAQ,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,KAAK,KAAK,OAAO,IAAI,KAAK,GAAG,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC;AAC1E,EAAE;AACU,MAAC,YAAY,GAAG,CAAC,IAAI,KAAK;AACtC,EAAE,MAAM,IAAI,GAAG,IAAI,CAAC,WAAW,EAAE,CAAC;AAClC,EAAE,OAAOA,cAAQ,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,KAAK,KAAK,KAAK,GAAG,CAAC,CAAC,CAAC;AACrD,EAAE;AACU,MAAC,WAAW,GAAG,CAAC,IAAI,KAAKA,cAAQ,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,KAAK;AAC9E,EAAE,MAAM,KAAK,GAAG,KAAK,GAAG,CAAC,CAAC;AAC1B,EAAE,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,KAAK,GAAG,CAAC,CAAC,CAAC;AACtC,CAAC,EAAE;AACS,MAAC,cAAc,GAAGC,kBAAU,CAAC;AACzC,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAEC,sBAAc,CAAC,MAAM,CAAC;AAChC,GAAG;AACH,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAEA,sBAAc,CAAC,KAAK,CAAC;AAC/B,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAEA,sBAAc,CAAC,MAAM,CAAC;AAChC,IAAI,QAAQ,EAAE,IAAI;AAClB,GAAG;AACH,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,OAAO;AACjB,GAAG;AACH,CAAC,EAAE;AACS,MAAC,cAAc,GAAG;AAC9B,EAAE,IAAI,EAAE,CAAC,KAAK,KAAKC,eAAQ,CAAC,KAAK,CAAC;AAClC;;;;;;;;"}
|
|
@@ -1,21 +1,19 @@
|
|
|
1
|
-
import
|
|
2
|
-
import type { CalendarDateCell, CalendarDateCellType } from './date-table';
|
|
3
|
-
import type { Dayjs } from 'dayjs';
|
|
1
|
+
import type { CalendarDateCell } from './date-table';
|
|
4
2
|
declare const _default: import("vue").DefineComponent<{
|
|
5
3
|
readonly selectedDay: {
|
|
6
|
-
readonly type: import("vue").PropType<dayjs.Dayjs>;
|
|
4
|
+
readonly type: import("vue").PropType<import("dayjs").Dayjs>;
|
|
7
5
|
readonly required: false;
|
|
8
6
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
9
7
|
__epPropKey: true;
|
|
10
8
|
};
|
|
11
9
|
readonly range: {
|
|
12
|
-
readonly type: import("vue").PropType<[dayjs.Dayjs, dayjs.Dayjs]>;
|
|
10
|
+
readonly type: import("vue").PropType<[import("dayjs").Dayjs, import("dayjs").Dayjs]>;
|
|
13
11
|
readonly required: false;
|
|
14
12
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
15
13
|
__epPropKey: true;
|
|
16
14
|
};
|
|
17
15
|
readonly date: {
|
|
18
|
-
readonly type: import("vue").PropType<dayjs.Dayjs>;
|
|
16
|
+
readonly type: import("vue").PropType<import("dayjs").Dayjs>;
|
|
19
17
|
readonly required: true;
|
|
20
18
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
21
19
|
__epPropKey: true;
|
|
@@ -29,19 +27,19 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
29
27
|
}, {
|
|
30
28
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
31
29
|
readonly selectedDay: {
|
|
32
|
-
readonly type: import("vue").PropType<dayjs.Dayjs>;
|
|
30
|
+
readonly type: import("vue").PropType<import("dayjs").Dayjs>;
|
|
33
31
|
readonly required: false;
|
|
34
32
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
35
33
|
__epPropKey: true;
|
|
36
34
|
};
|
|
37
35
|
readonly range: {
|
|
38
|
-
readonly type: import("vue").PropType<[dayjs.Dayjs, dayjs.Dayjs]>;
|
|
36
|
+
readonly type: import("vue").PropType<[import("dayjs").Dayjs, import("dayjs").Dayjs]>;
|
|
39
37
|
readonly required: false;
|
|
40
38
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
41
39
|
__epPropKey: true;
|
|
42
40
|
};
|
|
43
41
|
readonly date: {
|
|
44
|
-
readonly type: import("vue").PropType<dayjs.Dayjs>;
|
|
42
|
+
readonly type: import("vue").PropType<import("dayjs").Dayjs>;
|
|
45
43
|
readonly required: true;
|
|
46
44
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
47
45
|
__epPropKey: true;
|
|
@@ -53,11 +51,21 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
53
51
|
__epPropKey: true;
|
|
54
52
|
};
|
|
55
53
|
}>> & {
|
|
56
|
-
onPick?: ((value: dayjs.Dayjs) => any) | undefined;
|
|
54
|
+
onPick?: ((value: import("dayjs").Dayjs) => any) | undefined;
|
|
57
55
|
}>>;
|
|
58
|
-
emit: (event: "pick", value: dayjs.Dayjs) => void;
|
|
59
|
-
|
|
60
|
-
|
|
56
|
+
emit: (event: "pick", value: import("dayjs").Dayjs) => void;
|
|
57
|
+
isInRange: import("vue").ComputedRef<boolean>;
|
|
58
|
+
now: import("dayjs").Dayjs;
|
|
59
|
+
rows: import("vue").ComputedRef<CalendarDateCell[][]>;
|
|
60
|
+
weekDays: import("vue").ComputedRef<string[]>;
|
|
61
|
+
getFormattedDate: (day: number, type: import("./date-table").CalendarDateCellType) => import("dayjs").Dayjs;
|
|
62
|
+
handlePickDay: ({ text, type }: CalendarDateCell) => void;
|
|
63
|
+
getSlotData: ({ text, type }: CalendarDateCell) => {
|
|
64
|
+
isSelected: boolean;
|
|
65
|
+
type: string;
|
|
66
|
+
day: string;
|
|
67
|
+
date: Date;
|
|
68
|
+
};
|
|
61
69
|
nsTable: {
|
|
62
70
|
namespace: import("vue").Ref<string>;
|
|
63
71
|
b: (blockSuffix?: string) => string;
|
|
@@ -94,37 +102,24 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
94
102
|
cssVarBlock: (object: Record<string, string>) => Record<string, string>;
|
|
95
103
|
cssVarBlockName: (name: string) => string;
|
|
96
104
|
};
|
|
97
|
-
now: dayjs.Dayjs;
|
|
98
|
-
firstDayOfWeek: number;
|
|
99
|
-
isInRange: import("vue").ComputedRef<boolean>;
|
|
100
|
-
rows: import("vue").ComputedRef<CalendarDateCell[][]>;
|
|
101
|
-
weekDays: import("vue").ComputedRef<string[]>;
|
|
102
|
-
getFormattedDate: (day: number, type: CalendarDateCellType) => Dayjs;
|
|
103
105
|
getCellClass: ({ text, type }: CalendarDateCell) => string[];
|
|
104
|
-
handlePickDay: ({ text, type }: CalendarDateCell) => void;
|
|
105
|
-
getSlotData: ({ text, type }: CalendarDateCell) => {
|
|
106
|
-
isSelected: boolean;
|
|
107
|
-
type: string;
|
|
108
|
-
day: string;
|
|
109
|
-
date: Date;
|
|
110
|
-
};
|
|
111
106
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
112
|
-
pick: (value: dayjs.Dayjs) => boolean;
|
|
107
|
+
pick: (value: import("dayjs").Dayjs) => boolean;
|
|
113
108
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
114
109
|
readonly selectedDay: {
|
|
115
|
-
readonly type: import("vue").PropType<dayjs.Dayjs>;
|
|
110
|
+
readonly type: import("vue").PropType<import("dayjs").Dayjs>;
|
|
116
111
|
readonly required: false;
|
|
117
112
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
118
113
|
__epPropKey: true;
|
|
119
114
|
};
|
|
120
115
|
readonly range: {
|
|
121
|
-
readonly type: import("vue").PropType<[dayjs.Dayjs, dayjs.Dayjs]>;
|
|
116
|
+
readonly type: import("vue").PropType<[import("dayjs").Dayjs, import("dayjs").Dayjs]>;
|
|
122
117
|
readonly required: false;
|
|
123
118
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
124
119
|
__epPropKey: true;
|
|
125
120
|
};
|
|
126
121
|
readonly date: {
|
|
127
|
-
readonly type: import("vue").PropType<dayjs.Dayjs>;
|
|
122
|
+
readonly type: import("vue").PropType<import("dayjs").Dayjs>;
|
|
128
123
|
readonly required: true;
|
|
129
124
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
130
125
|
__epPropKey: true;
|
|
@@ -136,6 +131,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
136
131
|
__epPropKey: true;
|
|
137
132
|
};
|
|
138
133
|
}>> & {
|
|
139
|
-
onPick?: ((value: dayjs.Dayjs) => any) | undefined;
|
|
134
|
+
onPick?: ((value: import("dayjs").Dayjs) => any) | undefined;
|
|
140
135
|
}, {}>;
|
|
141
136
|
export default _default;
|