support tablet

This commit is contained in:
Timi
2026-11-02 23:12:05 +08:00
parent c48b19bed5
commit d3879c9c77
123 changed files with 4153 additions and 2673 deletions
@@ -59,7 +59,11 @@
<t-input v-model.trim="sku.name" borderless maxlength="128" placeholder="如 黑色运动鞋;男;36" />
</t-form-item>
<t-form-item label="SKU 条码">
<t-input v-model.trim="sku.barcode" borderless maxlength="64" placeholder="选填" />
<t-input
:model-value="sku.barcode ?? ''"
@update:model-value="value => sku.barcode = String(value).trim()"
borderless maxlength="64" placeholder="选填"
/>
</t-form-item>
<t-form-item label="库存管理" content-align="right">
<t-switch v-model="sku.stockEnabled" size="small" :disabled="props.productType === 'SERVICE'" />
@@ -74,7 +78,11 @@
<t-switch :model-value="sku.status === 'ACTIVE'" size="small" @change="setSkuStatus" />
</t-form-item>
<t-form-item label="备注">
<t-input v-model.trim="sku.remark" borderless maxlength="255" placeholder="选填" />
<t-input
:model-value="sku.remark ?? ''"
@update:model-value="value => sku.remark = String(value).trim()"
borderless maxlength="255" placeholder="选填"
/>
</t-form-item>
<div class="photo-wrap">
<attachment-selector