@element-plus/nightly 0.0.20241023 → 0.0.20241025
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 +2 -2
- package/dist/index.full.min.js +2 -2
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +2 -2
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +2 -2
- 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/my.js +1 -1
- package/dist/locale/my.min.js +1 -1
- package/dist/locale/my.min.mjs +1 -1
- package/dist/locale/my.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/carousel/index.mjs +2 -2
- package/es/components/carousel/src/carousel.mjs +205 -62
- package/es/components/carousel/src/carousel.mjs.map +1 -1
- package/es/components/carousel/src/carousel2.mjs +62 -205
- package/es/components/carousel/src/carousel2.mjs.map +1 -1
- package/es/components/index.mjs +2 -2
- package/es/components/statistic/index.mjs +2 -2
- package/es/components/statistic/src/statistic.mjs +70 -25
- package/es/components/statistic/src/statistic.mjs.map +1 -1
- package/es/components/statistic/src/statistic2.mjs +25 -70
- package/es/components/statistic/src/statistic2.mjs.map +1 -1
- package/es/index.mjs +2 -2
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/components/carousel/index.js +2 -2
- package/lib/components/carousel/src/carousel.js +205 -63
- package/lib/components/carousel/src/carousel.js.map +1 -1
- package/lib/components/carousel/src/carousel2.js +63 -205
- package/lib/components/carousel/src/carousel2.js.map +1 -1
- package/lib/components/index.js +2 -2
- package/lib/components/statistic/index.js +2 -2
- package/lib/components/statistic/src/statistic.js +70 -25
- package/lib/components/statistic/src/statistic.js.map +1 -1
- package/lib/components/statistic/src/statistic2.js +25 -70
- package/lib/components/statistic/src/statistic2.js.map +1 -1
- package/lib/index.js +2 -2
- 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/theme-chalk/src/color/index.scss +1 -1
- package/theme-chalk/src/common/var.scss +2 -1
- package/theme-chalk/src/dark/var.scss +2 -1
- package/theme-chalk/src/mixins/function.scss +7 -5
- package/theme-chalk/src/mixins/mixins.scss +4 -2
- package/web-types.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"carousel2.js","sources":["../../../../../../packages/components/carousel/src/carousel.
|
|
1
|
+
{"version":3,"file":"carousel2.js","sources":["../../../../../../packages/components/carousel/src/carousel.ts"],"sourcesContent":["import { buildProps, isNumber } from '@element-plus/utils'\nimport type { ExtractPropTypes } from 'vue'\n\nexport const carouselProps = buildProps({\n /**\n * @description index of the initially active slide (starting from 0)\n */\n initialIndex: {\n type: Number,\n default: 0,\n },\n /**\n * @description height of the carousel\n */\n height: {\n type: String,\n default: '',\n },\n /**\n * @description how indicators are triggered\n */\n trigger: {\n type: String,\n values: ['hover', 'click'],\n default: 'hover',\n },\n /**\n * @description whether automatically loop the slides\n */\n autoplay: {\n type: Boolean,\n default: true,\n },\n /**\n * @description interval of the auto loop, in milliseconds\n */\n interval: {\n type: Number,\n default: 3000,\n },\n /**\n * @description position of the indicators\n */\n indicatorPosition: {\n type: String,\n values: ['', 'none', 'outside'],\n default: '',\n },\n /**\n * @description when arrows are shown\n */\n arrow: {\n type: String,\n values: ['always', 'hover', 'never'],\n default: 'hover',\n },\n /**\n * @description type of the Carousel\n */\n type: {\n type: String,\n values: ['', 'card'],\n default: '',\n },\n /**\n * @description when type is card, scaled size of secondary cards\n */\n cardScale: {\n type: Number,\n default: 0.83,\n },\n /**\n * @description display the items in loop\n */\n loop: {\n type: Boolean,\n default: true,\n },\n /**\n * @description display direction\n */\n direction: {\n type: String,\n values: ['horizontal', 'vertical'],\n default: 'horizontal',\n },\n /**\n * @description pause autoplay when hover\n */\n pauseOnHover: {\n type: Boolean,\n default: true,\n },\n /**\n * @description infuse dynamism and smoothness into the carousel\n */\n motionBlur: Boolean,\n} as const)\n\nexport const carouselEmits = {\n /**\n * @description triggers when the active slide switches\n * @param current index of the new active slide\n * @param prev index of the old active slide\n */\n change: (current: number, prev: number) => [current, prev].every(isNumber),\n}\n\nexport type CarouselProps = ExtractPropTypes<typeof carouselProps>\nexport type CarouselEmits = typeof carouselEmits\n"],"names":["buildProps","isNumber"],"mappings":";;;;;;;;AACY,MAAC,aAAa,GAAGA,kBAAU,CAAC;AACxC,EAAE,YAAY,EAAE;AAChB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,OAAO,EAAE;AACX,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC;AAC9B,IAAI,OAAO,EAAE,OAAO;AACpB,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,GAAG;AAChB,GAAG;AACH,EAAE,iBAAiB,EAAE;AACrB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,SAAS,CAAC;AACnC,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,QAAQ,EAAE,OAAO,EAAE,OAAO,CAAC;AACxC,IAAI,OAAO,EAAE,OAAO;AACpB,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,EAAE,EAAE,MAAM,CAAC;AACxB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,YAAY,EAAE,UAAU,CAAC;AACtC,IAAI,OAAO,EAAE,YAAY;AACzB,GAAG;AACH,EAAE,YAAY,EAAE;AAChB,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,UAAU,EAAE,OAAO;AACrB,CAAC,EAAE;AACS,MAAC,aAAa,GAAG;AAC7B,EAAE,MAAM,EAAE,CAAC,OAAO,EAAE,IAAI,KAAK,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC,KAAK,CAACC,cAAQ,CAAC;AAC5D;;;;;"}
|
package/lib/components/index.js
CHANGED
|
@@ -97,7 +97,7 @@ var button = require('./button/src/button.js');
|
|
|
97
97
|
var constants$1 = require('./button/src/constants.js');
|
|
98
98
|
var calendar = require('./calendar/src/calendar.js');
|
|
99
99
|
var card = require('./card/src/card.js');
|
|
100
|
-
var carousel = require('./carousel/src/
|
|
100
|
+
var carousel = require('./carousel/src/carousel2.js');
|
|
101
101
|
var carouselItem = require('./carousel/src/carousel-item.js');
|
|
102
102
|
var constants$2 = require('./carousel/src/constants.js');
|
|
103
103
|
var cascader = require('./cascader/src/cascader.js');
|
|
@@ -179,7 +179,7 @@ var constants$e = require('./slider/src/constants.js');
|
|
|
179
179
|
var space = require('./space/src/space.js');
|
|
180
180
|
var item = require('./space/src/item.js');
|
|
181
181
|
var useSpace = require('./space/src/use-space.js');
|
|
182
|
-
var statistic = require('./statistic/src/
|
|
182
|
+
var statistic = require('./statistic/src/statistic2.js');
|
|
183
183
|
var item$1 = require('./steps/src/item.js');
|
|
184
184
|
var steps = require('./steps/src/steps.js');
|
|
185
185
|
var _switch = require('./switch/src/switch.js');
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
require('../../utils/index.js');
|
|
6
|
-
var statistic$1 = require('./src/
|
|
7
|
-
var statistic = require('./src/
|
|
6
|
+
var statistic$1 = require('./src/statistic.js');
|
|
7
|
+
var statistic = require('./src/statistic2.js');
|
|
8
8
|
var install = require('../../utils/vue/install.js');
|
|
9
9
|
|
|
10
10
|
const ElStatistic = install.withInstall(statistic$1["default"]);
|
|
@@ -2,34 +2,79 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
+
var vue = require('vue');
|
|
6
|
+
require('../../../hooks/index.js');
|
|
5
7
|
require('../../../utils/index.js');
|
|
6
|
-
var
|
|
8
|
+
var statistic = require('./statistic2.js');
|
|
9
|
+
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
|
10
|
+
var index = require('../../../hooks/use-namespace/index.js');
|
|
11
|
+
var shared = require('@vue/shared');
|
|
12
|
+
var types = require('../../../utils/types.js');
|
|
7
13
|
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
14
|
+
const __default__ = vue.defineComponent({
|
|
15
|
+
name: "ElStatistic"
|
|
16
|
+
});
|
|
17
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
18
|
+
...__default__,
|
|
19
|
+
props: statistic.statisticProps,
|
|
20
|
+
setup(__props, { expose }) {
|
|
21
|
+
const props = __props;
|
|
22
|
+
const ns = index.useNamespace("statistic");
|
|
23
|
+
const displayValue = vue.computed(() => {
|
|
24
|
+
const { value, formatter, precision, decimalSeparator, groupSeparator } = props;
|
|
25
|
+
if (shared.isFunction(formatter))
|
|
26
|
+
return formatter(value);
|
|
27
|
+
if (!types.isNumber(value) || Number.isNaN(value))
|
|
28
|
+
return value;
|
|
29
|
+
let [integer, decimal = ""] = String(value).split(".");
|
|
30
|
+
decimal = decimal.padEnd(precision, "0").slice(0, precision > 0 ? precision : 0);
|
|
31
|
+
integer = integer.replace(/\B(?=(\d{3})+(?!\d))/g, groupSeparator);
|
|
32
|
+
return [integer, decimal].join(decimal ? decimalSeparator : "");
|
|
33
|
+
});
|
|
34
|
+
expose({
|
|
35
|
+
displayValue
|
|
36
|
+
});
|
|
37
|
+
return (_ctx, _cache) => {
|
|
38
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
39
|
+
class: vue.normalizeClass(vue.unref(ns).b())
|
|
40
|
+
}, [
|
|
41
|
+
_ctx.$slots.title || _ctx.title ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
42
|
+
key: 0,
|
|
43
|
+
class: vue.normalizeClass(vue.unref(ns).e("head"))
|
|
44
|
+
}, [
|
|
45
|
+
vue.renderSlot(_ctx.$slots, "title", {}, () => [
|
|
46
|
+
vue.createTextVNode(vue.toDisplayString(_ctx.title), 1)
|
|
47
|
+
])
|
|
48
|
+
], 2)) : vue.createCommentVNode("v-if", true),
|
|
49
|
+
vue.createElementVNode("div", {
|
|
50
|
+
class: vue.normalizeClass(vue.unref(ns).e("content"))
|
|
51
|
+
}, [
|
|
52
|
+
_ctx.$slots.prefix || _ctx.prefix ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
53
|
+
key: 0,
|
|
54
|
+
class: vue.normalizeClass(vue.unref(ns).e("prefix"))
|
|
55
|
+
}, [
|
|
56
|
+
vue.renderSlot(_ctx.$slots, "prefix", {}, () => [
|
|
57
|
+
vue.createElementVNode("span", null, vue.toDisplayString(_ctx.prefix), 1)
|
|
58
|
+
])
|
|
59
|
+
], 2)) : vue.createCommentVNode("v-if", true),
|
|
60
|
+
vue.createElementVNode("span", {
|
|
61
|
+
class: vue.normalizeClass(vue.unref(ns).e("number")),
|
|
62
|
+
style: vue.normalizeStyle(_ctx.valueStyle)
|
|
63
|
+
}, vue.toDisplayString(vue.unref(displayValue)), 7),
|
|
64
|
+
_ctx.$slots.suffix || _ctx.suffix ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
65
|
+
key: 1,
|
|
66
|
+
class: vue.normalizeClass(vue.unref(ns).e("suffix"))
|
|
67
|
+
}, [
|
|
68
|
+
vue.renderSlot(_ctx.$slots, "suffix", {}, () => [
|
|
69
|
+
vue.createElementVNode("span", null, vue.toDisplayString(_ctx.suffix), 1)
|
|
70
|
+
])
|
|
71
|
+
], 2)) : vue.createCommentVNode("v-if", true)
|
|
72
|
+
], 2)
|
|
73
|
+
], 2);
|
|
74
|
+
};
|
|
31
75
|
}
|
|
32
76
|
});
|
|
77
|
+
var Statistic = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "statistic.vue"]]);
|
|
33
78
|
|
|
34
|
-
exports
|
|
79
|
+
exports["default"] = Statistic;
|
|
35
80
|
//# sourceMappingURL=statistic.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"statistic.js","sources":["../../../../../../packages/components/statistic/src/statistic.
|
|
1
|
+
{"version":3,"file":"statistic.js","sources":["../../../../../../packages/components/statistic/src/statistic.vue"],"sourcesContent":["<template>\n <div :class=\"ns.b()\">\n <div v-if=\"$slots.title || title\" :class=\"ns.e('head')\">\n <slot name=\"title\">\n {{ title }}\n </slot>\n </div>\n <div :class=\"ns.e('content')\">\n <div v-if=\"$slots.prefix || prefix\" :class=\"ns.e('prefix')\">\n <slot name=\"prefix\">\n <span>{{ prefix }}</span>\n </slot>\n </div>\n <span :class=\"ns.e('number')\" :style=\"valueStyle\">\n {{ displayValue }}\n </span>\n <div v-if=\"$slots.suffix || suffix\" :class=\"ns.e('suffix')\">\n <slot name=\"suffix\">\n <span>{{ suffix }}</span>\n </slot>\n </div>\n </div>\n </div>\n</template>\n<script lang=\"ts\" setup>\nimport { computed } from 'vue'\nimport { useNamespace } from '@element-plus/hooks'\nimport { isFunction, isNumber } from '@element-plus/utils'\nimport { statisticProps } from './statistic'\n\ndefineOptions({\n name: 'ElStatistic',\n})\n\nconst props = defineProps(statisticProps)\nconst ns = useNamespace('statistic')\n\nconst displayValue = computed(() => {\n const { value, formatter, precision, decimalSeparator, groupSeparator } =\n props\n\n if (isFunction(formatter)) return formatter(value)\n\n // https://github.com/element-plus/element-plus/issues/17784\n if (!isNumber(value) || Number.isNaN(value)) return value\n\n let [integer, decimal = ''] = String(value).split('.')\n decimal = decimal\n .padEnd(precision, '0')\n .slice(0, precision > 0 ? precision : 0)\n integer = integer.replace(/\\B(?=(\\d{3})+(?!\\d))/g, groupSeparator)\n return [integer, decimal].join(decimal ? decimalSeparator : '')\n})\n\ndefineExpose({\n /**\n * @description current display value\n */\n displayValue,\n})\n</script>\n"],"names":["useNamespace","computed","isFunction","isNumber"],"mappings":";;;;;;;;;;;;;uCA8Bc,CAAA;AAAA,EACZ,IAAM,EAAA,aAAA;AACR,CAAA,CAAA,CAAA;;;;;;AAGA,IAAM,MAAA,EAAA,GAAKA,mBAAa,WAAW,CAAA,CAAA;AAEnC,IAAM,MAAA,YAAA,GAAeC,aAAS,MAAM;AAClC,MAAA,MAAM,EAAE,KAAO,EAAA,SAAA,EAAW,SAAW,EAAA,gBAAA,EAAkB,gBACrD,GAAA,KAAA,CAAA;AAEF,MAAA,IAAIC,iBAAW,CAAA,SAAS,CAAG;AAG3B,QAAI,gBAAe,CAAA,KAAK;AAExB,MAAI,IAAA,CAACC,eAAS,KAAU,CAAA,IAAA,MAAM,CAAO,KAAA,CAAA,KAAK,CAAE;AAC5C,QAAU,OAAA,KAAA,CAAA;AAGV,MAAU,IAAA,CAAA,OAAA,EAAA,OAAgB,GAAA,EAAA,CAAA,GAAA,MAAA,CAAA,KAAA,CAAA,CAAA,KAAA,CAAA,GAAuC,CAAA,CAAA;AACjE,MAAA,OAAO,GAAU,OAAA,CAAA,MAAO,UAAO,EAAA,GAAA,CAAA,CAAU,qBAAqB,CAAA,GAAA,SAAA,GAAA,CAAA,CAAA,CAAA;AAAA,MAC/D,OAAA,GAAA,OAAA,CAAA,OAAA,CAAA,uBAAA,EAAA,cAAA,CAAA,CAAA;AAED,MAAa,OAAA,CAAA,OAAA,EAAA,OAAA,CAAA,CAAA,IAAA,CAAA,OAAA,GAAA,gBAAA,GAAA,EAAA,CAAA,CAAA;AAAA,KAAA,CAAA,CAAA;AAAA,IAAA,MAAA,CAAA;AAAA,MAAA,YAAA;AAAA,KAIX,CAAA,CAAA;AAAA,IACF,OAAC,CAAA,IAAA,EAAA,MAAA,KAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -2,79 +2,34 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var vue = require('vue');
|
|
6
|
-
require('../../../hooks/index.js');
|
|
7
5
|
require('../../../utils/index.js');
|
|
8
|
-
var
|
|
9
|
-
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
|
10
|
-
var index = require('../../../hooks/use-namespace/index.js');
|
|
11
|
-
var shared = require('@vue/shared');
|
|
12
|
-
var types = require('../../../utils/types.js');
|
|
6
|
+
var runtime = require('../../../utils/vue/props/runtime.js');
|
|
13
7
|
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
return (_ctx, _cache) => {
|
|
38
|
-
return vue.openBlock(), vue.createElementBlock("div", {
|
|
39
|
-
class: vue.normalizeClass(vue.unref(ns).b())
|
|
40
|
-
}, [
|
|
41
|
-
_ctx.$slots.title || _ctx.title ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
42
|
-
key: 0,
|
|
43
|
-
class: vue.normalizeClass(vue.unref(ns).e("head"))
|
|
44
|
-
}, [
|
|
45
|
-
vue.renderSlot(_ctx.$slots, "title", {}, () => [
|
|
46
|
-
vue.createTextVNode(vue.toDisplayString(_ctx.title), 1)
|
|
47
|
-
])
|
|
48
|
-
], 2)) : vue.createCommentVNode("v-if", true),
|
|
49
|
-
vue.createElementVNode("div", {
|
|
50
|
-
class: vue.normalizeClass(vue.unref(ns).e("content"))
|
|
51
|
-
}, [
|
|
52
|
-
_ctx.$slots.prefix || _ctx.prefix ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
53
|
-
key: 0,
|
|
54
|
-
class: vue.normalizeClass(vue.unref(ns).e("prefix"))
|
|
55
|
-
}, [
|
|
56
|
-
vue.renderSlot(_ctx.$slots, "prefix", {}, () => [
|
|
57
|
-
vue.createElementVNode("span", null, vue.toDisplayString(_ctx.prefix), 1)
|
|
58
|
-
])
|
|
59
|
-
], 2)) : vue.createCommentVNode("v-if", true),
|
|
60
|
-
vue.createElementVNode("span", {
|
|
61
|
-
class: vue.normalizeClass(vue.unref(ns).e("number")),
|
|
62
|
-
style: vue.normalizeStyle(_ctx.valueStyle)
|
|
63
|
-
}, vue.toDisplayString(vue.unref(displayValue)), 7),
|
|
64
|
-
_ctx.$slots.suffix || _ctx.suffix ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
65
|
-
key: 1,
|
|
66
|
-
class: vue.normalizeClass(vue.unref(ns).e("suffix"))
|
|
67
|
-
}, [
|
|
68
|
-
vue.renderSlot(_ctx.$slots, "suffix", {}, () => [
|
|
69
|
-
vue.createElementVNode("span", null, vue.toDisplayString(_ctx.suffix), 1)
|
|
70
|
-
])
|
|
71
|
-
], 2)) : vue.createCommentVNode("v-if", true)
|
|
72
|
-
], 2)
|
|
73
|
-
], 2);
|
|
74
|
-
};
|
|
8
|
+
const statisticProps = runtime.buildProps({
|
|
9
|
+
decimalSeparator: {
|
|
10
|
+
type: String,
|
|
11
|
+
default: "."
|
|
12
|
+
},
|
|
13
|
+
groupSeparator: {
|
|
14
|
+
type: String,
|
|
15
|
+
default: ","
|
|
16
|
+
},
|
|
17
|
+
precision: {
|
|
18
|
+
type: Number,
|
|
19
|
+
default: 0
|
|
20
|
+
},
|
|
21
|
+
formatter: Function,
|
|
22
|
+
value: {
|
|
23
|
+
type: runtime.definePropType([Number, Object]),
|
|
24
|
+
default: 0
|
|
25
|
+
},
|
|
26
|
+
prefix: String,
|
|
27
|
+
suffix: String,
|
|
28
|
+
title: String,
|
|
29
|
+
valueStyle: {
|
|
30
|
+
type: runtime.definePropType([String, Object, Array])
|
|
75
31
|
}
|
|
76
32
|
});
|
|
77
|
-
var Statistic = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "statistic.vue"]]);
|
|
78
33
|
|
|
79
|
-
exports
|
|
34
|
+
exports.statisticProps = statisticProps;
|
|
80
35
|
//# sourceMappingURL=statistic2.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"statistic2.js","sources":["../../../../../../packages/components/statistic/src/statistic.
|
|
1
|
+
{"version":3,"file":"statistic2.js","sources":["../../../../../../packages/components/statistic/src/statistic.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils'\n\nimport type { ExtractPropTypes, StyleValue } from 'vue'\nimport type { Dayjs } from 'dayjs'\nimport type Statistic from './statistic.vue'\n\nexport const statisticProps = buildProps({\n /**\n * @description Setting the decimal point\n */\n decimalSeparator: {\n type: String,\n default: '.',\n },\n /**\n * @description Sets the thousandth identifier\n */\n groupSeparator: {\n type: String,\n default: ',',\n },\n /**\n * @description numerical precision\n */\n precision: {\n type: Number,\n default: 0,\n },\n /**\n * @description Custom numerical presentation\n */\n formatter: Function,\n /**\n * @description Numerical content\n */\n value: {\n type: definePropType<number | Dayjs>([Number, Object]),\n default: 0,\n },\n /**\n * @description Sets the prefix of a number\n */\n prefix: String,\n\n /**\n * @description Sets the suffix of a number\n */\n suffix: String,\n /**\n * @description Numeric titles\n */\n title: String,\n /**\n * @description Styles numeric values\n */\n valueStyle: {\n type: definePropType<StyleValue>([String, Object, Array]),\n },\n} as const)\nexport type StatisticProps = ExtractPropTypes<typeof statisticProps>\n\nexport type StatisticInstance = InstanceType<typeof Statistic>\n"],"names":["buildProps","definePropType"],"mappings":";;;;;;;AACY,MAAC,cAAc,GAAGA,kBAAU,CAAC;AACzC,EAAE,gBAAgB,EAAE;AACpB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,GAAG;AAChB,GAAG;AACH,EAAE,cAAc,EAAE;AAClB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,GAAG;AAChB,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,SAAS,EAAE,QAAQ;AACrB,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAEC,sBAAc,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAC1C,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,MAAM,EAAE,MAAM;AAChB,EAAE,MAAM,EAAE,MAAM;AAChB,EAAE,KAAK,EAAE,MAAM;AACf,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAEA,sBAAc,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC;AACjD,GAAG;AACH,CAAC;;;;"}
|
package/lib/index.js
CHANGED
|
@@ -32,7 +32,7 @@ var calendar = require('./components/calendar/src/calendar.js');
|
|
|
32
32
|
var index$8 = require('./components/calendar/index.js');
|
|
33
33
|
var card = require('./components/card/src/card.js');
|
|
34
34
|
var index$9 = require('./components/card/index.js');
|
|
35
|
-
var carousel = require('./components/carousel/src/
|
|
35
|
+
var carousel = require('./components/carousel/src/carousel2.js');
|
|
36
36
|
var carouselItem = require('./components/carousel/src/carousel-item.js');
|
|
37
37
|
var constants$2 = require('./components/carousel/src/constants.js');
|
|
38
38
|
var index$a = require('./components/carousel/index.js');
|
|
@@ -157,7 +157,7 @@ var space = require('./components/space/src/space.js');
|
|
|
157
157
|
var item = require('./components/space/src/item.js');
|
|
158
158
|
var useSpace = require('./components/space/src/use-space.js');
|
|
159
159
|
var index$Q = require('./components/space/index.js');
|
|
160
|
-
var statistic = require('./components/statistic/src/
|
|
160
|
+
var statistic = require('./components/statistic/src/statistic2.js');
|
|
161
161
|
var index$R = require('./components/statistic/index.js');
|
|
162
162
|
var item$1 = require('./components/steps/src/item.js');
|
|
163
163
|
var steps = require('./components/steps/src/steps.js');
|
package/lib/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "0.0.
|
|
1
|
+
export declare const version = "0.0.20241025";
|
package/lib/version.js
CHANGED
package/lib/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sources":["../../../packages/element-plus/version.ts"],"sourcesContent":["export const version = '0.0.
|
|
1
|
+
{"version":3,"file":"version.js","sources":["../../../packages/element-plus/version.ts"],"sourcesContent":["export const version = '0.0.20241025'\n"],"names":[],"mappings":";;;;AAAY,MAAC,OAAO,GAAG;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@element-plus/nightly",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.20241025",
|
|
4
4
|
"description": "A Component Library for Vue 3",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"element-plus",
|
|
@@ -112,5 +112,5 @@
|
|
|
112
112
|
"not ie 11",
|
|
113
113
|
"not op_mini all"
|
|
114
114
|
],
|
|
115
|
-
"gitHead": "
|
|
115
|
+
"gitHead": "0e8454a99ec59a1718c61c7da6e1439afc82a8a9"
|
|
116
116
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/* Element Chalk Variables */
|
|
2
2
|
@use 'sass:math';
|
|
3
3
|
@use 'sass:map';
|
|
4
|
+
@use 'sass:color';
|
|
4
5
|
|
|
5
6
|
@use '../mixins/function.scss' as *;
|
|
6
7
|
|
|
@@ -60,7 +61,7 @@ $color-info: map.get($colors, 'info', 'base') !default;
|
|
|
60
61
|
(
|
|
61
62
|
$type: (
|
|
62
63
|
'#{$mode}-#{$number}':
|
|
63
|
-
mix(
|
|
64
|
+
color.mix(
|
|
64
65
|
$mix-color,
|
|
65
66
|
map.get($colors, $type, 'base'),
|
|
66
67
|
math.percentage(math.div($number, 10))
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
2
|
@use 'sass:math';
|
|
3
|
+
@use 'sass:color';
|
|
3
4
|
|
|
4
5
|
@use '../common/var.scss' as common;
|
|
5
6
|
@use '../mixins/mixins.scss' as *;
|
|
@@ -30,7 +31,7 @@ $colors: () !default;
|
|
|
30
31
|
(
|
|
31
32
|
$type: (
|
|
32
33
|
'#{$mode}-#{$number}':
|
|
33
|
-
mix(
|
|
34
|
+
color.mix(
|
|
34
35
|
$mix-color,
|
|
35
36
|
map.get($colors, $type, 'base'),
|
|
36
37
|
math.percentage(math.div($number, 10))
|
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
@use 'config';
|
|
2
|
+
@use 'sass:meta';
|
|
3
|
+
@use 'sass:string';
|
|
2
4
|
|
|
3
5
|
// BEM support Func
|
|
4
6
|
@function selectorToString($selector) {
|
|
5
|
-
$selector: inspect($selector);
|
|
6
|
-
$selector:
|
|
7
|
+
$selector: meta.inspect($selector);
|
|
8
|
+
$selector: string.slice($selector, 2, -2);
|
|
7
9
|
@return $selector;
|
|
8
10
|
}
|
|
9
11
|
|
|
10
12
|
@function containsModifier($selector) {
|
|
11
13
|
$selector: selectorToString($selector);
|
|
12
14
|
|
|
13
|
-
@if
|
|
15
|
+
@if string.index($selector, config.$modifier-separator) {
|
|
14
16
|
@return true;
|
|
15
17
|
} @else {
|
|
16
18
|
@return false;
|
|
@@ -20,7 +22,7 @@
|
|
|
20
22
|
@function containWhenFlag($selector) {
|
|
21
23
|
$selector: selectorToString($selector);
|
|
22
24
|
|
|
23
|
-
@if
|
|
25
|
+
@if string.index($selector, '.' + config.$state-prefix) {
|
|
24
26
|
@return true;
|
|
25
27
|
} @else {
|
|
26
28
|
@return false;
|
|
@@ -30,7 +32,7 @@
|
|
|
30
32
|
@function containPseudoClass($selector) {
|
|
31
33
|
$selector: selectorToString($selector);
|
|
32
34
|
|
|
33
|
-
@if
|
|
35
|
+
@if string.index($selector, ':') {
|
|
34
36
|
@return true;
|
|
35
37
|
} @else {
|
|
36
38
|
@return false;
|
|
@@ -5,12 +5,14 @@
|
|
|
5
5
|
@forward 'function';
|
|
6
6
|
@forward '_var';
|
|
7
7
|
@use 'config' as *;
|
|
8
|
+
@use 'sass:string';
|
|
9
|
+
@use "sass:map";
|
|
8
10
|
|
|
9
11
|
// Break-points
|
|
10
12
|
@mixin res($key, $map: $breakpoints) {
|
|
11
13
|
// loop breakpoint Map, return if present
|
|
12
|
-
@if map
|
|
13
|
-
@media only screen and #{unquote(map
|
|
14
|
+
@if map.has-key($map, $key) {
|
|
15
|
+
@media only screen and #{string.unquote(map.get($map, $key))} {
|
|
14
16
|
@content;
|
|
15
17
|
}
|
|
16
18
|
} @else {
|