提交 c1f4fb2c 编写于 作者: Cano1997's avatar Cano1997

style: 表格列文件上传只读时不显示按钮

上级 00a0eab3
......@@ -115,7 +115,8 @@ export const IBizGridFileUpload = defineComponent({
};
const renderContent = () => {
if (!valueList.value.length) {
const readonly = props.readonly || props.disabled;
if (!valueList.value.length && !readonly) {
return (
<div class={ns.e('add')}>
<i class='ivu-icon ivu-icon-ios-add-circle-outline'></i>
......@@ -167,7 +168,11 @@ export const IBizGridFileUpload = defineComponent({
disabled={this.disabled}
readonly={this.readonly}
ref='componentRef'
class={`${this.ns.b()}`}
class={[
this.ns.b(),
this.ns.is('readonly', this.readonly),
this.ns.is('disabled', this.disabled),
]}
>
{this.renderContent()}
</grid-editor>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册