@mythpe/quasar-ui-qui 0.1.96 → 0.1.97
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
|
@@ -14,16 +14,22 @@ import { useMyth } from '../../../composable'
|
|
|
14
14
|
|
|
15
15
|
interface Props {
|
|
16
16
|
text?: any;
|
|
17
|
+
size: string | number;
|
|
18
|
+
iconSize?: string | number;
|
|
17
19
|
string?: boolean;
|
|
18
20
|
append?: boolean;
|
|
19
21
|
}
|
|
20
22
|
|
|
21
23
|
const props = withDefaults(defineProps<Props>(), {
|
|
22
24
|
text: undefined,
|
|
25
|
+
size: 15,
|
|
26
|
+
iconSize: 17,
|
|
23
27
|
string: !1,
|
|
24
28
|
append: !1
|
|
25
29
|
})
|
|
26
30
|
|
|
31
|
+
const getSize = computed<number>(() => parseInt(props.size?.toString?.() || '0') || 0)
|
|
32
|
+
const getIconSize = computed<number>(() => parseInt(props.iconSize?.toString?.() || '0') || 0)
|
|
27
33
|
const { te } = useI18n({ useScope: 'global' })
|
|
28
34
|
const { __, formatMoney } = useMyth()
|
|
29
35
|
const getText = computed<string | undefined>(() => {
|
|
@@ -59,11 +65,12 @@ defineOptions({
|
|
|
59
65
|
<slot name="default">
|
|
60
66
|
<div
|
|
61
67
|
v-if="text !== undefined && text !== null"
|
|
68
|
+
:style="`font-size: ${getSize}px;`"
|
|
62
69
|
class="flex flex-center m--sar-col__text"
|
|
63
70
|
v-text="getText"
|
|
64
71
|
/>
|
|
65
72
|
</slot>
|
|
66
|
-
<MSarSvg />
|
|
73
|
+
<MSarSvg :size="getIconSize" />
|
|
67
74
|
</MRow>
|
|
68
75
|
</div>
|
|
69
76
|
</template>
|
|
@@ -7,6 +7,16 @@
|
|
|
7
7
|
-->
|
|
8
8
|
|
|
9
9
|
<script lang="ts" setup>
|
|
10
|
+
import { computed } from 'vue'
|
|
11
|
+
|
|
12
|
+
type Props = {
|
|
13
|
+
size?: string | number;
|
|
14
|
+
}
|
|
15
|
+
const props = withDefaults(defineProps<Props>(), {
|
|
16
|
+
size: 15
|
|
17
|
+
})
|
|
18
|
+
const getSize = computed<number>(() => parseInt(props.size?.toString?.() || '0') || 0)
|
|
19
|
+
|
|
10
20
|
defineOptions({
|
|
11
21
|
name: 'MSarSvg',
|
|
12
22
|
inheritAttrs: !1
|
|
@@ -20,9 +30,7 @@ defineOptions({
|
|
|
20
30
|
>
|
|
21
31
|
<slot />
|
|
22
32
|
<svg
|
|
23
|
-
|
|
24
|
-
data-name="Layer 1"
|
|
25
|
-
height="15px"
|
|
33
|
+
:height="`${getSize}px`"
|
|
26
34
|
viewBox="0 0 1124.14 1256.39"
|
|
27
35
|
width="100%"
|
|
28
36
|
xmlns="http://www.w3.org/2000/svg"
|
|
@@ -972,7 +972,13 @@ export type MCkeditorProps = Omit<BaseInputsProps, 'hint' | 'topLabel' | 'placeh
|
|
|
972
972
|
}
|
|
973
973
|
export type MCkeditorSlots = BaseInputsSlots
|
|
974
974
|
|
|
975
|
-
export
|
|
975
|
+
export type MSarSvgProps = {
|
|
976
|
+
size?: string | number;
|
|
977
|
+
} & Record<string, any>;
|
|
978
|
+
|
|
979
|
+
export type MSarColProps = {
|
|
980
|
+
size?: string | number;
|
|
981
|
+
iconSize?: string | number;
|
|
976
982
|
text?: any;
|
|
977
983
|
string?: boolean;
|
|
978
984
|
append?: boolean;
|
|
@@ -982,10 +988,6 @@ export interface MSarColSlots {
|
|
|
982
988
|
default: () => VNode[]
|
|
983
989
|
}
|
|
984
990
|
|
|
985
|
-
export interface MSarSvgProps {
|
|
986
|
-
[key: string]: any;
|
|
987
|
-
}
|
|
988
|
-
|
|
989
991
|
export interface MSarSvgSlots {
|
|
990
992
|
default: () => VNode[]
|
|
991
993
|
}
|