-
vue2.0组件之间的传值
“down”—>指的是下的意思,即父组件向子组件传值,用props;“up”—>指的是上的意思,即子组件想父组件传值,用emit。
### 1.子组件向父组件的传值:
*Child.vue*
```vue
子组件
想父组件传值
export default{
name: 'child',…
fxxqq updated
6 years ago
-
增加tagsView功能步骤:
1,从vue-element-admin复制文件:
vue-admin-template\srclayout\components\TagsView.vue
vue-admin-template\srcstore\modules\tagsView.js
vue-admin-template\src\components\ScrollPane 文件夹
v…
jee4a updated
2 years ago
-
As of version v0.3.2 the syntax highlighting no longer triggers for me because my templates don't match the pattern ``template: ` ``.
My vue components are defined as something like the following:
…
-
I'm having this gulp task compiling vue files:
```
module.exports = function (gulp, plugins, options, envOptions) {
return function () {
return gulp.src(['/*.vue'], { follow: 'true' …
-
### Version
2.6.10
### Reproduction link
[https://codesandbox.io/s/vue-template-9r28t](https://codesandbox.io/s/vue-template-9r28t)
### Steps to reproduce
Visit the repo and check out the tem…
-
**Vue-datepicker-next version**: 1.0.3
**Vue version**: 3.2.47
**Browser**: All
**Steps to reproduce**
Create a new vue-project (`npm create vue@3`). I did not select any specials, such as types…
-
### app.vue
```
{{ title }}
export default {
data () {
// can't put breakpoint below
return {
title: 'hello human !'
}
},
methods:…
-
```js
overrides: [{
extends: ['plugin:yml/standard'],
files: ['*.yaml', '*.yml'],
parser: 'yaml-eslint-parser',
rules: {
'no-trailing-spaces': ['error', { ignoreComments: t…
-
### tdesign-vue-next 版本
1.7.2
### 重现链接
_No response_
### 重现步骤
# APP.vue
``` vue
import zhConfig from 'tdesign-vue-next/es/locale/zh_CN'
import { computed } from 'vue'
impo…
-
所有的loader都没加“-loader”?比如 loader: 'vue',
vue的template 是 loader: 'vue-loader'