Browse Source

wenxiugiuw

zhangyaowen 1 month ago
parent
commit
28a3a5b1bb
1 changed files with 9 additions and 1 deletions
  1. 9 1
      src/views/mall/product/spu/form/DescriptionForm.vue

+ 9 - 1
src/views/mall/product/spu/form/DescriptionForm.vue

@@ -3,7 +3,15 @@
   <el-form ref="formRef" :disabled="isDetail" :model="formData" :rules="rules" label-width="120px">
     <!--富文本编辑器组件-->
     <el-form-item label="产品详情" prop="description">
-      <Editor v-model:modelValue="formData.description" />
+      <!-- <Editor v-model:modelValue="formData.description" /> -->
+      <el-input
+        v-model="formData.description"
+        style="width: 100%;"
+        :autosize="{ minRows: 10, maxRows: 20 }"
+        placeholder="Please input"
+        show-word-limit
+        type="textarea"
+      />
     </el-form-item>
   </el-form>
 </template>