quasar-framework - 如何更改 QEditor 插槽的宽度?
问题描述
我正在使用(可能滥用:|)QEditor 的工具栏来添加<q-input>
<q-editor
model-value="undefined"
v-model="note.text"
@click="noteClicked(note)"
@blur="noteBlurred(note)"
:toolbar="[['title'], ['tags']]"
>
<template v-slot:title>
<q-input model-value="undefined" v-model="note.title" autofocus dense />
</template>
<template v-slot:tags>
<q-chip v-for="tag in note.tags" removable @remove="removeTag(note, tag)" color="primary" text-color="white" :label="tag">
</q-chip>
</template>
</q-editor>
游乐场:https ://codepen.io/WoJWoJ/pen/yLMKWvJ
我想让title
插槽更宽 - 我该怎么做?
解决方案
解决方案是添加一个类width: 30vw
推荐阅读
- python - 特定范围内所有 GPS 点的平均测量值
- c++ - 基于 C++ 范围的指针向量循环。如何通过 const 引用捕获元素?
- pandas - 如何在时间序列数据集中执行最近邻插补?
- r - 将 row.names 从 num 更改为 chr
- excel - 错误代码:当相同的代码适用于不同的数据透视表时,“无法获取工作表类的数据透视表属性”
- python - 日期格式不正确,有时间
- android-layout - Exoplayer2 是否总是导致 onSurfaceSizeChanged() 至少被调用两次?
- microsoft-graph-api - 有没有办法使用 Microsoft Graph API 在我的个人 OneDrive 中为图像创建静态公共 URL?
- node.js - 如何通过 API 使用 node js
- javascript - 无法从服务器获取字符串响应消息