会员
周边
新闻
博问
闪存
赞助商
YouClaw
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Felix_Openmind
https://github.com/serendipitywzz
博客园
首页
新随笔
管理
上一页
1
···
3
4
5
6
7
8
9
10
11
···
45
下一页
2025年1月2日
AntDesign Radio单选支持取消
摘要: <a-radio-group v-model:value="record.swtRule" name="radioGroup"> <a-radio value="1" @click="() => record.swtRule '1' ? record.swtRule = undefined : fa
阅读全文
posted @ 2025-01-02 11:37 Felix_Openmind
阅读(229)
评论(0)
推荐(0)
2025年1月1日
Vue3中Proxy实现响应式系统基本逻辑实现
摘要: const activeEffect = new Map() // 存储依赖关系 // 追踪依赖 const setDepsMap = (target, propKey) => { if(!activeEffect.has(target)) { activeEffect.set(target, ne
阅读全文
posted @ 2025-01-01 16:14 Felix_Openmind
阅读(59)
评论(0)
推荐(0)
JS Proxy对象使用的两个案例:校验器和属性私有化
摘要: 校验器 const target = { _id: '1024', name: 'vuejs', } // 校验器 const validators = { name(val) { return Object.prototype.toString.call(val) 'string'; }, _id
阅读全文
posted @ 2025-01-01 15:36 Felix_Openmind
阅读(36)
评论(0)
推荐(0)
2024年12月29日
"react-native": "0.72.7"中使用react-native-reanimated报错
摘要: 参考修改依赖版本内容 Packages & dependencies "@react-navigation/drawer": "^6.6.3", "@react-navigation/native": "^6.1.7", "react": "18.2.0", "react-native": "0.7
阅读全文
posted @ 2024-12-29 01:20 Felix_Openmind
阅读(287)
评论(0)
推荐(0)
RN72版本:Error: PanGestureHandler must be used as a descendant of GestureHandlerRootView.
摘要: 
阅读全文
posted @ 2024-12-29 01:16 Felix_Openmind
阅读(74)
评论(0)
推荐(0)
2024年12月24日
Vue2环境中AntDeisgn1.x的树形下拉选择组件
摘要: 示例 相关代码 <a-tree-select v-model="type" show-search style="width: 100%" :dropdown-style="{ maxHeight: '400px', overflow: 'auto' }" placeholder="请选择" all
阅读全文
posted @ 2024-12-24 11:12 Felix_Openmind
阅读(63)
评论(0)
推荐(0)
2024年12月22日
Web Worker了解
摘要: Web Worker是什么? Web Worker是浏览器的API,可以创建worker线程,在主线程之外运行JS脚本 Web Worker的作用? Web Worker的目的是:为JS创造多线程环境 在主线程中创建Worker线程,将耗时的任务分配给Worker线程,Worker线程在后台运行和主
阅读全文
posted @ 2024-12-22 18:23 Felix_Openmind
阅读(252)
评论(0)
推荐(0)
2024年12月13日
[组件库]Vue3自定义组件实现图片预览下载
摘要: 示例 代码 ImgPreview.vue <template> <div class="preview" @click="onClick"> <div class="preview-img"> <div class="opt-box"> <CloudDownloadOutlined :style="
阅读全文
posted @ 2024-12-13 18:31 Felix_Openmind
阅读(223)
评论(0)
推荐(0)
Vue3_透传 Attributes
摘要: 什么是透传Attributes 透传属性指的是 没有被该组件声明为props或emits的属性或v-on事件监听器,eg:class、style、id... 在 JavaScript 中访问透传 Attributes // 使用useAttrs() API来访问一个组件的所有透传属性 <script
阅读全文
posted @ 2024-12-13 17:11 Felix_Openmind
阅读(118)
评论(0)
推荐(0)
Vue中父组件读取或操作子组件数据的方法
摘要: 1.通过v-model 2.通过props和emit 3.通过provide和inject 4.通过ref 5.通过事件总线EventBus或Mitt 6.通过Vuex/Pinia 1.通过v-modle v-model 是 Vue 提供的用于双向绑定的语法糖,适用于父子组件之间的数据同步。 //
阅读全文
posted @ 2024-12-13 16:02 Felix_Openmind
阅读(210)
评论(0)
推荐(0)
上一页
1
···
3
4
5
6
7
8
9
10
11
···
45
下一页
*{cursor: url(https://files-cdn.cnblogs.com/files/morango/fish-cursor.ico),auto;}