@element-plus/nightly 0.0.20240705 → 0.0.20240707
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/attributes.json +1 -1
- package/dist/index.css +1 -1
- package/dist/index.full.js +22 -10
- package/dist/index.full.min.js +10 -10
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +10 -10
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +22 -10
- 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-eg.js +1 -1
- package/dist/locale/ar-eg.min.js +1 -1
- package/dist/locale/ar-eg.min.mjs +1 -1
- package/dist/locale/ar-eg.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/ckb.js +1 -1
- package/dist/locale/ckb.min.js +1 -1
- package/dist/locale/ckb.min.mjs +1 -1
- package/dist/locale/ckb.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/sw.js +1 -1
- package/dist/locale/sw.min.js +1 -1
- package/dist/locale/sw.min.mjs +1 -1
- package/dist/locale/sw.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/countdown/index.mjs +2 -2
- package/es/components/countdown/src/countdown.mjs +23 -74
- package/es/components/countdown/src/countdown.mjs.map +1 -1
- package/es/components/countdown/src/countdown2.mjs +74 -23
- package/es/components/countdown/src/countdown2.mjs.map +1 -1
- package/es/components/icon/index.mjs +2 -2
- package/es/components/icon/src/icon.mjs +36 -8
- package/es/components/icon/src/icon.mjs.map +1 -1
- package/es/components/icon/src/icon2.mjs +8 -36
- package/es/components/icon/src/icon2.mjs.map +1 -1
- package/es/components/index.mjs +3 -3
- package/es/components/message-box/src/index.mjs +7 -2
- package/es/components/message-box/src/index.mjs.map +1 -1
- package/es/components/message-box/src/index.vue.d.ts +242 -0
- package/es/components/message-box/src/message-box.type.d.ts +6 -0
- package/es/components/pagination/src/components/jumper.mjs +9 -60
- package/es/components/pagination/src/components/jumper.mjs.map +1 -1
- package/es/components/pagination/src/components/jumper2.mjs +60 -9
- package/es/components/pagination/src/components/jumper2.mjs.map +1 -1
- package/es/components/pagination/src/components/sizes.vue.d.ts +15 -0
- package/es/components/pagination/src/pagination.mjs +1 -1
- package/es/components/select/index.d.ts +15 -0
- package/es/components/select/src/select.d.ts +7 -0
- package/es/components/select/src/select.mjs +1 -0
- package/es/components/select/src/select.mjs.map +1 -1
- package/es/components/select/src/select.vue.d.ts +15 -0
- package/es/components/select/src/select2.mjs +6 -3
- package/es/components/select/src/select2.mjs.map +1 -1
- package/es/components/select-v2/index.d.ts +30 -0
- package/es/components/select-v2/src/defaults.d.ts +7 -0
- package/es/components/select-v2/src/defaults.mjs +1 -0
- package/es/components/select-v2/src/defaults.mjs.map +1 -1
- package/es/components/select-v2/src/select.mjs +6 -3
- package/es/components/select-v2/src/select.mjs.map +1 -1
- package/es/components/select-v2/src/select.vue.d.ts +15 -0
- package/es/components/time-select/index.d.ts +60 -0
- package/es/components/time-select/src/time-select.vue.d.ts +30 -0
- package/es/components/transfer/index.mjs +2 -2
- package/es/components/transfer/src/composables/use-checked-change.mjs +1 -1
- package/es/components/transfer/src/transfer-panel.mjs +1 -1
- package/es/components/transfer/src/transfer.mjs +160 -69
- package/es/components/transfer/src/transfer.mjs.map +1 -1
- package/es/components/transfer/src/transfer2.mjs +69 -160
- package/es/components/transfer/src/transfer2.mjs.map +1 -1
- package/es/index.mjs +3 -3
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/components/countdown/index.js +2 -2
- package/lib/components/countdown/src/countdown.js +24 -74
- package/lib/components/countdown/src/countdown.js.map +1 -1
- package/lib/components/countdown/src/countdown2.js +74 -24
- package/lib/components/countdown/src/countdown2.js.map +1 -1
- package/lib/components/icon/index.js +2 -2
- package/lib/components/icon/src/icon.js +36 -8
- package/lib/components/icon/src/icon.js.map +1 -1
- package/lib/components/icon/src/icon2.js +8 -36
- package/lib/components/icon/src/icon2.js.map +1 -1
- package/lib/components/index.js +3 -3
- package/lib/components/message-box/src/index.js +7 -2
- package/lib/components/message-box/src/index.js.map +1 -1
- package/lib/components/message-box/src/index.vue.d.ts +242 -0
- package/lib/components/message-box/src/message-box.type.d.ts +6 -0
- package/lib/components/pagination/src/components/jumper.js +9 -60
- package/lib/components/pagination/src/components/jumper.js.map +1 -1
- package/lib/components/pagination/src/components/jumper2.js +60 -9
- package/lib/components/pagination/src/components/jumper2.js.map +1 -1
- package/lib/components/pagination/src/components/sizes.vue.d.ts +15 -0
- package/lib/components/pagination/src/pagination.js +1 -1
- package/lib/components/select/index.d.ts +15 -0
- package/lib/components/select/src/select.d.ts +7 -0
- package/lib/components/select/src/select.js +1 -0
- package/lib/components/select/src/select.js.map +1 -1
- package/lib/components/select/src/select.vue.d.ts +15 -0
- package/lib/components/select/src/select2.js +6 -3
- package/lib/components/select/src/select2.js.map +1 -1
- package/lib/components/select-v2/index.d.ts +30 -0
- package/lib/components/select-v2/src/defaults.d.ts +7 -0
- package/lib/components/select-v2/src/defaults.js +1 -0
- package/lib/components/select-v2/src/defaults.js.map +1 -1
- package/lib/components/select-v2/src/select.js +6 -3
- package/lib/components/select-v2/src/select.js.map +1 -1
- package/lib/components/select-v2/src/select.vue.d.ts +15 -0
- package/lib/components/time-select/index.d.ts +60 -0
- package/lib/components/time-select/src/time-select.vue.d.ts +30 -0
- package/lib/components/transfer/index.js +2 -2
- package/lib/components/transfer/src/composables/use-checked-change.js +1 -1
- package/lib/components/transfer/src/transfer-panel.js +1 -1
- package/lib/components/transfer/src/transfer.js +160 -73
- package/lib/components/transfer/src/transfer.js.map +1 -1
- package/lib/components/transfer/src/transfer2.js +73 -160
- package/lib/components/transfer/src/transfer2.js.map +1 -1
- package/lib/index.js +3 -3
- 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/tags.json +1 -1
- package/theme-chalk/el-select-v2.css +1 -1
- package/theme-chalk/el-select.css +1 -1
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/src/select.scss +4 -0
- package/web-types.json +1 -1
package/es/index.mjs
CHANGED
|
@@ -59,7 +59,7 @@ export { configProviderContextKey } from './components/config-provider/src/const
|
|
|
59
59
|
export { provideGlobalConfig, useGlobalComponentSettings, useGlobalConfig } from './components/config-provider/src/hooks/use-global-config.mjs';
|
|
60
60
|
export { ElConfigProvider } from './components/config-provider/index.mjs';
|
|
61
61
|
export { ElAside, ElContainer, ElFooter, ElHeader, ElMain } from './components/container/index.mjs';
|
|
62
|
-
export { countdownEmits, countdownProps } from './components/countdown/src/
|
|
62
|
+
export { countdownEmits, countdownProps } from './components/countdown/src/countdown.mjs';
|
|
63
63
|
export { ElCountdown } from './components/countdown/index.mjs';
|
|
64
64
|
export { ROOT_PICKER_INJECTION_KEY } from './components/date-picker/src/constants.mjs';
|
|
65
65
|
export { datePickerProps } from './components/date-picker/src/props/date-picker.mjs';
|
|
@@ -86,7 +86,7 @@ export { formContextKey, formItemContextKey } from './components/form/src/consta
|
|
|
86
86
|
export { useDisabled, useFormDisabled, useFormSize, useSize } from './components/form/src/hooks/use-form-common-props.mjs';
|
|
87
87
|
export { useFormItem, useFormItemInputId } from './components/form/src/hooks/use-form-item.mjs';
|
|
88
88
|
export { ElForm, ElFormItem } from './components/form/index.mjs';
|
|
89
|
-
export { iconProps } from './components/icon/src/
|
|
89
|
+
export { iconProps } from './components/icon/src/icon2.mjs';
|
|
90
90
|
export { ElIcon } from './components/icon/index.mjs';
|
|
91
91
|
export { imageEmits, imageProps } from './components/image/src/image.mjs';
|
|
92
92
|
export { ElImage } from './components/image/index.mjs';
|
|
@@ -193,7 +193,7 @@ export { useTooltipTriggerProps } from './components/tooltip/src/trigger.mjs';
|
|
|
193
193
|
export { useTooltipContentProps } from './components/tooltip/src/content.mjs';
|
|
194
194
|
export { TOOLTIP_INJECTION_KEY } from './components/tooltip/src/constants.mjs';
|
|
195
195
|
export { ElTooltip } from './components/tooltip/index.mjs';
|
|
196
|
-
export { LEFT_CHECK_CHANGE_EVENT, RIGHT_CHECK_CHANGE_EVENT, transferCheckedChangeFn, transferEmits, transferProps } from './components/transfer/src/
|
|
196
|
+
export { LEFT_CHECK_CHANGE_EVENT, RIGHT_CHECK_CHANGE_EVENT, transferCheckedChangeFn, transferEmits, transferProps } from './components/transfer/src/transfer2.mjs';
|
|
197
197
|
export { ElTransfer } from './components/transfer/index.mjs';
|
|
198
198
|
export { ElTree } from './components/tree/index.mjs';
|
|
199
199
|
export { ElTreeSelect } from './components/tree-select/index.mjs';
|
package/es/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "0.0.
|
|
1
|
+
export declare const version = "0.0.20240707";
|
package/es/version.mjs
CHANGED
package/es/version.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.mjs","sources":["../../../packages/element-plus/version.ts"],"sourcesContent":["export const version = '0.0.
|
|
1
|
+
{"version":3,"file":"version.mjs","sources":["../../../packages/element-plus/version.ts"],"sourcesContent":["export const version = '0.0.20240707'\n"],"names":[],"mappings":"AAAY,MAAC,OAAO,GAAG;;;;"}
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
require('../../utils/index.js');
|
|
6
|
-
var countdown$1 = require('./src/
|
|
7
|
-
var countdown = require('./src/
|
|
6
|
+
var countdown$1 = require('./src/countdown2.js');
|
|
7
|
+
var countdown = require('./src/countdown.js');
|
|
8
8
|
var install = require('../../utils/vue/install.js');
|
|
9
9
|
|
|
10
10
|
const ElCountdown = install.withInstall(countdown$1["default"]);
|
|
@@ -2,83 +2,33 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var vue = require('vue');
|
|
6
|
-
var index = require('../../statistic/index.js');
|
|
7
5
|
require('../../../utils/index.js');
|
|
8
|
-
|
|
9
|
-
var
|
|
10
|
-
var
|
|
11
|
-
var
|
|
6
|
+
require('../../../constants/index.js');
|
|
7
|
+
var runtime = require('../../../utils/vue/props/runtime.js');
|
|
8
|
+
var event = require('../../../constants/event.js');
|
|
9
|
+
var types = require('../../../utils/types.js');
|
|
12
10
|
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
if (timer) {
|
|
28
|
-
raf.cAF(timer);
|
|
29
|
-
timer = void 0;
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
const startTimer = () => {
|
|
33
|
-
const timestamp = utils.getTime(props.value);
|
|
34
|
-
const frameFunc = () => {
|
|
35
|
-
let diff = timestamp - Date.now();
|
|
36
|
-
emit("change", diff);
|
|
37
|
-
if (diff <= 0) {
|
|
38
|
-
diff = 0;
|
|
39
|
-
stopTimer();
|
|
40
|
-
emit("finish");
|
|
41
|
-
} else {
|
|
42
|
-
timer = raf.rAF(frameFunc);
|
|
43
|
-
}
|
|
44
|
-
rawValue.value = diff;
|
|
45
|
-
};
|
|
46
|
-
timer = raf.rAF(frameFunc);
|
|
47
|
-
};
|
|
48
|
-
vue.watch(() => [props.value, props.format], () => {
|
|
49
|
-
stopTimer();
|
|
50
|
-
startTimer();
|
|
51
|
-
}, {
|
|
52
|
-
immediate: true
|
|
53
|
-
});
|
|
54
|
-
vue.onBeforeUnmount(() => {
|
|
55
|
-
stopTimer();
|
|
56
|
-
});
|
|
57
|
-
expose({
|
|
58
|
-
displayValue
|
|
59
|
-
});
|
|
60
|
-
return (_ctx, _cache) => {
|
|
61
|
-
return vue.openBlock(), vue.createBlock(vue.unref(index.ElStatistic), {
|
|
62
|
-
value: rawValue.value,
|
|
63
|
-
title: _ctx.title,
|
|
64
|
-
prefix: _ctx.prefix,
|
|
65
|
-
suffix: _ctx.suffix,
|
|
66
|
-
"value-style": _ctx.valueStyle,
|
|
67
|
-
formatter
|
|
68
|
-
}, vue.createSlots({ _: 2 }, [
|
|
69
|
-
vue.renderList(_ctx.$slots, (_, name) => {
|
|
70
|
-
return {
|
|
71
|
-
name,
|
|
72
|
-
fn: vue.withCtx(() => [
|
|
73
|
-
vue.renderSlot(_ctx.$slots, name)
|
|
74
|
-
])
|
|
75
|
-
};
|
|
76
|
-
})
|
|
77
|
-
]), 1032, ["value", "title", "prefix", "suffix", "value-style"]);
|
|
78
|
-
};
|
|
11
|
+
const countdownProps = runtime.buildProps({
|
|
12
|
+
format: {
|
|
13
|
+
type: String,
|
|
14
|
+
default: "HH:mm:ss"
|
|
15
|
+
},
|
|
16
|
+
prefix: String,
|
|
17
|
+
suffix: String,
|
|
18
|
+
title: String,
|
|
19
|
+
value: {
|
|
20
|
+
type: runtime.definePropType([Number, Object]),
|
|
21
|
+
default: 0
|
|
22
|
+
},
|
|
23
|
+
valueStyle: {
|
|
24
|
+
type: runtime.definePropType([String, Object, Array])
|
|
79
25
|
}
|
|
80
26
|
});
|
|
81
|
-
|
|
27
|
+
const countdownEmits = {
|
|
28
|
+
finish: () => true,
|
|
29
|
+
[event.CHANGE_EVENT]: (value) => types.isNumber(value)
|
|
30
|
+
};
|
|
82
31
|
|
|
83
|
-
exports
|
|
32
|
+
exports.countdownEmits = countdownEmits;
|
|
33
|
+
exports.countdownProps = countdownProps;
|
|
84
34
|
//# sourceMappingURL=countdown.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"countdown.js","sources":["../../../../../../packages/components/countdown/src/countdown.
|
|
1
|
+
{"version":3,"file":"countdown.js","sources":["../../../../../../packages/components/countdown/src/countdown.ts"],"sourcesContent":["import { buildProps, definePropType, isNumber } from '@element-plus/utils'\nimport { CHANGE_EVENT } from '@element-plus/constants'\n\nimport type { ExtractPropTypes, StyleValue } from 'vue'\nimport type { Dayjs } from 'dayjs'\nimport type Countdown from './countdown.vue'\n\nexport const countdownProps = buildProps({\n /**\n * @description Formatting the countdown display\n */\n format: {\n type: String,\n default: 'HH:mm:ss',\n },\n /**\n * @description Sets the prefix of a countdown\n */\n prefix: String,\n /**\n * @description Sets the suffix of a countdown\n */\n suffix: String,\n /**\n * @description countdown titles\n */\n title: String,\n /**\n * @description target time\n */\n value: {\n type: definePropType<number | Dayjs>([Number, Object]),\n default: 0,\n },\n /**\n * @description Styles countdown values\n */\n valueStyle: {\n type: definePropType<StyleValue>([String, Object, Array]),\n },\n} as const)\nexport type CountdownProps = ExtractPropTypes<typeof countdownProps>\n\nexport const countdownEmits = {\n finish: () => true,\n [CHANGE_EVENT]: (value: number) => isNumber(value),\n}\nexport type CountdownEmits = typeof countdownEmits\n\nexport type CountdownInstance = InstanceType<typeof Countdown>\n"],"names":["buildProps","definePropType","CHANGE_EVENT","isNumber"],"mappings":";;;;;;;;;;AAEY,MAAC,cAAc,GAAGA,kBAAU,CAAC;AACzC,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,UAAU;AACvB,GAAG;AACH,EAAE,MAAM,EAAE,MAAM;AAChB,EAAE,MAAM,EAAE,MAAM;AAChB,EAAE,KAAK,EAAE,MAAM;AACf,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAEC,sBAAc,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAC1C,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAEA,sBAAc,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC;AACjD,GAAG;AACH,CAAC,EAAE;AACS,MAAC,cAAc,GAAG;AAC9B,EAAE,MAAM,EAAE,MAAM,IAAI;AACpB,EAAE,CAACC,kBAAY,GAAG,CAAC,KAAK,KAAKC,cAAQ,CAAC,KAAK,CAAC;AAC5C;;;;;"}
|
|
@@ -2,33 +2,83 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
+
var vue = require('vue');
|
|
6
|
+
var index = require('../../statistic/index.js');
|
|
5
7
|
require('../../../utils/index.js');
|
|
6
|
-
require('
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
var
|
|
8
|
+
var countdown = require('./countdown.js');
|
|
9
|
+
var utils = require('./utils.js');
|
|
10
|
+
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
|
11
|
+
var raf = require('../../../utils/raf.js');
|
|
10
12
|
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
13
|
+
const __default__ = vue.defineComponent({
|
|
14
|
+
name: "ElCountdown"
|
|
15
|
+
});
|
|
16
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
17
|
+
...__default__,
|
|
18
|
+
props: countdown.countdownProps,
|
|
19
|
+
emits: countdown.countdownEmits,
|
|
20
|
+
setup(__props, { expose, emit }) {
|
|
21
|
+
const props = __props;
|
|
22
|
+
let timer;
|
|
23
|
+
const rawValue = vue.ref(utils.getTime(props.value) - Date.now());
|
|
24
|
+
const displayValue = vue.computed(() => utils.formatTime(rawValue.value, props.format));
|
|
25
|
+
const formatter = (val) => utils.formatTime(val, props.format);
|
|
26
|
+
const stopTimer = () => {
|
|
27
|
+
if (timer) {
|
|
28
|
+
raf.cAF(timer);
|
|
29
|
+
timer = void 0;
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
const startTimer = () => {
|
|
33
|
+
const timestamp = utils.getTime(props.value);
|
|
34
|
+
const frameFunc = () => {
|
|
35
|
+
let diff = timestamp - Date.now();
|
|
36
|
+
emit("change", diff);
|
|
37
|
+
if (diff <= 0) {
|
|
38
|
+
diff = 0;
|
|
39
|
+
stopTimer();
|
|
40
|
+
emit("finish");
|
|
41
|
+
} else {
|
|
42
|
+
timer = raf.rAF(frameFunc);
|
|
43
|
+
}
|
|
44
|
+
rawValue.value = diff;
|
|
45
|
+
};
|
|
46
|
+
timer = raf.rAF(frameFunc);
|
|
47
|
+
};
|
|
48
|
+
vue.watch(() => [props.value, props.format], () => {
|
|
49
|
+
stopTimer();
|
|
50
|
+
startTimer();
|
|
51
|
+
}, {
|
|
52
|
+
immediate: true
|
|
53
|
+
});
|
|
54
|
+
vue.onBeforeUnmount(() => {
|
|
55
|
+
stopTimer();
|
|
56
|
+
});
|
|
57
|
+
expose({
|
|
58
|
+
displayValue
|
|
59
|
+
});
|
|
60
|
+
return (_ctx, _cache) => {
|
|
61
|
+
return vue.openBlock(), vue.createBlock(vue.unref(index.ElStatistic), {
|
|
62
|
+
value: rawValue.value,
|
|
63
|
+
title: _ctx.title,
|
|
64
|
+
prefix: _ctx.prefix,
|
|
65
|
+
suffix: _ctx.suffix,
|
|
66
|
+
"value-style": _ctx.valueStyle,
|
|
67
|
+
formatter
|
|
68
|
+
}, vue.createSlots({ _: 2 }, [
|
|
69
|
+
vue.renderList(_ctx.$slots, (_, name) => {
|
|
70
|
+
return {
|
|
71
|
+
name,
|
|
72
|
+
fn: vue.withCtx(() => [
|
|
73
|
+
vue.renderSlot(_ctx.$slots, name)
|
|
74
|
+
])
|
|
75
|
+
};
|
|
76
|
+
})
|
|
77
|
+
]), 1032, ["value", "title", "prefix", "suffix", "value-style"]);
|
|
78
|
+
};
|
|
25
79
|
}
|
|
26
80
|
});
|
|
27
|
-
|
|
28
|
-
finish: () => true,
|
|
29
|
-
[event.CHANGE_EVENT]: (value) => types.isNumber(value)
|
|
30
|
-
};
|
|
81
|
+
var Countdown = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "countdown.vue"]]);
|
|
31
82
|
|
|
32
|
-
exports
|
|
33
|
-
exports.countdownProps = countdownProps;
|
|
83
|
+
exports["default"] = Countdown;
|
|
34
84
|
//# sourceMappingURL=countdown2.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"countdown2.js","sources":["../../../../../../packages/components/countdown/src/countdown.
|
|
1
|
+
{"version":3,"file":"countdown2.js","sources":["../../../../../../packages/components/countdown/src/countdown.vue"],"sourcesContent":["<template>\n <el-statistic\n :value=\"rawValue\"\n :title=\"title\"\n :prefix=\"prefix\"\n :suffix=\"suffix\"\n :value-style=\"valueStyle\"\n :formatter=\"formatter\"\n >\n <template v-for=\"(_, name) in $slots\" #[name]>\n <slot :name=\"name\" />\n </template>\n </el-statistic>\n</template>\n<script lang=\"ts\" setup>\nimport { computed, onBeforeUnmount, ref, watch } from 'vue'\nimport { ElStatistic } from '@element-plus/components/statistic'\nimport { cAF, rAF } from '@element-plus/utils'\nimport { countdownEmits, countdownProps } from './countdown'\nimport { formatTime, getTime } from './utils'\n\ndefineOptions({\n name: 'ElCountdown',\n})\n\nconst props = defineProps(countdownProps)\nconst emit = defineEmits(countdownEmits)\n\nlet timer: ReturnType<typeof rAF> | undefined\nconst rawValue = ref(getTime(props.value) - Date.now())\nconst displayValue = computed(() => formatTime(rawValue.value, props.format))\n\nconst formatter = (val: number) => formatTime(val, props.format)\n\nconst stopTimer = () => {\n if (timer) {\n cAF(timer)\n timer = undefined\n }\n}\n\nconst startTimer = () => {\n const timestamp = getTime(props.value)\n const frameFunc = () => {\n let diff = timestamp - Date.now()\n emit('change', diff)\n if (diff <= 0) {\n diff = 0\n stopTimer()\n emit('finish')\n } else {\n timer = rAF(frameFunc)\n }\n rawValue.value = diff\n }\n timer = rAF(frameFunc)\n}\n\nwatch(\n () => [props.value, props.format],\n () => {\n stopTimer()\n startTimer()\n },\n {\n immediate: true,\n }\n)\n\nonBeforeUnmount(() => {\n stopTimer()\n})\n\ndefineExpose({\n /**\n * @description current display value\n */\n displayValue,\n})\n</script>\n"],"names":["ref","getTime","computed","formatTime","cAF","rAF","watch","onBeforeUnmount"],"mappings":";;;;;;;;;;;;uCAqBc,CAAA;AAAA,EACZ,IAAM,EAAA,aAAA;AACR,CAAA,CAAA,CAAA;;;;;;;AAKA,IAAI,IAAA,KAAA,CAAA;AACJ,IAAM,MAAA,QAAA,GAAWA,QAAIC,aAAQ,CAAA,KAAA,CAAM,KAAK,CAAI,GAAA,IAAA,CAAK,KAAK,CAAA,CAAA;AACtD,IAAM,MAAA,YAAA,GAAeC,aAAS,MAAMC,gBAAA,CAAW,SAAS,KAAO,EAAA,KAAA,CAAM,MAAM,CAAC,CAAA,CAAA;AAE5E,IAAA,MAAM,YAAY,CAAC,GAAA,KAAgBA,gBAAW,CAAA,GAAA,EAAK,MAAM,MAAM,CAAA,CAAA;AAE/D,IAAA,MAAM,YAAY,MAAM;AACtB,MAAA,IAAI,KAAO,EAAA;AACT,QAAAC,OAAA,CAAI,KAAK,CAAA,CAAA;AACT,QAAQ,KAAA,GAAA,KAAA,CAAA,CAAA;AAAA,OACV;AAAA,KACF,CAAA;AAEA,IAAA,MAAM,aAAa,MAAM;AACvB,MAAM,MAAA,SAAA,GAAYH,aAAQ,CAAA,KAAA,CAAM,KAAK,CAAA,CAAA;AACrC,MAAA,MAAM,YAAY,MAAM;AACtB,QAAI,IAAA,IAAA,GAAO,SAAY,GAAA,IAAA,CAAK,GAAI,EAAA,CAAA;AAChC,QAAA,IAAA,CAAK,UAAU,IAAI,CAAA,CAAA;AACnB,QAAA,IAAI,QAAQ,CAAG,EAAA;AACb,UAAO,IAAA,GAAA,CAAA,CAAA;AACP,UAAU,SAAA,EAAA,CAAA;AACV,UAAA,IAAA,CAAK,QAAQ,CAAA,CAAA;AAAA,SACR,MAAA;AACL,UAAA,KAAA,GAAQI,QAAI,SAAS,CAAA,CAAA;AAAA,SACvB;AACA,QAAA,QAAA,CAAS,KAAQ,GAAA,IAAA,CAAA;AAAA,OACnB,CAAA;AACA,MAAA,KAAA,GAAQA,QAAI,SAAS,CAAA,CAAA;AAAA,KACvB,CAAA;AAEA,IAAAC,SAAA,CACE,MAAM,CAAC,KAAA,CAAM,OAAO,KAAM,CAAA,MAAM,GAChC,MAAM;AACJ,MAAU,SAAA,EAAA,CAAA;AACV,MAAW,UAAA,EAAA,CAAA;AAAA,KAEb,EAAA;AAAA,MACE,SAAW,EAAA,IAAA;AAAA,KAEf,CAAA,CAAA;AAEA,IAAAC,mBAAA,CAAgB,MAAM;AACpB,MAAU,SAAA,EAAA,CAAA;AAAA,KACX,CAAA,CAAA;AAED,IAAa,MAAA,CAAA;AAAA,MAIX,YAAA;AAAA,KACD,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
require('../../utils/index.js');
|
|
6
|
-
var icon$1 = require('./src/
|
|
7
|
-
var icon = require('./src/
|
|
6
|
+
var icon$1 = require('./src/icon.js');
|
|
7
|
+
var icon = require('./src/icon2.js');
|
|
8
8
|
var install = require('../../utils/vue/install.js');
|
|
9
9
|
|
|
10
10
|
const ElIcon = install.withInstall(icon$1["default"]);
|
|
@@ -2,17 +2,45 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
+
var vue = require('vue');
|
|
5
6
|
require('../../../utils/index.js');
|
|
6
|
-
|
|
7
|
+
require('../../../hooks/index.js');
|
|
8
|
+
var icon = require('./icon2.js');
|
|
9
|
+
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
|
10
|
+
var index = require('../../../hooks/use-namespace/index.js');
|
|
11
|
+
var types = require('../../../utils/types.js');
|
|
12
|
+
var style = require('../../../utils/dom/style.js');
|
|
7
13
|
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
+
const __default__ = vue.defineComponent({
|
|
15
|
+
name: "ElIcon",
|
|
16
|
+
inheritAttrs: false
|
|
17
|
+
});
|
|
18
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
19
|
+
...__default__,
|
|
20
|
+
props: icon.iconProps,
|
|
21
|
+
setup(__props) {
|
|
22
|
+
const props = __props;
|
|
23
|
+
const ns = index.useNamespace("icon");
|
|
24
|
+
const style$1 = vue.computed(() => {
|
|
25
|
+
const { size, color } = props;
|
|
26
|
+
if (!size && !color)
|
|
27
|
+
return {};
|
|
28
|
+
return {
|
|
29
|
+
fontSize: types.isUndefined(size) ? void 0 : style.addUnit(size),
|
|
30
|
+
"--color": color
|
|
31
|
+
};
|
|
32
|
+
});
|
|
33
|
+
return (_ctx, _cache) => {
|
|
34
|
+
return vue.openBlock(), vue.createElementBlock("i", vue.mergeProps({
|
|
35
|
+
class: vue.unref(ns).b(),
|
|
36
|
+
style: vue.unref(style$1)
|
|
37
|
+
}, _ctx.$attrs), [
|
|
38
|
+
vue.renderSlot(_ctx.$slots, "default")
|
|
39
|
+
], 16);
|
|
40
|
+
};
|
|
14
41
|
}
|
|
15
42
|
});
|
|
43
|
+
var Icon = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "icon.vue"]]);
|
|
16
44
|
|
|
17
|
-
exports
|
|
45
|
+
exports["default"] = Icon;
|
|
18
46
|
//# sourceMappingURL=icon.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icon.js","sources":["../../../../../../packages/components/icon/src/icon.
|
|
1
|
+
{"version":3,"file":"icon.js","sources":["../../../../../../packages/components/icon/src/icon.vue"],"sourcesContent":["<template>\n <i :class=\"ns.b()\" :style=\"style\" v-bind=\"$attrs\">\n <slot />\n </i>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed } from 'vue'\nimport { addUnit, isUndefined } from '@element-plus/utils'\nimport { useNamespace } from '@element-plus/hooks'\nimport { iconProps } from './icon'\nimport type { CSSProperties } from 'vue'\n\ndefineOptions({\n name: 'ElIcon',\n inheritAttrs: false,\n})\nconst props = defineProps(iconProps)\nconst ns = useNamespace('icon')\n\nconst style = computed<CSSProperties>(() => {\n const { size, color } = props\n if (!size && !color) return {}\n\n return {\n fontSize: isUndefined(size) ? undefined : addUnit(size),\n '--color': color,\n }\n})\n</script>\n"],"names":["useNamespace","style","computed","isUndefined","addUnit"],"mappings":";;;;;;;;;;;;;uCAac,CAAA;AAAA,EACZ,IAAM,EAAA,QAAA;AAAA,EACN,YAAc,EAAA,KAAA;AAChB,CAAA,CAAA,CAAA;;;;;;AAEA,IAAM,MAAA,EAAA,GAAKA,mBAAa,MAAM,CAAA,CAAA;AAE9B,IAAM,MAAAC,OAAA,GAAQC,aAAwB,MAAM;AAC1C,MAAM,MAAA,EAAE,MAAM,KAAU,EAAA,GAAA,KAAA,CAAA;AACxB,MAAI,IAAA,CAAC,QAAQ,CAAC,KAAA;AAAO,QAAA,OAAO,EAAC,CAAA;AAE7B,MAAO,OAAA;AAAA,QACL,UAAUC,iBAAY,CAAA,IAAI,CAAI,GAAA,KAAA,CAAA,GAAYC,cAAQ,IAAI,CAAA;AAAA,QACtD,SAAW,EAAA,KAAA;AAAA,OACb,CAAA;AAAA,KACD,CAAA,CAAA;;;;;;;;;;;;;;;"}
|
|
@@ -2,45 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var vue = require('vue');
|
|
6
5
|
require('../../../utils/index.js');
|
|
7
|
-
require('../../../
|
|
8
|
-
var icon = require('./icon.js');
|
|
9
|
-
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
|
10
|
-
var index = require('../../../hooks/use-namespace/index.js');
|
|
11
|
-
var types = require('../../../utils/types.js');
|
|
12
|
-
var style = require('../../../utils/dom/style.js');
|
|
6
|
+
var runtime = require('../../../utils/vue/props/runtime.js');
|
|
13
7
|
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
props: icon.iconProps,
|
|
21
|
-
setup(__props) {
|
|
22
|
-
const props = __props;
|
|
23
|
-
const ns = index.useNamespace("icon");
|
|
24
|
-
const style$1 = vue.computed(() => {
|
|
25
|
-
const { size, color } = props;
|
|
26
|
-
if (!size && !color)
|
|
27
|
-
return {};
|
|
28
|
-
return {
|
|
29
|
-
fontSize: types.isUndefined(size) ? void 0 : style.addUnit(size),
|
|
30
|
-
"--color": color
|
|
31
|
-
};
|
|
32
|
-
});
|
|
33
|
-
return (_ctx, _cache) => {
|
|
34
|
-
return vue.openBlock(), vue.createElementBlock("i", vue.mergeProps({
|
|
35
|
-
class: vue.unref(ns).b(),
|
|
36
|
-
style: vue.unref(style$1)
|
|
37
|
-
}, _ctx.$attrs), [
|
|
38
|
-
vue.renderSlot(_ctx.$slots, "default")
|
|
39
|
-
], 16);
|
|
40
|
-
};
|
|
8
|
+
const iconProps = runtime.buildProps({
|
|
9
|
+
size: {
|
|
10
|
+
type: runtime.definePropType([Number, String])
|
|
11
|
+
},
|
|
12
|
+
color: {
|
|
13
|
+
type: String
|
|
41
14
|
}
|
|
42
15
|
});
|
|
43
|
-
var Icon = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "icon.vue"]]);
|
|
44
16
|
|
|
45
|
-
exports
|
|
17
|
+
exports.iconProps = iconProps;
|
|
46
18
|
//# sourceMappingURL=icon2.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icon2.js","sources":["../../../../../../packages/components/icon/src/icon.
|
|
1
|
+
{"version":3,"file":"icon2.js","sources":["../../../../../../packages/components/icon/src/icon.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils'\nimport type { ExtractPropTypes } from 'vue'\nimport type Icon from './icon.vue'\n\nexport const iconProps = buildProps({\n /**\n * @description SVG icon size, size x size\n */\n size: {\n type: definePropType<number | string>([Number, String]),\n },\n /**\n * @description SVG tag's fill attribute\n */\n color: {\n type: String,\n },\n} as const)\nexport type IconProps = ExtractPropTypes<typeof iconProps>\nexport type IconInstance = InstanceType<typeof Icon>\n"],"names":["buildProps","definePropType"],"mappings":";;;;;;;AACY,MAAC,SAAS,GAAGA,kBAAU,CAAC;AACpC,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAEC,sBAAc,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAC1C,GAAG;AACH,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,GAAG;AACH,CAAC;;;;"}
|
package/lib/components/index.js
CHANGED
|
@@ -115,7 +115,7 @@ var configProvider = require('./config-provider/src/config-provider.js');
|
|
|
115
115
|
var configProviderProps = require('./config-provider/src/config-provider-props.js');
|
|
116
116
|
var constants$5 = require('./config-provider/src/constants.js');
|
|
117
117
|
var useGlobalConfig = require('./config-provider/src/hooks/use-global-config.js');
|
|
118
|
-
var countdown = require('./countdown/src/
|
|
118
|
+
var countdown = require('./countdown/src/countdown.js');
|
|
119
119
|
var constants$6 = require('./date-picker/src/constants.js');
|
|
120
120
|
var datePicker = require('./date-picker/src/props/date-picker.js');
|
|
121
121
|
var description = require('./descriptions/src/description.js');
|
|
@@ -133,7 +133,7 @@ var formItem = require('./form/src/form-item.js');
|
|
|
133
133
|
var constants$8 = require('./form/src/constants.js');
|
|
134
134
|
var useFormCommonProps = require('./form/src/hooks/use-form-common-props.js');
|
|
135
135
|
var useFormItem = require('./form/src/hooks/use-form-item.js');
|
|
136
|
-
var icon = require('./icon/src/
|
|
136
|
+
var icon = require('./icon/src/icon2.js');
|
|
137
137
|
var image = require('./image/src/image.js');
|
|
138
138
|
var imageViewer = require('./image-viewer/src/image-viewer.js');
|
|
139
139
|
var input = require('./input/src/input.js');
|
|
@@ -205,7 +205,7 @@ var tooltip = require('./tooltip/src/tooltip.js');
|
|
|
205
205
|
var trigger$2 = require('./tooltip/src/trigger.js');
|
|
206
206
|
var content$2 = require('./tooltip/src/content.js');
|
|
207
207
|
var constants$i = require('./tooltip/src/constants.js');
|
|
208
|
-
var transfer = require('./transfer/src/
|
|
208
|
+
var transfer = require('./transfer/src/transfer2.js');
|
|
209
209
|
var upload = require('./upload/src/upload.js');
|
|
210
210
|
var uploadContent = require('./upload/src/upload-content.js');
|
|
211
211
|
var uploadList = require('./upload/src/upload-list.js');
|
|
@@ -10,6 +10,7 @@ var index$2 = require('../../input/index.js');
|
|
|
10
10
|
var index$3 = require('../../overlay/index.js');
|
|
11
11
|
require('../../../utils/index.js');
|
|
12
12
|
var index$4 = require('../../icon/index.js');
|
|
13
|
+
var iconsVue = require('@element-plus/icons-vue');
|
|
13
14
|
require('../../focus-trap/index.js');
|
|
14
15
|
require('../../config-provider/index.js');
|
|
15
16
|
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
|
@@ -123,6 +124,8 @@ const _sfc_main = vue.defineComponent({
|
|
|
123
124
|
action: "",
|
|
124
125
|
confirmButtonLoading: false,
|
|
125
126
|
cancelButtonLoading: false,
|
|
127
|
+
confirmButtonLoadingIcon: iconsVue.Loading,
|
|
128
|
+
cancelButtonLoadingIcon: iconsVue.Loading,
|
|
126
129
|
confirmButtonDisabled: false,
|
|
127
130
|
editorErrorMessage: "",
|
|
128
131
|
validateError: false,
|
|
@@ -451,6 +454,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
451
454
|
_ctx.showCancelButton ? (vue.openBlock(), vue.createBlock(_component_el_button, {
|
|
452
455
|
key: 0,
|
|
453
456
|
loading: _ctx.cancelButtonLoading,
|
|
457
|
+
"loading-icon": _ctx.cancelButtonLoadingIcon,
|
|
454
458
|
class: vue.normalizeClass([_ctx.cancelButtonClass]),
|
|
455
459
|
round: _ctx.roundButton,
|
|
456
460
|
size: _ctx.btnSize,
|
|
@@ -461,11 +465,12 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
461
465
|
vue.createTextVNode(vue.toDisplayString(_ctx.cancelButtonText || _ctx.t("el.messagebox.cancel")), 1)
|
|
462
466
|
]),
|
|
463
467
|
_: 1
|
|
464
|
-
}, 8, ["loading", "class", "round", "size"])) : vue.createCommentVNode("v-if", true),
|
|
468
|
+
}, 8, ["loading", "loading-icon", "class", "round", "size"])) : vue.createCommentVNode("v-if", true),
|
|
465
469
|
vue.withDirectives(vue.createVNode(_component_el_button, {
|
|
466
470
|
ref: "confirmRef",
|
|
467
471
|
type: "primary",
|
|
468
472
|
loading: _ctx.confirmButtonLoading,
|
|
473
|
+
"loading-icon": _ctx.confirmButtonLoadingIcon,
|
|
469
474
|
class: vue.normalizeClass([_ctx.confirmButtonClasses]),
|
|
470
475
|
round: _ctx.roundButton,
|
|
471
476
|
disabled: _ctx.confirmButtonDisabled,
|
|
@@ -477,7 +482,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
477
482
|
vue.createTextVNode(vue.toDisplayString(_ctx.confirmButtonText || _ctx.t("el.messagebox.confirm")), 1)
|
|
478
483
|
]),
|
|
479
484
|
_: 1
|
|
480
|
-
}, 8, ["loading", "class", "round", "disabled", "size"]), [
|
|
485
|
+
}, 8, ["loading", "loading-icon", "class", "round", "disabled", "size"]), [
|
|
481
486
|
[vue.vShow, _ctx.showConfirmButton]
|
|
482
487
|
])
|
|
483
488
|
], 2)
|