0.0.1-beta.12 • Published 1 year ago
@blueking/app-select v0.0.1-beta.12
蓝鲸业务选择器
使用
import { createApp } from 'vue';
import AppSelect from '@blueking/app-select';
import App from './APP.vue'
import '@blueking/app-select/dist/style.css'
const app = createApp(App);
app.component('AppSelect', AppSelect);
<template>
<AppSelect :data="data" @change="handleChange" />
</template>
<script setup lang="ts">
import { shallowRef } from 'vue';
const data = shallowRef<AppItem[]>([
{
id: 'xxxx',
name: '业务 xxxx'
},
{
id: 'yyyy',
name: '业务 yyyy'
},
{
id: 'zzzz',
name: '业务 zzzz'
}
])
const handleChange = (payload: AppItem) => {
console.log('change = ', payload)
}
</script>
组件 Props
组件 Event
组件 Slot
类型说明
interface AppItem {
[key: string]: any
}
0.0.1-beta.12
1 year ago
0.0.1-beta.11
1 year ago
0.0.1-beta.10
1 year ago
0.0.1-beta.9
1 year ago
0.0.1-beta.7
2 years ago
0.0.1-beta.8
2 years ago
0.0.1-beta.6
2 years ago
0.0.1-beta.5
2 years ago
0.0.1-beta.4
2 years ago
0.0.1-beta.3
2 years ago
0.0.1-beta.2
2 years ago
0.0.1-beta.1
2 years ago