mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-05-15 09:48:43 +00:00
updated alignment of tools
This commit is contained in:
parent
5ae494a554
commit
612ac7cd81
@ -14,7 +14,6 @@ See the License for the specific language governing permissions and
|
|||||||
limitations under the License. -->
|
limitations under the License. -->
|
||||||
<template>
|
<template>
|
||||||
<el-select
|
<el-select
|
||||||
ref="customSelector"
|
|
||||||
:size="size"
|
:size="size"
|
||||||
v-model="selected"
|
v-model="selected"
|
||||||
:placeholder="placeholder"
|
:placeholder="placeholder"
|
||||||
@ -48,7 +47,6 @@ interface Option {
|
|||||||
|
|
||||||
/*global defineProps, defineEmits*/
|
/*global defineProps, defineEmits*/
|
||||||
const emit = defineEmits(["change", "query"]);
|
const emit = defineEmits(["change", "query"]);
|
||||||
const customSelector = ref<string>(null)
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
options: {
|
options: {
|
||||||
type: Array as PropType<(Option & { disabled?: boolean })[]>,
|
type: Array as PropType<(Option & { disabled?: boolean })[]>,
|
||||||
@ -86,10 +84,6 @@ function remoteMethod(query: string) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
onMounted(() => {
|
|
||||||
console.log(customSelector.value)
|
|
||||||
})
|
|
||||||
|
|
||||||
watch(
|
watch(
|
||||||
() => props.value,
|
() => props.value,
|
||||||
(data) => {
|
(data) => {
|
||||||
|
@ -27,8 +27,7 @@ limitations under the License. -->
|
|||||||
v-if="!selectedSelector.length || selectedSelector === '$service'"
|
v-if="!selectedSelector.length || selectedSelector === '$service'"
|
||||||
@click="setSelectedSelector('$service')"
|
@click="setSelectedSelector('$service')"
|
||||||
class="tool-btn"
|
class="tool-btn"
|
||||||
type="secondary"
|
size="small"
|
||||||
size="xs"
|
|
||||||
>
|
>
|
||||||
<Icon size="sm" iconName="playlist_add" />
|
<Icon size="sm" iconName="playlist_add" />
|
||||||
</el-button>
|
</el-button>
|
||||||
@ -67,7 +66,6 @@ limitations under the License. -->
|
|||||||
style="margin-left: 4px"
|
style="margin-left: 4px"
|
||||||
@click="setSelectedSelector('$endpoint')"
|
@click="setSelectedSelector('$endpoint')"
|
||||||
class="tool-btn"
|
class="tool-btn"
|
||||||
type="secondary"
|
|
||||||
>
|
>
|
||||||
<Icon size="sm" iconName="view" />
|
<Icon size="sm" iconName="view" />
|
||||||
</el-button>
|
</el-button>
|
||||||
|
@ -295,6 +295,7 @@ async function queryTraces() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
function changeField(type: string, opt: any) {
|
function changeField(type: string, opt: any) {
|
||||||
|
activeFilter
|
||||||
state[type] = opt[0];
|
state[type] = opt[0];
|
||||||
if (type === "service") {
|
if (type === "service") {
|
||||||
getEndpoints(state.service.id);
|
getEndpoints(state.service.id);
|
||||||
|
Loading…
Reference in New Issue
Block a user