From 363145d7531cc97f842d5b7a4e520ac870737065 Mon Sep 17 00:00:00 2001 From: Tevin <tingquanren@163.com> Date: Fri, 31 Mar 2023 15:21:56 +0800 Subject: [PATCH] 调整跨端通讯接收中心,提取部分公共代码到基类 --- 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