精华内容
下载资源
问答
  • weex vue 动态添加图标字体

    千次阅读 2020-08-20 22:06:51
    // return unescape("%u"+icon) }, } } script> uniapp 开发中使用图标字体 nvue 动态添加图标字体实例 <template> <view> <text class="hxicon">{{iconHandle(icon)}}text> <view> template> <script> // #...

    研究半天才明白,其实就是unicode字符串解码成文字就可以了,就这么简单。。。简单。。。

    <template>
    	<view>
    		<text class="iconfont">{{iconHandle(icon)}}</text>
    	<view>
    </template>
    
    <script>
    var he = require('he');
    export default {
    	data() {
    		return {
    			icon: '&#xe6eb;'
    		}
    	},
    	methods: {
    		iconHandle(icon){
    			// 这里是 app 端
    			return he.decode(icon)
    			
    			// 这里是web端 vue 使用,当然web端还可以用 v-html 指令  <text class="iconfont" v-html="icon" />
    			// icon= icon.replace(/(&#x|;)/g, "")
    			// console.log(icon,"%u"+icon);
    			// return unescape("%u"+icon)
    			
    		},
    	}
    }
    </script>
    

    uniapp 开发中使用图标字体

    nvue 动态添加图标字体实例

    <template>
    	<view>
    		<text class="hxicon">{{iconHandle(icon)}}</text>
    	<view>
    </template>
    
    <script>
    // #ifdef APP-PLUS-NVUE
    	var domModule = weex.requireModule('dom');
    	var b64 = 'AAEAAAALAIAAAwAwR1NVQrD+s+0AAAE4AAAAQk9TLzI8vEjdAAABfAAAAFZjbWFwt08gwQAAAggAAAJKZ2x5ZqU14o0AAARwAAAH3GhlYWQZ3aA9AAAA4AAAADZoaGVhB94DjgAAALwAAAAkaG10eDQAAAAAAAHUAAAANGxvY2ELTA28AAAEVAAAABxtYXhwARsA0wAAARgAAAAgbmFtZbuddLgAAAxMAAACVXBvc3RDGZ0IAAAOpAAAAKEAAQAAA4D/gABcBAAAAAAABAAAAQAAAAAAAAAAAAAAAAAAAA0AAQAAAAEAAAgQY/9fDzz1AAsEAAAAAADbXy4hAAAAANtfLiEAAP+8BAADQgAAAAgAAgAAAAAAAAABAAAADQDHAAQAAAAAAAIAAAAKAAoAAAD/AAAAAAAAAAEAAAAKAB4ALAABREZMVAAIA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B4AGkAYwBvAG4AaAB4AGkAYwBvAG4AVgBlAHIAcwBpAG8AbgAgADEALgAwAGgAeABpAGMAbwBuAEcAZQBuAGUAcgBhAHQAZQBkACAAYgB5ACAAcwB2AGcAMgB0AHQAZgAgAGYAcgBvAG0AIABGAG8AbgB0AGUAbABsAG8AIABwAHIAbwBqAGUAYwB0AC4AaAB0AHQAcAA6AC8ALwBmAG8AbgB0AGUAbABsAG8ALgBjAG8AbQAAAAACAAAAAAAAAAoAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA0BAgEDAQQBBQEGAQcBCAEJAQoBCwEMAQ0BDgAFY2xvc2UJZmF2b3JmaWxsBWZhdm9yDGxvY2F0aW9uZmlsbAhsb2NhdGlvbgZzZWFyY2gGdW5mb2xkCHNldHRpbmdzC2ZvcndhcmRmaWxsB2ZvcndhcmQEYmFjawVyaWdodAAAAAAA'
    	domModule.addRule('fontFace', {
    		'fontFamily': "hxcion",
    		 'src': "url('data:font/truetype;charset=utf-8;base64,"+b64+"')"
    		
    	});
    	var he = require('he');
    	// #endif
    export default {
    	data() {
    		return {
    			icon: '&#xe6eb;'
    		}
    	},
    	methods: {
    		iconHandle(icon){
    			// 进行条件编译 非app端 nvue 
    			// #ifndef APP-PLUS-NVUE
    			icon= icon.replace(/(&#x|;)/g, "")
    			console.log(icon,"%u"+icon);
    			return unescape("%u"+icon)
    			// #endif
    			
    			// app 端编译
    			// #ifdef APP-PLUS-NVUE
    			return he.decode(icon)
    			// #endif
    		},
    	}
    }
    </script>
    <style lang="scss">
    	/* #ifndef APP-PLUS-NVUE */
    	@font-face {
    	  font-family: 'hxicon';  /* project id 2009392 */
    	  src: url(data:font/truetype;charset=utf-8;base64,AAEAAAALAIAAAwAwR1NVQrD+s+0AAAE4AAAAQk9TLzI8vEjdAAABfAAAAFZjbWFwt08gwQAAAggAAAJKZ2x5ZqU14o0AAARwAAAH3GhlYWQZ4AolAAAA4AAAADZoaGVhB94DjgAAALwAAAAkaG10eDQAAAAAAAH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AEECQAKAFYA+wADAAEECQALACYBUQpDcmVhdGVkIGJ5IGljb25mb250Cmh4aWNvblJlZ3VsYXJoeGljb25oeGljb25WZXJzaW9uIDEuMGh4aWNvbkdlbmVyYXRlZCBieSBzdmcydHRmIGZyb20gRm9udGVsbG8gcHJvamVjdC5odHRwOi8vZm9udGVsbG8uY29tAAoAQwByAGUAYQB0AGUAZAAgAGIAeQAgAGkAYwBvAG4AZgBvAG4AdAAKAGgAeABpAGMAbwBuAFIAZQBnAHUAbABhAHIAaAB4AGkAYwBvAG4AaAB4AGkAYwBvAG4AVgBlAHIAcwBpAG8AbgAgADEALgAwAGgAeABpAGMAbwBuAEcAZQBuAGUAcgBhAHQAZQBkACAAYgB5ACAAcwB2AGcAMgB0AHQAZgAgAGYAcgBvAG0AIABGAG8AbgB0AGUAbABsAG8AIABwAHIAbwBqAGUAYwB0AC4AaAB0AHQAcAA6AC8ALwBmAG8AbgB0AGUAbABsAG8ALgBjAG8AbQAAAAACAAAAAAAAAAoAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA0BAgEDAQQBBQEGAQcBCAEJAQoBCwEMAQ0BDgAFY2xvc2UJZmF2b3JmaWxsBWZhdm9yDGxvY2F0aW9uZmlsbAhsb2NhdGlvbgZzZWFyY2gGdW5mb2xkCHNldHRpbmdzC2ZvcndhcmRmaWxsB2ZvcndhcmQEYmFjawVyaWdodAAAAAAA) format('truetype');
    	}
    	/* #endif */
    
    	.hxicon {
    		font-family: hxicon;
    		text-decoration: none;
    	}
    }
    </style>
    
    展开全文
  • 动态加载图标

    2016-01-21 12:00:29
    http://www.lanrentuku.com/gif/a/loading_4.html
    http://www.lanrentuku.com/gif/a/loading_4.html
    展开全文
  • MFC_如何动态加载图标

    2020-04-21 17:39:01
    一、添加所需图标 (注意图标必须是ico格式) 1.1在资源视图中的Icon文件右击选择添加资源 1.2选择导入如图: 1.3选择指定的图标路径文件夹下可以全选一次性导入 二、C++代码中实现图标转换 2.1在类视图中找到...
    展开全文
  • 主要介绍了微信小程序实现自定义加载图标功能,非常不错具有一定的参考借鉴价值,需要的朋友参考下吧
  • 页面加载时等待显示的图标,增加页面效果。欢迎下载
  • 正在加载”的动态gif图标,非常好看的特效,只能用炫酷来形容,感兴趣就下载看看吧,用在自己的网站觉得吸引眼球!
  • css实现动态正在加载图标

    千次阅读 2018-11-20 10:38:11
    利用keyframes动画实现,   .er-button-loading .er-button-style:before { content: "\f110"; font-family: "FontAwesome"; display: inline-block; z-index: 2;... ...

    利用keyframes动画实现,

     

    .er-button-loading .er-button-style:before {
      content: "\f110";
      font-family: "FontAwesome";
      display: inline-block;
      z-index: 2;
      background: inherit;
      font-size: 1.4em;
      padding: inherit;
      -webkit-animation: loading 1s step-start;
      -webkit-animation-iteration-count: infinite;///播放动画次数,infinite表示循环播放
    
    }
    
    @keyframes loading {
       0%{
         transform: rotate(0deg);
         transform-origin: center;///旋转的基点位置,center表示从中间开始旋转
       }
      11%{
        transform: rotate(40deg);
        transform-origin: center;
      }
      22%{
        transform: rotate(80deg);
        transform-origin: center;
      }
      33%{
        transform: rotate(120deg);
        transform-origin: center;
      }
      44%{
        transform: rotate(160deg);
        transform-origin: center;
      }
      55%{
        transform: rotate(200deg);
        transform-origin: center;
      }
      66%{
        transform: rotate(240deg);
        transform-origin: center;
      }
      77%{
        transform: rotate(280deg);
        transform-origin: center;
      }
      88%{
        transform: rotate(320deg);
        transform-origin: center;
      }
       100%{
         transform: rotate(360deg);
         transform-origin: center;
       }
     }
    @-webkit-keyframes loading {
      0%{
        -webkit-transform: rotate(0deg);
        -webkit-transform-origin: center;
      }
      11%{
        -webkit-transform: rotate(40deg);
        -webkit-transform-origin: center;
      }
      22%{
        -webkit-transform: rotate(80deg);
        -webkit-transform-origin: center;
      }
      33%{
        -webkit-transform: rotate(120deg);
        -webkit-transform-origin: center;
      }
      44%{
        -webkit-transform: rotate(160deg);
        -webkit-transform-origin: center;
      }
      55%{
        -webkit-transform: rotate(200deg);
        -webkit-transform-origin: center;
      }
      66%{
        -webkit-transform: rotate(240deg);
        -webkit-transform-origin: center;
      }
      77%{
        -webkit-transform: rotate(280deg);
        -webkit-transform-origin: center;
      }
      88%{
        -webkit-transform: rotate(320deg);
        -webkit-transform-origin: center;
      }
      100%{
        -webkit-transform: rotate(360deg);
        -webkit-transform-origin: center;
      }
    }
    展开全文
  • 90个动态加载效果图片,有些图标模型相同,但展现的效果不同,希望对大家有帮助!!!
  • 网页动态加载(loading)GIF图标,网页动态加载(loading)GIF图标
  • 1、在手机桌面加载图标方式 1)、动态加载 Launcher.java private void addSourceList() { Intent launchIntent = new Intent(this, RcGrpActivity.class); launchIntent.setAction(Intent.ACTION_
  • 使用的是activity-alias来动态更换应用的图标和应用名称
  • VB菜单中添加图标

    2018-11-05 09:45:50
    VB菜单中添加图标VB菜单中添加图标VB菜单中添加图标
  • js实现在input框中动态添加图标

    千次阅读 2018-12-06 02:34:01
    //动态生成的图标对象 if(obj.value.length>0){//开始输入时动态生成 if(!document.body.contains(clearObj)){//判断图标对象是否存在 var newNode = document.createElement("i"); newNode.style....
  • 今天小编就为大家分享一篇关于layui的动态图标不显示的解决方法,具有很好的参考价值,希望对大家有所帮助。一起跟随小编过来看看吧
  • WINFORM 登陆加载图标

    2011-06-20 03:20:07
    WINFORM 登陆加载图标
  • el-tree的父子节点添加动态icon 最近做的项目,需要给el-tree菜单,展开后的父子节点带有它们自己的icon,因为这个菜单数据是从后台获取的,每一个节点都有属于它们的icon 解决方案如下: <el-tree :data=...
  • fuelux.tree 自定义属性控件-自定义图标+动态加载数据+添加点击事件。。。。。。。。。。。。。。。。
  • 图标路径加载 加入qrc文件 将准备好的图标添加到.qrc文件中 文件路径 文件中采用相对路径,此处为 “:/new/prefix1/images/open.png”
  • vue 动态加载浏览器左上角 图标 和 显示title 设置这个需要在路由里面通过钩子函数进行设置 图标需要创建link标签来获取 传过来的url 我这边是通过缓存来获取的 sessionStorage.getItem(‘shopLogo’) router....
  • 5.Ext JS actioncolumn动态加载图标/提示

    千次阅读 2017-01-08 22:54:40
    Ext JS actioncolumn动态加载图标/提示
  • MFC 标题栏动态加载自定义图标

    千次阅读 2016-11-07 13:51:54
    1、MFC主窗体的OnInitDialog()中默认会添加以下代码: //CDialog::OnInitDialog(); // TODO: Add extra initialization here HICON m_hIcon; m_hIcon=AfxGetApp()->LoadIcon(IDR_MAINFRAME); SetIcon(m_...
  • 一个很炫的JS效果,立体图标。如果能把这个放到桌面上,貌似是个很酷的选择。下来看看吧。
  • 动态加载LOADDING小图标,提供给类动态加载图标
  • TreeView的图标个性化和动态数据加载

    千次阅读 2017-12-19 15:41:34
    1、最顶层的行的收缩图标为绿色小三角,其余层存在子节点的行的收缩图标为一个朝右的尖括号和一个绿色小三角,无子节点 的行无需图标; 2、点击小三角时,能收缩或展开节点; 3、点击文字所在行(除小三角...
  • android demo,自定义view,该view显示正在加载的文字,动态转圈的图标
  • 非常不错的Bootstrap插件,现在很多Bootstrap制作的页面都需要此功能,此插件需要Bootstrap3版本以及jQuery 2.0极以上版本支持,支持众多参数自定义功能,颜色、背景色、图标、链接等,还是很不错的。 具体效果请...
  • 在vue中动态加载阿里云字体图标库,就不会影响项目之前的图标,直接把自己需要的图标另外添加进去 1、在配置文件中定义引入图标路径地址,暴露出去,并在 main.js 中引入 iconfontUrl 定义的是引入字体图标地址 ...
  • 53种css3 loading白色加载图标动画特效
  • “正在加载”的动态gif图标

    热门讨论 2011-03-19 10:42:25
    19个正在加载动态图标,32*32、16*16,肯定有你想要的。
  • -- 插入字体图标 --> <span slot-scope="{ node }"> <i class="el-icon-s-management"></i> ;">{{node.label}}</span> </span> </el-tree> 展开全部</el-button> 全部折叠</el-button> 二:js部分 data ()...

空空如也

空空如也

1 2 3 4 5 ... 20
收藏数 455,259
精华内容 182,103
关键字:

动态加载图标