helicopters / wc-messagebox Goto Github PK
View Code? Open in Web Editor NEW基于 Vue 2.0 开发的 Alert, Toast, Confirm 插件, UI仿照 iOS 原生
基于 Vue 2.0 开发的 Alert, Toast, Confirm 插件, UI仿照 iOS 原生
本来项目依赖这个功能的 重新安装后 使用不了了
我想在你代码的基础上做开发,请问应该怎么本地引用?
如题,toast如何自定义打开和关闭?
兄弟demo演示代码发出来嘛,
触发事件咋搞呢
截图中展示了prompt的用法,文档里怎么没写怎么用?
最近做项目用了一下这个组件,样式挺好看的,就是有两个弹出alert会出现假死问题,希望解决
我想做 自定义的吐司提示但是 无法传入动态值,我修改自定义组件改用computed 监听vuex 的 值得动态改变 发现 组件 无法访问到 vuex @helicopters
可不可以加个loading的组件啊?
npm WARN Error: EPERM: operation not permitted, scandir 'E:\wc-messagebox\node_m odules\editorconfig\node_modules'
请问alert不支持v-html吗
(
function (doc, win) {
/** 获取像素比 /
var pixelRatio = 1 / window.devicePixelRatio
/* 通过js动态设置视口(viewport) /
document.write('')
// document.write('')
/* 条件:尺寸越大,则字体大小越大。尺寸越小,则字体大小越小。
获取html节点 */
var html = document.getElementsByTagName('html')[0]
// 获取屏幕宽度
var pageWidth = html.getBoundingClientRect().width
// 屏幕宽度 / 固定数值 = 基准值
html.style.fontSize = pageWidth / 16 + 'px'
}
)(document, window)
以这样的方式注册无效 Vue.use(Toast, {location: 'bottom', duration: 10000});
以这样的方式注册无效 Vue.use(Toast, 10000);
以这样的方式调用无效 this.$toast('手机号码不能为空',10000);
以这样的方式调用有效 this.$toast('手机号码不能为空',{ duration: 10000,location: 'top'});
RT
用起来挺好的,但是content这块我需要定制换行,我就把{{content}}改了下,加了v-html
怎么确定按钮在左边尼
Alert/tpl.vue文件里面的,要不加一下
/* 在动画结束之后, 删掉元素 */
s('.wc-messagebox__popup---').addEventListener('transitionend', ()=>{
this.show = false;
}, false);
程序连着弹2次框 点击按钮没反应 这个怎么解决啊
哥,旧版文档你昨天更新了就不见了。建议在readme里面加上旧版文档的链接
现在的按钮用的全部都是span,但是这样的话在桌面平台上鼠标显示的就是一段文字,对用户的感知并不太良好,要是做成button用户把鼠标放上去才有能点击的感觉,这样会不会好一些
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.