반응형
다단계 양식 전환
양식의 두 페이지를 전환하기 위해 if 문을 작성하려고 합니다.두 번째 화면이 시각화되고 두 번째 ProgressBar 구성 요소 버튼을 클릭하면 "2"라는 nr이 표시됩니다.따라서 이미 두 번째 화면에 있는 경우 동일한 두 번째 화면으로 다시 리디렉션되지 않도록 if 문을 수행해야 합니다.
https://codesandbox.io/s/intelligent-jasper-teh1im?file=/src/App.vue
nextStep() {
if (this.stepIndex < 1) {
this.stepIndex++;
} else if (this.stepIndex >= 1) {
return this.stepIndex;
}
},
previousStep() {
if (this.stepIndex <= 1) {
this.stepIndex--;
} else if (this.stepIndex < 1) {
return this.stepIndex;
}
},
언급URL : https://stackoverflow.com/questions/75592855/multi-step-form-toggling
반응형
'programing' 카테고리의 다른 글
수식에서 셀 참조에 대한 Excel 검색 (0) | 2023.06.26 |
---|---|
TypeScript에서 중첩된 개체 (0) | 2023.06.26 |
공용 WIFI를 통한 Github(SSH), 포트 22 차단 (0) | 2023.06.21 |
git - 다른 분기의 커밋을 작업 복사본에 적용합니다. (0) | 2023.06.21 |
SQL Server Management Studio 2008에서 만든 트리거를 볼 수 없음 (0) | 2023.06.21 |