DeepSeek 助力 Vue 开发:打造丝滑的二维码生成(QR Code)

前言:哈喽,大家好,今天给大家分享一篇文章!并提供具体代码帮助大家深入理解,彻底掌握!创作不易,如果能帮助到大家或者给大家一些灵感和启发,欢迎收藏+关注哦 💕

共同探索软件研发!敬请关注【宝码香车】
关注描述

csdngif标识

目录

  • DeepSeek 助力 Vue 开发:打造丝滑的二维码生成(QR Code)
    • 📚前言
    • 📚页面效果
    • 📚指令输入
      • 属性定义
        • 基本内容属性
        • 样式属性
        • 其他属性
      • 事件定义
      • 其他
        • 性能优化
        • 兼容性
        • 可访问性
        • 扩展性
      • 📘组件代码
    • 📚代码测试
    • 📚整理后主要代码
      • 📘定义组件 \src\components\QRCode\QRCode.vue
      • 📘调用 \src\views\QRCodeView.vue
    • 📚测试代码正常跑通,附其他基本代码
      • 📘编写路由 src\router\index.js
      • 📘编写展示入口 src\App.vue
    • 📚页面效果
    • 📚相关文章


📚📗📕📘📖🕮💡📝🗂️✍️🛠️💻🚀🎉🏗️🌐🖼️🔗📊👉🔖⚠️🌟🔐⬇️·正文开始⬇️·🎥😊🎓📩😺🌈🤝🤖📜📋🔍✅🧰❓📄📢📈 🙋0️⃣1️⃣2️⃣3️⃣4️⃣5️⃣6️⃣7️⃣8️⃣9️⃣🔟🆗*️⃣#️⃣

DeepSeek 助力 Vue 开发:打造丝滑的二维码生成(QR Code)

📚前言

日活用户数方面,DeepSeek 的增长势头同样强劲。国内 AI 产品榜的最新统计数据显示,DeepSeek 应用在上线仅 20 天后,其日活跃用户数(DAU)迅速突破 2000 万大关,具体数字高达 2215 万 。这一成绩不仅彰显了 DeepSeek 强大的用户吸引力,也进一步证明了 AI 技术在当今社会的广泛应用和巨大潜力。到 2 月 1 日,DeepSeek 日活跃用户突破 3000 万大关,成为史上最快达到这一里程碑的应用 。其日活跃用户数已达到 ChatGPT 日活跃用户数的 41.6%,并成功超越了豆包的日活跃用户数 1695 万 。在上线仅 21 天后,DeepSeek 的月活跃用户数(MAU)便达到了 3370 万,使其在全球 AI 产品月活总榜上成功跻身前四 。

DeepSeek 的出现,对美国科技股和全球 AI 市场产生了深远的影响。在美股市场,1 月 27 日,美股 AI、芯片股重挫,英伟达收盘大跌超过 17%,单日市值蒸发 5890 亿美元,创下美国股市历史上最高纪录 。这一现象反映出 DeepSeek 的崛起对美国科技巨头的市场地位构成了挑战,引发了投资者对科技股未来前景的担忧。

📚页面效果

页面效果

📚指令输入

已经创建好了一个基于Vue3的组合式API的项目(Composition API),并能正常运行起来,请帮我用 Vue3的组合式API(Composition API) 生成一个 二维码生成(QR Code) 的功能组件,所有代码都保存在components/QRCode 下的文件夹中。功能组件的script标签中只有setup属性,使用普通 JavaScript 实现,不使用TypeScript。
功能要有,如下属性:

属性定义

基本内容属性
  • value:这是最核心的属性,用于指定要编码到二维码中的数据,比如文本、链接等。二维码的生成就是基于这个值来进行的,它可以是字符串类型,用户需要根据实际需求传入相应的内容。
  • type:指定二维码的纠错级别。纠错级别决定了二维码在部分损坏的情况下仍能被正确扫描的能力,常见的取值有L(低,7%纠错)、M(中,15%纠错)、Q(高,25%纠错)、H(最高,30%纠错)。
样式属性
  • size:用于控制二维码的尺寸大小,单位可以是像素(px)。它决定了二维码在页面上显示的物理大小,方便根据不同的布局需求进行调整。
  • colorDark:设置二维码中深色模块(通常是黑色)的颜色。可以使用十六进制颜色码、RGB 或 RGBA 等格式来指定颜色,满足不同的设计风格。
  • colorLight:设置二维码中浅色模块(通常是白色)的颜色,同样可以使用十六进制颜色码、RGB 或 RGBA 等格式。
  • margin:定义二维码周围的空白边距,单位为像素。适当的边距可以使二维码在页面上更加美观,也有助于提高扫描的成功率。
