uni-modules组件升级,u-icon组件替换uni-icons,前面的那个网络不好的时候加载不出来
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
## 1.3.5(2022-01-24)
|
||||
- 优化 size 属性可以传入不带单位的字符串数值
|
||||
## 1.3.4(2022-01-24)
|
||||
- 优化 size 支持其他单位
|
||||
## 1.3.3(2022-01-17)
|
||||
- 修复 nvue 有些图标不显示的bug,兼容老版本图标
|
||||
## 1.3.2(2021-12-01)
|
||||
- 优化 示例可复制图标名称
|
||||
## 1.3.1(2021-11-23)
|
||||
|
||||
@@ -173,6 +173,13 @@ export default {
|
||||
"unicode": "e6bb",
|
||||
"unicode_decimal": 59067
|
||||
},
|
||||
{
|
||||
"icon_id": "24923353",
|
||||
"name": "arrowthinright",
|
||||
"font_class": "arrowthinright",
|
||||
"unicode": "e6bb",
|
||||
"unicode_decimal": 59067
|
||||
},
|
||||
{
|
||||
"icon_id": "24923354",
|
||||
"name": "arrowthinleft",
|
||||
@@ -180,6 +187,13 @@ export default {
|
||||
"unicode": "e6bc",
|
||||
"unicode_decimal": 59068
|
||||
},
|
||||
{
|
||||
"icon_id": "24923354",
|
||||
"name": "arrowthinleft",
|
||||
"font_class": "arrowthinleft",
|
||||
"unicode": "e6bc",
|
||||
"unicode_decimal": 59068
|
||||
},
|
||||
{
|
||||
"icon_id": "24923355",
|
||||
"name": "arrowthinup",
|
||||
@@ -187,12 +201,25 @@ export default {
|
||||
"unicode": "e6bd",
|
||||
"unicode_decimal": 59069
|
||||
},
|
||||
{
|
||||
"icon_id": "24923355",
|
||||
"name": "arrowthinup",
|
||||
"font_class": "arrowthinup",
|
||||
"unicode": "e6bd",
|
||||
"unicode_decimal": 59069
|
||||
},
|
||||
{
|
||||
"icon_id": "24923356",
|
||||
"name": "arrowthindown",
|
||||
"font_class": "arrow-down",
|
||||
"unicode": "e6be",
|
||||
"unicode_decimal": 59070
|
||||
},{
|
||||
"icon_id": "24923356",
|
||||
"name": "arrowthindown",
|
||||
"font_class": "arrowthindown",
|
||||
"unicode": "e6be",
|
||||
"unicode_decimal": 59070
|
||||
},
|
||||
{
|
||||
"icon_id": "24923349",
|
||||
@@ -200,6 +227,12 @@ export default {
|
||||
"font_class": "bottom",
|
||||
"unicode": "e6b8",
|
||||
"unicode_decimal": 59064
|
||||
},{
|
||||
"icon_id": "24923349",
|
||||
"name": "arrowdown",
|
||||
"font_class": "arrowdown",
|
||||
"unicode": "e6b8",
|
||||
"unicode_decimal": 59064
|
||||
},
|
||||
{
|
||||
"icon_id": "24923346",
|
||||
@@ -208,6 +241,13 @@ export default {
|
||||
"unicode": "e6b5",
|
||||
"unicode_decimal": 59061
|
||||
},
|
||||
{
|
||||
"icon_id": "24923346",
|
||||
"name": "arrowright",
|
||||
"font_class": "arrowright",
|
||||
"unicode": "e6b5",
|
||||
"unicode_decimal": 59061
|
||||
},
|
||||
{
|
||||
"icon_id": "24923347",
|
||||
"name": "arrowup",
|
||||
@@ -215,6 +255,13 @@ export default {
|
||||
"unicode": "e6b6",
|
||||
"unicode_decimal": 59062
|
||||
},
|
||||
{
|
||||
"icon_id": "24923347",
|
||||
"name": "arrowup",
|
||||
"font_class": "arrowup",
|
||||
"unicode": "e6b6",
|
||||
"unicode_decimal": 59062
|
||||
},
|
||||
{
|
||||
"icon_id": "24923348",
|
||||
"name": "arrowleft",
|
||||
@@ -222,6 +269,13 @@ export default {
|
||||
"unicode": "e6b7",
|
||||
"unicode_decimal": 59063
|
||||
},
|
||||
{
|
||||
"icon_id": "24923348",
|
||||
"name": "arrowleft",
|
||||
"font_class": "arrowleft",
|
||||
"unicode": "e6b7",
|
||||
"unicode_decimal": 59063
|
||||
},
|
||||
{
|
||||
"icon_id": "24923334",
|
||||
"name": "eye",
|
||||
|
||||
@@ -1,14 +1,18 @@
|
||||
<template>
|
||||
<!-- #ifdef APP-NVUE -->
|
||||
<text :style="{ color: color, 'font-size': size + 'px' }" class="uni-icons" @click="_onClick">{{unicode}}</text>
|
||||
<text :style="{ color: color, 'font-size': iconSize }" class="uni-icons" @click="_onClick">{{unicode}}</text>
|
||||
<!-- #endif -->
|
||||
<!-- #ifndef APP-NVUE -->
|
||||
<text :style="{ color: color, 'font-size': size + 'px' }" class="uni-icons" :class="['uniui-'+type,customPrefix,customPrefix?type:'']" @click="_onClick"></text>
|
||||
<text :style="{ color: color, 'font-size': iconSize }" class="uni-icons" :class="['uniui-'+type,customPrefix,customPrefix?type:'']" @click="_onClick"></text>
|
||||
<!-- #endif -->
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import icons from './icons.js';
|
||||
import icons from './icons.js';
|
||||
const getVal = (val) => {
|
||||
const reg = /^[0-9]*$/g
|
||||
return (typeof val === 'number' || reg.test(val) )? val + 'px' : val;
|
||||
}
|
||||
// #ifdef APP-NVUE
|
||||
var domModule = weex.requireModule('dom');
|
||||
import iconUrl from './uniicons.ttf'
|
||||
@@ -61,6 +65,9 @@
|
||||
return unescape(`%u${code.unicode}`)
|
||||
}
|
||||
return ''
|
||||
},
|
||||
iconSize(){
|
||||
return getVal(this.size)
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"id": "uni-icons",
|
||||
"displayName": "uni-icons 图标",
|
||||
"version": "1.3.2",
|
||||
"version": "1.3.5",
|
||||
"description": "图标组件,用于展示移动端常见的图标,可自定义颜色、大小。",
|
||||
"keywords": [
|
||||
"uni-ui",
|
||||
|
||||
Reference in New Issue
Block a user