From dec047c9fbceb85c668970bf6e9dae0588bfd104 Mon Sep 17 00:00:00 2001 From: Tevin <tingquanren@163.com> Date: Sun, 15 Aug 2021 15:22:13 +0800 Subject: [PATCH] 对接App跨端通讯机制 --- forms/form/CFormSubmit.vue | 31 +++++++++++++++++++++++-------- 1 files changed, 23 insertions(+), 8 deletions(-) diff --git a/forms/form/CFormSubmit.vue b/forms/form/CFormSubmit.vue index 87b7e2d..6d22d6f 100644 --- a/forms/form/CFormSubmit.vue +++ b/forms/form/CFormSubmit.vue @@ -1,17 +1,32 @@ +/** + * CFormSubmit - 表单套装组件,提交按钮 + * @author Tevin + */ + <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