feat: 首次提交

This commit is contained in:
peerless_hero
2023-08-17 21:28:49 +08:00
parent 36f80fb971
commit ec1e5e16cd
571 changed files with 95322 additions and 0 deletions

View File

@ -0,0 +1,168 @@
// 本文件由FirstUI授权予新疆天衡创新研究院有限公司手机号18 6 140 72 54 9身份证尾号5A07X5专用请尊重知识产权勿私下传播违者追究法律责任。
export default [
"addfriends",
"addfriends-fill",
"backspace",
"backspace-fill",
"bankcard",
"bankcard-fill",
"camera",
"camera-fill",
"captcha",
"captcha-fill",
"cart",
"cart-fill",
"classify",
"classify-fill",
"comment",
"comment-fill",
"community",
"community-fill",
"coupon",
"coupon-fill",
"delete",
"delete-fill",
"edit",
"edit-fill",
"fabulous",
"fabulous-fill",
"find",
"find-fill",
"help",
"help-fill",
"home",
"home-fill",
"idcard",
"idcard-fill",
"info",
"info-fill",
"invite",
"invite-fill",
"kefu",
"kefu-fill",
"like",
"like-fill",
"location",
"location-fill",
"lock",
"lock-fill",
"mail",
"mail-fill",
"message",
"message-fill",
"mobile",
"mobile-fill",
"more",
"more-fill",
"my",
"my-fill",
"notice",
"notice-fill",
"order",
"order-fill",
"picture",
"picture-fill",
"setup",
"setup-fill",
"share",
"share-fill",
"shop",
"shop-fill",
"star",
"starhalf",
"star-fill",
"stepon",
"stepon-fill",
"wait",
"wait-fill",
"warning",
"warning-fill",
"plus",
"plussign",
"plussign-fill",
"minus",
"minussign",
"minussign-fill",
"close",
"clear",
"clear-fill",
"checkbox-fill",
"checkround",
"checkbox",
"check",
"pulldown-fill",
"pullup",
"pullup-fill",
"pulldown",
"roundright-fill",
"roundright",
"arrowright",
"arrowleft",
"arrowdown",
"left",
"up",
"right",
"back",
"top",
"dropdown",
"turningleft",
"turningup",
"turningright",
"turningdown",
"refresh",
"loading",
"search",
"rotate",
"screen",
"signin",
"calendar",
"scan",
"qrcode",
"wallet",
"telephone",
"visible",
"invisible",
"menu",
"operate",
"slide",
"list",
"nonetwork",
"partake",
"qa",
"barchart",
"piechart",
"linechart",
"at",
"face",
"redpacket",
"suspend",
"link",
"keyboard",
"play",
"video",
"voice",
"addressbook",
"principal",
"sina",
"browser",
"moments",
"qq",
"wechat",
"balance",
"bankcardpay",
"wxpay",
"alipay",
"payment",
"receive",
"sendout",
"evaluate",
"aftersale",
"warehouse",
"transport",
"delivery",
"switch",
"goods",
"goods-fill",
"",
""
]

View File

@ -0,0 +1,87 @@
<!--本文件由FirstUI授权予新疆天衡创新研究院有限公司手机号1 86 1 40 72 549身份证尾号5A07X5专用请尊重知识产权勿私下传播违者追究法律责任-->
<template>
<view class="fui-wrap">
<view class="fui-page__hd">
<view class="fui-page__title">Icon</view>
<view class="fui-page__desc">Icon 图标First UI字体图标库可自行扩展</view>
</view>
<view class="fui-page__bd fui-page__spacing">
<fui-grid :columns="3" @click="getName">
<fui-grid-item v-for="(item, index) in icons" :highlight="item!=''" :index="index" :key="index">
<view class="fui-icon__item">
<fui-icon :name="item"></fui-icon>
<text class="fui-icon__name">{{ item }}</text>
</view>
</fui-grid-item>
</fui-grid>
</view>
</view>
</template>
<script>
// #ifdef MP-BAIDU
import {
mapState
} from 'vuex'
// #endif
import icons from './icon.js';
import $fui from '@/components/firstui/fui-clipboard';
export default {
data() {
return {
icons: icons
}
},
// #ifdef MP-BAIDU
computed: mapState(['status']),
// #endif
methods: {
getName(e) {
const name = this.icons[e.detail.index]
if (!name) return;
// #ifdef MP-BAIDU
if (this.status == 1) {
$fui.getClipboardData(name, res => {
this.fui.toast('图标名称复制成功');
}, e);
}
// #endif
// #ifndef MP-BAIDU
$fui.getClipboardData(name, res => {
this.fui.toast('图标名称复制成功');
}, e);
// #endif
}
}
}
</script>
<style>
/* 头条小程序组件内不能引入字体 */
/* #ifdef MP-TOUTIAO */
@font-face {
font-family: 'fuiFont';
src: url("~@/components/firstui/fui-icon/fui-icon.ttf") format("truetype");
}
/* #endif */
page {
background-color: #FFFFFF;
}
.fui-icon__item {
flex: 1;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
position: relative;
}
.fui-icon__name {
font-size: 28rpx;
font-weight: 400;
padding-top: 16rpx;
}
</style>