feat(iot): 修复 rule scene 的样式(覆盖)问题、间隙问题

pull/345/head
YunaiV 2026-05-21 00:37:30 +08:00
parent cb175e331f
commit 13c3028ecc
7 changed files with 8 additions and 4 deletions

View File

@ -8,7 +8,7 @@ import {
} from '@vben/constants'; } from '@vben/constants';
import { useVModel } from '@vueuse/core'; import { useVModel } from '@vueuse/core';
import { DatePicker, Input, Select, Tag, Tooltip } from 'ant-design-vue'; import { DatePicker, Input, InputNumber, Select, Tag, Tooltip } from 'ant-design-vue';
/** 值输入组件 */ /** 值输入组件 */
defineOptions({ name: 'ValueInput' }); defineOptions({ name: 'ValueInput' });
@ -256,7 +256,7 @@ watch(
/> />
<!-- 数字输入 --> <!-- 数字输入 -->
<Input.Number <InputNumber
v-else-if="isNumericType()" v-else-if="isNumericType()"
v-model:value="numberValue" v-model:value="numberValue"
:precision="getPrecision()" :precision="getPrecision()"

View File

@ -26,7 +26,7 @@ const formData = useVModel(props, 'modelValue', emit); // 表单数据
</script> </script>
<template> <template>
<Card class="rounded-[8px] mb-[10px] border border-primary" shadow="never"> <Card class="rounded-[8px] mb-[10px]! border border-primary" shadow="never">
<template #title> <template #title>
<div class="flex items-center justify-between"> <div class="flex items-center justify-between">
<div class="gap-[8px] flex items-center"> <div class="gap-[8px] flex items-center">

View File

@ -108,7 +108,7 @@ onMounted(() => {
</script> </script>
<template> <template>
<Card class="rounded-[8px] mb-[10px] border border-primary" shadow="never"> <Card class="rounded-[8px] mb-[10px]! border border-primary" shadow="never">
<template #title> <template #title>
<div class="flex items-center justify-between"> <div class="flex items-center justify-between">
<div class="gap-[8px] flex items-center"> <div class="gap-[8px] flex items-center">

View File

@ -80,6 +80,7 @@ watch(
show-search show-search
allow-clear allow-clear
class="w-full" class="w-full"
option-label-prop="label"
:loading="deviceLoading" :loading="deviceLoading"
:disabled="!productId" :disabled="!productId"
> >

View File

@ -243,6 +243,7 @@ watch(
placeholder="请选择操作符" placeholder="请选择操作符"
@change="handleChange" @change="handleChange"
class="w-full" class="w-full"
option-label-prop="label"
> >
<Select.Option <Select.Option
v-for="operator in availableOperators" v-for="operator in availableOperators"

View File

@ -61,6 +61,7 @@ onMounted(() => {
show-search show-search
allow-clear allow-clear
class="w-full" class="w-full"
option-label-prop="label"
:loading="productLoading" :loading="productLoading"
> >
<Select.Option <Select.Option

View File

@ -206,6 +206,7 @@ watch(
allow-clear allow-clear
@change="handleChange" @change="handleChange"
class="!w-[150px]" class="!w-[150px]"
option-label-prop="label"
:loading="loading" :loading="loading"
> >
<Select.OptGroup <Select.OptGroup