告警事件添加设备选取功能

This commit is contained in:
guanj
2026-07-14 09:18:32 +08:00
parent 0e70182c89
commit a7b5762946
19 changed files with 315 additions and 660 deletions

View File

@@ -16,7 +16,7 @@ export default defineComponent({
required: true
},
size: {
type: String,
type: [String, Number],
default: '18px'
},
color: {
@@ -27,7 +27,7 @@ export default defineComponent({
setup(props) {
const iconStyle = computed((): CSSProperties => {
const { size, color } = props
let s = `${size.replace('px', '')}px`
const s = typeof size === 'number' ? `${size}px` : `${String(size).replace('px', '')}px`
return {
fontSize: s,
color: color