@mc-markets/ui 1.1.67 → 1.1.70
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/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<el-date-picker ref="datePickerRef"
|
|
2
|
+
<el-date-picker ref="datePickerRef" :prefix-icon="customPrefix" class="m-datepicker" :popper-class="popperClass+' mc-datepicker-popper'" :class="{ 'style-type-solid': styleType === 'solid' }" v-bind="$attrs">
|
|
3
3
|
<template v-for="(_, name) in $slots" :key="name" #[name]>
|
|
4
4
|
<slot :name="name" />
|
|
5
5
|
</template>
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
<script setup>
|
|
10
10
|
import { useClassName } from "@packages/hooks/useClassName.js";
|
|
11
11
|
import { useExposeRef } from '@packages/hooks/useExposeRef.js'
|
|
12
|
+
import Icon from '../Icon/Icon.vue'
|
|
12
13
|
|
|
13
14
|
defineOptions({
|
|
14
15
|
name: "MDatePicker",
|
|
@@ -24,7 +25,11 @@ const props = defineProps({
|
|
|
24
25
|
type: String,
|
|
25
26
|
},
|
|
26
27
|
});
|
|
27
|
-
|
|
28
|
+
const customPrefix = shallowRef({
|
|
29
|
+
render() {
|
|
30
|
+
return h(Icon, { name: 'calendar-clock', size: '20' })
|
|
31
|
+
}
|
|
32
|
+
})
|
|
28
33
|
// 使用类名 Hook,排除 type 和 popperClass 属性
|
|
29
34
|
const { mergedAttrs, className: popperClass } = useClassName(
|
|
30
35
|
"mc-datepicker-popper",
|