| | |
| | | </view> |
| | | <view class="form-cell"> |
| | | <label class="form-label">设置使用上限:</label> |
| | | <input class="input small-font" type="number" v-model="useLimitInput" placeholder="每次换刀后手填" :disabled="!selectedToolNo || loadingForm" /> |
| | | <input class="input small-font input-use-limit" type="number" v-model="useLimitInput" placeholder="每次换刀后手填" :disabled="!selectedToolNo || loadingForm" /> |
| | | </view> |
| | | <view class="form-cell"> |
| | | <label class="form-label">寿命比预警值:</label> |
| | | <view class="input-with-unit"> |
| | | <input class="input small-font" |
| | | <input class="input small-font input-life-warn" |
| | | v-model="lifeWarnInput" |
| | | placeholder="如0.9或90" |
| | | :disabled="!selectedToolNo || loadingForm" /> |
| | |
| | | flex: 1; |
| | | margin: 0 8px; |
| | | min-height: 44px; |
| | | min-width: 120px; /* 新增:防止内容太挤 */ |
| | | } |
| | | |
| | | .form-label { |
| | |
| | | min-width: 0; |
| | | height: 36px; |
| | | box-sizing: border-box; |
| | | max-width: 180px; /* 新增:限制最大宽度,让输入框变窄 */ |
| | | } |
| | | |
| | | .input.small-font { |
| | |
| | | .input { |
| | | font-size: 17px; /* 原14px,调大 */ |
| | | padding: 6px 10px; |
| | | max-width: 140px; /* 响应式下更窄 */ |
| | | } |
| | | |
| | | .btn-blue { |
| | |
| | | min-width: 120px; |
| | | } |
| | | |
| | | /* 新增:让“设置使用上限”“寿命比预警值”输入框变窄 */ |
| | | .input-use-limit { |
| | | width: 80px !important; |
| | | min-width: 0 !important; |
| | | margin-right: 10px; |
| | | } |
| | | |
| | | .input-life-warn { |
| | | width: 80px !important; |
| | | min-width: 0 !important; |
| | | margin-right: 4px; |
| | | } |
| | | |
| | | </style> |