Angular PrimeNG 实现支付宝微信提现功能
<template>
<div>
<h1>选择提现方式</h1>
<div class='checkbox-container'>
<p-checkbox [(ngModel)]='isAlipayEnabled' label='启用支付宝提现'></p-checkbox>
<p-checkbox [(ngModel)]='isWechatEnabled' label='启用微信提现'></p-checkbox>
</div>
</div>
</template>
<style scoped>
.checkbox-container {
display: flex;
flex-direction: column;
}
</style>
<script>
import { Checkbox } from 'primeng/checkbox';
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-withdrawal',
templateUrl: './withdrawal.component.html',
styleUrls: ['./withdrawal.component.scss']
})
export class WithdrawalComponent implements OnInit {
isAlipayEnabled: boolean = false;
isWechatEnabled: boolean = false;
constructor() { }
ngOnInit(): void {
}
}
</script>
原文地址: https://www.cveoy.top/t/topic/l2YA 著作权归作者所有。请勿转载和采集!