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