Comments (3)
Dialog 是可以局部注册的,具体请看 文档
from avvw.
我知道可以局部注册,我说的是dialog组件 组件调用 的应用场景。
from avvw.
// 如果需要在弹窗内嵌入组件或其他自定义内容,可以使用组件调用的方式
<van-dialog
v-model="show"
title="标题"
show-cancel-button
>
<img src="https://img.yzcdn.cn/vant/apple-3.jpg">
</van-dialog>
export default {
data() {
return {
show: false
};
}
}
试下局部注册后,如上使用
export default {
components: {
'van-dialog': Dialog.Component
}
}
from avvw.
Related Issues (20)
- page 目录 和 dist目录 添加 新建目录功能 引发的问题 HOT 1
- 使用 手机实时调试 提示 [WDS] Disconnected! HOT 6
- pages文件多编译卡 HOT 1
- 第一次启动页面,会等一会儿才加载问题 HOT 1
- 有QQ群或者微信群吗? HOT 4
- 总感觉本地加载速度很慢,生产环境会好一些吗? HOT 1
- popup组件问题 HOT 3
- 关于组件调用$attrs is readonly. $listeners is readonly. HOT 1
- 这框架很棒啊 HOT 1
- 框架为啥不用axios啊 HOT 1
- 代码结构有点乱 HOT 1
- 这个项目挺好的,还有维护吗,npm i 报错 HOT 2
- 请问 如何给全局引入一个样式 HOT 2
- 关于头部传参的问题 HOT 1
- 打包后的widget上传后怎么生效的 HOT 3
- 依赖package.json "core-js": "^3.3.2", 这个依赖没有用到
- 请问下配合webpack使用后还能使用官方module store里的模块吗
- 真机同步时显示404 Not found HOT 2
- 国际化无法实现 HOT 1
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 avvw.