mirror of
https://github.com/vbenjs/vben-admin-thin-next.git
synced 2025-02-02 18:08:40 +08:00
fix(table): size
not worked in editComponentProps
修复无法设置basicTable编辑组件的size属性的问题 fixed: #1074
This commit is contained in:
parent
a8b18c2697
commit
7971896383
@ -14,6 +14,7 @@
|
|||||||
- 修复 selection-change 事件在取消勾选时未能正确触发的问题
|
- 修复 selection-change 事件在取消勾选时未能正确触发的问题
|
||||||
- 修复浅色主题下的全屏状态背景颜色不正确的问题
|
- 修复浅色主题下的全屏状态背景颜色不正确的问题
|
||||||
- 修复`getSelectRows`不支持远程数据跨页选择时获取完整数据的问题
|
- 修复`getSelectRows`不支持远程数据跨页选择时获取完整数据的问题
|
||||||
|
- 修复在`editComponentProps`中为编辑组件提供的`size`属性无效的问题
|
||||||
- **Qrcode** 修复二维码组件在创建时未能及时绘制的问题
|
- **Qrcode** 修复二维码组件在创建时未能及时绘制的问题
|
||||||
- **BasicModal** 修复`helpMessage`属性不起作用的问题
|
- **BasicModal** 修复`helpMessage`属性不起作用的问题
|
||||||
|
|
||||||
|
@ -20,14 +20,13 @@
|
|||||||
:rule="getRule"
|
:rule="getRule"
|
||||||
:ruleMessage="ruleMessage"
|
:ruleMessage="ruleMessage"
|
||||||
:class="getWrapperClass"
|
:class="getWrapperClass"
|
||||||
size="small"
|
|
||||||
ref="elRef"
|
ref="elRef"
|
||||||
@change="handleChange"
|
@change="handleChange"
|
||||||
@options-change="handleOptionsChange"
|
@options-change="handleOptionsChange"
|
||||||
@pressEnter="handleEnter"
|
@pressEnter="handleEnter"
|
||||||
/>
|
/>
|
||||||
<div :class="`${prefixCls}__action`" v-if="!getRowEditable">
|
<div :class="`${prefixCls}__action`" v-if="!getRowEditable">
|
||||||
<CheckOutlined :class="[`${prefixCls}__icon`, 'mx-2']" @click="handleSubmit" />
|
<CheckOutlined :class="[`${prefixCls}__icon`, 'mx-2']" @click="handleSubmitClick" />
|
||||||
<CloseOutlined :class="`${prefixCls}__icon `" @click="handleCancel" />
|
<CloseOutlined :class="`${prefixCls}__icon `" @click="handleCancel" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -112,6 +111,7 @@
|
|||||||
const value = isCheckValue ? (isNumber(val) && isBoolean(val) ? val : !!val) : val;
|
const value = isCheckValue ? (isNumber(val) && isBoolean(val) ? val : !!val) : val;
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
size: 'small',
|
||||||
getPopupContainer: () => unref(table?.wrapRef.value) ?? document.body,
|
getPopupContainer: () => unref(table?.wrapRef.value) ?? document.body,
|
||||||
getCalendarContainer: () => unref(table?.wrapRef.value) ?? document.body,
|
getCalendarContainer: () => unref(table?.wrapRef.value) ?? document.body,
|
||||||
placeholder: createPlaceholderMessage(unref(getComponent)),
|
placeholder: createPlaceholderMessage(unref(getComponent)),
|
||||||
@ -259,6 +259,10 @@
|
|||||||
handleSubmit();
|
handleSubmit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function handleSubmitClick() {
|
||||||
|
handleSubmit();
|
||||||
|
}
|
||||||
|
|
||||||
function handleCancel() {
|
function handleCancel() {
|
||||||
isEdit.value = false;
|
isEdit.value = false;
|
||||||
currentValueRef.value = defaultValueRef.value;
|
currentValueRef.value = defaultValueRef.value;
|
||||||
@ -363,7 +367,7 @@
|
|||||||
getRowEditable,
|
getRowEditable,
|
||||||
getValues,
|
getValues,
|
||||||
handleEnter,
|
handleEnter,
|
||||||
// getSize,
|
handleSubmitClick,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user