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.pswp.cn/news/896264.shtml
繁體地址,請注明出處:http://hk.pswp.cn/news/896264.shtml
英文地址,請注明出處:http://en.pswp.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…