其他属性
  • version:手动指定二维码的版本号。二维码版本从 1 到 40,版本越高,所能容纳的数据量就越大。一般情况下不需要手动指定,组件会根据传入的数据自动选择合适的版本,但在某些特殊需求下可以使用该属性。

事件定义

  • @generated:当二维码成功生成时触发该事件,事件回调函数中可以获取到生成的二维码对象或者相关的状态信息,方便开发者在二维码生成后进行后续的操作,比如将二维码保存为图片等。
  • @error:在二维码生成过程中出现错误时触发该事件,事件回调函数会携带错误信息,开发者可以根据错误信息进行相应的处理,如提示用户重新输入数据等。

其他

性能优化
  • 采用虚拟列表技术:如果在一个页面中需要生成多个二维码,使用虚拟列表可以只渲染当前可见区域的二维码,减少不必要的渲染开销,提高页面性能。
  • 缓存机制:对于相同数据生成的二维码进行缓存,避免重复生成,提高生成效率。
兼容性
  • 确保组件在不同浏览器和设备上都能正常显示和使用,进行充分的兼容性测试,特别是在移动设备上,要考虑不同屏幕分辨率和浏览器内核的差异。
可访问性
  • 为二维码添加适当的alt属性,当二维码无法正常显示时,屏幕阅读器可以读取该属性内容,为视觉障碍用户提供必要的信息。
扩展性
  • 提供扩展接口,允许开发者自定义二维码的生成算法或者样式处理逻辑,方便根据不同的业务需求进行定制化开发。

你有更好的建议也可以添加,要注明。组件定义好后给出5个及以上的调用示例。
下面是现有目录
vueAndDeepseek/
├── src/ # 源代码目录
│ ├── assets/ # 静态资源
│ │ ├── base.css
│ │ ├── main.css
│ │ └── logo.svg
│ ├── components/ # 组件目录
│ │ ├── HelloWorld.vue
│ │ ├── TheWelcome.vue
│ │ ├── WelcomeItem.vue
│ │ ├── Progress/
│ │ │ └── Progress.vue
│ │ ├── Accordion/
│ │ ├── BackToTop/
│ │ ├── Card/
│ │ ├── InfiniteScroll/
│ │ ├── Notification/
│ │ ├── Timeline/
│ │ ├── Switch/
│ │ ├── Tabs/
│ │ ├── Sidebar/
│ │ ├── Breadcrumbs/
│ │ ├── MasonryLayout/
│ │ ├── Rating/
│ │ ├── ColorPicker/
│ │ ├── RightClickMenu/
│ │ ├── RangePicker/
│ │ ├── Navbar/
│ │ ├── FormValidation/
│ │ ├── CopyToClipboard/
│ │ ├── ClickAnimations/
│ │ ├── ThumbnailList/
│ │ ├── KeyboardShortcuts/
│ │ ├── CommentSystem/
│ │ ├── QRCode/
│ │ ├── DatePicker/
│ │ └── icons/
│ ├── router/ # 路由配置
│ │ └── index.js
│ ├── stores/ # Pinia 状态管理
│ │ └── counter.js
│ ├── views/ # 页面组件
│ │ ├── ProgressView.vue
│ │ ├── TabsView.vue
│ │ ├── SwitchView.vue
│ │ ├── TimelineView.vue
│ │ ├── NotificationView.vue
│ │ ├── CardView.vue
│ │ ├── InfiniteScrollView.vue
│ │ ├── BackToTopView.vue
│ │ ├── AccordionView.vue
│ │ ├── SidebarView.vue
│ │ ├── BreadcrumbsView.vue
│ │ ├── MasonryLayoutView.vue
│ │ ├── RatingView.vue
│ │ ├── ColorPickerView.vue
│ │ ├── RightClickMenuView.vue
│ │ ├── RangePickerView.vue
│ │ ├── NavbarView.vue
│ │ ├── FormValidationView.vue
│ │ ├── CopyToClipboardView.vue
│ │ ├── ClickAnimationsView.vue
│ │ ├── ThumbnailListView.vue
│ │ ├── KeyboardShortcutsView.vue
│ │ ├── CommentSystemView.vue
│ │ ├── QRCodeView.vue
│ │ ├── DatePickerView.vue
│ │ └── AboutView.vue
│ ├── App.vue # 根组件
│ └── main.js # 应用入口
├── public/ # 公共资源目录
├── index.html # HTML 模板
├── package.json # 项目配置
├── vite.config.js # Vite 配置
└── node_modules/ # 依赖包目录

📘组件代码

下面按照您的要求创建二维码组件:

components/QRCode/QRCode.vue

