WebApp【公共组件库】@前端(For Git Submodule)
Tevin
2021-03-29 1bd2c493c9cbe47d10e4ba045d5c4635fd4eccef
forms/form/CFormAgreement.vue
@@ -1,5 +1,5 @@
/**
 * CFormAgreement
 * CFormAgreement - 表单套装组件,同意协议勾选项
 * @author Tevin
 */
@@ -9,7 +9,6 @@
            class="title"
            @tap="evt=>handleCheck()"
        >
            <view :class="['icon', checked?'checked':'']">
                <text class="at-icon at-icon-check"></text>
            </view>
@@ -38,12 +37,14 @@
        AtFloatLayout,
    },
    props: {
        formData: Object,
        // 表单数据资源(表单组件内部机制专用)
        formRes: Object,
        // 需要同意的协议内容
        protocol: String,
    },
    data() {
        return {
            name: 'agreement',
            name: '$agreement',
            protocolShow: false,
            checked: false,
        };
@@ -61,7 +62,7 @@
    },
    mounted() {
        this.$nextTick(() => {
            this.formData.$regItemValidator(this.name, () => {
            this.formRes.$regItemValidator(this.name, () => {
                if (this.checked) {
                    return Promise.resolve({
                        name: this.name,