ShopXO商城DIY装修组件 - 移动端可视化拖拽装修,支持小程序、H5、APP
 
 
 
Go to file
sws 259674c09c 修复hot组件中拖拽事件阻止冒泡的问题。通过注释掉`event.stopPropagation();`允许拖拽操作时事件冒泡至父元素,以触发父元素的拖拽方法。同时,修复了`start_drag_area_box`和`start_drag_btn`方法中事件修饰符的错误使用,应使用`$event.stopPropagation();`而不是`event.preventDefault();`。另外,修改了`index.vue`文件中拖拽按钮的事件修饰符从`@mousedown.prevent`更正为`@mousedown.stop`,以正确阻止事件传播。最后,调整了`nextTick`为`setTimeout`以确保DOM更新后执行,解决了组件不正确渲染的问题。
sws 2024-08-12
2024-08-12 18:10:48 +08:00
public 1.shopxo-diy装修项目,代码引入 2024-08-12 10:18:11 +08:00
src 修复hot组件中拖拽事件阻止冒泡的问题。通过注释掉`event.stopPropagation();`允许拖拽操作时事件冒泡至父元素,以触发父元素的拖拽方法。同时,修复了`start_drag_area_box`和`start_drag_btn`方法中事件修饰符的错误使用,应使用`$event.stopPropagation();`而不是`event.preventDefault();`。另外,修改了`index.vue`文件中拖拽按钮的事件修饰符从`@mousedown.prevent`更正为`@mousedown.stop`,以正确阻止事件传播。最后,调整了`nextTick`为`setTimeout`以确保DOM更新后执行,解决了组件不正确渲染的问题。 2024-08-12 18:10:48 +08:00
.env.development 修改页面显示 2024-08-12 16:52:01 +08:00
.env.production 修改页面显示 2024-08-12 16:52:01 +08:00
.env.staging 修改页面显示 2024-08-12 16:52:01 +08:00
.eslintignore 1.shopxo-diy装修项目,代码引入 2024-08-12 10:50:50 +08:00
.eslintrc-auto-import.json 解决冲突 2024-08-12 17:40:10 +08:00
.eslintrc.cjs 1.shopxo-diy装修项目,代码引入 2024-08-12 10:50:50 +08:00
.gitignore 1.shopxo-diy装修项目,代码引入 2024-08-12 10:18:11 +08:00
.prettierignore 1.shopxo-diy装修项目,代码引入 2024-08-12 10:50:50 +08:00
.prettierrc.cjs 1.shopxo-diy装修项目,代码引入 2024-08-12 10:50:50 +08:00
README.md 1.shopxo-diy装修项目,代码引入 2024-08-12 10:18:11 +08:00
index.html 1.shopxo-diy装修项目,代码引入 2024-08-12 10:18:11 +08:00
package.json 1.shopxo-diy装修项目,代码引入 2024-08-12 10:50:50 +08:00
tsconfig.app.json 1.shopxo-diy装修项目,代码引入 2024-08-12 10:18:11 +08:00
tsconfig.json 1.shopxo-diy装修项目,代码引入 2024-08-12 10:18:11 +08:00
tsconfig.node.json 1.shopxo-diy装修项目,代码引入 2024-08-12 10:18:11 +08:00
vite.config.ts 1.shopxo-diy装修项目,代码引入 2024-08-12 10:18:11 +08:00

README.md

vue3-vite

This template should help get you started developing with Vue 3 in Vite.

VSCode + Volar (and disable Vetur) + TypeScript Vue Plugin (Volar).

Type Support for .vue Imports in TS

TypeScript cannot handle type information for .vue imports by default, so we replace the tsc CLI with vue-tsc for type checking. In editors, we need TypeScript Vue Plugin (Volar) to make the TypeScript language service aware of .vue types.

If the standalone TypeScript plugin doesn't feel fast enough to you, Volar has also implemented a Take Over Mode that is more performant. You can enable it by the following steps:

  1. Disable the built-in TypeScript Extension
    1. Run Extensions: Show Built-in Extensions from VSCode's command palette
    2. Find TypeScript and JavaScript Language Features, right click and select Disable (Workspace)
  2. Reload the VSCode window by running Developer: Reload Window from the command palette.

Customize configuration

See Vite Configuration Reference.

Project Setup

npm install

Compile and Hot-Reload for Development

npm run dev

Type-Check, Compile and Minify for Production

npm run build

Lint with ESLint

npm run lint