0.1.5 • Published 5 years ago

@cloud-ui/u-test-card.vue v0.1.5

Weekly downloads
5
License
MIT
Repository
github
Last release
5 years ago

UTestCard 样本组件

这里是样本组件的基本描述。

示例

基本形式

基本形式是这样的,Balabala。

<u-test-card some-prop></u-test-card>

复杂示例

<template>
<u-test-card v-model="value">
    <div>Something</div>
</u-test-card>
</template>

<script>
export default {
    data() {
        return {
            value: 3,
        };
    },
};
</script>

API

Props/Attrs

Prop/AttrTypeDefaultDescription
v-model, value.syncNumber1主要的值
someBooleanfalse一些
otherString其他的
propArray属性
disabledBooleanfalse是否禁用

Events

@before-action

操作前触发

ParamTypeDescription
$event.valueString传递的值
$event.contentString传递的内容
$event.preventDefaultFunction阻止关闭流程
senderVMUTestCard发送事件实例

@action

操作时触发

ParamTypeDescription
$event.pageNumber当前页码
$event.oldPageNumber旧的页码
senderVMUTestCard发送事件实例

@change

值改变时触发

ParamTypeDescription
$event.valueNumber当前值
$event.oldValueNumber旧的值
senderVMUComboPagination发送事件实例

Methods

load()

加载。

ParamTypeDescription

toggle(expanded)

切换状态。

ParamTypeDescription
expandedBoolean展开/折叠
0.1.5

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago