Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

日期组件抖动 #651

Closed
Silvaer opened this issue Jul 20, 2022 · 3 comments
Closed

日期组件抖动 #651

Silvaer opened this issue Jul 20, 2022 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@Silvaer
Copy link

Silvaer commented Jul 20, 2022

Bug report 🐞

在使用Vue3+vuecli 按需引入或单独引入时,发现缺少文件导致组件抖动,引入全部样式文件可解决抖动

Version & Environment

{ "name": "test", "version": "0.1.0", "private": true, "scripts": { "serve": "vue-cli-service serve", "build": "vue-cli-service build", "lint": "vue-cli-service lint" }, "dependencies": { "@varlet/ui": "^1.27.17", "core-js": "^3.6.5", "vue": "^3.0.0" }, "devDependencies": { "@vue/cli-plugin-babel": "~4.5.15", "@vue/cli-plugin-eslint": "~4.5.15", "@vue/cli-service": "~4.5.15", "@vue/compiler-sfc": "^3.0.0", "@vue/eslint-config-prettier": "^6.0.0", "babel-eslint": "^10.1.0", "eslint": "^6.7.2", "eslint-plugin-prettier": "^3.3.1", "eslint-plugin-vue": "^7.0.0", "less": "^3.0.4", "less-loader": "^5.0.0", "prettier": "^2.2.1", "unplugin-vue-components": "^0.21.1" } }

Expectation

Actual results (or Errors)

import { createApp } from 'vue' import App from './App.vue' import { DatePicker } from '@varlet/ui' import '@varlet/ui/es/date-picker/style/index' createApp(App).use(DatePicker).mount('#app')
image
点击左右切换月份按钮会抖动。

@BeADre BeADre added the need reproduction Need reproduction label Jul 20, 2022
@BeADre
Copy link
Member

BeADre commented Jul 20, 2022

我这边不能复现你的问题,请提供一个最小复现的例子

@Silvaer
Copy link
Author

Silvaer commented Jul 20, 2022

我这边不能复现你的问题,请提供一个最小复现的例子

main.js中
image
App.vue中
image
此项目为新建无任何配置 vuecli 4.15.15+vue3

image
123

@BeADre
Copy link
Member

BeADre commented Jul 20, 2022

已复现

@BeADre BeADre added bug Something isn't working and removed need reproduction Need reproduction labels Jul 20, 2022
@BeADre BeADre closed this as completed in c1303a0 Jul 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants