@farris/ui-vue
Version:
Farris Vue, a Farris Design based Vue3 component library.
59 lines (58 loc) • 1.48 kB
TypeScript
/**
* Step 组件用展现多步骤操作界面。
*
* @example
* ```vue
* <script setup lang="ts">
* import { ref } from 'vue';
*
* const steps = ref([
* {
* id: '1',
* title: '审批中',
* description: '正在审批'
* },
* {
* id: '2',
* title: '待复核',
* description: '等待复核',
* },
* {
* id: '3',
* title: '发送银行',
* description: '确认是否允许发送至银行'
* },
* {
* id: '4',
* title: '正在处理',
* description: '银行正在处理'
* },
* {
* id: '5',
* title: '付款成功',
* description: '银行付款成功'
* }
* ]);
*
* function currentStep(e: object) {
* console.log(e);
* }
* const activeIndex = ref(3);
* </script>
* <template>
* <f-step :steps="steps" :active-index="activeIndex" @click="(e) => currentStep(e)"></f-step>
* </template>
* ```
*
* @public
*/
declare const _default: import("vue").DefineComponent<{
[x: string]: any;
}, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").PublicProps, Readonly<{
[x: string]: any;
}> & Readonly<{
onClick?: ((...args: any[]) => any) | undefined;
}>, {
[x: string]: any;
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
export default _default;