<template><div class="qr-code"><div ref="qrCodeRef"></div><span class="sr-only">QR Code: {{ value }}</span></div>
</template><script setup>
import { ref, watch, onMounted, onBeforeUnmount } from 'vue'
import QRCode from 'qrcodejs2'const props = defineProps({value: {type: String,required: true},type: {type: String,default: 'H',validator(value) {return ['L', 'M', 'Q', 'H'].includes(value.toUpperCase())}},size: {type: Number,default: 200},colorDark: {type: String,default: '#000000'},colorLight: {type: String,default: '#ffffff'},margin: {type: Number,default: 4},version: {type: Number,default: undefined}
})const emit = defineEmits(['generated', 'error'])const qrCodeRef = ref(null)
let qrCodeInstance = null
const cache = new Map()const generateCacheKey = () => {return JSON.stringify({value: props.value,type: props.type,size: props.size,colorDark: props.colorDark,colorLight: props.colorLight,margin: props.margin,version: props.version})
}const generateQRCode = () => {if (!props.value) {emit('error', new Error('QR code value is required'))return}const cacheKey = generateCacheKey()if (cache.has(cacheKey)) {updateFromCache(cache.get(cacheKey))return}try {if (qrCodeInstance) {qrCodeInstance.clear()qrCodeInstance = null}qrCodeInstance = new QRCode(qrCodeRef.value, {text: props.value,width: props.size,height: props.size,colorDark: props.colorDark,colorLight: props.colorLight,correctLevel: QRCode.CorrectLevel[props.type.toUpperCase()],cellspacing: props.margin,version: props.version})observeQRGeneration(cacheKey)} catch (error) {emit('error', error)}
}const observeQRGeneration = (cacheKey) => {const observer = new MutationObserver(() => {const img = qrCodeRef.value.querySelector('img')const canvas = qrCodeRef.value.querySelector('canvas')if (img) {img.onload = () => handleSuccess(img.src, cacheKey)img.alt = `QR Code: ${props.value.substring(0, 50)}`} else if (canvas) {handleSuccess(canvas.toDataURL(), cacheKey)}observer.disconnect()})observer.observe(qrCodeRef.value, { childList: true })
}const handleSuccess = (dataUrl, cacheKey) => {cache.set(cacheKey, dataUrl)emit('generated', dataUrl)
}const updateFromCache = (dataUrl) => {qrCodeRef.value.innerHTML = `<img src="${dataUrl}" alt="QR Code: ${props.value.substring(0, 50)}" style="width: ${props.size}px; height: ${props.size}px">`emit('generated', dataUrl)
}onMounted(generateQRCode)
onBeforeUnmount(() => qrCodeInstance?.clear())watch(() => generateCacheKey(), generateQRCode)
</script><style scoped>
.sr-only {position: absolute;width: 1px;height: 1px;padding: 0;margin: -1px;overflow: hidden;clip: rect(0, 0, 0, 0);border: 0;
}.qr-code {display: inline-block;line-height: 0;
}
</style>

调用示例 (views/QRCodeView.vue):

<template><div class="examples"><!-- 基础用法 --><QRCode value="https://deepseek.com" /><!-- 自定义颜色和尺寸 --><QRCodevalue="https://deepseek.com":size="250"color-dark="#2c3e50"color-light="#ecf0f1"/><!-- 带边距和事件处理 --><QRCodevalue="Event Example":margin="10"@generated="handleGenerated"@error="handleError"/><!-- 指定版本和纠错级别 --><QRCodevalue="Version Control Example":version="5"type="Q"/><!-- 动态数据绑定 --><input v-model="dynamicValue" placeholder="输入二维码内容"><QRCode :value="dynamicValue" /></div>
</template><script setup>
import { ref } from 'vue'
import QRCode from '@/components/QRCode/QRCode.vue'const dynamicValue = ref('')
const handleGenerated = (dataUrl) => {console.log('生成成功:', dataUrl)
}
const handleError = (error) => {console.error('生成失败:', error)
}
</script><style scoped>
.examples {display: grid;gap: 2rem;padding: 2rem;
}input {padding: 0.5rem;border: 1px solid #ccc;border-radius: 4px;width: 300px;
}
</style>

组件特点:

  1. 使用qrcodejs2实现二维码生成
  2. 添加了缓存机制提升性能
  3. 支持响应式属性变化
  4. 完善的错误处理和事件通知
  5. 可访问性优化(屏幕阅读器支持)
  6. 自动清理旧实例避免内存泄漏
  7. MutationObserver监听DOM变化确保事件触发
  8. 类型校验和参数验证

扩展建议:

  1. 可以添加二维码下载功能
  2. 支持二维码Logo叠加
  3. 添加loading状态提示
  4. 支持扫描结果解码预览
  5. 添加二维码有效性验证功能

📚代码测试

会有一个报错

TypeError: Cannot read properties of undefined (reading '_android')

