From d4c43fd252707c6d682f1008aabcae0f53015e02 Mon Sep 17 00:00:00 2001 From: Tevin <tingquanren@163.com> Date: Tue, 18 Oct 2022 15:11:43 +0800 Subject: [PATCH] 允许从相册中扫码 --- forms/form/CFormSubmit.vue | 28 +++++++++++++++++++--------- 1 files changed, 19 insertions(+), 9 deletions(-) diff --git a/forms/form/CFormSubmit.vue b/forms/form/CFormSubmit.vue index 3d6d0ff..6d22d6f 100644 --- a/forms/form/CFormSubmit.vue +++ b/forms/form/CFormSubmit.vue @@ -1,22 +1,32 @@ /** - * CFormSubmit + * 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