hookehuyr

fix(样式): 移除禁用状态文字颜色的important标记并添加主题变量

禁用状态文字颜色样式改为注释,避免样式冲突
添加nut-config-provider主题变量统一控制禁用输入框颜色
......@@ -150,7 +150,7 @@
}
.form-value-disabled {
color: #d1d5db !important; /* 禁用状态文字颜色 */
// color: #d1d5db !important; /* 禁用状态文字颜色 */
}
.arrow-icon {
......
......@@ -161,6 +161,7 @@
</nut-input>
</nut-form-item>
<nut-config-provider :theme-vars="themeVars">
<!-- 续航里程 -->
<nut-form-item label="续航里程" prop="range_km">
<nut-input v-model="formData.range_km" placeholder="请输入" type="number" input-align="right" :disabled="isVerified" @click="validateRangeInput" @input="validateNumberInput($event, 'range_km', false)">
......@@ -179,6 +180,7 @@
</template>
</nut-input>
</nut-form-item>
</nut-config-provider>
<!-- 电池容量 -->
<nut-form-item label="电池容量" prop="battery_capacity_ah">
......@@ -332,6 +334,11 @@ import './index.less'
import { addVehicleAPI, editVehicleAPI, getVehicleDetailAPI } from '@/api/car';
import { getSchoolsAPI, getBrandsModelsAPI } from '@/api/other';
const themeVars = {
inputDisabledColor: '#999'
}
/**
* 返回上一页
*/
......