How to use kpc-vue - 10 common examples

To help you get started, we’ve selected a few kpc-vue examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ksc-fe / kpc / components / form / demos / basic / index.vue View on Github external
submit() {
            Message.success('验证通过,开始提交');
            console.log(this.model);
        },
        async handleSubmit() {
github ksc-fe / kpc / components / transfer / demos / customList / index.vue View on Github external
onAdd() {
            const users = this.checkedUsers;
            const room = this.checkedRooms[0];
        
            if (users.length > 2) {
                return Message.error('当前房间最多容纳两人');
            }
        
            users.forEach(user => {
                user.room = room;
                room.users.push(user);
            });
        
            this.checkedUsers = [];
            this.checkedRooms = [];
        },
        onRemove() {
github ksc-fe / kpc / components / dialog / demos / events / index.vue View on Github external
onCancel() {
            Message.error('You clicked cancel button.');
        },
    },
github ksc-fe / kpc / components / editable / demos / validate / index.vue View on Github external
_showErrorTip(c, value) {
            Message.error('Please enter digits.');
        },
        _onChange(c, newValue, oldValue) {
github ksc-fe / kpc / components / message / demos / duration / index.vue View on Github external
showMessage2() {
            Message.info('stick message', 0);
        },
    },
github ksc-fe / kpc / components / message / demos / duration / index.vue View on Github external
showMessage1() {
            Message.info('close after 10s', 10000);
        },
        showMessage2() {
github ksc-fe / kpc / components / pagination / demos / current / index.vue View on Github external
_fetch2({current, limit}) {
            Message.info(`current page: ${current}, limit: ${limit}`);
        },
    },