miniprogram-demo/packageAPI/pages/load-font-face/load-font-face.wxml

24 lines
782 B
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<!--pages/API/load-font-face/load-font-face.wxml-->
<import src="../../common/head.wxml" />
<import src="../../common/foot.wxml" />
<view class="container">
<template is="head" data="{{title: 'loadFontFace'}}"/>
<view>目前仅ios支持安卓不支持</view>
<view class="page-body">
<view class="page-section">
<view class="page-body-info display-area {{ loaded ? 'font-loaded' : '' }}">
<text wx:if="{{!loaded}}">Load {{ fontFamily }}</text>
<text wx:else>{{ fontFamily }} is loaded</text>
</view>
<view class="btn-area">
<button type="primary" bindtap="loadFontFace">加载字体</button>
<button type="default" bindtap="clear">清除</button>
</view>
</view>
</view>
<template is="foot" />
</view>