📚整理后主要代码

📘定义组件 \src\components\QRCode\QRCode.vue

<template><div class="qr-code"><QrcodeVue:value="value":size="size":level="type":background="colorLight":foreground="colorDark":margin="margin":version="version"@render="handleGenerated"@renderError="handleError"/><span class="sr-only">QR Code: {{ value }}</span></div>
</template><script setup>
import {onMounted} from 'vue'
import QrcodeVue from 'qrcode.vue'const props = defineProps({value: {type: String,required: true},type: {type: String,default: 'H',validator(value) {return ['L', 'M', 'Q', 'H'].includes(value.toUpperCase())}},size: {type: Number,default: 200},colorDark: {type: String,default: '#000000'},colorLight: {type: String,default: '#ffffff'},margin: {type: Number,default: 4},version: {type: Number,default: undefined}
})const emit = defineEmits(['generated', 'error'])const handleGenerated = (dataUrl) => {emit('generated', dataUrl)
}const handleError = (error) => {emit('error', error)
}onMounted(() => {if (!props.value) {emit('error', new Error('QR code value is required'))}
})
</script><style scoped>
.sr-only {position: absolute;width: 1px;height: 1px;padding: 0;margin: -1px;overflow: hidden;clip: rect(0, 0, 0, 0);border: 0;
}.qr-code {display: inline-block;line-height: 0;
}
</style>

📘调用 \src\views\QRCodeView.vue

<template><div class="qrcode-demo"><h2>二维码生成示例</h2><!-- 示例1:基础用法 --><section class="demo-section"><h3>基础用法</h3><div class="demo-box"><QRCode value="https://deepseek.com" /><div class="description">默认配置的二维码</div></div></section><!-- 示例2:自定义样式 --><section class="demo-section"><h3>自定义样式</h3><div class="demo-box"><QRCodevalue="https://deepseek.com":size="250"color-dark="#2c3e50"color-light="#ecf0f1"/><div class="description">自定义大小和颜色</div></div></section><!-- 示例3:带事件处理 --><section class="demo-section"><h3>事件处理</h3><div class="demo-box"><QRCodevalue="Event Example":margin="10"@generated="handleGenerated"@error="handleError"/><div class="status-message" :class="{ error: hasError }">{{ statusMessage }}</div></div></section><!-- 示例4:纠错级别 --><section class="demo-section"><h3>纠错级别</h3><div class="demo-box"><QRCodevalue="Error Correction Example"type="Q"/><div class="description">使用 Q 级别纠错(约25%)</div></div></section><!-- 示例5:动态内容 --><section class="demo-section"><h3>动态内容</h3><div class="demo-box"><div class="input-group"><inputv-model="dynamicValue"placeholder="输入二维码内容"class="demo-input"></div><QRCode:value="dynamicValue || '请输入内容'":size="200"/></div></section></div>
</template><script setup>
import { ref } from 'vue'
import QRCode from '@/components/QRCode/QRCode.vue'const dynamicValue = ref('')
const statusMessage = ref('')
const hasError = ref(false)const handleGenerated = (dataUrl) => {statusMessage.value = '二维码生成成功!'hasError.value = falseconsole.log('QR Code generated:', dataUrl)
}const handleError = (error) => {statusMessage.value = '生成失败:' + error.messagehasError.value = trueconsole.error('QR Code generation failed:', error)
}
</script><style scoped>
.qrcode-demo {padding: 20px;max-width: 800px;margin: 0 auto;
}h2 {color: #2c3e50;text-align: center;margin-bottom: 30px;
}.demo-section {margin-bottom: 30px;padding: 20px;border: 1px solid #ebeef5;border-radius: 8px;background: white;box-shadow: 0 2px 12px 0 rgba(0,0,0,0.05);
}h3 {color: #2c3e50;margin-bottom: 15px;
}.demo-box {display: flex;flex-direction: column;align-items: center;gap: 15px;padding: 20px;background: #f8f9fa;border-radius: 6px;
}.description {color: #666;font-size: 14px;text-align: center;
}.input-group {width: 100%;max-width: 300px;margin-bottom: 15px;
}.demo-input {width: 100%;padding: 8px 12px;border: 1px solid #dcdfe6;border-radius: 4px;font-size: 14px;
}.demo-input:focus {outline: none;border-color: #409eff;
}.status-message {padding: 8px 12px;border-radius: 4px;background: #f0f9eb;color: #67c23a;font-size: 14px;
}.status-message.error {background: #fef0f0;color: #f56c6c;
}@media (max-width: 768px) {.qrcode-demo {padding: 10px;}.demo-section {padding: 15px;}.demo-box {padding: 15px;}
}
</style>

📚测试代码正常跑通,附其他基本代码

  • 添加路由
  • 页面展示入口

