@element-plus/nightly 0.0.20220119 → 0.0.20220120
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 +488 -470
- package/dist/index.full.min.js +6 -6
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +9 -9
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +488 -470
- package/dist/locale/af.js +1 -1
- package/dist/locale/af.min.js +1 -1
- package/dist/locale/af.min.mjs +1 -1
- package/dist/locale/af.mjs +1 -1
- package/dist/locale/ar.js +1 -1
- package/dist/locale/ar.min.js +1 -1
- package/dist/locale/ar.min.mjs +1 -1
- package/dist/locale/ar.mjs +1 -1
- package/dist/locale/bg.js +1 -1
- package/dist/locale/bg.min.js +1 -1
- package/dist/locale/bg.min.mjs +1 -1
- package/dist/locale/bg.mjs +1 -1
- package/dist/locale/bn.js +1 -1
- package/dist/locale/bn.min.js +1 -1
- package/dist/locale/bn.min.mjs +1 -1
- package/dist/locale/bn.mjs +1 -1
- package/dist/locale/ca.js +1 -1
- package/dist/locale/ca.min.js +1 -1
- package/dist/locale/ca.min.mjs +1 -1
- package/dist/locale/ca.mjs +1 -1
- package/dist/locale/cs.js +1 -1
- package/dist/locale/cs.min.js +1 -1
- package/dist/locale/cs.min.mjs +1 -1
- package/dist/locale/cs.mjs +1 -1
- package/dist/locale/da.js +1 -1
- package/dist/locale/da.min.js +1 -1
- package/dist/locale/da.min.mjs +1 -1
- package/dist/locale/da.mjs +1 -1
- package/dist/locale/de.js +1 -1
- package/dist/locale/de.min.js +1 -1
- package/dist/locale/de.min.mjs +1 -1
- package/dist/locale/de.mjs +1 -1
- package/dist/locale/el.js +1 -1
- package/dist/locale/el.min.js +1 -1
- package/dist/locale/el.min.mjs +1 -1
- package/dist/locale/el.mjs +1 -1
- package/dist/locale/en.js +1 -1
- package/dist/locale/en.min.js +1 -1
- package/dist/locale/en.min.mjs +1 -1
- package/dist/locale/en.mjs +1 -1
- package/dist/locale/eo.js +1 -1
- package/dist/locale/eo.min.js +1 -1
- package/dist/locale/eo.min.mjs +1 -1
- package/dist/locale/eo.mjs +1 -1
- package/dist/locale/es.js +1 -1
- package/dist/locale/es.min.js +1 -1
- package/dist/locale/es.min.mjs +1 -1
- package/dist/locale/es.mjs +1 -1
- package/dist/locale/et.js +1 -1
- package/dist/locale/et.min.js +1 -1
- package/dist/locale/et.min.mjs +1 -1
- package/dist/locale/et.mjs +1 -1
- package/dist/locale/eu.js +1 -1
- package/dist/locale/eu.min.js +1 -1
- package/dist/locale/eu.min.mjs +1 -1
- package/dist/locale/eu.mjs +1 -1
- package/dist/locale/fa.js +1 -1
- package/dist/locale/fa.min.js +1 -1
- package/dist/locale/fa.min.mjs +1 -1
- package/dist/locale/fa.mjs +1 -1
- package/dist/locale/fi.js +1 -1
- package/dist/locale/fi.min.js +1 -1
- package/dist/locale/fi.min.mjs +1 -1
- package/dist/locale/fi.mjs +1 -1
- package/dist/locale/fr.js +1 -1
- package/dist/locale/fr.min.js +1 -1
- package/dist/locale/fr.min.mjs +1 -1
- package/dist/locale/fr.mjs +1 -1
- package/dist/locale/he.js +1 -1
- package/dist/locale/he.min.js +1 -1
- package/dist/locale/he.min.mjs +1 -1
- package/dist/locale/he.mjs +1 -1
- package/dist/locale/hr.js +1 -1
- package/dist/locale/hr.min.js +1 -1
- package/dist/locale/hr.min.mjs +1 -1
- package/dist/locale/hr.mjs +1 -1
- package/dist/locale/hu.js +1 -1
- package/dist/locale/hu.min.js +1 -1
- package/dist/locale/hu.min.mjs +1 -1
- package/dist/locale/hu.mjs +1 -1
- package/dist/locale/hy-am.js +1 -1
- package/dist/locale/hy-am.min.js +1 -1
- package/dist/locale/hy-am.min.mjs +1 -1
- package/dist/locale/hy-am.mjs +1 -1
- package/dist/locale/id.js +1 -1
- package/dist/locale/id.min.js +1 -1
- package/dist/locale/id.min.mjs +1 -1
- package/dist/locale/id.mjs +1 -1
- package/dist/locale/it.js +1 -1
- package/dist/locale/it.min.js +1 -1
- package/dist/locale/it.min.mjs +1 -1
- package/dist/locale/it.mjs +1 -1
- package/dist/locale/ja.js +1 -1
- package/dist/locale/ja.min.js +1 -1
- package/dist/locale/ja.min.mjs +1 -1
- package/dist/locale/ja.mjs +1 -1
- package/dist/locale/kk.js +1 -1
- package/dist/locale/kk.min.js +1 -1
- package/dist/locale/kk.min.mjs +1 -1
- package/dist/locale/kk.mjs +1 -1
- package/dist/locale/km.js +1 -1
- package/dist/locale/km.min.js +1 -1
- package/dist/locale/km.min.mjs +1 -1
- package/dist/locale/km.mjs +1 -1
- package/dist/locale/ko.js +1 -1
- package/dist/locale/ko.min.js +1 -1
- package/dist/locale/ko.min.mjs +1 -1
- package/dist/locale/ko.mjs +1 -1
- package/dist/locale/ku.js +1 -1
- package/dist/locale/ku.min.js +1 -1
- package/dist/locale/ku.min.mjs +1 -1
- package/dist/locale/ku.mjs +1 -1
- package/dist/locale/ky.js +1 -1
- package/dist/locale/ky.min.js +1 -1
- package/dist/locale/ky.min.mjs +1 -1
- package/dist/locale/ky.mjs +1 -1
- package/dist/locale/lt.js +1 -1
- package/dist/locale/lt.min.js +1 -1
- package/dist/locale/lt.min.mjs +1 -1
- package/dist/locale/lt.mjs +1 -1
- package/dist/locale/lv.js +1 -1
- package/dist/locale/lv.min.js +1 -1
- package/dist/locale/lv.min.mjs +1 -1
- package/dist/locale/lv.mjs +1 -1
- package/dist/locale/mn.js +1 -1
- package/dist/locale/mn.min.js +1 -1
- package/dist/locale/mn.min.mjs +1 -1
- package/dist/locale/mn.mjs +1 -1
- package/dist/locale/nb-no.js +1 -1
- package/dist/locale/nb-no.min.js +1 -1
- package/dist/locale/nb-no.min.mjs +1 -1
- package/dist/locale/nb-no.mjs +1 -1
- package/dist/locale/nl.js +1 -1
- package/dist/locale/nl.min.js +1 -1
- package/dist/locale/nl.min.mjs +1 -1
- package/dist/locale/nl.mjs +1 -1
- package/dist/locale/pa.js +1 -1
- package/dist/locale/pa.min.js +1 -1
- package/dist/locale/pa.min.mjs +1 -1
- package/dist/locale/pa.mjs +1 -1
- package/dist/locale/pl.js +1 -1
- package/dist/locale/pl.min.js +1 -1
- package/dist/locale/pl.min.mjs +1 -1
- package/dist/locale/pl.mjs +1 -1
- package/dist/locale/pt-br.js +1 -1
- package/dist/locale/pt-br.min.js +1 -1
- package/dist/locale/pt-br.min.mjs +1 -1
- package/dist/locale/pt-br.mjs +1 -1
- package/dist/locale/pt.js +1 -1
- package/dist/locale/pt.min.js +1 -1
- package/dist/locale/pt.min.mjs +1 -1
- package/dist/locale/pt.mjs +1 -1
- package/dist/locale/ro.js +1 -1
- package/dist/locale/ro.min.js +1 -1
- package/dist/locale/ro.min.mjs +1 -1
- package/dist/locale/ro.mjs +1 -1
- package/dist/locale/ru.js +1 -1
- package/dist/locale/ru.min.js +1 -1
- package/dist/locale/ru.min.mjs +1 -1
- package/dist/locale/ru.mjs +1 -1
- package/dist/locale/sk.js +1 -1
- package/dist/locale/sk.min.js +1 -1
- package/dist/locale/sk.min.mjs +1 -1
- package/dist/locale/sk.mjs +1 -1
- package/dist/locale/sl.js +1 -1
- package/dist/locale/sl.min.js +1 -1
- package/dist/locale/sl.min.mjs +1 -1
- package/dist/locale/sl.mjs +1 -1
- package/dist/locale/sr.js +1 -1
- package/dist/locale/sr.min.js +1 -1
- package/dist/locale/sr.min.mjs +1 -1
- package/dist/locale/sr.mjs +1 -1
- package/dist/locale/sv.js +1 -1
- package/dist/locale/sv.min.js +1 -1
- package/dist/locale/sv.min.mjs +1 -1
- package/dist/locale/sv.mjs +1 -1
- package/dist/locale/ta.js +1 -1
- package/dist/locale/ta.min.js +1 -1
- package/dist/locale/ta.min.mjs +1 -1
- package/dist/locale/ta.mjs +1 -1
- package/dist/locale/th.js +1 -1
- package/dist/locale/th.min.js +1 -1
- package/dist/locale/th.min.mjs +1 -1
- package/dist/locale/th.mjs +1 -1
- package/dist/locale/tk.js +1 -1
- package/dist/locale/tk.min.js +1 -1
- package/dist/locale/tk.min.mjs +1 -1
- package/dist/locale/tk.mjs +1 -1
- package/dist/locale/tr.js +1 -1
- package/dist/locale/tr.min.js +1 -1
- package/dist/locale/tr.min.mjs +1 -1
- package/dist/locale/tr.mjs +1 -1
- package/dist/locale/ug-cn.js +1 -1
- package/dist/locale/ug-cn.min.js +1 -1
- package/dist/locale/ug-cn.min.mjs +1 -1
- package/dist/locale/ug-cn.mjs +1 -1
- package/dist/locale/uk.js +1 -1
- package/dist/locale/uk.min.js +1 -1
- package/dist/locale/uk.min.mjs +1 -1
- package/dist/locale/uk.mjs +1 -1
- package/dist/locale/uz-uz.js +1 -1
- package/dist/locale/uz-uz.min.js +1 -1
- package/dist/locale/uz-uz.min.mjs +1 -1
- package/dist/locale/uz-uz.mjs +1 -1
- package/dist/locale/vi.js +1 -1
- package/dist/locale/vi.min.js +1 -1
- package/dist/locale/vi.min.mjs +1 -1
- package/dist/locale/vi.mjs +1 -1
- package/dist/locale/zh-cn.js +1 -1
- package/dist/locale/zh-cn.min.js +1 -1
- package/dist/locale/zh-cn.min.mjs +1 -1
- package/dist/locale/zh-cn.mjs +1 -1
- package/dist/locale/zh-tw.js +1 -1
- package/dist/locale/zh-tw.min.js +1 -1
- package/dist/locale/zh-tw.min.mjs +1 -1
- package/dist/locale/zh-tw.mjs +1 -1
- package/es/components/calendar/index.d.ts +11 -0
- package/es/components/calendar/src/calendar.vue.d.ts +11 -0
- package/es/components/calendar/src/calendar.vue_vue_type_script_lang.mjs +4 -1
- package/es/components/calendar/src/calendar.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/calendar/src/calendar.vue_vue_type_template_id_76705c76_lang.mjs +26 -26
- package/es/components/calendar/src/calendar.vue_vue_type_template_id_76705c76_lang.mjs.map +1 -1
- package/es/components/calendar/src/date-table.vue.d.ts +22 -0
- package/es/components/calendar/src/date-table.vue_vue_type_script_lang.mjs +6 -1
- package/es/components/calendar/src/date-table.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/calendar/src/date-table.vue_vue_type_template_id_297fdb36_lang.mjs +7 -9
- package/es/components/calendar/src/date-table.vue_vue_type_template_id_297fdb36_lang.mjs.map +1 -1
- package/es/components/container/index.d.ts +103 -2
- package/es/components/container/src/aside.vue.d.ts +11 -0
- package/es/components/container/src/aside.vue_vue_type_script_lang.mjs +5 -1
- package/es/components/container/src/aside.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/container/src/aside.vue_vue_type_template_id_47e12f0a_lang.mjs +3 -3
- package/es/components/container/src/aside.vue_vue_type_template_id_47e12f0a_lang.mjs.map +1 -1
- package/es/components/container/src/container.vue.d.ts +11 -0
- package/es/components/container/src/container.vue_vue_type_script_lang.mjs +5 -1
- package/es/components/container/src/container.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/container/src/container.vue_vue_type_template_id_60a2865a_lang.mjs +1 -1
- package/es/components/container/src/footer.vue.d.ts +11 -0
- package/es/components/container/src/footer.vue_vue_type_script_lang.mjs +5 -1
- package/es/components/container/src/footer.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/container/src/footer.vue_vue_type_template_id_2c2b128e_lang.mjs +3 -3
- package/es/components/container/src/footer.vue_vue_type_template_id_2c2b128e_lang.mjs.map +1 -1
- package/es/components/container/src/header.vue.d.ts +11 -0
- package/es/components/container/src/header.vue_vue_type_script_lang.mjs +5 -1
- package/es/components/container/src/header.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/container/src/header.vue_vue_type_template_id_0b1cdaab_lang.mjs +3 -3
- package/es/components/container/src/header.vue_vue_type_template_id_0b1cdaab_lang.mjs.map +1 -1
- package/es/components/container/src/main.vue.d.ts +13 -1
- package/es/components/container/src/main.vue_vue_type_script_lang.mjs +9 -1
- package/es/components/container/src/main.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/container/src/main.vue_vue_type_template_id_526ed157_lang.mjs +5 -4
- package/es/components/container/src/main.vue_vue_type_template_id_526ed157_lang.mjs.map +1 -1
- package/es/components/descriptions/index.d.ts +11 -0
- package/es/components/descriptions/src/descriptions-cell.mjs +14 -15
- package/es/components/descriptions/src/descriptions-cell.mjs.map +1 -1
- package/es/components/descriptions/src/index.vue.d.ts +11 -0
- package/es/components/descriptions/src/index.vue_vue_type_script_lang.mjs +6 -4
- package/es/components/descriptions/src/index.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/descriptions/src/index.vue_vue_type_template_id_788d3854_lang.mjs +18 -16
- package/es/components/descriptions/src/index.vue_vue_type_template_id_788d3854_lang.mjs.map +1 -1
- package/es/components/slider/src/button.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/slider/src/button.vue_vue_type_template_id_9cd3e794_lang.mjs +3 -4
- package/es/components/slider/src/button.vue_vue_type_template_id_9cd3e794_lang.mjs.map +1 -1
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/components/calendar/index.d.ts +11 -0
- package/lib/components/calendar/src/calendar.vue.d.ts +11 -0
- package/lib/components/calendar/src/calendar.vue_vue_type_script_lang.js +6 -3
- package/lib/components/calendar/src/calendar.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/calendar/src/calendar.vue_vue_type_template_id_76705c76_lang.js +25 -25
- package/lib/components/calendar/src/calendar.vue_vue_type_template_id_76705c76_lang.js.map +1 -1
- package/lib/components/calendar/src/date-table.vue.d.ts +22 -0
- package/lib/components/calendar/src/date-table.vue_vue_type_script_lang.js +6 -1
- package/lib/components/calendar/src/date-table.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/calendar/src/date-table.vue_vue_type_template_id_297fdb36_lang.js +7 -9
- package/lib/components/calendar/src/date-table.vue_vue_type_template_id_297fdb36_lang.js.map +1 -1
- package/lib/components/container/index.d.ts +103 -2
- package/lib/components/container/src/aside.vue.d.ts +11 -0
- package/lib/components/container/src/aside.vue_vue_type_script_lang.js +5 -1
- package/lib/components/container/src/aside.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/container/src/aside.vue_vue_type_template_id_47e12f0a_lang.js +2 -2
- package/lib/components/container/src/aside.vue_vue_type_template_id_47e12f0a_lang.js.map +1 -1
- package/lib/components/container/src/container.vue.d.ts +11 -0
- package/lib/components/container/src/container.vue_vue_type_script_lang.js +5 -1
- package/lib/components/container/src/container.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/container/src/container.vue_vue_type_template_id_60a2865a_lang.js +1 -1
- package/lib/components/container/src/footer.vue.d.ts +11 -0
- package/lib/components/container/src/footer.vue_vue_type_script_lang.js +5 -1
- package/lib/components/container/src/footer.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/container/src/footer.vue_vue_type_template_id_2c2b128e_lang.js +2 -2
- package/lib/components/container/src/footer.vue_vue_type_template_id_2c2b128e_lang.js.map +1 -1
- package/lib/components/container/src/header.vue.d.ts +11 -0
- package/lib/components/container/src/header.vue_vue_type_script_lang.js +5 -1
- package/lib/components/container/src/header.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/container/src/header.vue_vue_type_template_id_0b1cdaab_lang.js +2 -2
- package/lib/components/container/src/header.vue_vue_type_template_id_0b1cdaab_lang.js.map +1 -1
- package/lib/components/container/src/main.vue.d.ts +13 -1
- package/lib/components/container/src/main.vue_vue_type_script_lang.js +9 -1
- package/lib/components/container/src/main.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/container/src/main.vue_vue_type_template_id_526ed157_lang.js +4 -3
- package/lib/components/container/src/main.vue_vue_type_template_id_526ed157_lang.js.map +1 -1
- package/lib/components/descriptions/index.d.ts +11 -0
- package/lib/components/descriptions/src/descriptions-cell.js +14 -15
- package/lib/components/descriptions/src/descriptions-cell.js.map +1 -1
- package/lib/components/descriptions/src/index.vue.d.ts +11 -0
- package/lib/components/descriptions/src/index.vue_vue_type_script_lang.js +6 -4
- package/lib/components/descriptions/src/index.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/descriptions/src/index.vue_vue_type_template_id_788d3854_lang.js +18 -16
- package/lib/components/descriptions/src/index.vue_vue_type_template_id_788d3854_lang.js.map +1 -1
- package/lib/components/slider/src/button.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/slider/src/button.vue_vue_type_template_id_9cd3e794_lang.js +3 -4
- package/lib/components/slider/src/button.vue_vue_type_template_id_9cd3e794_lang.js.map +1 -1
- 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-table.css +1 -1
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/src/table.scss +2 -2
- package/web-types.json +1 -1
|
@@ -6,6 +6,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
6
6
|
};
|
|
7
7
|
}, {
|
|
8
8
|
style: import("vue").ComputedRef<CSSProperties>;
|
|
9
|
+
ns: {
|
|
10
|
+
namespace: import("vue").ComputedRef<string>;
|
|
11
|
+
b: (blockSuffix?: string) => string;
|
|
12
|
+
e: (element?: string | undefined) => string;
|
|
13
|
+
m: (modifier?: string | undefined) => string;
|
|
14
|
+
be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
|
|
15
|
+
em: (element?: string | undefined, modifier?: string | undefined) => string;
|
|
16
|
+
bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
|
|
17
|
+
bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
|
|
18
|
+
is: (name: string, state?: boolean) => string;
|
|
19
|
+
};
|
|
9
20
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
10
21
|
height: {
|
|
11
22
|
type: StringConstructor;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { defineComponent, computed } from 'vue';
|
|
2
|
+
import '../../../hooks/index.mjs';
|
|
3
|
+
import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
|
|
2
4
|
|
|
3
5
|
var script = defineComponent({
|
|
4
6
|
name: "ElHeader",
|
|
@@ -9,10 +11,12 @@ var script = defineComponent({
|
|
|
9
11
|
}
|
|
10
12
|
},
|
|
11
13
|
setup(props) {
|
|
14
|
+
const ns = useNamespace("header");
|
|
12
15
|
return {
|
|
13
16
|
style: computed(() => props.height ? {
|
|
14
17
|
"--el-header-height": props.height
|
|
15
|
-
} : {})
|
|
18
|
+
} : {}),
|
|
19
|
+
ns
|
|
16
20
|
};
|
|
17
21
|
}
|
|
18
22
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"header.vue_vue_type_script_lang.mjs","sources":["../../../../../../packages/components/container/src/header.vue"],"sourcesContent":["<template>\n <header class=\"
|
|
1
|
+
{"version":3,"file":"header.vue_vue_type_script_lang.mjs","sources":["../../../../../../packages/components/container/src/header.vue"],"sourcesContent":["<template>\n <header :class=\"ns.b()\" :style=\"style\">\n <slot></slot>\n </header>\n</template>\n<script lang=\"ts\">\nimport { computed, defineComponent } from 'vue'\nimport { useNamespace } from '@element-plus/hooks'\n\nimport type { CSSProperties } from 'vue'\n\nexport default defineComponent({\n name: 'ElHeader',\n props: {\n height: {\n type: String,\n default: null,\n },\n },\n setup(props) {\n const ns = useNamespace('header')\n\n return {\n style: computed(\n () =>\n (props.height\n ? {\n '--el-header-height': props.height,\n }\n : {}) as CSSProperties\n ),\n ns,\n }\n },\n})\n</script>\n"],"names":[],"mappings":";;;;AAOA,aAAe,eAAe,CAAC;;AAE/B,EAAE,KAAK,EAAE;;AAET,UAAU,EAAE,MAAM;MACZ,OAAO,EAAE;KACV;;OAEE,CAAC,KAAK,EAAE;UACL,EAAE,GAAG;IACX;;QAEI;OACD,GAAG,GAAG;;KAER,CAAC;;;;;;"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { openBlock, createElementBlock, normalizeStyle, renderSlot } from 'vue';
|
|
1
|
+
import { openBlock, createElementBlock, normalizeClass, normalizeStyle, renderSlot } from 'vue';
|
|
2
2
|
|
|
3
3
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4
4
|
return openBlock(), createElementBlock("header", {
|
|
5
|
-
class:
|
|
5
|
+
class: normalizeClass(_ctx.ns.b()),
|
|
6
6
|
style: normalizeStyle(_ctx.style)
|
|
7
7
|
}, [
|
|
8
8
|
renderSlot(_ctx.$slots, "default")
|
|
9
|
-
],
|
|
9
|
+
], 6);
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
export { render };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"header.vue_vue_type_template_id_0b1cdaab_lang.mjs","sources":["../../../../../../packages/components/container/src/header.vue?vue&type=template&id=0b1cdaab&lang.js"],"sourcesContent":["<template>\n <header class=\"
|
|
1
|
+
{"version":3,"file":"header.vue_vue_type_template_id_0b1cdaab_lang.mjs","sources":["../../../../../../packages/components/container/src/header.vue?vue&type=template&id=0b1cdaab&lang.js"],"sourcesContent":["<template>\n <header :class=\"ns.b()\" :style=\"style\">\n <slot></slot>\n </header>\n</template>\n<script lang=\"ts\">\nimport { computed, defineComponent } from 'vue'\nimport { useNamespace } from '@element-plus/hooks'\n\nimport type { CSSProperties } from 'vue'\n\nexport default defineComponent({\n name: 'ElHeader',\n props: {\n height: {\n type: String,\n default: null,\n },\n },\n setup(props) {\n const ns = useNamespace('header')\n\n return {\n style: computed(\n () =>\n (props.height\n ? {\n '--el-header-height': props.height,\n }\n : {}) as CSSProperties\n ),\n ns,\n }\n },\n})\n</script>\n"],"names":[],"mappings":";;;;;IACW,KAAK,iBAAE;;;;;;;;"}
|
|
@@ -1,2 +1,14 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, {
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {
|
|
2
|
+
ns: {
|
|
3
|
+
namespace: import("vue").ComputedRef<string>;
|
|
4
|
+
b: (blockSuffix?: string) => string;
|
|
5
|
+
e: (element?: string | undefined) => string;
|
|
6
|
+
m: (modifier?: string | undefined) => string;
|
|
7
|
+
be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
|
|
8
|
+
em: (element?: string | undefined, modifier?: string | undefined) => string;
|
|
9
|
+
bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
|
|
10
|
+
bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
|
|
11
|
+
is: (name: string, state?: boolean) => string;
|
|
12
|
+
};
|
|
13
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
2
14
|
export default _default;
|
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
import { defineComponent } from 'vue';
|
|
2
|
+
import '../../../hooks/index.mjs';
|
|
3
|
+
import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
|
|
2
4
|
|
|
3
5
|
var script = defineComponent({
|
|
4
|
-
name: "ElMain"
|
|
6
|
+
name: "ElMain",
|
|
7
|
+
setup() {
|
|
8
|
+
const ns = useNamespace("main");
|
|
9
|
+
return {
|
|
10
|
+
ns
|
|
11
|
+
};
|
|
12
|
+
}
|
|
5
13
|
});
|
|
6
14
|
|
|
7
15
|
export { script as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.vue_vue_type_script_lang.mjs","sources":["../../../../../../packages/components/container/src/main.vue"],"sourcesContent":["<template>\n <main class=\"
|
|
1
|
+
{"version":3,"file":"main.vue_vue_type_script_lang.mjs","sources":["../../../../../../packages/components/container/src/main.vue"],"sourcesContent":["<template>\n <main :class=\"ns.b()\">\n <slot></slot>\n </main>\n</template>\n<script lang=\"ts\">\nimport { defineComponent } from 'vue'\nimport { useNamespace } from '@element-plus/hooks'\n\nexport default defineComponent({\n name: 'ElMain',\n setup() {\n const ns = useNamespace('main')\n\n return {\n ns,\n }\n },\n})\n</script>\n"],"names":[],"mappings":";;;;AAOA,aAAe,eAAe,CAAC;;AAE/B,EAAE,KAAK,GAAG;IACN,MAAM,EAAE,GAAG;IACX;MACE,EAAE;;;;;;;"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { openBlock, createElementBlock, renderSlot } from 'vue';
|
|
1
|
+
import { openBlock, createElementBlock, normalizeClass, renderSlot } from 'vue';
|
|
2
2
|
|
|
3
|
-
const _hoisted_1 = { class: "el-main" };
|
|
4
3
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5
|
-
return openBlock(), createElementBlock("main",
|
|
4
|
+
return openBlock(), createElementBlock("main", {
|
|
5
|
+
class: normalizeClass(_ctx.ns.b())
|
|
6
|
+
}, [
|
|
6
7
|
renderSlot(_ctx.$slots, "default")
|
|
7
|
-
]);
|
|
8
|
+
], 2);
|
|
8
9
|
}
|
|
9
10
|
|
|
10
11
|
export { render };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.vue_vue_type_template_id_526ed157_lang.mjs","sources":[
|
|
1
|
+
{"version":3,"file":"main.vue_vue_type_template_id_526ed157_lang.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;"}
|
|
@@ -26,6 +26,17 @@ export declare const ElDescriptions: import("../../utils/types").SFCWithInstall<
|
|
|
26
26
|
}, {
|
|
27
27
|
descriptionKls: import("vue").ComputedRef<string[]>;
|
|
28
28
|
getRows: () => never[];
|
|
29
|
+
ns: {
|
|
30
|
+
namespace: import("vue").ComputedRef<string>;
|
|
31
|
+
b: (blockSuffix?: string) => string;
|
|
32
|
+
e: (element?: string | undefined) => string;
|
|
33
|
+
m: (modifier?: string | undefined) => string;
|
|
34
|
+
be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
|
|
35
|
+
em: (element?: string | undefined, modifier?: string | undefined) => string;
|
|
36
|
+
bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
|
|
37
|
+
bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
|
|
38
|
+
is: (name: string, state?: boolean) => string;
|
|
39
|
+
};
|
|
29
40
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
30
41
|
border: {
|
|
31
42
|
type: BooleanConstructor;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { defineComponent, inject, h } from 'vue';
|
|
2
2
|
import { addUnit } from '../../../utils/util.mjs';
|
|
3
3
|
import { getNormalizedProps } from '../../../utils/vnode.mjs';
|
|
4
|
+
import '../../../hooks/index.mjs';
|
|
4
5
|
import { elDescriptionsKey } from './token.mjs';
|
|
6
|
+
import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
|
|
5
7
|
|
|
6
8
|
var DescriptionsCell = defineComponent({
|
|
7
9
|
name: "ElDescriptionsCell",
|
|
@@ -38,17 +40,16 @@ var DescriptionsCell = defineComponent({
|
|
|
38
40
|
width: addUnit(item.width),
|
|
39
41
|
minWidth: addUnit(item.minWidth)
|
|
40
42
|
};
|
|
43
|
+
const ns = useNamespace("descriptions");
|
|
41
44
|
switch (this.type) {
|
|
42
45
|
case "label":
|
|
43
46
|
return h(this.tag, {
|
|
44
47
|
style,
|
|
45
48
|
class: [
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
"is-vertical-label": isVertical
|
|
51
|
-
},
|
|
49
|
+
ns.e("cell"),
|
|
50
|
+
ns.e("label"),
|
|
51
|
+
ns.is("bordered-label", border),
|
|
52
|
+
ns.is("vertical-label", isVertical),
|
|
52
53
|
labelAlign,
|
|
53
54
|
labelClassName
|
|
54
55
|
],
|
|
@@ -58,12 +59,10 @@ var DescriptionsCell = defineComponent({
|
|
|
58
59
|
return h(this.tag, {
|
|
59
60
|
style,
|
|
60
61
|
class: [
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
"is-vertical-content": isVertical
|
|
66
|
-
},
|
|
62
|
+
ns.e("cell"),
|
|
63
|
+
ns.e("content"),
|
|
64
|
+
ns.is("bordered-content", border),
|
|
65
|
+
ns.is("vertical-content", isVertical),
|
|
67
66
|
align,
|
|
68
67
|
className
|
|
69
68
|
],
|
|
@@ -72,14 +71,14 @@ var DescriptionsCell = defineComponent({
|
|
|
72
71
|
default:
|
|
73
72
|
return h("td", {
|
|
74
73
|
style,
|
|
75
|
-
class: ["
|
|
74
|
+
class: [ns.e("cell"), align],
|
|
76
75
|
colSpan: span
|
|
77
76
|
}, [
|
|
78
77
|
h("span", {
|
|
79
|
-
class: ["
|
|
78
|
+
class: [ns.e("label"), labelClassName]
|
|
80
79
|
}, label),
|
|
81
80
|
h("span", {
|
|
82
|
-
class: ["
|
|
81
|
+
class: [ns.e("content"), className]
|
|
83
82
|
}, content)
|
|
84
83
|
]);
|
|
85
84
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"descriptions-cell.mjs","sources":["../../../../../../packages/components/descriptions/src/descriptions-cell.ts"],"sourcesContent":["import { defineComponent, h, inject } from 'vue'\nimport { addUnit } from '@element-plus/utils/util'\nimport { getNormalizedProps } from '@element-plus/utils/vnode'\nimport { elDescriptionsKey } from './token'\n\nimport type { VNode } from 'vue'\nimport type {\n IDescriptionsInject,\n IDescriptionsItemInject,\n} from './descriptions.type'\n\nexport default defineComponent({\n name: 'ElDescriptionsCell',\n props: {\n cell: {\n type: Object,\n },\n tag: {\n type: String,\n },\n type: {\n type: String,\n },\n },\n setup() {\n const descriptions = inject(elDescriptionsKey, {} as IDescriptionsInject)\n\n return {\n descriptions,\n }\n },\n render() {\n const item = getNormalizedProps(\n this.cell as VNode\n ) as IDescriptionsItemInject\n\n const { border, direction } = this.descriptions\n const isVertical = direction === 'vertical'\n const label = this.cell?.children?.label?.() || item.label\n const content = this.cell?.children?.default?.()\n const span = item.span\n const align = item.align ? `is-${item.align}` : ''\n const labelAlign = item.labelAlign ? `is-${item.labelAlign}` : '' || align\n const className = item.className\n const labelClassName = item.labelClassName\n const style = {\n width: addUnit(item.width),\n minWidth: addUnit(item.minWidth),\n }\n\n switch (this.type) {\n case 'label':\n return h(\n this.tag,\n {\n style,\n class: [\n '
|
|
1
|
+
{"version":3,"file":"descriptions-cell.mjs","sources":["../../../../../../packages/components/descriptions/src/descriptions-cell.ts"],"sourcesContent":["import { defineComponent, h, inject } from 'vue'\nimport { addUnit } from '@element-plus/utils/util'\nimport { getNormalizedProps } from '@element-plus/utils/vnode'\nimport { useNamespace } from '@element-plus/hooks'\nimport { elDescriptionsKey } from './token'\n\nimport type { VNode } from 'vue'\nimport type {\n IDescriptionsInject,\n IDescriptionsItemInject,\n} from './descriptions.type'\n\nexport default defineComponent({\n name: 'ElDescriptionsCell',\n props: {\n cell: {\n type: Object,\n },\n tag: {\n type: String,\n },\n type: {\n type: String,\n },\n },\n setup() {\n const descriptions = inject(elDescriptionsKey, {} as IDescriptionsInject)\n\n return {\n descriptions,\n }\n },\n render() {\n const item = getNormalizedProps(\n this.cell as VNode\n ) as IDescriptionsItemInject\n\n const { border, direction } = this.descriptions\n const isVertical = direction === 'vertical'\n const label = this.cell?.children?.label?.() || item.label\n const content = this.cell?.children?.default?.()\n const span = item.span\n const align = item.align ? `is-${item.align}` : ''\n const labelAlign = item.labelAlign ? `is-${item.labelAlign}` : '' || align\n const className = item.className\n const labelClassName = item.labelClassName\n const style = {\n width: addUnit(item.width),\n minWidth: addUnit(item.minWidth),\n }\n const ns = useNamespace('descriptions')\n\n switch (this.type) {\n case 'label':\n return h(\n this.tag,\n {\n style,\n class: [\n ns.e('cell'),\n ns.e('label'),\n ns.is('bordered-label', border),\n ns.is('vertical-label', isVertical),\n labelAlign,\n labelClassName,\n ],\n colSpan: isVertical ? span : 1,\n },\n label\n )\n case 'content':\n return h(\n this.tag,\n {\n style,\n class: [\n ns.e('cell'),\n ns.e('content'),\n ns.is('bordered-content', border),\n ns.is('vertical-content', isVertical),\n align,\n className,\n ],\n colSpan: isVertical ? span : span * 2 - 1,\n },\n content\n )\n default:\n return h(\n 'td',\n {\n style,\n class: [ns.e('cell'), align],\n colSpan: span,\n },\n [\n h(\n 'span',\n {\n class: [ns.e('label'), labelClassName],\n },\n label\n ),\n h(\n 'span',\n {\n class: [ns.e('content'), className],\n },\n content\n ),\n ]\n )\n }\n },\n})\n"],"names":[],"mappings":"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"}
|
|
@@ -28,6 +28,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
28
28
|
}, {
|
|
29
29
|
descriptionKls: import("vue").ComputedRef<string[]>;
|
|
30
30
|
getRows: () => never[];
|
|
31
|
+
ns: {
|
|
32
|
+
namespace: import("vue").ComputedRef<string>;
|
|
33
|
+
b: (blockSuffix?: string) => string;
|
|
34
|
+
e: (element?: string | undefined) => string;
|
|
35
|
+
m: (modifier?: string | undefined) => string;
|
|
36
|
+
be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
|
|
37
|
+
em: (element?: string | undefined, modifier?: string | undefined) => string;
|
|
38
|
+
bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
|
|
39
|
+
bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
|
|
40
|
+
is: (name: string, state?: boolean) => string;
|
|
41
|
+
};
|
|
31
42
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
32
43
|
border: {
|
|
33
44
|
type: BooleanConstructor;
|
|
@@ -5,6 +5,7 @@ import './descriptions-row.mjs';
|
|
|
5
5
|
import { elDescriptionsKey } from './token.mjs';
|
|
6
6
|
import script$1 from './descriptions-row.vue_vue_type_script_lang.mjs';
|
|
7
7
|
import { useSize } from '../../../hooks/use-common-props/index.mjs';
|
|
8
|
+
import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
|
|
8
9
|
|
|
9
10
|
var script = defineComponent({
|
|
10
11
|
name: "ElDescriptions",
|
|
@@ -40,10 +41,10 @@ var script = defineComponent({
|
|
|
40
41
|
setup(props, { slots }) {
|
|
41
42
|
provide(elDescriptionsKey, props);
|
|
42
43
|
const descriptionsSize = useSize();
|
|
43
|
-
const
|
|
44
|
+
const ns = useNamespace("descriptions");
|
|
44
45
|
const descriptionKls = computed(() => [
|
|
45
|
-
|
|
46
|
-
descriptionsSize.value
|
|
46
|
+
ns.b(),
|
|
47
|
+
ns.is(ns.m(descriptionsSize.value), !!descriptionsSize.value)
|
|
47
48
|
]);
|
|
48
49
|
const flattedChildren = (children) => {
|
|
49
50
|
const temp = Array.isArray(children) ? children : [children];
|
|
@@ -105,7 +106,8 @@ var script = defineComponent({
|
|
|
105
106
|
};
|
|
106
107
|
return {
|
|
107
108
|
descriptionKls,
|
|
108
|
-
getRows
|
|
109
|
+
getRows,
|
|
110
|
+
ns
|
|
109
111
|
};
|
|
110
112
|
}
|
|
111
113
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.vue_vue_type_script_lang.mjs","sources":["../../../../../../packages/components/descriptions/src/index.vue"],"sourcesContent":["<template>\n <div :class=\"descriptionKls\">\n <div\n v-if=\"title || extra || $slots.title || $slots.extra\"\n class=\"
|
|
1
|
+
{"version":3,"file":"index.vue_vue_type_script_lang.mjs","sources":["../../../../../../packages/components/descriptions/src/index.vue"],"sourcesContent":["<template>\n <div :class=\"descriptionKls\">\n <div\n v-if=\"title || extra || $slots.title || $slots.extra\"\n :class=\"ns.e('header')\"\n >\n <div :class=\"ns.e('title')\">\n <slot name=\"title\">{{ title }}</slot>\n </div>\n <div :class=\"ns.e('extra')\">\n <slot name=\"extra\">{{ extra }}</slot>\n </div>\n </div>\n\n <div :class=\"ns.e('body')\">\n <table :class=\"[ns.e('table'), ns.is('bordered', border)]\">\n <tbody>\n <template v-for=\"(row, index) in getRows()\" :key=\"index\">\n <el-descriptions-row :row=\"row\" />\n </template>\n </tbody>\n </table>\n </div>\n </div>\n</template>\n\n<script lang=\"ts\">\nimport { computed, defineComponent, provide } from 'vue'\nimport { isValidComponentSize } from '@element-plus/utils/validators'\nimport { useSize, useNamespace } from '@element-plus/hooks'\nimport DescriptionsRow from './descriptions-row.vue'\nimport { elDescriptionsKey } from './token'\n\nimport type { PropType } from 'vue'\nimport type { ComponentSize } from '@element-plus/utils/types'\n\nexport default defineComponent({\n name: 'ElDescriptions',\n components: {\n [DescriptionsRow.name]: DescriptionsRow,\n },\n props: {\n border: {\n type: Boolean,\n default: false,\n },\n column: {\n type: Number,\n default: 3,\n },\n direction: {\n type: String as PropType<'horizontal' | 'vertical'>,\n default: 'horizontal',\n },\n size: {\n type: String as PropType<ComponentSize>,\n validator: isValidComponentSize,\n },\n title: {\n type: String,\n default: '',\n },\n extra: {\n type: String,\n default: '',\n },\n },\n setup(props, { slots }) {\n provide(elDescriptionsKey, props)\n\n const descriptionsSize = useSize()\n const ns = useNamespace('descriptions')\n\n const descriptionKls = computed(() => [\n ns.b(),\n ns.is(ns.m(descriptionsSize.value), !!descriptionsSize.value),\n ])\n\n const flattedChildren = (children) => {\n const temp = Array.isArray(children) ? children : [children]\n const res = []\n temp.forEach((child) => {\n if (Array.isArray(child.children)) {\n res.push(...flattedChildren(child.children))\n } else {\n res.push(child)\n }\n })\n return res\n }\n\n const filledNode = (node, span, count, isLast = false) => {\n if (!node.props) {\n node.props = {}\n }\n if (span > count) {\n node.props.span = count\n }\n if (isLast) {\n // set the last span\n node.props.span = span\n }\n return node\n }\n\n const getRows = () => {\n const children = flattedChildren(slots.default?.()).filter(\n (node) => node?.type?.name === 'ElDescriptionsItem'\n )\n const rows = []\n let temp = []\n let count = props.column\n let totalSpan = 0 // all spans number of item\n\n children.forEach((node, index) => {\n const span = node.props?.span || 1\n\n if (index < children.length - 1) {\n totalSpan += span > count ? count : span\n }\n\n if (index === children.length - 1) {\n // calculate the last item span\n const lastSpan = props.column - (totalSpan % props.column)\n temp.push(filledNode(node, lastSpan, count, true))\n rows.push(temp)\n return\n }\n\n if (span < count) {\n count -= span\n temp.push(node)\n } else {\n temp.push(filledNode(node, span, count))\n rows.push(temp)\n count = props.column\n temp = []\n }\n })\n\n return rows\n }\n\n return {\n descriptionKls,\n getRows,\n ns,\n }\n },\n})\n</script>\n"],"names":["DescriptionsRow"],"mappings":";;;;;;;;;AA+BA,aAAe,eAAe,CAAC;;AAE/B,EAAE,UAAU,EAAE;AACd,IAAI,CAACA,QAAe,CAAC,IAAI,GAAGA,QAAe;;AAE3C,EAAE,KAAK,EAAE;IACL,MAAM,EAAE;MACN,IAAI,EAAE;MACN,OAAO,EAAE,KAAK;;IAEhB;MACE,IAAI,EAAE;MACN,OAAO,EAAE,CAAC;;IAEZ;MACE,IAAI,EAAE;MACN,OAAO,EAAE;;IAEX;MACE,IAAI,EAAE;MACN,SAAS,EAAE,oBAAoB;;IAEjC;MACE,IAAI;MACJ,OAAO,EAAE,EAAE;;IAEb;MACE;MACA,OAAO,EAAE,EAAE;;;OAGV,CAAC;YACI;UACF;IACN;;MAEE,EAAE,CAAC,CAAC,EAAE;MACN,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,gBAAgB,CAAC;;IAE9B,MAAM,eAAe,IAAI,QAAQ;MAC/B,UAAU,GAAG,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC;;MAEpC,IAAI,CAAC,OAAO,CAAC,CAAC,KAAK,KAAK;QACtB,IAAI;UACF,GAAG,CAAC,IAAI,CAAC,GAAG,eAAe,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC;;;;OAIhD,CAAC,CAAC;MACH,OAAO,GAAG;MACV;oBACc,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE;UACjC,CAAC,IAAI,CAAC,KAAK,EAAE;QACf,IAAI,CAAC;;;;OAIN;;;OAGA;MACD,OAAO,IAAI,CAAC;;;MAGZ,IAAI,EAAE,CAAC;YACD,QAAQ;;eAEL,CAAC;QACR,CAAC;YACG,IAAI,GAAG,EAAE,CAAC;MAChB;MACA,IAAI,KAAK;;;QAGP,IAAI,GAAG,CAAC;QACR,MAAM,IAAI,GAAG,EAAE,GAAG,GAAG,IAAI,CAAC,KAAK,KAAK,IAAI,GAAG,KAAK,CAAC,GAAG,GAAG,CAAC;QACxD,IAAI,QAAQ,QAAQ,CAAC,MAAM,IAAI,EAAE;;SAEhC;QACD,IAAI,KAAK;UACP,MAAM,QAAQ,GAAG;UACjB,IAAI,CAAC,KAAK,WAAW,IAAI,EAAE,QAAQ,EAAE;;UAErC,OAAO;SACR;;eAEM,QAAQ,CAAC;UACd,IAAI,CAAC,KAAK,IAAI,CAAC,CAAC;;;cAGZ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;UAChB,KAAK,GAAG,KAAK,CAAC,MAAM;UACpB,IAAI,GAAG,EAAE,CAAC;;;aAGP;;;oBAGO;aACP;;;;;;;;"}
|
|
@@ -1,32 +1,34 @@
|
|
|
1
1
|
import { resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, renderSlot, createTextVNode, toDisplayString, createCommentVNode, Fragment, renderList, createBlock } from 'vue';
|
|
2
2
|
|
|
3
|
-
const _hoisted_1 = {
|
|
4
|
-
key: 0,
|
|
5
|
-
class: "el-descriptions__header"
|
|
6
|
-
};
|
|
7
|
-
const _hoisted_2 = { class: "el-descriptions__title" };
|
|
8
|
-
const _hoisted_3 = { class: "el-descriptions__extra" };
|
|
9
|
-
const _hoisted_4 = { class: "el-descriptions__body" };
|
|
10
3
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
11
4
|
const _component_el_descriptions_row = resolveComponent("el-descriptions-row");
|
|
12
5
|
return openBlock(), createElementBlock("div", {
|
|
13
6
|
class: normalizeClass(_ctx.descriptionKls)
|
|
14
7
|
}, [
|
|
15
|
-
_ctx.title || _ctx.extra || _ctx.$slots.title || _ctx.$slots.extra ? (openBlock(), createElementBlock("div",
|
|
16
|
-
|
|
8
|
+
_ctx.title || _ctx.extra || _ctx.$slots.title || _ctx.$slots.extra ? (openBlock(), createElementBlock("div", {
|
|
9
|
+
key: 0,
|
|
10
|
+
class: normalizeClass(_ctx.ns.e("header"))
|
|
11
|
+
}, [
|
|
12
|
+
createElementVNode("div", {
|
|
13
|
+
class: normalizeClass(_ctx.ns.e("title"))
|
|
14
|
+
}, [
|
|
17
15
|
renderSlot(_ctx.$slots, "title", {}, () => [
|
|
18
16
|
createTextVNode(toDisplayString(_ctx.title), 1)
|
|
19
17
|
])
|
|
20
|
-
]),
|
|
21
|
-
createElementVNode("div",
|
|
18
|
+
], 2),
|
|
19
|
+
createElementVNode("div", {
|
|
20
|
+
class: normalizeClass(_ctx.ns.e("extra"))
|
|
21
|
+
}, [
|
|
22
22
|
renderSlot(_ctx.$slots, "extra", {}, () => [
|
|
23
23
|
createTextVNode(toDisplayString(_ctx.extra), 1)
|
|
24
24
|
])
|
|
25
|
-
])
|
|
26
|
-
])) : createCommentVNode("v-if", true),
|
|
27
|
-
createElementVNode("div",
|
|
25
|
+
], 2)
|
|
26
|
+
], 2)) : createCommentVNode("v-if", true),
|
|
27
|
+
createElementVNode("div", {
|
|
28
|
+
class: normalizeClass(_ctx.ns.e("body"))
|
|
29
|
+
}, [
|
|
28
30
|
createElementVNode("table", {
|
|
29
|
-
class: normalizeClass(["
|
|
31
|
+
class: normalizeClass([_ctx.ns.e("table"), _ctx.ns.is("bordered", _ctx.border)])
|
|
30
32
|
}, [
|
|
31
33
|
createElementVNode("tbody", null, [
|
|
32
34
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.getRows(), (row, index) => {
|
|
@@ -37,7 +39,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
37
39
|
}), 128))
|
|
38
40
|
])
|
|
39
41
|
], 2)
|
|
40
|
-
])
|
|
42
|
+
], 2)
|
|
41
43
|
], 2);
|
|
42
44
|
}
|
|
43
45
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.vue_vue_type_template_id_788d3854_lang.mjs","sources":["../../../../../../packages/components/descriptions/src/index.vue?vue&type=template&id=788d3854&lang.js"],"sourcesContent":["<template>\n <div :class=\"descriptionKls\">\n <div\n v-if=\"title || extra || $slots.title || $slots.extra\"\n class=\"
|
|
1
|
+
{"version":3,"file":"index.vue_vue_type_template_id_788d3854_lang.mjs","sources":["../../../../../../packages/components/descriptions/src/index.vue?vue&type=template&id=788d3854&lang.js"],"sourcesContent":["<template>\n <div :class=\"descriptionKls\">\n <div\n v-if=\"title || extra || $slots.title || $slots.extra\"\n :class=\"ns.e('header')\"\n >\n <div :class=\"ns.e('title')\">\n <slot name=\"title\">{{ title }}</slot>\n </div>\n <div :class=\"ns.e('extra')\">\n <slot name=\"extra\">{{ extra }}</slot>\n </div>\n </div>\n\n <div :class=\"ns.e('body')\">\n <table :class=\"[ns.e('table'), ns.is('bordered', border)]\">\n <tbody>\n <template v-for=\"(row, index) in getRows()\" :key=\"index\">\n <el-descriptions-row :row=\"row\" />\n </template>\n </tbody>\n </table>\n </div>\n </div>\n</template>\n\n<script lang=\"ts\">\nimport { computed, defineComponent, provide } from 'vue'\nimport { isValidComponentSize } from '@element-plus/utils/validators'\nimport { useSize, useNamespace } from '@element-plus/hooks'\nimport DescriptionsRow from './descriptions-row.vue'\nimport { elDescriptionsKey } from './token'\n\nimport type { PropType } from 'vue'\nimport type { ComponentSize } from '@element-plus/utils/types'\n\nexport default defineComponent({\n name: 'ElDescriptions',\n components: {\n [DescriptionsRow.name]: DescriptionsRow,\n },\n props: {\n border: {\n type: Boolean,\n default: false,\n },\n column: {\n type: Number,\n default: 3,\n },\n direction: {\n type: String as PropType<'horizontal' | 'vertical'>,\n default: 'horizontal',\n },\n size: {\n type: String as PropType<ComponentSize>,\n validator: isValidComponentSize,\n },\n title: {\n type: String,\n default: '',\n },\n extra: {\n type: String,\n default: '',\n },\n },\n setup(props, { slots }) {\n provide(elDescriptionsKey, props)\n\n const descriptionsSize = useSize()\n const ns = useNamespace('descriptions')\n\n const descriptionKls = computed(() => [\n ns.b(),\n ns.is(ns.m(descriptionsSize.value), !!descriptionsSize.value),\n ])\n\n const flattedChildren = (children) => {\n const temp = Array.isArray(children) ? children : [children]\n const res = []\n temp.forEach((child) => {\n if (Array.isArray(child.children)) {\n res.push(...flattedChildren(child.children))\n } else {\n res.push(child)\n }\n })\n return res\n }\n\n const filledNode = (node, span, count, isLast = false) => {\n if (!node.props) {\n node.props = {}\n }\n if (span > count) {\n node.props.span = count\n }\n if (isLast) {\n // set the last span\n node.props.span = span\n }\n return node\n }\n\n const getRows = () => {\n const children = flattedChildren(slots.default?.()).filter(\n (node) => node?.type?.name === 'ElDescriptionsItem'\n )\n const rows = []\n let temp = []\n let count = props.column\n let totalSpan = 0 // all spans number of item\n\n children.forEach((node, index) => {\n const span = node.props?.span || 1\n\n if (index < children.length - 1) {\n totalSpan += span > count ? count : span\n }\n\n if (index === children.length - 1) {\n // calculate the last item span\n const lastSpan = props.column - (totalSpan % props.column)\n temp.push(filledNode(node, lastSpan, count, true))\n rows.push(temp)\n return\n }\n\n if (span < count) {\n count -= span\n temp.push(node)\n } else {\n temp.push(filledNode(node, span, count))\n rows.push(temp)\n count = props.column\n temp = []\n }\n })\n\n return rows\n }\n\n return {\n descriptionKls,\n getRows,\n ns,\n }\n },\n})\n</script>\n"],"names":["_normalizeClass"],"mappings":";;;;;;;IACQ,KAAK;;gCAEiB;;;eAClBA,wBAAI,CAAC;;;yCAEK,CAAC;;;;;;;yCAGD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.vue_vue_type_script_lang.mjs","sources":["../../../../../../packages/components/slider/src/button.vue"],"sourcesContent":["<template>\n <div\n ref=\"button\"\n class=\"el-slider__button-wrapper\"\n :class=\"{ hover: hovering, dragging: dragging }\"\n :style=\"wrapperStyle\"\n tabindex=\"0\"\n @mouseenter=\"handleMouseEnter\"\n @mouseleave=\"handleMouseLeave\"\n @mousedown=\"onButtonDown\"\n @touchstart=\"onButtonDown\"\n @focus=\"handleMouseEnter\"\n @blur=\"handleMouseLeave\"\n @keydown.left=\"onLeftKeyDown\"\n @keydown.right=\"onRightKeyDown\"\n @keydown.down.prevent=\"onLeftKeyDown\"\n @keydown.up.prevent=\"onRightKeyDown\"\n >\n <el-tooltip\n ref=\"tooltip\"\n v-model=\"tooltipVisible\"\n placement=\"top\"\n :stop-popper-mouse-event=\"false\"\n :popper-class=\"tooltipClass\"\n :disabled=\"!showTooltip\"\n
|
|
1
|
+
{"version":3,"file":"button.vue_vue_type_script_lang.mjs","sources":["../../../../../../packages/components/slider/src/button.vue"],"sourcesContent":["<template>\n <div\n ref=\"button\"\n class=\"el-slider__button-wrapper\"\n :class=\"{ hover: hovering, dragging: dragging }\"\n :style=\"wrapperStyle\"\n tabindex=\"0\"\n @mouseenter=\"handleMouseEnter\"\n @mouseleave=\"handleMouseLeave\"\n @mousedown=\"onButtonDown\"\n @touchstart=\"onButtonDown\"\n @focus=\"handleMouseEnter\"\n @blur=\"handleMouseLeave\"\n @keydown.left=\"onLeftKeyDown\"\n @keydown.right=\"onRightKeyDown\"\n @keydown.down.prevent=\"onLeftKeyDown\"\n @keydown.up.prevent=\"onRightKeyDown\"\n >\n <el-tooltip\n ref=\"tooltip\"\n v-model:visible=\"tooltipVisible\"\n placement=\"top\"\n :stop-popper-mouse-event=\"false\"\n :popper-class=\"tooltipClass\"\n :disabled=\"!showTooltip\"\n persistent\n >\n <template #content>\n <span>{{ formatValue }}</span>\n </template>\n <div\n class=\"el-slider__button\"\n :class=\"{ hover: hovering, dragging: dragging }\"\n ></div>\n </el-tooltip>\n </div>\n</template>\n\n<script lang=\"ts\">\nimport { defineComponent, reactive, toRefs } from 'vue'\nimport ElTooltip from '@element-plus/components/tooltip'\nimport { UPDATE_MODEL_EVENT } from '@element-plus/utils/constants'\nimport { useSliderButton } from './useSliderButton'\n\nexport default defineComponent({\n name: 'ElSliderButton',\n\n components: {\n ElTooltip,\n },\n\n props: {\n modelValue: {\n type: Number,\n default: 0,\n },\n vertical: {\n type: Boolean,\n default: false,\n },\n tooltipClass: {\n type: String,\n default: '',\n },\n },\n\n emits: [UPDATE_MODEL_EVENT],\n\n setup(props, { emit }) {\n const initData = reactive({\n hovering: false,\n dragging: false,\n isClick: false,\n startX: 0,\n currentX: 0,\n startY: 0,\n currentY: 0,\n startPosition: 0,\n newPosition: 0,\n oldValue: props.modelValue,\n })\n\n const {\n tooltip,\n showTooltip,\n tooltipVisible,\n wrapperStyle,\n formatValue,\n handleMouseEnter,\n handleMouseLeave,\n onButtonDown,\n onLeftKeyDown,\n onRightKeyDown,\n setPosition,\n } = useSliderButton(props, initData, emit)\n\n const { hovering, dragging } = toRefs(initData)\n\n return {\n tooltip,\n tooltipVisible,\n showTooltip,\n wrapperStyle,\n formatValue,\n handleMouseEnter,\n handleMouseLeave,\n onButtonDown,\n onLeftKeyDown,\n onRightKeyDown,\n setPosition,\n\n hovering,\n dragging,\n }\n },\n})\n</script>\n"],"names":[],"mappings":";;;;;AA0CA,aAAe,eAAe;;AAE9B,EAAE,UAAU;IACR,SAAS;;EAEX,KAAK,EAAE;IACL;;;KAGC;IACD,QAAQ,EAAE;MACR,IAAI,EAAE;MACN,OAAO,EAAE;KACV;IACD;MACE,IAAI,EAAE,MAAM;MACZ,OAAO,EAAE,EAAE;KACZ;;OAEE,EAAE,CAAC;OACH,CAAC,KAAK,EAAE,EAAE;IACb;;;MAGE,OAAO,EAAE,KAAK;;MAEd,WAAW;MACX,MAAM,EAAE,CAAC;MACT,QAAQ,EAAE,CAAC;MACX,aAAa,EAAE;MACf,WAAW,EAAE,CAAC;MACd,QAAQ;MACR,CAAC;UACG;MACJ,OAAO;MACP,WAAW;MACX,cAAc;MACd,YAAY;;;MAGZ;MACA;MACA;MACA,cAAc;MACd,WAAW;QACT;UACE,EAAE,QAAQ,EAAE;WACX;MACL,OAAO;MACP;MACA,WAAW;MACX;MACA,WAAW;;MAEX,gBAAgB;;MAEhB;MACA;MACA,WAAW;MACX,QAAQ;MACR,QAAQ;MACR;;;;;;"}
|
|
@@ -22,13 +22,12 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
22
22
|
}, [
|
|
23
23
|
createVNode(_component_el_tooltip, {
|
|
24
24
|
ref: "tooltip",
|
|
25
|
-
|
|
26
|
-
"onUpdate:
|
|
25
|
+
visible: _ctx.tooltipVisible,
|
|
26
|
+
"onUpdate:visible": _cache[0] || (_cache[0] = ($event) => _ctx.tooltipVisible = $event),
|
|
27
27
|
placement: "top",
|
|
28
28
|
"stop-popper-mouse-event": false,
|
|
29
29
|
"popper-class": _ctx.tooltipClass,
|
|
30
30
|
disabled: !_ctx.showTooltip,
|
|
31
|
-
manual: "",
|
|
32
31
|
persistent: ""
|
|
33
32
|
}, {
|
|
34
33
|
content: withCtx(() => [
|
|
@@ -40,7 +39,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
40
39
|
}, null, 2)
|
|
41
40
|
]),
|
|
42
41
|
_: 1
|
|
43
|
-
}, 8, ["
|
|
42
|
+
}, 8, ["visible", "popper-class", "disabled"])
|
|
44
43
|
], 38);
|
|
45
44
|
}
|
|
46
45
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.vue_vue_type_template_id_9cd3e794_lang.mjs","sources":["../../../../../../packages/components/slider/src/button.vue?vue&type=template&id=9cd3e794&lang.js"],"sourcesContent":["<template>\n <div\n ref=\"button\"\n class=\"el-slider__button-wrapper\"\n :class=\"{ hover: hovering, dragging: dragging }\"\n :style=\"wrapperStyle\"\n tabindex=\"0\"\n @mouseenter=\"handleMouseEnter\"\n @mouseleave=\"handleMouseLeave\"\n @mousedown=\"onButtonDown\"\n @touchstart=\"onButtonDown\"\n @focus=\"handleMouseEnter\"\n @blur=\"handleMouseLeave\"\n @keydown.left=\"onLeftKeyDown\"\n @keydown.right=\"onRightKeyDown\"\n @keydown.down.prevent=\"onLeftKeyDown\"\n @keydown.up.prevent=\"onRightKeyDown\"\n >\n <el-tooltip\n ref=\"tooltip\"\n v-model=\"tooltipVisible\"\n placement=\"top\"\n :stop-popper-mouse-event=\"false\"\n :popper-class=\"tooltipClass\"\n :disabled=\"!showTooltip\"\n
|
|
1
|
+
{"version":3,"file":"button.vue_vue_type_template_id_9cd3e794_lang.mjs","sources":["../../../../../../packages/components/slider/src/button.vue?vue&type=template&id=9cd3e794&lang.js"],"sourcesContent":["<template>\n <div\n ref=\"button\"\n class=\"el-slider__button-wrapper\"\n :class=\"{ hover: hovering, dragging: dragging }\"\n :style=\"wrapperStyle\"\n tabindex=\"0\"\n @mouseenter=\"handleMouseEnter\"\n @mouseleave=\"handleMouseLeave\"\n @mousedown=\"onButtonDown\"\n @touchstart=\"onButtonDown\"\n @focus=\"handleMouseEnter\"\n @blur=\"handleMouseLeave\"\n @keydown.left=\"onLeftKeyDown\"\n @keydown.right=\"onRightKeyDown\"\n @keydown.down.prevent=\"onLeftKeyDown\"\n @keydown.up.prevent=\"onRightKeyDown\"\n >\n <el-tooltip\n ref=\"tooltip\"\n v-model:visible=\"tooltipVisible\"\n placement=\"top\"\n :stop-popper-mouse-event=\"false\"\n :popper-class=\"tooltipClass\"\n :disabled=\"!showTooltip\"\n persistent\n >\n <template #content>\n <span>{{ formatValue }}</span>\n </template>\n <div\n class=\"el-slider__button\"\n :class=\"{ hover: hovering, dragging: dragging }\"\n ></div>\n </el-tooltip>\n </div>\n</template>\n\n<script lang=\"ts\">\nimport { defineComponent, reactive, toRefs } from 'vue'\nimport ElTooltip from '@element-plus/components/tooltip'\nimport { UPDATE_MODEL_EVENT } from '@element-plus/utils/constants'\nimport { useSliderButton } from './useSliderButton'\n\nexport default defineComponent({\n name: 'ElSliderButton',\n\n components: {\n ElTooltip,\n },\n\n props: {\n modelValue: {\n type: Number,\n default: 0,\n },\n vertical: {\n type: Boolean,\n default: false,\n },\n tooltipClass: {\n type: String,\n default: '',\n },\n },\n\n emits: [UPDATE_MODEL_EVENT],\n\n setup(props, { emit }) {\n const initData = reactive({\n hovering: false,\n dragging: false,\n isClick: false,\n startX: 0,\n currentX: 0,\n startY: 0,\n currentY: 0,\n startPosition: 0,\n newPosition: 0,\n oldValue: props.modelValue,\n })\n\n const {\n tooltip,\n showTooltip,\n tooltipVisible,\n wrapperStyle,\n formatValue,\n handleMouseEnter,\n handleMouseLeave,\n onButtonDown,\n onLeftKeyDown,\n onRightKeyDown,\n setPosition,\n } = useSliderButton(props, initData, emit)\n\n const { hovering, dragging } = toRefs(initData)\n\n return {\n tooltip,\n tooltipVisible,\n showTooltip,\n wrapperStyle,\n formatValue,\n handleMouseEnter,\n handleMouseLeave,\n onButtonDown,\n onLeftKeyDown,\n onRightKeyDown,\n setPosition,\n\n hovering,\n dragging,\n }\n },\n})\n</script>\n"],"names":[],"mappings":";;;;;;;IAEI,KAAI;IACJ;IAEC,uBAAO,iBAAY;IACpB;IACC;IACA,YAAU;IACV,qDAAW;IACX,qGAAwB;IACxB;0GACsB;aACf;sDAAO;;;;;;;MAMb;MACQ,SAAS;;MACjB;MACC,2BAAyB;MACzB,cAAY;;MAEb;;;;;;;;;;;;;;;"}
|
package/es/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "0.0.
|
|
1
|
+
export declare const version = "0.0.20220120";
|
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.20220120'\n"],"names":[],"mappings":"AAAY,MAAC,OAAO,GAAG;;;;"}
|
|
@@ -11,6 +11,17 @@ export declare const ElCalendar: import("../../utils/types").SFCWithInstall<impo
|
|
|
11
11
|
pickDay: (day: import("dayjs").Dayjs) => void;
|
|
12
12
|
selectDate: (type: "today" | "prev-month" | "next-month" | "prev-year" | "next-year") => void;
|
|
13
13
|
t: import("../..").Translator;
|
|
14
|
+
ns: {
|
|
15
|
+
namespace: import("vue").ComputedRef<string>;
|
|
16
|
+
b: (blockSuffix?: string) => string;
|
|
17
|
+
e: (element?: string | undefined) => string;
|
|
18
|
+
m: (modifier?: string | undefined) => string;
|
|
19
|
+
be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
|
|
20
|
+
em: (element?: string | undefined, modifier?: string | undefined) => string;
|
|
21
|
+
bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
|
|
22
|
+
bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
|
|
23
|
+
is: (name: string, state?: boolean) => string;
|
|
24
|
+
};
|
|
14
25
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
15
26
|
"update:modelValue": (value: Date) => boolean;
|
|
16
27
|
input: (value: Date) => boolean;
|
|
@@ -15,6 +15,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
15
15
|
pickDay: (day: Dayjs) => void;
|
|
16
16
|
selectDate: (type: DateType) => void;
|
|
17
17
|
t: import("element-plus/es/hooks").Translator;
|
|
18
|
+
ns: {
|
|
19
|
+
namespace: ComputedRef<string>;
|
|
20
|
+
b: (blockSuffix?: string) => string;
|
|
21
|
+
e: (element?: string | undefined) => string;
|
|
22
|
+
m: (modifier?: string | undefined) => string;
|
|
23
|
+
be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
|
|
24
|
+
em: (element?: string | undefined, modifier?: string | undefined) => string;
|
|
25
|
+
bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
|
|
26
|
+
bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
|
|
27
|
+
is: (name: string, state?: boolean) => string;
|
|
28
|
+
};
|
|
18
29
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
19
30
|
"update:modelValue": (value: Date) => boolean;
|
|
20
31
|
input: (value: Date) => boolean;
|
|
@@ -10,7 +10,8 @@ var error = require('../../../utils/error.js');
|
|
|
10
10
|
require('./date-table2.js');
|
|
11
11
|
var calendar = require('./calendar.js');
|
|
12
12
|
var dateTable_vue_vue_type_script_lang = require('./date-table.vue_vue_type_script_lang.js');
|
|
13
|
-
var index$1 = require('../../../hooks/use-
|
|
13
|
+
var index$1 = require('../../../hooks/use-namespace/index.js');
|
|
14
|
+
var index$2 = require('../../../hooks/use-locale/index.js');
|
|
14
15
|
|
|
15
16
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
16
17
|
|
|
@@ -26,7 +27,8 @@ var script = vue.defineComponent({
|
|
|
26
27
|
props: calendar.calendarProps,
|
|
27
28
|
emits: calendar.calendarEmits,
|
|
28
29
|
setup(props, { emit }) {
|
|
29
|
-
const
|
|
30
|
+
const ns = index$1.useNamespace("calendar");
|
|
31
|
+
const { t, lang } = index$2.useLocale();
|
|
30
32
|
const selectedDay = vue.ref();
|
|
31
33
|
const now = dayjs__default["default"]().locale(lang.value);
|
|
32
34
|
const prevMonthDayjs = vue.computed(() => {
|
|
@@ -156,7 +158,8 @@ var script = vue.defineComponent({
|
|
|
156
158
|
validatedRange,
|
|
157
159
|
pickDay,
|
|
158
160
|
selectDate,
|
|
159
|
-
t
|
|
161
|
+
t,
|
|
162
|
+
ns
|
|
160
163
|
};
|
|
161
164
|
}
|
|
162
165
|
});
|