@element-plus/nightly 0.0.20240128 → 0.0.20240129
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/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/backtop/index.mjs +2 -2
- package/es/components/backtop/src/backtop.mjs +54 -21
- package/es/components/backtop/src/backtop.mjs.map +1 -1
- package/es/components/backtop/src/backtop2.mjs +21 -54
- package/es/components/backtop/src/backtop2.mjs.map +1 -1
- package/es/components/collapse/index.mjs +2 -2
- package/es/components/collapse/src/collapse.mjs +28 -18
- package/es/components/collapse/src/collapse.mjs.map +1 -1
- package/es/components/collapse/src/collapse2.mjs +18 -28
- package/es/components/collapse/src/collapse2.mjs.map +1 -1
- package/es/components/icon/index.mjs +2 -2
- package/es/components/icon/src/icon.mjs +8 -36
- package/es/components/icon/src/icon.mjs.map +1 -1
- package/es/components/icon/src/icon2.mjs +36 -8
- package/es/components/icon/src/icon2.mjs.map +1 -1
- package/es/components/index.mjs +10 -10
- package/es/components/menu/index.mjs +2 -2
- package/es/components/menu/src/menu-item-group.mjs +4 -35
- package/es/components/menu/src/menu-item-group.mjs.map +1 -1
- package/es/components/menu/src/menu-item-group2.mjs +35 -4
- package/es/components/menu/src/menu-item-group2.mjs.map +1 -1
- package/es/components/page-header/index.mjs +2 -2
- package/es/components/page-header/src/page-header.mjs +17 -103
- package/es/components/page-header/src/page-header.mjs.map +1 -1
- package/es/components/page-header/src/page-header2.mjs +103 -17
- package/es/components/page-header/src/page-header2.mjs.map +1 -1
- package/es/components/pagination/src/components/total.mjs +7 -28
- package/es/components/pagination/src/components/total.mjs.map +1 -1
- package/es/components/pagination/src/components/total2.mjs +28 -7
- package/es/components/pagination/src/components/total2.mjs.map +1 -1
- package/es/components/pagination/src/pagination.mjs +1 -1
- package/es/components/radio/index.mjs +2 -2
- package/es/components/radio/src/radio-button.mjs +9 -66
- package/es/components/radio/src/radio-button.mjs.map +1 -1
- package/es/components/radio/src/radio-button2.mjs +66 -9
- package/es/components/radio/src/radio-button2.mjs.map +1 -1
- package/es/components/result/index.mjs +2 -2
- package/es/components/result/src/result.mjs +29 -63
- package/es/components/result/src/result.mjs.map +1 -1
- package/es/components/result/src/result2.mjs +63 -29
- package/es/components/result/src/result2.mjs.map +1 -1
- package/es/components/scrollbar/index.mjs +1 -1
- package/es/components/scrollbar/src/bar2.mjs +1 -1
- package/es/components/scrollbar/src/thumb.mjs +11 -130
- package/es/components/scrollbar/src/thumb.mjs.map +1 -1
- package/es/components/scrollbar/src/thumb2.mjs +130 -11
- package/es/components/scrollbar/src/thumb2.mjs.map +1 -1
- package/es/components/slider/src/button.mjs +21 -93
- package/es/components/slider/src/button.mjs.map +1 -1
- package/es/components/slider/src/button2.mjs +93 -21
- package/es/components/slider/src/button2.mjs.map +1 -1
- package/es/components/slider/src/slider2.mjs +1 -1
- package/es/components/steps/index.mjs +2 -2
- package/es/components/steps/src/steps.mjs +36 -39
- package/es/components/steps/src/steps.mjs.map +1 -1
- package/es/components/steps/src/steps2.mjs +39 -36
- package/es/components/steps/src/steps2.mjs.map +1 -1
- package/es/components/tabs/index.mjs +1 -1
- package/es/components/tabs/src/tab-bar.mjs +75 -7
- package/es/components/tabs/src/tab-bar.mjs.map +1 -1
- package/es/components/tabs/src/tab-bar2.mjs +7 -75
- package/es/components/tabs/src/tab-bar2.mjs.map +1 -1
- package/es/components/tabs/src/tab-nav.mjs +1 -1
- package/es/components/tour/src/content.mjs +44 -63
- package/es/components/tour/src/content.mjs.map +1 -1
- package/es/components/tour/src/content2.mjs +63 -44
- package/es/components/tour/src/content2.mjs.map +1 -1
- package/es/components/tour/src/step.mjs +1 -1
- package/es/components/tour/src/tour.mjs +1 -1
- package/es/components/tour/src/tour2.mjs +1 -1
- package/es/components/transfer/src/composables/use-check.mjs +1 -1
- package/es/components/transfer/src/transfer-panel.mjs +19 -128
- package/es/components/transfer/src/transfer-panel.mjs.map +1 -1
- package/es/components/transfer/src/transfer-panel2.mjs +128 -19
- package/es/components/transfer/src/transfer-panel2.mjs.map +1 -1
- package/es/components/transfer/src/transfer2.mjs +1 -1
- package/es/index.mjs +10 -10
- 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.js +2 -2
- package/lib/components/backtop/src/backtop.js +54 -22
- package/lib/components/backtop/src/backtop.js.map +1 -1
- package/lib/components/backtop/src/backtop2.js +22 -54
- package/lib/components/backtop/src/backtop2.js.map +1 -1
- package/lib/components/collapse/index.js +2 -2
- package/lib/components/collapse/src/collapse.js +28 -20
- package/lib/components/collapse/src/collapse.js.map +1 -1
- package/lib/components/collapse/src/collapse2.js +20 -28
- package/lib/components/collapse/src/collapse2.js.map +1 -1
- package/lib/components/icon/index.js +2 -2
- package/lib/components/icon/src/icon.js +8 -36
- package/lib/components/icon/src/icon.js.map +1 -1
- package/lib/components/icon/src/icon2.js +36 -8
- package/lib/components/icon/src/icon2.js.map +1 -1
- package/lib/components/index.js +10 -10
- package/lib/components/menu/index.js +2 -2
- package/lib/components/menu/src/menu-item-group.js +4 -35
- package/lib/components/menu/src/menu-item-group.js.map +1 -1
- package/lib/components/menu/src/menu-item-group2.js +35 -4
- package/lib/components/menu/src/menu-item-group2.js.map +1 -1
- package/lib/components/page-header/index.js +2 -2
- package/lib/components/page-header/src/page-header.js +18 -103
- package/lib/components/page-header/src/page-header.js.map +1 -1
- package/lib/components/page-header/src/page-header2.js +103 -18
- package/lib/components/page-header/src/page-header2.js.map +1 -1
- package/lib/components/pagination/src/components/total.js +7 -28
- package/lib/components/pagination/src/components/total.js.map +1 -1
- package/lib/components/pagination/src/components/total2.js +28 -7
- package/lib/components/pagination/src/components/total2.js.map +1 -1
- package/lib/components/pagination/src/pagination.js +1 -1
- package/lib/components/radio/index.js +2 -2
- package/lib/components/radio/src/radio-button.js +9 -66
- package/lib/components/radio/src/radio-button.js.map +1 -1
- package/lib/components/radio/src/radio-button2.js +66 -9
- package/lib/components/radio/src/radio-button2.js.map +1 -1
- package/lib/components/result/index.js +2 -2
- package/lib/components/result/src/result.js +31 -63
- package/lib/components/result/src/result.js.map +1 -1
- package/lib/components/result/src/result2.js +63 -31
- package/lib/components/result/src/result2.js.map +1 -1
- package/lib/components/scrollbar/index.js +1 -1
- package/lib/components/scrollbar/src/bar2.js +1 -1
- package/lib/components/scrollbar/src/thumb.js +11 -130
- package/lib/components/scrollbar/src/thumb.js.map +1 -1
- package/lib/components/scrollbar/src/thumb2.js +130 -11
- package/lib/components/scrollbar/src/thumb2.js.map +1 -1
- package/lib/components/slider/src/button.js +22 -93
- package/lib/components/slider/src/button.js.map +1 -1
- package/lib/components/slider/src/button2.js +93 -22
- package/lib/components/slider/src/button2.js.map +1 -1
- package/lib/components/slider/src/slider2.js +1 -1
- package/lib/components/steps/index.js +2 -2
- package/lib/components/steps/src/steps.js +37 -39
- package/lib/components/steps/src/steps.js.map +1 -1
- package/lib/components/steps/src/steps2.js +39 -37
- package/lib/components/steps/src/steps2.js.map +1 -1
- package/lib/components/tabs/index.js +1 -1
- package/lib/components/tabs/src/tab-bar.js +75 -7
- package/lib/components/tabs/src/tab-bar.js.map +1 -1
- package/lib/components/tabs/src/tab-bar2.js +7 -75
- package/lib/components/tabs/src/tab-bar2.js.map +1 -1
- package/lib/components/tabs/src/tab-nav.js +1 -1
- package/lib/components/tour/src/content.js +45 -63
- package/lib/components/tour/src/content.js.map +1 -1
- package/lib/components/tour/src/content2.js +63 -45
- package/lib/components/tour/src/content2.js.map +1 -1
- package/lib/components/tour/src/step.js +1 -1
- package/lib/components/tour/src/tour.js +1 -1
- package/lib/components/tour/src/tour2.js +1 -1
- package/lib/components/transfer/src/composables/use-check.js +1 -1
- package/lib/components/transfer/src/transfer-panel.js +21 -128
- package/lib/components/transfer/src/transfer-panel.js.map +1 -1
- package/lib/components/transfer/src/transfer-panel2.js +128 -21
- package/lib/components/transfer/src/transfer-panel2.js.map +1 -1
- package/lib/components/transfer/src/transfer2.js +1 -1
- package/lib/index.js +10 -10
- 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
|
@@ -2,26 +2,111 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
require('
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
|
|
5
|
+
var vue = require('vue');
|
|
6
|
+
var index$2 = require('../../icon/index.js');
|
|
7
|
+
var index$3 = require('../../divider/index.js');
|
|
8
|
+
require('../../../hooks/index.js');
|
|
9
|
+
var pageHeader = require('./page-header.js');
|
|
10
|
+
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
|
11
|
+
var index = require('../../../hooks/use-locale/index.js');
|
|
12
|
+
var index$1 = require('../../../hooks/use-namespace/index.js');
|
|
9
13
|
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
14
|
+
const _hoisted_1 = ["aria-label"];
|
|
15
|
+
const __default__ = vue.defineComponent({
|
|
16
|
+
name: "ElPageHeader"
|
|
17
|
+
});
|
|
18
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
19
|
+
...__default__,
|
|
20
|
+
props: pageHeader.pageHeaderProps,
|
|
21
|
+
emits: pageHeader.pageHeaderEmits,
|
|
22
|
+
setup(__props, { emit }) {
|
|
23
|
+
const slots = vue.useSlots();
|
|
24
|
+
const { t } = index.useLocale();
|
|
25
|
+
const ns = index$1.useNamespace("page-header");
|
|
26
|
+
const kls = vue.computed(() => {
|
|
27
|
+
return [
|
|
28
|
+
ns.b(),
|
|
29
|
+
{
|
|
30
|
+
[ns.m("has-breadcrumb")]: !!slots.breadcrumb,
|
|
31
|
+
[ns.m("has-extra")]: !!slots.extra,
|
|
32
|
+
[ns.is("contentful")]: !!slots.default
|
|
33
|
+
}
|
|
34
|
+
];
|
|
35
|
+
});
|
|
36
|
+
function handleClick() {
|
|
37
|
+
emit("back");
|
|
38
|
+
}
|
|
39
|
+
return (_ctx, _cache) => {
|
|
40
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
41
|
+
class: vue.normalizeClass(vue.unref(kls))
|
|
42
|
+
}, [
|
|
43
|
+
_ctx.$slots.breadcrumb ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
44
|
+
key: 0,
|
|
45
|
+
class: vue.normalizeClass(vue.unref(ns).e("breadcrumb"))
|
|
46
|
+
}, [
|
|
47
|
+
vue.renderSlot(_ctx.$slots, "breadcrumb")
|
|
48
|
+
], 2)) : vue.createCommentVNode("v-if", true),
|
|
49
|
+
vue.createElementVNode("div", {
|
|
50
|
+
class: vue.normalizeClass(vue.unref(ns).e("header"))
|
|
51
|
+
}, [
|
|
52
|
+
vue.createElementVNode("div", {
|
|
53
|
+
class: vue.normalizeClass(vue.unref(ns).e("left"))
|
|
54
|
+
}, [
|
|
55
|
+
vue.createElementVNode("div", {
|
|
56
|
+
class: vue.normalizeClass(vue.unref(ns).e("back")),
|
|
57
|
+
role: "button",
|
|
58
|
+
tabindex: "0",
|
|
59
|
+
onClick: handleClick
|
|
60
|
+
}, [
|
|
61
|
+
_ctx.icon || _ctx.$slots.icon ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
62
|
+
key: 0,
|
|
63
|
+
"aria-label": _ctx.title || vue.unref(t)("el.pageHeader.title"),
|
|
64
|
+
class: vue.normalizeClass(vue.unref(ns).e("icon"))
|
|
65
|
+
}, [
|
|
66
|
+
vue.renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
67
|
+
_ctx.icon ? (vue.openBlock(), vue.createBlock(vue.unref(index$2.ElIcon), { key: 0 }, {
|
|
68
|
+
default: vue.withCtx(() => [
|
|
69
|
+
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.icon)))
|
|
70
|
+
]),
|
|
71
|
+
_: 1
|
|
72
|
+
})) : vue.createCommentVNode("v-if", true)
|
|
73
|
+
])
|
|
74
|
+
], 10, _hoisted_1)) : vue.createCommentVNode("v-if", true),
|
|
75
|
+
vue.createElementVNode("div", {
|
|
76
|
+
class: vue.normalizeClass(vue.unref(ns).e("title"))
|
|
77
|
+
}, [
|
|
78
|
+
vue.renderSlot(_ctx.$slots, "title", {}, () => [
|
|
79
|
+
vue.createTextVNode(vue.toDisplayString(_ctx.title || vue.unref(t)("el.pageHeader.title")), 1)
|
|
80
|
+
])
|
|
81
|
+
], 2)
|
|
82
|
+
], 2),
|
|
83
|
+
vue.createVNode(vue.unref(index$3.ElDivider), { direction: "vertical" }),
|
|
84
|
+
vue.createElementVNode("div", {
|
|
85
|
+
class: vue.normalizeClass(vue.unref(ns).e("content"))
|
|
86
|
+
}, [
|
|
87
|
+
vue.renderSlot(_ctx.$slots, "content", {}, () => [
|
|
88
|
+
vue.createTextVNode(vue.toDisplayString(_ctx.content), 1)
|
|
89
|
+
])
|
|
90
|
+
], 2)
|
|
91
|
+
], 2),
|
|
92
|
+
_ctx.$slots.extra ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
93
|
+
key: 0,
|
|
94
|
+
class: vue.normalizeClass(vue.unref(ns).e("extra"))
|
|
95
|
+
}, [
|
|
96
|
+
vue.renderSlot(_ctx.$slots, "extra")
|
|
97
|
+
], 2)) : vue.createCommentVNode("v-if", true)
|
|
98
|
+
], 2),
|
|
99
|
+
_ctx.$slots.default ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
100
|
+
key: 1,
|
|
101
|
+
class: vue.normalizeClass(vue.unref(ns).e("main"))
|
|
102
|
+
}, [
|
|
103
|
+
vue.renderSlot(_ctx.$slots, "default")
|
|
104
|
+
], 2)) : vue.createCommentVNode("v-if", true)
|
|
105
|
+
], 2);
|
|
106
|
+
};
|
|
19
107
|
}
|
|
20
108
|
});
|
|
21
|
-
|
|
22
|
-
back: () => true
|
|
23
|
-
};
|
|
109
|
+
var PageHeader = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "page-header.vue"]]);
|
|
24
110
|
|
|
25
|
-
exports
|
|
26
|
-
exports.pageHeaderProps = pageHeaderProps;
|
|
111
|
+
exports["default"] = PageHeader;
|
|
27
112
|
//# sourceMappingURL=page-header2.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"page-header2.js","sources":["../../../../../../packages/components/page-header/src/page-header.
|
|
1
|
+
{"version":3,"file":"page-header2.js","sources":["../../../../../../packages/components/page-header/src/page-header.vue"],"sourcesContent":["<template>\n <div :class=\"kls\">\n <div v-if=\"$slots.breadcrumb\" :class=\"ns.e('breadcrumb')\">\n <slot name=\"breadcrumb\" />\n </div>\n <div :class=\"ns.e('header')\">\n <div :class=\"ns.e('left')\">\n <div\n :class=\"ns.e('back')\"\n role=\"button\"\n tabindex=\"0\"\n @click=\"handleClick\"\n >\n <div\n v-if=\"icon || $slots.icon\"\n :aria-label=\"title || t('el.pageHeader.title')\"\n :class=\"ns.e('icon')\"\n >\n <slot name=\"icon\">\n <el-icon v-if=\"icon\">\n <component :is=\"icon\" />\n </el-icon>\n </slot>\n </div>\n <div :class=\"ns.e('title')\">\n <slot name=\"title\">{{ title || t('el.pageHeader.title') }}</slot>\n </div>\n </div>\n <el-divider direction=\"vertical\" />\n <div :class=\"ns.e('content')\">\n <slot name=\"content\">{{ content }}</slot>\n </div>\n </div>\n\n <div v-if=\"$slots.extra\" :class=\"ns.e('extra')\">\n <slot name=\"extra\" />\n </div>\n </div>\n\n <div v-if=\"$slots.default\" :class=\"ns.e('main')\">\n <slot />\n </div>\n </div>\n</template>\n<script lang=\"ts\" setup>\nimport { computed, useSlots } from 'vue'\nimport { ElIcon } from '@element-plus/components/icon'\nimport { ElDivider } from '@element-plus/components/divider'\n\nimport { useLocale, useNamespace } from '@element-plus/hooks'\nimport { pageHeaderEmits, pageHeaderProps } from './page-header'\n\ndefineOptions({\n name: 'ElPageHeader',\n})\n\ndefineProps(pageHeaderProps)\nconst emit = defineEmits(pageHeaderEmits)\nconst slots = useSlots()\n\nconst { t } = useLocale()\nconst ns = useNamespace('page-header')\nconst kls = computed(() => {\n return [\n ns.b(),\n {\n [ns.m('has-breadcrumb')]: !!slots.breadcrumb,\n [ns.m('has-extra')]: !!slots.extra,\n [ns.is('contentful')]: !!slots.default,\n },\n ]\n})\n\nfunction handleClick() {\n emit('back')\n}\n</script>\n"],"names":["useSlots","useLocale","useNamespace","computed"],"mappings":";;;;;;;;;;;;;;uCAoDc,CAAA;AAAA,EACZ,IAAM,EAAA,cAAA;AACR,CAAA,CAAA,CAAA;;;;;;AAIA,IAAA,MAAM,QAAQA,YAAS,EAAA,CAAA;AAEvB,IAAM,MAAA,EAAE,MAAMC,eAAU,EAAA,CAAA;AACxB,IAAM,MAAA,EAAA,GAAKC,qBAAa,aAAa,CAAA,CAAA;AACrC,IAAM,MAAA,GAAA,GAAMC,aAAS,MAAM;AACzB,MAAO,OAAA;AAAA,QACL,GAAG,CAAE,EAAA;AAAA,QACL;AAAA,UACE,CAAC,EAAG,CAAA,CAAA,CAAE,gBAAgB,CAAI,GAAA,CAAC,CAAC,KAAM,CAAA,UAAA;AAAA,UAClC,CAAC,EAAG,CAAA,CAAA,CAAE,WAAW,CAAI,GAAA,CAAC,CAAC,KAAM,CAAA,KAAA;AAAA,UAC7B,CAAC,EAAG,CAAA,EAAA,CAAG,YAAY,CAAI,GAAA,CAAC,CAAC,KAAM,CAAA,OAAA;AAAA,SACjC;AAAA,OACF,CAAA;AAAA,KACD,CAAA,CAAA;AAED,IAAuB,SAAA,WAAA,GAAA;AACrB,MAAA,IAAA,CAAK,MAAM,CAAA,CAAA;AAAA,KACb;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -2,36 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
require('../../../../
|
|
7
|
-
var usePagination = require('../usePagination.js');
|
|
8
|
-
var total = require('./total2.js');
|
|
9
|
-
var pluginVue_exportHelper = require('../../../../_virtual/plugin-vue_export-helper.js');
|
|
10
|
-
var index = require('../../../../hooks/use-locale/index.js');
|
|
11
|
-
var index$1 = require('../../../../hooks/use-namespace/index.js');
|
|
5
|
+
require('../../../../utils/index.js');
|
|
6
|
+
var runtime = require('../../../../utils/vue/props/runtime.js');
|
|
12
7
|
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
18
|
-
...__default__,
|
|
19
|
-
props: total.paginationTotalProps,
|
|
20
|
-
setup(__props) {
|
|
21
|
-
const { t } = index.useLocale();
|
|
22
|
-
const ns = index$1.useNamespace("pagination");
|
|
23
|
-
const { disabled } = usePagination.usePagination();
|
|
24
|
-
return (_ctx, _cache) => {
|
|
25
|
-
return vue.openBlock(), vue.createElementBlock("span", {
|
|
26
|
-
class: vue.normalizeClass(vue.unref(ns).e("total")),
|
|
27
|
-
disabled: vue.unref(disabled)
|
|
28
|
-
}, vue.toDisplayString(vue.unref(t)("el.pagination.total", {
|
|
29
|
-
total: _ctx.total
|
|
30
|
-
})), 11, _hoisted_1);
|
|
31
|
-
};
|
|
8
|
+
const paginationTotalProps = runtime.buildProps({
|
|
9
|
+
total: {
|
|
10
|
+
type: Number,
|
|
11
|
+
default: 1e3
|
|
32
12
|
}
|
|
33
13
|
});
|
|
34
|
-
var Total = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "total.vue"]]);
|
|
35
14
|
|
|
36
|
-
exports
|
|
15
|
+
exports.paginationTotalProps = paginationTotalProps;
|
|
37
16
|
//# sourceMappingURL=total.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"total.js","sources":["../../../../../../../packages/components/pagination/src/components/total.
|
|
1
|
+
{"version":3,"file":"total.js","sources":["../../../../../../../packages/components/pagination/src/components/total.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\nimport type Total from './total.vue'\nimport type { ExtractPropTypes } from 'vue'\n\nexport const paginationTotalProps = buildProps({\n total: {\n type: Number,\n default: 1000,\n },\n} as const)\n\nexport type PaginationTotalProps = ExtractPropTypes<typeof paginationTotalProps>\n\nexport type TotalInstance = InstanceType<typeof Total>\n"],"names":["buildProps"],"mappings":";;;;;;;AACY,MAAC,oBAAoB,GAAGA,kBAAU,CAAC;AAC/C,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,GAAG;AAChB,GAAG;AACH,CAAC;;;;"}
|
|
@@ -2,15 +2,36 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
require('
|
|
6
|
-
|
|
5
|
+
var vue = require('vue');
|
|
6
|
+
require('../../../../hooks/index.js');
|
|
7
|
+
var usePagination = require('../usePagination.js');
|
|
8
|
+
var total = require('./total.js');
|
|
9
|
+
var pluginVue_exportHelper = require('../../../../_virtual/plugin-vue_export-helper.js');
|
|
10
|
+
var index = require('../../../../hooks/use-locale/index.js');
|
|
11
|
+
var index$1 = require('../../../../hooks/use-namespace/index.js');
|
|
7
12
|
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
13
|
+
const _hoisted_1 = ["disabled"];
|
|
14
|
+
const __default__ = vue.defineComponent({
|
|
15
|
+
name: "ElPaginationTotal"
|
|
16
|
+
});
|
|
17
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
18
|
+
...__default__,
|
|
19
|
+
props: total.paginationTotalProps,
|
|
20
|
+
setup(__props) {
|
|
21
|
+
const { t } = index.useLocale();
|
|
22
|
+
const ns = index$1.useNamespace("pagination");
|
|
23
|
+
const { disabled } = usePagination.usePagination();
|
|
24
|
+
return (_ctx, _cache) => {
|
|
25
|
+
return vue.openBlock(), vue.createElementBlock("span", {
|
|
26
|
+
class: vue.normalizeClass(vue.unref(ns).e("total")),
|
|
27
|
+
disabled: vue.unref(disabled)
|
|
28
|
+
}, vue.toDisplayString(vue.unref(t)("el.pagination.total", {
|
|
29
|
+
total: _ctx.total
|
|
30
|
+
})), 11, _hoisted_1);
|
|
31
|
+
};
|
|
12
32
|
}
|
|
13
33
|
});
|
|
34
|
+
var Total = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "total.vue"]]);
|
|
14
35
|
|
|
15
|
-
exports
|
|
36
|
+
exports["default"] = Total;
|
|
16
37
|
//# sourceMappingURL=total2.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"total2.js","sources":["../../../../../../../packages/components/pagination/src/components/total.
|
|
1
|
+
{"version":3,"file":"total2.js","sources":["../../../../../../../packages/components/pagination/src/components/total.vue"],"sourcesContent":["<template>\n <span :class=\"ns.e('total')\" :disabled=\"disabled\">\n {{\n t('el.pagination.total', {\n total,\n })\n }}\n </span>\n</template>\n\n<script lang=\"ts\" setup>\nimport { useLocale, useNamespace } from '@element-plus/hooks'\nimport { usePagination } from '../usePagination'\nimport { paginationTotalProps } from './total'\n\nconst { t } = useLocale()\nconst ns = useNamespace('pagination')\nconst { disabled } = usePagination()\n\ndefineOptions({\n name: 'ElPaginationTotal',\n})\n\ndefineProps(paginationTotalProps)\n</script>\n"],"names":["useLocale","useNamespace","usePagination"],"mappings":";;;;;;;;;;;;;uCAmBc,CAAA;AAAA,EACZ,IAAM,EAAA,mBAAA;AACR,CAAA,CAAA,CAAA;;;;;AANA,IAAM,MAAA,EAAE,MAAMA,eAAU,EAAA,CAAA;AACxB,IAAM,MAAA,EAAA,GAAKC,qBAAa,YAAY,CAAA,CAAA;AACpC,IAAM,MAAA,EAAE,aAAaC,2BAAc,EAAA,CAAA;;;;;;;;;;;;;;;"}
|
|
@@ -11,7 +11,7 @@ var prev = require('./components/prev2.js');
|
|
|
11
11
|
var next = require('./components/next2.js');
|
|
12
12
|
var sizes = require('./components/sizes2.js');
|
|
13
13
|
var jumper = require('./components/jumper2.js');
|
|
14
|
-
var total = require('./components/
|
|
14
|
+
var total = require('./components/total2.js');
|
|
15
15
|
var pager = require('./components/pager2.js');
|
|
16
16
|
var runtime = require('../../../utils/vue/props/runtime.js');
|
|
17
17
|
var types = require('../../../utils/types.js');
|
|
@@ -4,11 +4,11 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
require('../../utils/index.js');
|
|
6
6
|
var radio$1 = require('./src/radio2.js');
|
|
7
|
-
var radioButton$1 = require('./src/radio-
|
|
7
|
+
var radioButton$1 = require('./src/radio-button2.js');
|
|
8
8
|
var radioGroup$1 = require('./src/radio-group2.js');
|
|
9
9
|
var radio = require('./src/radio.js');
|
|
10
10
|
var radioGroup = require('./src/radio-group.js');
|
|
11
|
-
var radioButton = require('./src/radio-
|
|
11
|
+
var radioButton = require('./src/radio-button.js');
|
|
12
12
|
var constants = require('./src/constants.js');
|
|
13
13
|
var install = require('../../utils/vue/install.js');
|
|
14
14
|
|
|
@@ -2,74 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
require('
|
|
7
|
-
var
|
|
8
|
-
var radioButton = require('./radio-button2.js');
|
|
9
|
-
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
|
10
|
-
var index = require('../../../hooks/use-namespace/index.js');
|
|
5
|
+
require('../../../utils/index.js');
|
|
6
|
+
var radio = require('./radio.js');
|
|
7
|
+
var runtime = require('../../../utils/vue/props/runtime.js');
|
|
11
8
|
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
name:
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
...__default__,
|
|
18
|
-
props: radioButton.radioButtonProps,
|
|
19
|
-
setup(__props) {
|
|
20
|
-
const props = __props;
|
|
21
|
-
const ns = index.useNamespace("radio");
|
|
22
|
-
const { radioRef, focus, size, disabled, modelValue, radioGroup } = useRadio.useRadio(props);
|
|
23
|
-
const activeStyle = vue.computed(() => {
|
|
24
|
-
return {
|
|
25
|
-
backgroundColor: (radioGroup == null ? void 0 : radioGroup.fill) || "",
|
|
26
|
-
borderColor: (radioGroup == null ? void 0 : radioGroup.fill) || "",
|
|
27
|
-
boxShadow: (radioGroup == null ? void 0 : radioGroup.fill) ? `-1px 0 0 0 ${radioGroup.fill}` : "",
|
|
28
|
-
color: (radioGroup == null ? void 0 : radioGroup.textColor) || ""
|
|
29
|
-
};
|
|
30
|
-
});
|
|
31
|
-
return (_ctx, _cache) => {
|
|
32
|
-
var _a;
|
|
33
|
-
return vue.openBlock(), vue.createElementBlock("label", {
|
|
34
|
-
class: vue.normalizeClass([
|
|
35
|
-
vue.unref(ns).b("button"),
|
|
36
|
-
vue.unref(ns).is("active", vue.unref(modelValue) === _ctx.label),
|
|
37
|
-
vue.unref(ns).is("disabled", vue.unref(disabled)),
|
|
38
|
-
vue.unref(ns).is("focus", vue.unref(focus)),
|
|
39
|
-
vue.unref(ns).bm("button", vue.unref(size))
|
|
40
|
-
])
|
|
41
|
-
}, [
|
|
42
|
-
vue.withDirectives(vue.createElementVNode("input", {
|
|
43
|
-
ref_key: "radioRef",
|
|
44
|
-
ref: radioRef,
|
|
45
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(modelValue) ? modelValue.value = $event : null),
|
|
46
|
-
class: vue.normalizeClass(vue.unref(ns).be("button", "original-radio")),
|
|
47
|
-
value: _ctx.label,
|
|
48
|
-
type: "radio",
|
|
49
|
-
name: _ctx.name || ((_a = vue.unref(radioGroup)) == null ? void 0 : _a.name),
|
|
50
|
-
disabled: vue.unref(disabled),
|
|
51
|
-
onFocus: _cache[1] || (_cache[1] = ($event) => focus.value = true),
|
|
52
|
-
onBlur: _cache[2] || (_cache[2] = ($event) => focus.value = false),
|
|
53
|
-
onClick: _cache[3] || (_cache[3] = vue.withModifiers(() => {
|
|
54
|
-
}, ["stop"]))
|
|
55
|
-
}, null, 42, _hoisted_1), [
|
|
56
|
-
[vue.vModelRadio, vue.unref(modelValue)]
|
|
57
|
-
]),
|
|
58
|
-
vue.createElementVNode("span", {
|
|
59
|
-
class: vue.normalizeClass(vue.unref(ns).be("button", "inner")),
|
|
60
|
-
style: vue.normalizeStyle(vue.unref(modelValue) === _ctx.label ? vue.unref(activeStyle) : {}),
|
|
61
|
-
onKeydown: _cache[4] || (_cache[4] = vue.withModifiers(() => {
|
|
62
|
-
}, ["stop"]))
|
|
63
|
-
}, [
|
|
64
|
-
vue.renderSlot(_ctx.$slots, "default", {}, () => [
|
|
65
|
-
vue.createTextVNode(vue.toDisplayString(_ctx.label), 1)
|
|
66
|
-
])
|
|
67
|
-
], 38)
|
|
68
|
-
], 2);
|
|
69
|
-
};
|
|
9
|
+
const radioButtonProps = runtime.buildProps({
|
|
10
|
+
...radio.radioPropsBase,
|
|
11
|
+
name: {
|
|
12
|
+
type: String,
|
|
13
|
+
default: ""
|
|
70
14
|
}
|
|
71
15
|
});
|
|
72
|
-
var RadioButton = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "radio-button.vue"]]);
|
|
73
16
|
|
|
74
|
-
exports
|
|
17
|
+
exports.radioButtonProps = radioButtonProps;
|
|
75
18
|
//# sourceMappingURL=radio-button.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"radio-button.js","sources":["../../../../../../packages/components/radio/src/radio-button.
|
|
1
|
+
{"version":3,"file":"radio-button.js","sources":["../../../../../../packages/components/radio/src/radio-button.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\nimport { radioPropsBase } from './radio'\nimport type { ExtractPropTypes } from 'vue'\nimport type RadioButton from './radio-button.vue'\n\nexport const radioButtonProps = buildProps({\n ...radioPropsBase,\n /**\n * @description native 'name' attribute\n */\n name: {\n type: String,\n default: '',\n },\n} as const)\n\nexport type RadioButtonProps = ExtractPropTypes<typeof radioButtonProps>\nexport type RadioButtonInstance = InstanceType<typeof RadioButton>\n"],"names":["buildProps","radioPropsBase"],"mappings":";;;;;;;;AAEY,MAAC,gBAAgB,GAAGA,kBAAU,CAAC;AAC3C,EAAE,GAAGC,oBAAc;AACnB,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,CAAC;;;;"}
|
|
@@ -2,17 +2,74 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
require('
|
|
6
|
-
|
|
7
|
-
var
|
|
5
|
+
var vue = require('vue');
|
|
6
|
+
require('../../../hooks/index.js');
|
|
7
|
+
var useRadio = require('./use-radio.js');
|
|
8
|
+
var radioButton = require('./radio-button.js');
|
|
9
|
+
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
|
10
|
+
var index = require('../../../hooks/use-namespace/index.js');
|
|
8
11
|
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
name:
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
const _hoisted_1 = ["value", "name", "disabled"];
|
|
13
|
+
const __default__ = vue.defineComponent({
|
|
14
|
+
name: "ElRadioButton"
|
|
15
|
+
});
|
|
16
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
17
|
+
...__default__,
|
|
18
|
+
props: radioButton.radioButtonProps,
|
|
19
|
+
setup(__props) {
|
|
20
|
+
const props = __props;
|
|
21
|
+
const ns = index.useNamespace("radio");
|
|
22
|
+
const { radioRef, focus, size, disabled, modelValue, radioGroup } = useRadio.useRadio(props);
|
|
23
|
+
const activeStyle = vue.computed(() => {
|
|
24
|
+
return {
|
|
25
|
+
backgroundColor: (radioGroup == null ? void 0 : radioGroup.fill) || "",
|
|
26
|
+
borderColor: (radioGroup == null ? void 0 : radioGroup.fill) || "",
|
|
27
|
+
boxShadow: (radioGroup == null ? void 0 : radioGroup.fill) ? `-1px 0 0 0 ${radioGroup.fill}` : "",
|
|
28
|
+
color: (radioGroup == null ? void 0 : radioGroup.textColor) || ""
|
|
29
|
+
};
|
|
30
|
+
});
|
|
31
|
+
return (_ctx, _cache) => {
|
|
32
|
+
var _a;
|
|
33
|
+
return vue.openBlock(), vue.createElementBlock("label", {
|
|
34
|
+
class: vue.normalizeClass([
|
|
35
|
+
vue.unref(ns).b("button"),
|
|
36
|
+
vue.unref(ns).is("active", vue.unref(modelValue) === _ctx.label),
|
|
37
|
+
vue.unref(ns).is("disabled", vue.unref(disabled)),
|
|
38
|
+
vue.unref(ns).is("focus", vue.unref(focus)),
|
|
39
|
+
vue.unref(ns).bm("button", vue.unref(size))
|
|
40
|
+
])
|
|
41
|
+
}, [
|
|
42
|
+
vue.withDirectives(vue.createElementVNode("input", {
|
|
43
|
+
ref_key: "radioRef",
|
|
44
|
+
ref: radioRef,
|
|
45
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(modelValue) ? modelValue.value = $event : null),
|
|
46
|
+
class: vue.normalizeClass(vue.unref(ns).be("button", "original-radio")),
|
|
47
|
+
value: _ctx.label,
|
|
48
|
+
type: "radio",
|
|
49
|
+
name: _ctx.name || ((_a = vue.unref(radioGroup)) == null ? void 0 : _a.name),
|
|
50
|
+
disabled: vue.unref(disabled),
|
|
51
|
+
onFocus: _cache[1] || (_cache[1] = ($event) => focus.value = true),
|
|
52
|
+
onBlur: _cache[2] || (_cache[2] = ($event) => focus.value = false),
|
|
53
|
+
onClick: _cache[3] || (_cache[3] = vue.withModifiers(() => {
|
|
54
|
+
}, ["stop"]))
|
|
55
|
+
}, null, 42, _hoisted_1), [
|
|
56
|
+
[vue.vModelRadio, vue.unref(modelValue)]
|
|
57
|
+
]),
|
|
58
|
+
vue.createElementVNode("span", {
|
|
59
|
+
class: vue.normalizeClass(vue.unref(ns).be("button", "inner")),
|
|
60
|
+
style: vue.normalizeStyle(vue.unref(modelValue) === _ctx.label ? vue.unref(activeStyle) : {}),
|
|
61
|
+
onKeydown: _cache[4] || (_cache[4] = vue.withModifiers(() => {
|
|
62
|
+
}, ["stop"]))
|
|
63
|
+
}, [
|
|
64
|
+
vue.renderSlot(_ctx.$slots, "default", {}, () => [
|
|
65
|
+
vue.createTextVNode(vue.toDisplayString(_ctx.label), 1)
|
|
66
|
+
])
|
|
67
|
+
], 38)
|
|
68
|
+
], 2);
|
|
69
|
+
};
|
|
14
70
|
}
|
|
15
71
|
});
|
|
72
|
+
var RadioButton = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "radio-button.vue"]]);
|
|
16
73
|
|
|
17
|
-
exports
|
|
74
|
+
exports["default"] = RadioButton;
|
|
18
75
|
//# sourceMappingURL=radio-button2.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"radio-button2.js","sources":["../../../../../../packages/components/radio/src/radio-button.
|
|
1
|
+
{"version":3,"file":"radio-button2.js","sources":["../../../../../../packages/components/radio/src/radio-button.vue"],"sourcesContent":["<template>\n <label\n :class=\"[\n ns.b('button'),\n ns.is('active', modelValue === label),\n ns.is('disabled', disabled),\n ns.is('focus', focus),\n ns.bm('button', size),\n ]\"\n >\n <input\n ref=\"radioRef\"\n v-model=\"modelValue\"\n :class=\"ns.be('button', 'original-radio')\"\n :value=\"label\"\n type=\"radio\"\n :name=\"name || radioGroup?.name\"\n :disabled=\"disabled\"\n @focus=\"focus = true\"\n @blur=\"focus = false\"\n @click.stop\n />\n <span\n :class=\"ns.be('button', 'inner')\"\n :style=\"modelValue === label ? activeStyle : {}\"\n @keydown.stop\n >\n <slot>\n {{ label }}\n </slot>\n </span>\n </label>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed } from 'vue'\nimport { useNamespace } from '@element-plus/hooks'\nimport { useRadio } from './use-radio'\nimport { radioButtonProps } from './radio-button'\nimport type { CSSProperties } from 'vue'\n\ndefineOptions({\n name: 'ElRadioButton',\n})\n\nconst props = defineProps(radioButtonProps)\n\nconst ns = useNamespace('radio')\nconst { radioRef, focus, size, disabled, modelValue, radioGroup } =\n useRadio(props)\n\nconst activeStyle = computed<CSSProperties>(() => {\n return {\n backgroundColor: radioGroup?.fill || '',\n borderColor: radioGroup?.fill || '',\n boxShadow: radioGroup?.fill ? `-1px 0 0 0 ${radioGroup.fill}` : '',\n color: radioGroup?.textColor || '',\n }\n})\n</script>\n"],"names":["useNamespace","useRadio","computed"],"mappings":";;;;;;;;;;;;uCAyCc,CAAA;AAAA,EACZ,IAAM,EAAA,eAAA;AACR,CAAA,CAAA,CAAA;;;;;;AAIA,IAAM,MAAA,EAAA,GAAKA,mBAAa,OAAO,CAAA,CAAA;AAC/B,IAAM,MAAA,EAAE,UAAU,KAAO,EAAA,IAAA,EAAM,UAAU,UAAY,EAAA,UAAA,EAAA,GACnDC,kBAAS,KAAK,CAAA,CAAA;AAEhB,IAAM,MAAA,WAAA,GAAcC,aAAwB,MAAM;AAChD,MAAO,OAAA;AAAA,QACL,eAAA,EAAiB,eAAoB,IAAA,GAAA,KAAA,CAAA,GAAA,UAAA,CAAA,IAAA,KAAA,EAAA;AAAA,QACrC,WAAA,EAAa,eAAoB,IAAA,GAAA,KAAA,CAAA,GAAA,UAAA,CAAA,IAAA,KAAA,EAAA;AAAA,QACjC,SAAW,EAAA,CAAA,UAAA,IAAmB,IAAA,GAAA,KAAA,CAAA,GAAA,eAAkC,IAAA,CAAA,WAAA,EAAA,UAAA,CAAA,IAAA,CAAA,CAAA,GAAA,EAAA;AAAA,QAChE,KAAA,EAAO,eAAyB,IAAA,GAAA,KAAA,CAAA,GAAA,UAAA,CAAA,SAAA,KAAA,EAAA;AAAA,OAClC,CAAA;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 result$1 = require('./src/
|
|
7
|
-
var result = require('./src/
|
|
6
|
+
var result$1 = require('./src/result2.js');
|
|
7
|
+
var result = require('./src/result.js');
|
|
8
8
|
var install = require('../../utils/vue/install.js');
|
|
9
9
|
|
|
10
10
|
const ElResult = install.withInstall(result$1["default"]);
|
|
@@ -2,71 +2,39 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
require('
|
|
7
|
-
var
|
|
8
|
-
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
|
9
|
-
var index = require('../../../hooks/use-namespace/index.js');
|
|
5
|
+
require('../../../utils/index.js');
|
|
6
|
+
var iconsVue = require('@element-plus/icons-vue');
|
|
7
|
+
var runtime = require('../../../utils/vue/props/runtime.js');
|
|
10
8
|
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
vue.renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
37
|
-
vue.unref(resultIcon).component ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(vue.unref(resultIcon).component), {
|
|
38
|
-
key: 0,
|
|
39
|
-
class: vue.normalizeClass(vue.unref(resultIcon).class)
|
|
40
|
-
}, null, 8, ["class"])) : vue.createCommentVNode("v-if", true)
|
|
41
|
-
])
|
|
42
|
-
], 2),
|
|
43
|
-
_ctx.title || _ctx.$slots.title ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
44
|
-
key: 0,
|
|
45
|
-
class: vue.normalizeClass(vue.unref(ns).e("title"))
|
|
46
|
-
}, [
|
|
47
|
-
vue.renderSlot(_ctx.$slots, "title", {}, () => [
|
|
48
|
-
vue.createElementVNode("p", null, vue.toDisplayString(_ctx.title), 1)
|
|
49
|
-
])
|
|
50
|
-
], 2)) : vue.createCommentVNode("v-if", true),
|
|
51
|
-
_ctx.subTitle || _ctx.$slots["sub-title"] ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
52
|
-
key: 1,
|
|
53
|
-
class: vue.normalizeClass(vue.unref(ns).e("subtitle"))
|
|
54
|
-
}, [
|
|
55
|
-
vue.renderSlot(_ctx.$slots, "sub-title", {}, () => [
|
|
56
|
-
vue.createElementVNode("p", null, vue.toDisplayString(_ctx.subTitle), 1)
|
|
57
|
-
])
|
|
58
|
-
], 2)) : vue.createCommentVNode("v-if", true),
|
|
59
|
-
_ctx.$slots.extra ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
60
|
-
key: 2,
|
|
61
|
-
class: vue.normalizeClass(vue.unref(ns).e("extra"))
|
|
62
|
-
}, [
|
|
63
|
-
vue.renderSlot(_ctx.$slots, "extra")
|
|
64
|
-
], 2)) : vue.createCommentVNode("v-if", true)
|
|
65
|
-
], 2);
|
|
66
|
-
};
|
|
9
|
+
const IconMap = {
|
|
10
|
+
success: "icon-success",
|
|
11
|
+
warning: "icon-warning",
|
|
12
|
+
error: "icon-error",
|
|
13
|
+
info: "icon-info"
|
|
14
|
+
};
|
|
15
|
+
const IconComponentMap = {
|
|
16
|
+
[IconMap.success]: iconsVue.CircleCheckFilled,
|
|
17
|
+
[IconMap.warning]: iconsVue.WarningFilled,
|
|
18
|
+
[IconMap.error]: iconsVue.CircleCloseFilled,
|
|
19
|
+
[IconMap.info]: iconsVue.InfoFilled
|
|
20
|
+
};
|
|
21
|
+
const resultProps = runtime.buildProps({
|
|
22
|
+
title: {
|
|
23
|
+
type: String,
|
|
24
|
+
default: ""
|
|
25
|
+
},
|
|
26
|
+
subTitle: {
|
|
27
|
+
type: String,
|
|
28
|
+
default: ""
|
|
29
|
+
},
|
|
30
|
+
icon: {
|
|
31
|
+
type: String,
|
|
32
|
+
values: ["success", "warning", "info", "error"],
|
|
33
|
+
default: "info"
|
|
67
34
|
}
|
|
68
35
|
});
|
|
69
|
-
var Result = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "result.vue"]]);
|
|
70
36
|
|
|
71
|
-
exports
|
|
37
|
+
exports.IconComponentMap = IconComponentMap;
|
|
38
|
+
exports.IconMap = IconMap;
|
|
39
|
+
exports.resultProps = resultProps;
|
|
72
40
|
//# sourceMappingURL=result.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"result.js","sources":["../../../../../../packages/components/result/src/result.
|
|
1
|
+
{"version":3,"file":"result.js","sources":["../../../../../../packages/components/result/src/result.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\nimport {\n CircleCheckFilled,\n CircleCloseFilled,\n InfoFilled,\n WarningFilled,\n} from '@element-plus/icons-vue'\nimport type { Component, ExtractPropTypes } from 'vue'\nimport type Result from './result.vue'\n\nexport const IconMap = {\n success: 'icon-success',\n warning: 'icon-warning',\n error: 'icon-error',\n info: 'icon-info',\n} as const\n\nexport const IconComponentMap: Record<\n typeof IconMap[keyof typeof IconMap],\n Component\n> = {\n [IconMap.success]: CircleCheckFilled,\n [IconMap.warning]: WarningFilled,\n [IconMap.error]: CircleCloseFilled,\n [IconMap.info]: InfoFilled,\n}\n\nexport const resultProps = buildProps({\n /**\n * @description title of result\n */\n title: {\n type: String,\n default: '',\n },\n /**\n * @description sub title of result\n */\n subTitle: {\n type: String,\n default: '',\n },\n /**\n * @description icon type of result\n */\n icon: {\n type: String,\n values: ['success', 'warning', 'info', 'error'],\n default: 'info',\n },\n} as const)\n\nexport type ResultProps = ExtractPropTypes<typeof resultProps>\n\nexport type ResultInstance = InstanceType<typeof Result>\n"],"names":["CircleCheckFilled","WarningFilled","CircleCloseFilled","InfoFilled","buildProps"],"mappings":";;;;;;;;AAOY,MAAC,OAAO,GAAG;AACvB,EAAE,OAAO,EAAE,cAAc;AACzB,EAAE,OAAO,EAAE,cAAc;AACzB,EAAE,KAAK,EAAE,YAAY;AACrB,EAAE,IAAI,EAAE,WAAW;AACnB,EAAE;AACU,MAAC,gBAAgB,GAAG;AAChC,EAAE,CAAC,OAAO,CAAC,OAAO,GAAGA,0BAAiB;AACtC,EAAE,CAAC,OAAO,CAAC,OAAO,GAAGC,sBAAa;AAClC,EAAE,CAAC,OAAO,CAAC,KAAK,GAAGC,0BAAiB;AACpC,EAAE,CAAC,OAAO,CAAC,IAAI,GAAGC,mBAAU;AAC5B,EAAE;AACU,MAAC,WAAW,GAAGC,kBAAU,CAAC;AACtC,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC;AACnD,IAAI,OAAO,EAAE,MAAM;AACnB,GAAG;AACH,CAAC;;;;;;"}
|