mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-05-07 10:42:56 +00:00
fix: set selector props and update configuration panel styles (#175)
This commit is contained in:
parent
eda44db0cd
commit
4232161d36
@ -18,7 +18,6 @@ limitations under the License. -->
|
||||
v-model="selected"
|
||||
:placeholder="placeholder"
|
||||
@change="changeSelected"
|
||||
filterable
|
||||
:multiple="multiple"
|
||||
:disabled="disabled"
|
||||
:style="{ borderRadius }"
|
||||
@ -26,6 +25,7 @@ limitations under the License. -->
|
||||
:remote="isRemote"
|
||||
:reserve-keyword="isRemote"
|
||||
:remote-method="remoteMethod"
|
||||
:filterable="filterable"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in options"
|
||||
@ -66,6 +66,7 @@ const props = defineProps({
|
||||
disabled: { type: Boolean, default: false },
|
||||
clearable: { type: Boolean, default: false },
|
||||
isRemote: { type: Boolean, default: false },
|
||||
filterable: { type: Boolean, default: true },
|
||||
});
|
||||
|
||||
const selected = ref<string[] | string>(props.value);
|
||||
|
@ -101,7 +101,7 @@ export default defineComponent({
|
||||
...CustomOptions,
|
||||
},
|
||||
setup() {
|
||||
const configHeight = document.documentElement.clientHeight - 520;
|
||||
const configHeight = document.documentElement.clientHeight - 540;
|
||||
const { t } = useI18n();
|
||||
const dashboardStore = useDashboardStore();
|
||||
const appStoreWithOut = useAppStoreWithOut();
|
||||
|
@ -23,6 +23,7 @@ limitations under the License. -->
|
||||
placeholder="Select a widget"
|
||||
class="selectors"
|
||||
@change="updateWidgetConfig"
|
||||
:filterable="false"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
|
@ -31,6 +31,7 @@ limitations under the License. -->
|
||||
:options="Status"
|
||||
placeholder="Select a status"
|
||||
@change="updateConfig({ status: $event[0].value })"
|
||||
class="selector"
|
||||
/>
|
||||
</div>
|
||||
<div class="item">
|
||||
@ -40,6 +41,7 @@ limitations under the License. -->
|
||||
:value="queryOrder"
|
||||
:options="QueryOrders"
|
||||
placeholder="Select a option"
|
||||
class="selector"
|
||||
@change="updateConfig({ queryOrder: $event[0].value })"
|
||||
/>
|
||||
</div>
|
||||
@ -87,4 +89,8 @@ function updateConfig(param: { [key: string]: unknown }) {
|
||||
.item {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.selector {
|
||||
width: 500px;
|
||||
}
|
||||
</style>
|
||||
|
Loading…
Reference in New Issue
Block a user