【问题标题】:How to remove vuetify file input clearable icon?如何删除 vuetify 文件输入可清除图标?
【发布时间】:2020-06-12 14:45:37
【问题描述】:

我没有找到任何非活动可清除图标的道具。在这种情况下也没有事件。那么有什么方法可以删除可清除图标。

<v-file-input
  ref="profilePictureFileInput"
  v-model="profilePicture.file"
  :rules="profilePicture.rules"
  accept="image/png, image/jpeg, image/jpg"
  placeholder="Pick an image"
  prepend-icon="mdi-camera"
  append-inner-icon=""
  label="Image"
  clearable="false">

【问题讨论】:

  • :clearable="false"

标签: vue.js vuetify.js


【解决方案1】:

您对clearable 属性的绑定是错误的。您需要使用:clearable="false"。现在,您将值作为字符串传递给&lt;v-file-input&gt; 组件,您需要为其提供一个布尔值。

【讨论】:

    猜你喜欢
    • 2012-03-25
    • 2015-01-13
    • 2015-09-29
    • 1970-01-01
    • 2012-02-19
    • 2012-04-22
    • 2012-03-25
    • 2020-04-26
    • 1970-01-01
    相关资源
    最近更新 更多