imp: improve UI for dynamic components

This commit is contained in:
liangping
2023-06-15 18:47:44 +08:00
parent 4a98482eeb
commit f12c16bb9b
8 changed files with 18 additions and 15 deletions
@@ -18,8 +18,8 @@ const header = computed(() => {
});
</script>
<template>
<div class="overflow-auto p-4 " :class=" value.length > 5 ? 'h-[500px]': ''">
<table class="table table-compact table-pin-rows w-full">
<div class="overflow-auto max-h-96 ">
<table class="table table-xs table-compact table-pin-rows w-full">
<thead v-if="thead">
<tr>
<th
+1 -4
View File
@@ -15,10 +15,7 @@ const props = defineProps(['value']);
{{ String(k).replaceAll('_', ' ') }}
</td>
<td>
<div
class="overflow-hidden w-auto whitespace-normal"
style="max-width: 1000px"
>
<div class="overflow-hidden w-auto whitespace-normal" >
<Component
v-if="v"
:is="select(v, 'horizontal')"
+1 -1
View File
@@ -25,7 +25,7 @@ function isAddress() {
const text = computed(() => {
if(!props.value) return ""
const v = props.value
const v = String(props.value)
switch(true) {
case v.length === 28 && v.endsWith("="): {
return format.validator(v) || v