youzan / vant

A lightweight, customizable Vue UI library for mobile web apps.
https://vant.pro/vant/
MIT License
23.28k stars 9.49k forks source link

当引入Dialog组件的时候,点击异步加载,会出现个loading,但是... #3296

Closed YingZzz closed 5 years ago

YingZzz commented 5 years ago

IMPORTANT: Please use the following link to create a new issue. If your issue was not created using the app above, it will be closed immediately.

注意:请按照下面的模板来新建 issue,不规范的 issue 会被立即关闭.

What problem does this feature solve? loading的图标怎么去除

Describe the solution you'd like 去除loading图标,或者可以自定义

What does the proposed API look like?

<van-dialog
            title="请绑定手机号"
            v-model="show"
            show-cancel-button
            :before-close="confirm"
        >
            <div style="margin: 20px auto 10px">
                <van-field label="手机号" placeholder="请输入手机号"/>
                <van-field
                    v-model.trim="verCode"
                    center
                    clearable
                    label="短信验证码"
                    placeholder="请输入短信验证码"
                >
                    <van-button slot="button" size="small" @click="vCode" :disabled='isOvertime' type="primary">{{text}}</van-button>
                </van-field>
            </div>
        </van-dialog>

confirm (action, done) {
            if (action === 'confirm') {
                console.log(111)
                // setTimeout(done, 1000);
            } else {
                done();
            }
        },

image

YingZzz commented 5 years ago

是我的问题,请关闭吧!!我在别的地方样式覆盖了

chenjiahan commented 5 years ago

好的