Comments (9)
你好,请问this指向谁?
from vue-ydui.
this指向的是当前组件吧,我是在入口文件中Vue.use(YDUI)
from vue-ydui.
可否看看你的代码呢?
from vue-ydui.
我把文档示例代码放到.vue组件里面是一样的效果,Error in mounted hook: (found in )
TypeError: Cannot read property '$on' of undefined
from vue-ydui.
你好,感谢你提出的问题,现问题已经修复,但稍微改动下原来的调用方法。原 this.$yduiBus.$emit() 改为 window.$yduiBus.$emit()。
from vue-ydui.
`
<yd-button @click.native="show1 = true" size="large">带取消
<yd-actionsheet :items="myItems1" v-model="show1" cancel="取消"></yd-actionsheet>
</div>
你好,我在调用这个组件的时候,调用item的method时会报错this是未定义的。 以下是我的webpack的配置文件
module.exports = {
entry: "./entry.js",
output: {
path: __dirname,
filename: "bundle.js"
},
module: {
loaders: [
{ test:/.css$/, loader: "style-loader!css-loader"},
{ test:/.vue$/, loader: "vue-loader"}
],
},
resolve: {
alias: {
vue: 'vue/dist/vue.js'
}
}
}
`
请问我是什么地方出错了呢,谢谢! @ydcss
from vue-ydui.
你好,单独引用dialog组件正常吗?
export default { mounted() { this.$dialog.toast({mes: '咔擦,此人太帅!'}); } }
from vue-ydui.
不行哦,Uncaught TypeError: Cannot read property 'toast' of undefined,这是报错的信息。
from vue-ydui.
同学们注意啦!官方示例代码中“yd-actionsheet”组件调用了“this.$dialog”组件,若为按需引用组件需另引入dialog组件。
from vue-ydui.
Related Issues (20)
- DateTime组件只想显示三个日期
- 血汗钱。。。。
- 作者斐讯钱退出来没有呢? HOT 1
- coding的个人版页面下线了,看不了文档了 HOT 1
- yd-scrollnav
- Slider-item里面的img可以是动态的写入吗?比如 HOT 1
- rollnotice 支持rem 修改方法
- 大佬,官网 http://www.ydui.org/ 无法访问,您检查一下哦。
- 大佬,input标签绑定失焦事件后,清除clear图标点击会触发失焦事件
- 级联插件只支持三级么?
- Yd
- YD日期控件,打开默认选中不是当前日期
- 时间组件没有单独的年选项
- 为什么HTML版本的不更新了 HOT 2
- ydui-滚动加载时,$refs没有yd-infinitescroll的ref
- 文档无法打开 HOT 1
- 可惜了,这么好的项目 HOT 1
- 2022找到了可fq访问的文档链接
- ydui-jquery和 ydui-vue文档链接已更新
- jquery版文档与vue版文档可直接访问
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue-ydui.