1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
| import { ref } from 'vue';
| /**
| * 数据产品步骤切换
| */
| export function useProdStepChange() {
| const active = ref(1);
| function changeActive() {
| active.value++;
| active.value = active.value > 3 ? 1 : active.value;
| }
| return {
| active,
| changeActive
| };
| }
|
|