📘编写路由 src\router\index.js

\router\index.js

import { createRouter, createWebHistory } from 'vue-router'
import RightClickMenuView from '../views/RightClickMenuView.vue'
import RangePickerView from '../views/RangePickerView.vue'const router = createRouter({history: createWebHistory(import.meta.env.BASE_URL),routes: [{path: '/',name: 'progress',component:  () => import('../views/ProgressView.vue'),},{path: '/tabs',name: 'tabs',// route level code-splitting// this generates a separate chunk (About.[hash].js) for this route// which is lazy-loaded when the route is visited.// 标签页(Tabs)component: () => import('../views/TabsView.vue'),},{path: '/accordion',name: 'accordion',// 折叠面板(Accordion)component: () => import('../views/AccordionView.vue'),},{path: '/timeline',name: 'timeline',// 时间线(Timeline)component: () => import('../views/TimelineView.vue'),},{path: '/backToTop',name: 'backToTop',component: () => import('../views/BackToTopView.vue')},{path: '/notification',name: 'notification',component: () => import('../views/NotificationView.vue')},{path: '/card',name: 'card',component: () => import('../views/CardView.vue')},{path: '/infiniteScroll',name: 'infiniteScroll',component: () => import('../views/InfiniteScrollView.vue')},{path: '/switch',name: 'switch',component: () => import('../views/SwitchView.vue')},{path: '/sidebar',name: 'sidebar',component: () => import('../views/SidebarView.vue')},{path: '/breadcrumbs',name: 'breadcrumbs',component: () => import('../views/BreadcrumbsView.vue')},{path: '/masonryLayout',name: 'masonryLayout',component: () => import('../views/MasonryLayoutView.vue')},{path: '/rating',name: 'rating',component: () => import('../views/RatingView.vue')},{path: '/datePicker',name: 'datePicker',component: () => import('../views/DatePickerView.vue')},{path: '/colorPicker',name: 'colorPicker',component: () => import('../views/ColorPickerView.vue')},{path: '/rightClickMenu',name: 'rightClickMenu',component: RightClickMenuView},{path: '/rangePicker',name: 'rangePicker',component: () => import('../views/RangePickerView.vue')},{path: '/navbar',name: 'navbar',component: () => import('../views/NavbarView.vue')},{path: '/formValidation',name: 'formValidation',component: () => import('../views/FormValidationView.vue')},{path: '/copyToClipboard',name: 'copyToClipboard',component: () => import('../views/CopyToClipboardView.vue')},{path: '/clickAnimations',name: 'clickAnimations',component: () => import('../views/ClickAnimationsView.vue')},{path: '/thumbnailList',name: 'thumbnailList',component: () => import('../views/ThumbnailListView.vue')},{path: '/keyboardShortcuts',name: 'keyboardShortcuts',component: () => import('../views/KeyboardShortcutsView.vue')},{path: '/commentSystem',name: 'commentSystem',component: () => import('../views/CommentSystemView.vue')},{path: '/qRCode',name: 'qRCode',component: () => import('../views/QRCodeView.vue')}],
})export default router

📘编写展示入口 src\App.vue

 src\App.vue

<script setup>
import { RouterLink, RouterView } from 'vue-router'
import HelloWorld from './components/HelloWorld.vue'
</script><template><header><img alt="Vue logo" class="logo" src="@/assets/logo.svg" width="125" height="125" /><div class="wrapper"><HelloWorld msg="You did it!" /><nav><RouterLink to="/">Progress</RouterLink><RouterLink to="/tabs">Tabs</RouterLink><RouterLink to="/accordion">Accordion</RouterLink><RouterLink to="/timeline">Timeline</RouterLink><RouterLink to="/backToTop">BackToTop</RouterLink><RouterLink to="/notification">Notification</RouterLink><RouterLink to="/card">Card</RouterLink><RouterLink to="/infiniteScroll">InfiniteScroll</RouterLink><RouterLink to="/switch">Switch</RouterLink><RouterLink to="/sidebar">Sidebar</RouterLink><RouterLink to="/breadcrumbs">Breadcrumbs</RouterLink><RouterLink to="/masonryLayout">MasonryLayout</RouterLink><RouterLink to="/rating">Rating</RouterLink><RouterLink to="/datePicker">DatePicker</RouterLink><RouterLink to="/colorPicker">ColorPicker</RouterLink><RouterLink to="/rightClickMenu">RightClickMenu</RouterLink><RouterLink to="/rangePicker">RangePicker</RouterLink><RouterLink to="/navbar">Navbar</RouterLink><RouterLink to="/formValidation">FormValidation</RouterLink><RouterLink to="/copyToClipboard">CopyToClipboard</RouterLink><RouterLink to="/clickAnimations">ClickAnimations</RouterLink><RouterLink to="/thumbnailList">ThumbnailList</RouterLink><RouterLink to="/keyboardShortcuts">KeyboardShortcuts</RouterLink><RouterLink to="/commentSystem">CommentSystem</RouterLink><RouterLink to="/qRCode">QRCode</RouterLink></nav></div></header><RouterView />
</template><style scoped>
header {line-height: 1.5;max-height: 100vh;
}.logo {display: block;margin: 0 auto 2rem;
}nav {width: 100%;font-size: 12px;text-align: center;margin-top: 2rem;
}nav a.router-link-exact-active {color: var(--color-text);
}nav a.router-link-exact-active:hover {background-color: transparent;
}nav a {display: inline-block;padding: 0 1rem;border-left: 1px solid var(--color-border);
}nav a:first-of-type {border: 0;
}@media (min-width: 1024px) {header {display: flex;place-items: center;padding-right: calc(var(--section-gap) / 2);}.logo {margin: 0 2rem 0 0;}header .wrapper {display: flex;place-items: flex-start;flex-wrap: wrap;}nav {text-align: left;margin-left: -1rem;font-size: 1rem;padding: 1rem 0;margin-top: 1rem;}
}
</style>

📚页面效果

页面效果

📚相关文章

 

———— 相 关 文 章 ————

 

  1. 0基础3步部署自己的DeepSeek安装步骤

  2. DeepSeek 助力 Vue 开发:打造丝滑的步骤条(Step bar)https://blog.csdn.net/qq_33650655/article/details/145560497

  3. DeepSeek 助力 Vue 开发:打造丝滑的进度条(Progress Bar)https://blog.csdn.net/qq_33650655/article/details/145577034

  4. 自己部署 DeepSeek 助力 Vue 开发:打造丝滑的标签页(Tabs)https://blog.csdn.net/qq_33650655/article/details/145587999

  5. 自己部署 DeepSeek 助力 Vue 开发:打造丝滑的折叠面板(Accordion)https://blog.csdn.net/qq_33650655/article/details/145590404

  6. 自己部署 DeepSeek 助力 Vue 开发:打造丝滑的时间线(Timeline )https://blog.csdn.net/qq_33650655/article/details/145597372

  7. DeepSeek 助力 Vue 开发:打造丝滑的返回顶部按钮(Back to Top)https://blog.csdn.net/qq_33650655/article/details/145615550

  8. DeepSeek 助力 Vue 开发:打造丝滑的通知栏(Notification Bar)https://blog.csdn.net/qq_33650655/article/details/145620055

  9. DeepSeek 助力 Vue 开发:打造丝滑的卡片(Card)https://blog.csdn.net/qq_33650655/article/details/145634564

  10. DeepSeek 助力 Vue 开发:打造丝滑的无限滚动(Infinite Scroll)https://blog.csdn.net/qq_33650655/article/details/145638452

  11. DeepSeek 助力 Vue 开发:打造丝滑的开关切换(Switch)https://blog.csdn.net/qq_33650655/article/details/145644151

  12. DeepSeek 助力 Vue 开发:打造丝滑的侧边栏(Sidebar)https://blog.csdn.net/qq_33650655/article/details/145654204

  13. DeepSeek 助力 Vue 开发:打造丝滑的面包屑导航(Breadcrumbs)https://blog.csdn.net/qq_33650655/article/details/145656895

  14. DeepSeek 助力 Vue 开发:打造丝滑的瀑布流布局(Masonry Layout)https://blog.csdn.net/qq_33650655/article/details/145663699

  15. DeepSeek 助力 Vue 开发:打造丝滑的评分组件(Rating)https://blog.csdn.net/qq_33650655/article/details/145664576

  16. DeepSeek 助力 Vue 开发:打造丝滑的日期选择器(Date Picker),未使用第三方插件 https://blog.csdn.net/qq_33650655/article/details/145673279

  17. DeepSeek 助力 Vue 开发:打造丝滑的颜色选择器(Color Picker)https://blog.csdn.net/qq_33650655/article/details/145689522

  18. DeepSeek 助力 Vue 开发:打造丝滑的右键菜单(RightClickMenu)https://blog.csdn.net/qq_33650655/article/details/145706658

  19. DeepSeek 助力 Vue 开发:打造丝滑的范围选择器(Range Picker)https://blog.csdn.net/qq_33650655/article/details/145713572

  20. DeepSeek 助力 Vue 开发:打造丝滑的导航栏(Navbar)https://blog.csdn.net/qq_33650655/article/details/145732421

  21. DeepSeek 助力 Vue 开发:打造丝滑的表单验证(Form Validation)https://blog.csdn.net/qq_33650655/article/details/145735582

  22. DeepSeek 助力 Vue 开发:打造丝滑的复制到剪贴板(Copy to Clipboard)https://blog.csdn.net/qq_33650655/article/details/145739569

  23. DeepSeek 助力 Vue 开发:打造丝滑的点击动画(Click Animations)https://blog.csdn.net/qq_33650655/article/details/145766184

  24. DeepSeek 助力 Vue 开发:打造丝滑的缩略图列表(Thumbnail List)https://blog.csdn.net/qq_33650655/article/details/145776679

  25. DeepSeek 助力 Vue 开发:打造丝滑的 键盘快捷键(Keyboard Shortcuts) https://blog.csdn.net/qq_33650655/article/details/145780227

  26. DeepSeek 助力 Vue 开发:打造丝滑的评论系统(Comment System)https://blog.csdn.net/qq_33650655/article/details/145781104

到此这篇文章就介绍到这了,更多精彩内容请关注本人以前的文章或继续浏览下面的文章,创作不易,如果能帮助到大家,希望大家多多支持宝码香车~💕,若转载本文,一定注明本文链接。


整理不易,点赞关注宝码香车

更多专栏订阅推荐:
👍 html+css+js 绚丽效果
💕 vue
✈️ Electron
⭐️ js
📝 字符串
✍️ 时间对象(Date())操作

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/896264.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

一文详解U盘启动UEFI/Legacy方式以及GPT/MBR关系

对于装系统的老手而说一直想研究一下装系统的原理&#xff0c;以及面对一些问题时的解决思路&#xff0c;故对以前的方法进行原理上的解释&#xff0c;主要想理解其底层原理。 引导模式 MBR分区可以同时支持UEFI和Legacy引导&#xff0c;我们可以看一下微pe制作的启动盘&#…

回合制游戏文字版(升级)

//在上一篇博客的基础上&#xff0c;加了细节的改动 //改动&#xff1a;添加了外貌&#xff0c;性别&#xff0c;招式的细节描绘&#xff1b;添加了个人信息展示界面 //一创建java文件1&#xff0c;命名为playGame package test2;import java.util.Random;public class play…

halcon三维点云数据处理(二十五)moments_object_model_3d

目录 一、moments_object_model_3d例程二、moments_object_model_3d函数三、效果图一、moments_object_model_3d例程 这个例子说明了如何使用moments_object_model_3d运算符来将3D数据与x、y、z坐标轴对齐。在实际应用中,通过3D传感器获取的物体模型可能具有一个与物体主轴不…

一周学会Flask3 Python Web开发-flask3上下文全局变量session,g和current_app

锋哥原创的Flask3 Python Web开发 Flask3视频教程&#xff1a; 2025版 Flask3 Python web开发 视频教程(无废话版) 玩命更新中~_哔哩哔哩_bilibili flask3提供了session,g和current_app上下文全局变量来方便我们操作访问数据。 以下是一个表格&#xff0c;用于比较Flask中的…

antv G6绘制流程图

效果图&#xff08;优点&#xff1a;可以自定义每一条折线的颜色&#xff0c;可以自定义节点的颜色&#xff0c;以及折线的计算样式等&#xff09;&#xff1a; 代码&#xff1a; <!-- 流程图组件 --> <template><div id"container"></div>…

DeepSeek-R1本地部署保姆级教程

一、DeepSeek-R1本地部署配置要求 &#xff08;一&#xff09;轻量级模型 ▌DeepSeek-R1-1.5B 内存容量&#xff1a;≥8GB 显卡需求&#xff1a;支持CPU推理&#xff08;无需独立GPU&#xff09; 适用场景&#xff1a;本地环境验证测试/Ollama集成调试 &#xff08;二&a…

2025-spring boot 之多数据源管理

1、是使用Spring提供的AbstractRoutingDataSource抽象类 注入多个数据源。 创建 DataSourceConfig 配置类 通过spring jdbc 提供的带路由的抽象数据源 AbstractRoutingDataSource import org.springframework.beans.factory.annotation.Autowired; import org.springframew…

keycloak - 开发环境的配置持久化

keycloak - 开发环境的配置持久化 前情提要&#xff1a; Keycloak - docker 运行 & 前端集成 本来是想顺便试一下 Okta 集成的&#xff0c;但是发现 Okta 没有本地的 docker 镜像&#xff0c;他们毕竟是做 Identity as a service……算了…… 更新后的 docker compose 如…

项目实战--网页五子棋(匹配模块)(4)

上期我们完成了游戏大厅的前端部分内容&#xff0c;今天我们实现后端部分内容 1. 维护在线用户 在用户登录成功后&#xff0c;我们可以维护好用户的websocket会话&#xff0c;把用户表示为在线状态&#xff0c;方便获取到用户的websocket会话 package org.ting.j20250110_g…

第4章 4.4 EF Core数据库迁移 Add-Migration UpDate-Database

4.4.1 数据库迁移原理 总结一下就是&#xff1a; 1. 数据库迁移命令的执行&#xff0c;其实就是生成在数据库执行的脚本代码&#xff08;两个文件&#xff1a;数字_迁移名.cs 数字_迁移名.Designer.cs&#xff09;&#xff0c;用于对数据库进行定义和修饰。 2. 数据库迁移…

Spring Boot + JSqlParser:全面解析数据隔离最佳实践

Spring Boot JSqlParser&#xff1a;全面解析数据隔离最佳实践 在构建多租户系统或需要进行数据权限控制的应用时&#xff0c;数据隔离是一个至关重要的课题。不同租户之间的数据隔离不仅能够确保数据的安全性&#xff0c;还能提高系统的灵活性和可维护性。随着业务的扩展和需…

51单片机编程学习笔记——点亮LED

大纲 器件51单片机开发板总结 安装驱动点亮LED烧录 随着最近机器人爆火&#xff0c;之前写的ROS2系列博客《Robot Operating System》也获得了更多的关注。我决定在机器人领域里再走一步&#xff0c;于是想到可以学习单片机。研究了下学习路径&#xff0c;最后还是选择先从51单…

Java String 类

Java String 类常用方法详解 在 Java 编程里&#xff0c;字符串操作十分常见&#xff0c;而 String 类作为 Java 标准库的核心类&#xff0c;用于表示不可变的字符序列。任何对字符串的修改操作都会返回一个新的字符串对象&#xff0c;不会改变原始字符串。本文将详细介绍 Str…

9.【线性代数】—— 线性相关性, 向量空间的基,维数

九 线性相关性&#xff0c; 向量空间的基&#xff0c;维数 Ax0 什么情况下无解(x不为零向量)1. 向量组的线性无关性2.向量组生成一个空间(S)3. 向量空间的一组基&#xff1a;都满足向量个数相同4. 空间维数 基向量的个数 Ax0 什么情况下无解(x不为零向量) Ax0无解&#xff0c…

蓝桥杯单片机组第十二届省赛第二批次

前言 第十二届省赛涉及知识点&#xff1a;NE555频率数据读取&#xff0c;NE555频率转换周期&#xff0c;PCF8591同时测量光敏电阻和电位器的电压、按键长短按判断。 本试题涉及模块较少&#xff0c;题目不难&#xff0c;基本上准备充分的都能完整的实现每一个功能&#xff0c;并…

opencv:距离变换 cv2.distanceTransform

函数 cv2.distanceTransform() 用于计算图像中每一个非零点像素与其最近的零点像素之间的距离&#xff08;Distance Transform&#xff0c; DT算法&#xff09;,输出的是保存每一个非零点与最近零点的距离信息&#xff1b;图像上越亮的点&#xff0c;代表了离零点的距离越远。 …

基于Spring Boot的党员学习交流平台设计与实现(LW+源码+讲解)

专注于大学生项目实战开发,讲解,毕业答疑辅导&#xff0c;欢迎高校老师/同行前辈交流合作✌。 技术范围&#xff1a;SpringBoot、Vue、SSM、HLMT、小程序、Jsp、PHP、Nodejs、Python、爬虫、数据可视化、安卓app、大数据、物联网、机器学习等设计与开发。 主要内容&#xff1a;…

自动驾驶两个传感器之间的坐标系转换

有两种方式可以实现两个坐标系的转换。 车身坐标系下一个点p_car&#xff0c;需要转换到相机坐标系下&#xff0c;旋转矩阵R_car2Cam&#xff0c;平移矩阵T_car2Cam。点p_car在相机坐标系下记p_cam. 方法1&#xff1a;先旋转再平移 p_cam T_car2Cam * p_car T_car2Cam 需要注…

k8s ssl 漏洞修复

针对Kubernetes集群中SSL/TLS协议信息泄露漏洞&#xff08;CVE-2016-2183&#xff09;的修复&#xff0c;需重点修改涉及弱加密算法的组件配置。以下是具体修复步骤及验证方法&#xff1a; 一、漏洞修复步骤 1. 修复etcd服务 修改配置文件 &#xff1a; 编辑 /etc/kubernetes/…

数字IC后端培训教程| 芯片后端实战项目中base layer drc violation解析

今天分享一个咱们社区IC后端训练营学员遇到的一个经典DRC案例。这个DRC Violation的名字为PP.S.9(这里的PP就是Plus P)。这一层是属于管子的base layer。更多关于base layer的介绍&#xff0c;可以查看下面这份教程。 https://alidocs.dingtalk.com/api/doc/transit?spaceId5…