mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-10-20 04:19:16 +00:00
fix: update config
This commit is contained in:
@@ -17,7 +17,7 @@ limitations under the License. -->
|
||||
<div class="graph">
|
||||
<div class="header">
|
||||
<span>{{ states.widget.title }}</span>
|
||||
<div class="tips">
|
||||
<div class="tips" v-show="states.widget.tips">
|
||||
<el-tooltip :content="states.widget.tips">
|
||||
<Icon iconName="info_outline" size="sm" />
|
||||
</el-tooltip>
|
||||
|
@@ -13,16 +13,6 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License. -->
|
||||
<template>
|
||||
<div>
|
||||
<span class="label">Bar Width</span>
|
||||
<el-slider
|
||||
class="bar-width"
|
||||
v-model="barWidth"
|
||||
show-input
|
||||
input-size="small"
|
||||
@change="changeConfig({ barWidth })"
|
||||
/>
|
||||
</div>
|
||||
<div>
|
||||
<span class="label">Show Background</span>
|
||||
<el-switch
|
||||
@@ -45,7 +35,6 @@ const props = defineProps({
|
||||
},
|
||||
});
|
||||
const emits = defineEmits(["update"]);
|
||||
const barWidth = ref(props.config.barWidth || 30);
|
||||
const showBackground = ref(props.config.showBackground || false);
|
||||
|
||||
function changeConfig(param: { [key: string]: unknown }) {
|
||||
|
@@ -49,7 +49,7 @@ import { LineConfig } from "@/types/dashboard";
|
||||
const props = defineProps({
|
||||
config: {
|
||||
type: Object as PropType<LineConfig>,
|
||||
default: () => ({ showBackground: true, barWidth: 30 }),
|
||||
default: () => ({}),
|
||||
},
|
||||
});
|
||||
const emits = defineEmits(["update"]);
|
||||
|
Reference in New Issue
Block a user