会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
fight139
博客园
首页
新随笔
联系
管理
订阅
上一页
1
2
3
4
5
6
7
8
9
10
···
29
下一页
2022年8月22日
css高级技巧
摘要: fixed相对父节点定位 transform: rotate(0) 使用 fixed 进行布局的元素,在一般情况下会相对于屏幕视窗来进行定位。但是如果父元素的 transform, perspective 或 filter 属性不为 none 时,position为fixed 的元素就会相对于父元素
阅读全文
posted @ 2022-08-22 08:54 fight139
阅读(35)
评论(0)
推荐(0)
2022年8月3日
vite打包组件库
摘要: vite.config.js import {defineConfig} from 'vite' import vue from '@vitejs/plugin-vue' import AutoImport from 'unplugin-auto-import/vite' // vite.confi
阅读全文
posted @ 2022-08-03 18:14 fight139
阅读(1615)
评论(0)
推荐(0)
2022年7月25日
vue3插槽内部v-model失效问题
摘要: 场景 插槽内部无法向上抛出 onUpdate:modelValue事件 let children = h(resolveComponent('draggable'), { class: 'draggable-box', id: name, itemKey: 'cid', group: 'formGr
阅读全文
posted @ 2022-07-25 19:13 fight139
阅读(646)
评论(0)
推荐(0)
2022年7月22日
monaco editor代码编辑器
摘要: vue3 + vite环境搭建 安装依赖 dependencies: { "monaco-editor": "^0.33.0", "monaco-editor-auto-typings": "^0.4.2", }, devDependencies: { "vite-plugin-monaco-edi
阅读全文
posted @ 2022-07-22 16:31 fight139
阅读(787)
评论(0)
推荐(0)
2022年7月19日
vue3高级技巧
摘要: ref 渲染时挂载ref result.ref = el => { if (node.cid) { pageConfig().putDomRef(node.cid as string, el); } } v-model实现 import {defineComponent, h, ref, resol
阅读全文
posted @ 2022-07-19 16:34 fight139
阅读(241)
评论(0)
推荐(0)
2022年7月13日
vue3 draggable
摘要: 必须响应式 let config: ElementNode = { tag: 'div', isHtml: true, type: 'success', children: [{ tag: 'FormComponent', size: 'big', inline: true, list: react
阅读全文
posted @ 2022-07-13 15:03 fight139
阅读(168)
评论(0)
推荐(0)
monaco editor
摘要: vite 环境 { "name": "vite-app", "private": true, "version": "0.0.0", "scripts": { "dev": "vite", "build": "vite build", "preview": "vite preview" }, "de
阅读全文
posted @ 2022-07-13 10:58 fight139
阅读(169)
评论(0)
推荐(0)
2022年7月12日
Java执行JavaScript脚本
摘要: demo //注入函数 StringBuilder scriptContent = new StringBuilder(); scriptContent.append("function run(){"); scriptContent.append("return 123"); scriptCont
阅读全文
posted @ 2022-07-12 17:51 fight139
阅读(875)
评论(0)
推荐(0)
Spring MVC注册mapping
摘要: 查询mapping是否存在 @Autowired private RequestMappingHandlerMapping requestMappingHandlerMapping; public RequestMappingInfo getRequestMappingInfo(String pat
阅读全文
posted @ 2022-07-12 15:36 fight139
阅读(239)
评论(0)
推荐(0)
2022年7月9日
rollup
摘要: 安装 npm i -g rollup Rollup 是一个 JavaScript 模块打包器,可以将小块代码编译成大块复杂的代码,例如 library 或应用程序。Rollup 对代码模块使用新的标准化格式,这些标准都包含在 JavaScript 的 ES6 版本中,而不是以前的特殊解决方案,如 C
阅读全文
posted @ 2022-07-09 15:50 fight139
阅读(144)
评论(0)
推荐(0)
2022年7月8日
typescript
摘要: 编译 -w Watch tsc app.ts -w ts.config.json 编译配置文件 Tsc -w 监听所有文件 include "include": ["./01*.ts"] files 指定需要编译的文件 exclude compileOptions 编译器选项 target 编译后的
阅读全文
posted @ 2022-07-08 08:06 fight139
阅读(62)
评论(0)
推荐(0)
2022年7月6日
vue3
摘要: 环境搭建 yarn create vite ref ref() shallowRef() 对象整体更新, 强制更新 let msg = shallowRef({}) triggerRef(msg) 自定义ref 基本数据类型 function MyRef<T>(value: T) { return
阅读全文
posted @ 2022-07-06 18:46 fight139
阅读(48)
评论(0)
推荐(0)
2022年6月27日
react记录
摘要: IDE模板报错 JSX element implicitly has type 'any' because no interface 'JSX.Intrinsic npm i -D @types/react
阅读全文
posted @ 2022-06-27 10:17 fight139
阅读(129)
评论(0)
推荐(0)
2022年2月16日
tailwind
摘要: 安装 [Vue 2] vue3直接参考官网 npm install tailwindcss@npm:@tailwindcss/postcss7-compat @tailwindcss/postcss7-compat postcss@^7 autoprefixer@^9 初始化 配置文件 # 创建一个
阅读全文
posted @ 2022-02-16 11:03 fight139
阅读(199)
评论(0)
推荐(0)
2022年2月9日
vuex
摘要: Vuex:保存全局数据 state store.js export new Vuex.Store({ modules: { user: { namespaced: true, state: { count: 1 }, } } }) main.js import store from './store
阅读全文
posted @ 2022-02-09 20:26 fight139
阅读(39)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
9
10
···
29
下一页