Comments (6)
我这边好像没这个问题,估计已经修掉了?
你试试用开发版,你 clone 这个项目下来,执行 npm run bootstrap && npm run dist
然后到你的项目下安装
# 你的项目目录
npm install [你 clone 的 element 项目目录]
from element.
@QingWei-Li 试过了,还是没有生效
from element.
第二个问题,我在文档页里并没有复现问题。你测试下文档页里会报错么,具体是哪一行?
from element.
@QingWei-Li 第二个问题使用打包过后的文件就会有这个问题存在,我中午跟进下看看,我用下面这个pickerOption,只有今天
触发了onClick并得到正确结果了,其他两项虽然触发了,也没报错,但是没得到任何结果,用日期范围选择就会有错误,clone下来的项目里面dev模式没有出错。
pickerOptions1: {
shortcuts: [{
text: '今天',
onClick(picker) {
picker.$emit('pick', new Date());
}
}, {
text: '昨天',
onClick(picker) {
const date = new Date();
console.log('昨天');
picker.$emit('pick', date.getTime() - 3600 * 1000 * 24);
}
}, {
text: '一周前',
onClick(picker) {
const date = new Date();
console.log('一周前');
picker.$emit('pick', date.getTime() - 3600 * 1000 * 24 * 7);
}
}]
}
from element.
https://jsfiddle.net/cinwell_li/smawz7cj/ 并没有报错
from element.
@QingWei-Li 找到问题了,date-picker.md
和 datetime-picker.md
文档错误,picker.$emit('pick', date)
接收的是 date 对象,不能接收时间戳
from element.
Related Issues (20)
- [Bug Report] tree组件disabled状态会影响节点checked显示效果
- [Bug Report] el-cascader There is no problem in the empty icon in the disabled state
- tree table need v-model specail data for user
- el-image使用preview-src-list默认点击蒙层关闭,为啥2.0没有开关控制,3.0有啊
- [Bug Report] el-table-column slot="header"中使用el-input存在输入bug HOT 1
- [Bug Report] 在el-table 的 header 插槽中使用 el-input 输入延迟 HOT 5
- [Feature Request] el-tooltip的类型检测,能否支持对象?
- element-ui DateTimePicker format 日期格式化问题 HOT 1
- [Bug Report] el-table使用了fixed固定列后的影响 HOT 1
- [Bug Report] table多级表格中某列的子列固定,其余子列不固定,会导致不设置固定属性的子列内容渲染为空
- [Bug Report] Image组件优先加载undefine导致正常图片无法正常展示
- [Bug Report] El-calendar Hebrew
- [Bug Report] Nesting a form within an el-table and simultaneously using 'fixed' and 'ref' can result in the issue of generating two 'ref' references.
- [Bug Report] progress设置底色和文字颜色不成功
- [Bug Report] Upload组件,本地上传弹出后,点击外部遮罩部分,上传文件窗口消失,但是遮罩没有消失。
- [Bug Report] el-table使用自定义el-checkbox会和树形图标的样式重叠 HOT 1
- [Bug Report] 开发环境下的button primary样式在edge下无法正常加载? HOT 1
- [Bug Report] 官网图片显示尺寸错误 HOT 3
- [Bug Report] Statistic的倒计时功能value改变后倒计时时间未根据新的value倒计时 HOT 2
- [Bug Report] When the DateTimePicker component sets both the format and value-format properties at the same time, the time selector will malfunction
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 element.