url的路径不要public开头,
@font-face {
font-family: 'Quicksand';
src: url('/fonts/Quicksand.ttf');
font-weight: 400;
font-style: normal;
font-display: swap;
}
url的路径不要public开头,
@font-face {
font-family: 'Quicksand';
src: url('/fonts/Quicksand.ttf');
font-weight: 400;
font-style: normal;
font-display: swap;
}
是的,IDE上看不到字体效果
app上需要注意一下,字体定制不能在涂鸦智能、智能生活上使用,只能在自己的OEM App或者SDK开发的App上使用定制字体。
看下是不是代码写错了。应该是
Code: Select all
<Text className={styles['quicksand-font']}>这是 Quicksand 字体</Text>
我试了你的代码是正常的,
smart-ui的版本提供一下。hiddenLabel属性也要设置。
设置customStyle试试
Code: Select all
<Field
customStyle={{
width: '200px'
}}
value={value}
label="标题"
placeholder="请输入"
hiddenLabel
onChange={onChange2}
/>
安装这个版本先试一下
yarn add --registry=https://registry.npmjs.org/ @ray-js/components-ty-slider@0.3.1
import Slider from '@ray-js/components-ty-slider'
和smart-ui里的slider属性是一样的。smart-ui里的slider稍后会更新一个版本
安装这个版本试试
yarn add --registry=https://registry.npmjs.org/ @ray-js/drag-list@2.0.0-beta-3
提交一个需求工单吧,后续会有评估来对接处理
https://developer.tuya.com/cn/miniapp/f ... 5%E5%8D%95