|
@@ -1,6 +1,6 @@
|
|
<template>
|
|
<template>
|
|
<div class="center_in card_button_padding"
|
|
<div class="center_in card_button_padding"
|
|
- :style="{ width: width + 'px', height: height + 'px', backgroundColor: backgroundColor, borderRadius: borderRadius + 'px', }">
|
|
|
|
|
|
+ :style="{ width: width + 'px', height: height + 'px', zIndex: zIndex, backgroundColor: backgroundColor, borderRadius: borderRadius + 'px', }">
|
|
<div class="beyondHiding" style="text-align: center;"
|
|
<div class="beyondHiding" style="text-align: center;"
|
|
:style="{ width: textWidth + 'px', color: color, fontSize: fontSize + 'px', fontWeight: fontWeight, }">{{ value }}
|
|
:style="{ width: textWidth + 'px', color: color, fontSize: fontSize + 'px', fontWeight: fontWeight, }">{{ value }}
|
|
</div>
|
|
</div>
|
|
@@ -14,6 +14,7 @@ const props = defineProps(["config"])
|
|
const value = ref(false)
|
|
const value = ref(false)
|
|
const width = ref('')
|
|
const width = ref('')
|
|
const height = ref('')
|
|
const height = ref('')
|
|
|
|
+const zIndex = ref(0)
|
|
const backgroundColor = ref('')
|
|
const backgroundColor = ref('')
|
|
const borderRadius = ref('')
|
|
const borderRadius = ref('')
|
|
|
|
|
|
@@ -26,6 +27,7 @@ watch(() => props.config, (newValue) => {
|
|
if (newValue) {
|
|
if (newValue) {
|
|
value.value = newValue.config.name
|
|
value.value = newValue.config.name
|
|
width.value = newValue.css.width
|
|
width.value = newValue.css.width
|
|
|
|
+ zIndex.value = newValue.css.zIndex
|
|
height.value = newValue.css.height
|
|
height.value = newValue.css.height
|
|
backgroundColor.value = newValue.css.backgroundColor
|
|
backgroundColor.value = newValue.css.backgroundColor
|
|
borderRadius.value = newValue.css.borderRadius
|
|
borderRadius.value = newValue.css.borderRadius
|