feat: 🚀 去掉空格

This commit is contained in:
2025-04-09 17:42:06 +08:00
parent 2698e2c2cf
commit 473aa04ea4
11 changed files with 44 additions and 28 deletions

View File

@@ -32,7 +32,7 @@
:max="9999"
:controls="true"
style="width: 125px"
v-model.trim="scope.row[item.prop]"
v-model="scope.row[item.prop]"
:disabled="tableData[scope.$index].disabled"
:placeholder="item.placeholder"
:maxlength="item.maxLength"
@@ -46,7 +46,7 @@
<template #default="scope" v-if="item.formType === 'input'">
<el-input
:style="item.width ? item.width : 'width:200px'"
v-model.trim="scope.row[item.prop]"
v-model="scope.row[item.prop]"
:disabled="tableData[scope.$index].disabled"
:placeholder="item.placeholder"
:maxlength="item.maxLength"
@@ -58,7 +58,7 @@
<template #default="scope" v-if="item.formType === 'selectRemote'">
<el-select
:style="item.width ? item.width : 'width:200px'"
v-model.trim="scope.row[item.prop]"
v-model="scope.row[item.prop]"
:placeholder="item.placeholder"
clearable
remote

View File

@@ -5,7 +5,7 @@
<el-input
:placeholder="item.placeholder"
:maxlength="item.maxlength || 255"
v-model.trim="_searchParam[`${item.prop}`]"
v-model="_searchParam[`${item.prop}`]"
style="width: 224px"
@input="handleInput(item)"
@keyup.enter="search"
@@ -81,7 +81,7 @@
<!-- 双 -->
<template v-if="item.type === 'inputs'">
<el-input
v-model.trim="_searchParam[`${item.startProp}`]"
v-model="_searchParam[`${item.startProp}`]"
:placeholder="item.startPlaceholder"
:disabled="item.disabled"
maxlength="255"
@@ -91,7 +91,7 @@
</el-input>
<span style="margin: 0 3px">-</span>
<el-input
v-model.trim="_searchParam[`${item.endProp}`]"
v-model="_searchParam[`${item.endProp}`]"
:placeholder="item.endPlaceholder"
:disabled="item.disabled"
maxlength="255"
@@ -130,7 +130,7 @@
</el-select>
<el-input
v-model.trim="_searchParam[`${item.startProp}`]"
v-model="_searchParam[`${item.startProp}`]"
:placeholder="item.startPlaceholder"
:disabled="item.disabled"
maxlength="255"
@@ -140,7 +140,7 @@
</el-input>
<span style="margin: 0 3px">-</span>
<el-input
v-model.trim="_searchParam[`${item.endProp}`]"
v-model="_searchParam[`${item.endProp}`]"
:placeholder="item.endPlaceholder"
:disabled="item.disabled"
maxlength="255"

View File

@@ -13,7 +13,7 @@
<el-input
style="width: 440px"
:placeholder="item.placeholder"
v-model.trim="_ruleForm[`${item.prop}`]"
v-model="_ruleForm[`${item.prop}`]"
clearable
:disabled="item.disabled"
@blur="handleInputBlur"
@@ -22,7 +22,7 @@
<template v-if="item.type === 'inputSelect'">
<el-input
:placeholder="item.placeholder"
v-model.trim="_ruleForm[`${item.prop}`]"
v-model="_ruleForm[`${item.prop}`]"
clearable
:disabled="item.disabled"
@blur="handleInputBlur"
@@ -42,7 +42,7 @@
<template v-if="item.type === 'inputButton'">
<el-input
:placeholder="item.placeholder"
v-model.trim="_ruleForm[`${item.prop}`]"
v-model="_ruleForm[`${item.prop}`]"
clearable
:disabled="item.disabled"
>
@@ -56,7 +56,7 @@
:min="1"
:max="9999"
:controls="true"
v-model.trim="_ruleForm[`${item.prop}`]"
v-model="_ruleForm[`${item.prop}`]"
:disabled="item.disabled"
:placeholder="item.placeholder"
:maxlength="item.maxLength"
@@ -139,7 +139,7 @@
v-model="_ruleForm[`${item.prop}`]"
:placeholder="item.placeholder"
clearable
@change="handleSelectChange(_ruleForm[`${item.prop}`])"
@change="handleSelectChange(_ruleForm[`${item.prop}`], item.prop)"
>
<el-option
:label="option.label"
@@ -158,7 +158,7 @@
:render-after-expand="false"
show-checkbox
check-strictly
@change="handleSelectChange(_ruleForm[`${item.prop}`])"
@change="handleSelectChange(_ruleForm[`${item.prop}`], item.prop)"
/>
</template>
<template v-if="item.type === 'treeSelects'">
@@ -218,8 +218,8 @@ const handleInputButtonClick = () => {
const handleInputBlur = () => {
emits("handleInputBlurEmits");
};
const handleSelectChange = (params: any) => {
emits("handleSelectChangeEmits", { id: params });
const handleSelectChange = (params: any, prop: any) => {
emits("handleSelectChangeEmits", { id: params, prop });
};
// const handleTreesSelectChange = (params: any) => {
// emits("handleTreesSelectChangeEmits", params);