1234567891011121314151617 |
- import { implJsapi } from './base';
- export var loadFontFace = implJsapi({
- alipay: function (instance, options) {
- return new Promise(function (resolve, reject) {
- instance.loadFontFace({
- family: options.family,
- source: options.source,
- success: function (res) {
- resolve(res);
- },
- fail: function (err) {
- reject(err);
- },
- });
- });
- },
- });
|