From 327839229273a90bd9ca0c6112f32f9e2f49ca1a Mon Sep 17 00:00:00 2001 From: chensiAb <chenchenco03@163.com> Date: Wed, 15 May 2024 18:18:12 +0800 Subject: [PATCH] feat:'筛选项第一项支持input' --- forms/form/CFormSubmit.vue | 26 ++++++++++++++++++-------- 1 files changed, 18 insertions(+), 8 deletions(-) diff --git a/forms/form/CFormSubmit.vue b/forms/form/CFormSubmit.vue index 81efc4b..6d22d6f 100644 --- a/forms/form/CFormSubmit.vue +++ b/forms/form/CFormSubmit.vue @@ -4,19 +4,29 @@ */ <template> - <view class="c-form-submit"> - <button - form-type="submit" - type="primary" - > - <slot>提交</slot> - </button> + <view + class="c-form-submit" + :class="fixed ? 'c-form-submit-fixed':''" + > + <view class="c-form-submit-inner"> + <button + form-type="submit" + type="primary" + > + <slot>提交</slot> + </button> + </view> </view> </template> <script> export default { name: 'CFormSubmit', - props: {}, + props: { + fixed: { + type: Boolean, + default: false, + }, + }, }; </script> \ No newline at end of file -- Gitblit v1.9.1