fix: small text & long text height issue

This commit is contained in:
Shariq Ansari 2023-01-04 19:19:18 +05:30
parent a074476a29
commit 97fc172bb9

View file

@ -8,10 +8,13 @@ let store = useStore();
let props = defineProps(["df", "value", "modelValue"]);
let emit = defineEmits(["update:modelValue"]);
let slots = useSlots();
let height = "300px";
if (props.df.fieldtype == "Small Text") {
height = "150px";
}
let height = computed(() => {
if (props.df.fieldtype == "Small Text") {
return "150px";
}
return "300px";
});
let doctype = ref("");
let fieldname = ref("");