(component): update

This commit is contained in:
就眠儀式
2022-07-24 22:43:44 +08:00
parent 472389772a
commit 406fb7e828
6 changed files with 35 additions and 27 deletions

View File

@@ -166,16 +166,19 @@ onMounted(() => {
});
const getMarginLeft = computed(() => {
if (props.mode === "block") {
let labelWidth =
typeof props.labelWidth === "string"
? parseFloat(props.labelWidth)
: props.labelWidth;
labelWidth += 15;
return {
marginLeft: labelWidth + "px",
};
}
if (props.mode == "block") {
if(props.labelPosition != "top") {
let labelWidth = typeof props.labelWidth === "string" ? parseFloat(props.labelWidth) : props.labelWidth;
labelWidth += 15;
return {
"margin-left": `${labelWidth}px`,
};
} else {
return {
"margin-left": "0px",
}
}
}
});
</script>

View File

@@ -222,8 +222,9 @@ dl.layui-anim-upbit > dd .layui-form-checkbox,
padding: 0 10px;
cursor: pointer;
.layui-input-wrapper:focus-within {
border-color: var(--input-border-color);
.layui-input {
height: 30px !important;
line-height: 30px !important;
}
}
.layui-form-select{

View File

@@ -68,11 +68,7 @@ const open = function () {
const emit = defineEmits(["update:modelValue", "change", "search", "create"]);
const selectItem = ref<SelectItem>({
value: !props.multiple
? props.modelValue
: props.modelValue
? ([] as any[]).concat(props.modelValue)
: [],
value: !props.multiple? props.modelValue : props.modelValue ? ([] as any[]).concat(props.modelValue) : [],
label: props.multiple ? [] : null,
multiple: props.multiple,
} as SelectItem);