🎈 perf(颜色取样): 新增图标
This commit is contained in:
@@ -5,6 +5,7 @@ import { FC, memo, useMemo, useRef, useState } from 'react'
|
||||
import Upload from '../Upload'
|
||||
import { screenshot } from '@/common/util'
|
||||
import { formatImgUrl, formatUrl } from '@/common/format'
|
||||
import IconFont from '@/components/iconfont/iconfont'
|
||||
|
||||
interface TextureEvent {
|
||||
onUploadConfirm?: (file: string) => void
|
||||
@@ -42,8 +43,7 @@ const Texture: FC<PropsType> = params => {
|
||||
<View onClick={handleOpenModal} className={styles['tc-i-upload']}>
|
||||
{detail.texture_url && <Image src={formatUrl(detail.texture_url)} />}
|
||||
<View v-else className={styles['tc-i-u-box']}>
|
||||
{/* TODO: 更换iconfont */}
|
||||
<Text className='iconfont icon-shangchuanzhaopian'></Text>
|
||||
<IconFont name='icon-shangchuanwenli' size={66} color='#707070'></IconFont>
|
||||
<View>上传纹理</View>
|
||||
</View>
|
||||
</View>
|
||||
|
||||
Reference in New Issue
Block a user