摘要: <template> <div ref="node" > <node v-bind="$attrs"/> </div> </template> <script setup> //要带.vue import node from './node.vue' import { ref,reactive,ge 阅读全文
posted @ 2022-06-06 11:26 87de海雷 阅读(74) 评论(0) 推荐(0) 编辑
摘要: export default function install(Vue){ var files = require.context('./', true, /index.vue$/) files.keys().map(x=> files(x).default || files(x)).map(x=> 阅读全文
posted @ 2021-10-18 09:31 87de海雷 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 父组件定义: <script> export default { // 父组件通过provide将自己的数据以对象形式传出去 provide(){ return { parentValue:"我是父组件的值啊" } } }; </script> 子孙组件接受方式: <script> export d 阅读全文
posted @ 2021-10-18 09:17 87de海雷 阅读(30) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// decimal 转换中文大写 /// </summary> /// <param name="val"></param> /// <returns></returns> public static string ToRMB(this decimal val) { 阅读全文
posted @ 2021-08-26 16:53 87de海雷 阅读(90) 评论(0) 推荐(0) 编辑
摘要: public static string ToUrlParams(this object obj) { return string.Join("&", obj.GetType().GetProperties().Where(x => x.GetValue(obj)!= null).Select(x 阅读全文
posted @ 2021-08-26 15:48 87de海雷 阅读(370) 评论(0) 推荐(1) 编辑
摘要: 打开 nuget管理器 搜索 PinYinConverterCore 安装 public static class Helper {public static string ToPinYin(this string val, bool first = false) { return string.J 阅读全文
posted @ 2021-08-26 15:18 87de海雷 阅读(673) 评论(0) 推荐(1) 编辑
摘要: public static T MapTo<T>(this object obj) { return new MapperConfiguration(x => x.CreateMap(obj.GetType(), typeof(T))).CreateMapper().Map<T>(obj); } 阅读全文
posted @ 2021-08-26 09:36 87de海雷 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 自己写Redis一键安装小工具 下载>>解压>> 安装服务>>卸载服务 源码:下载地址 阅读全文
posted @ 2021-08-11 12:15 87de海雷 阅读(62) 评论(0) 推荐(0) 编辑
摘要: 获取 var GetCookies = () => { var n = [] document.cookie.split(';').forEach(o => { var x = o.split('='); n[x[0].trim()] = x[1] }) return n; } //调用 var c 阅读全文
posted @ 2021-08-05 11:29 87de海雷 阅读(21) 评论(0) 推荐(0) 编辑
摘要: <template> <div class="sliderverify"> <div class="bg" :style="`width:${ disX+40 }px;`"></div> <div ref="btn" :class="statusItem[status]"></div> </div> 阅读全文
posted @ 2021-08-04 16:28 87de海雷 阅读(866) 评论(0) 推荐(0) 编辑
点击右上角即可分享
微信分享提示