• Home
  • Popular
  • Login
  • Signup
  • Cookie
  • Terms of Service
  • Privacy Policy
0
avatar

Posted by Mark DS

2 months ago

Why does writing the same HTML code in a template perform so poorly compared to rendering it with v-html

Why does writing the same HTML code in a template perform so poorly compared to rendering it with v-html demo

0

can this situation do not show `class` html attr?

For example, 1 I don't want him to match the css style below Because logically I don't think he has any pattern [class]{ color:red // mean, isA or isB... but {isA:false, isB:false} ... See More

0
avatar

Posted by Mark DS

2 months ago

Npm run dev with specific url

Hi, I usually use Laravel + vuejs. But for a new projet it's a vuejs projet + backend For dev when i do npm run dev, the server start on localhost:5174. How can i set node to listen ... See More

0
avatar

Posted by Mark DS

2 months ago

Option to automatically forward slots to children

Related to discussion #5962. I frequently find myself pasting this incantation: e != 'default')" #[name]="slotData"> "> When creating an outer component where you need to pas ... See More

0
avatar

Posted by Mark DS

2 months ago

Vue 3 performance is very low when compared to Vue 2

Scenario I have created a Grid component and updated the column and row on the mounted event dynamically based on the data source. The performance issue occurs in a in a large number ... See More

0
avatar

Posted by Mark DS

2 months ago

Watching clientX/clientY values as PROPS only work when mouse moves alongside the x-achsis

Im using with Vue 3 with Typescript My parentComponent ButtonWrapper.vue contains two PrimButton.vue Components. Depending on the mousemovement within ButtonWrapper.vue i am going to ... See More

0
avatar

Posted by Mark DS

2 months ago

Generic props

Hello, I'm trying to write a component with generic props like this: import { defineComponent, PropType } from 'vue'; export default function () { return defineComponent({ name ... See More

0
avatar

Posted by Mark DS

2 months ago

Are watchers declared in methods and onMouned auto destroyed?

from the vue docs Watchers declared synchronously inside setup() or are bound to the owner component instance, and will be automatically stopped when the owner component is unmounte ... See More

0
avatar

Posted by Mark DS

2 months ago

watchEffect not triggering properly with reactive or ref objects

Vue version v3.3.4 Link to minimal reproduction https://stackblitz.com/edit/github-qgjzhk-xwmk5z?file=src%2Fpages%2FHome.vue Steps to reproduce In a component within , I used the foll ... See More

0
avatar

Posted by Mark DS

2 months ago

Use index with tailwind's dynamic class in a for-loop to manage animation-delay?

In a Nuxt project that uses tailwindcss I would like to animate a drop-down list. To do so I would like to use the v-for's index value to "configure" the transition-delay value of eac ... See More

0
avatar

Posted by Mark DS

3 months ago

vue2转vue3的问题

`const requireApi = require.context( //api 目录的相对路径 '.', //是否查询子路径 false, //查询文件的一个后缀 /.js$/ ) console.log("------------------------------ ... See More

0
avatar

Posted by Mark DS

3 months ago

ref loses type when given a default value

I have the following code snippet: type FooType = { id: string } const bar = ref() Now bar is of type Ref: However, when I initialize bar with a default value, let's say null, ... See More

0
avatar

Posted by Mark DS

2 months ago

Is ES Module import CSS supported in Vue 3.5 for Custom elements?

As part of Vue 3.5, how can we import CSS as ES modules and apply them in the shadow DOM? It was an experimental feature of the plugin that used by the community to solve most of the ... See More

0
avatar

Posted by Mark DS

2 months ago

TypeScript Linter Issue with Passing JSX Event Handler Prop in Custom Component

I’ve created a MyButton component and attempted to pass a JSX event handler prop, onClick, directly to the component without explicitly declaring it. My expectation was that th ... See More

0
avatar

Posted by Mark DS

2 months ago

How to speed up by avoiding flushCallbacks()

Hi, in my application I have an async function call to a backend api to load around 12000 data entries. This happens in around 500ms. All this is encapsulated in an async await call. ... See More

0
avatar

Posted by Mark DS

2 months ago

Is Vue dying?

Hi, It's interesting to see Vue slowly dying (at least from my perspective) as its release schedule has been laughable lately. But why? Thank you!

0
avatar

Posted by Mark DS

2 months ago

PostCSS: Is empty :deep() selector officially supported?

I created a table component: With this kind of scoped CSS: .table { /* ... */ :deep(th), :deep(td) { /* ... */ } :deep(th) { /* ... */ } :deep(th) { /* ... See More

0
avatar

Posted by Mark DS

2 months ago

Find a post in the old Vue forum

I have a comment in my code that references a thread from the old Vue forum: https://forum.vuejs.org/t/render-inside-iframe/6419. However, the link now redirects to https://github.com ... See More

0
avatar

Posted by Mark DS

2 months ago

How to become vue.js official partner or network partner.

Our company has been utilizing Vue.js for over 5 years, and we are interested in becoming a Vue.js Network Partner. Could you please provide us with guidance on the criteria and steps ... See More

0
avatar

Posted by Mark DS

2 months ago

vue2项目添加了一个新页面,dev启动一切正常,打包到ngnix上就渲染不了

我看了路由是没问题的,因为会运行mounted中的代码,body中只有标签, ... See More