"在一行代码中让您的信用卡表单变得梦幻般"
This is an Ember wrapper for the amazing Card project.
ember install ember-credit-card
By simply adding {{credit-card}} a basic form will be generated:
{{input type="text" name="number" value=number placeholder='Credit Card Number'}}
{{input type="text" name="name" value=name placeholder='Name on Credit Card'}}
{{input type="text" name="expiry" value=expiry}}
{{input type="text" name="cvc" value=cvc}}
You can also specify all the settings that Card supports.
The default form and inputs used by default are so simple, so you can pass a template to use your own styled inputs.
Remeber to either use the default name inputs or specify them on the
{{credit-card}}arguments
yarn lint:jsyarn lint:js --fixember test – Runs the test suite on the current Ember versionember test --server – Runs the test suite in "watch mode"ember try:each – Runs the test suite against multiple Ember versionsember serveThis project is licensed under the MIT License.
暂无开放 Issues,或尚未同步最近议题。