Git Product home page Git Product logo

Comments (11)

1615450788 avatar 1615450788 commented on September 15, 2024

请确认是否已引入模块 npm install vue-cron

from vue-cron.

jianyun8023 avatar jianyun8023 commented on September 15, 2024

确定引入了

from vue-cron.

jianyun8023 avatar jianyun8023 commented on September 15, 2024

引入了源码,搞定了.
我是勉强能用node的东西,自己私下拿来玩的.我猜测原因可能是引入模块后,webpack再次进行打包,导致找不到模块.
直接引入编译后的js,会报 Cannot assign to read only property 'exports' of object '#<Object>'解决办法
不过不喜欢这种方式,我选择引入你的源码编译.
对功能上提供个建议:希望增加cron反解析到ui和最近几次运行时间显示.

from vue-cron.

quixote1304629 avatar quixote1304629 commented on September 15, 2024

棒!我可以成功引入了。npm install后我也遇到找不到cron.min.js的问题。然后在报错信息里有一句提醒::npm install -save babel-polyfill(命令可能写错,我勉强记忆的),运行后再次npm install一下,便解决了。

from vue-cron.

quixote1304629 avatar quixote1304629 commented on September 15, 2024

想问下作者,以后能不能将 ‘周’ 的时间规则单独展示。不过现在这个已经很nice啦

from vue-cron.

jianyun8023 avatar jianyun8023 commented on September 15, 2024

我的是在浏览器控制台上报 找不到vue-cron模块

from vue-cron.

1615450788 avatar 1615450788 commented on September 15, 2024

@Piedpiperr 之前有考虑过将周单独抽离出来,但是发现周跟天的逻辑是有一定关联性的,而且目前已有的一些在线cron表达式生成器都没有单独出周来配置,所以我也就照旧了!

from vue-cron.

1615450788 avatar 1615450788 commented on September 15, 2024

@yihy 之前是有考虑过源码引入的,但是由于目前大家使用构建工具都是习惯性不编译node_modules的,而且社区中的同类型大型开源项目都未使用源码依赖如ElementUI,所以我使用了预发布压缩包的方式提供默认依赖,当然,如果你想实时修改或者调试完全可以依赖源码,至于你说的cron.min.js引入会报错的问题我会去检查一下

from vue-cron.

1615450788 avatar 1615450788 commented on September 15, 2024

@yihy 还有,你说的表达式的解析及反解析的问题,是我下个版本的计划,当然,如果可以的话也欢迎你的贡献😊

from vue-cron.

jianyun8023 avatar jianyun8023 commented on September 15, 2024

@1615450788 我简单看过源码.有空的时候,我去尝试修改修改.

from vue-cron.

1615450788 avatar 1615450788 commented on September 15, 2024

已于v1.0.7版本中修复 @yihy @Piedpiperr

from vue-cron.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.