zhengyiming
2025-04-17 60b9c62a3165f304a933cbac304ac3d43a24f722
packages/components/src/views/electricBillRecharge/electricBillRecharge.vue
@@ -4,6 +4,8 @@
    v-else-if="current === 'step2'"
    v-bind="props"
    @go-pay="emit('goPay', $event)"
    @paySuccess="emit('paySuccess', $event)"
    @missName="emit('missName', $event)"
  />
</template>
@@ -13,21 +15,20 @@
import { ElectricBillRechargeContextKey } from './context';
import ElectricBillRechargeStep1 from './ElectricBillRechargeStep1.vue';
import ElectricBillRechargeStep2 from './ElectricBillRechargeStep2.vue';
import { RechargeProps } from '../PhoneBillRecharge/types';
defineOptions({
  name: 'electricBillRecharge',
});
type Props = {
  isDev?: boolean;
};
const props = withDefaults(defineProps<Props>(), {
const props = withDefaults(defineProps<RechargeProps>(), {
  isDev: false,
});
const emit = defineEmits<{
  (e: 'goPay', orderNo: string): void;
  (e: 'paySuccess', orderNo: string): void;
  (e: 'missName', userAccountId: string): void;
}>();
const stepperInfo = useStepper(['step1', 'step2'], 'step2');