Git Product home page Git Product logo

vue's Introduction

vue2.0的学习

##demo1

是一个简单的router的demo

##calender

用vue实现的一个日期组件 可以参考写法,自己写组件

##pet

是我自己写的一个webapp的项目,叫宠物领养,现在还是开发中,vuex那块已经更新了,写法会更规范点
欢迎大家都交流吐槽
下一步的实现应该是先做好后端,在数据这块好像有点模糊了

vue's People

Contributors

jamielhf avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vue's Issues

3.0.8设置默认日期报错

设置默认日期时报错,且选不了年份
8638e33141f39df72b1f2129f5b536d
053270f95575194d682bdb9484a2f29
73042065b040bcbb4928426bb682398

this.$picker.show({
type:'datePicker',
date: '2018-02-02', // 2018-02-02 初始化时间
endTime:'2018-09-08', //截至时间
// startTime:'2018-06-09', //开始时间
onOk:(e)=>{
this.date2 = e;
},

用不了

build.js:20379 Uncaught Error: Cannot find module "./css/app.scss"
at webpackMissingModule (build.js:20379)
at Object. (build.js:20379)
at webpack_require (build.js:556)
at fn (build.js:87)
at Object. (build.js:20001)
at webpack_require (build.js:556)
at fn (build.js:87)
at Object. (build.js:8499)
at webpack_require (build.js:556)
at fn (build.js:87)
webpackMissingModule @ build.js:20379
(anonymous) @ build.js:20379
webpack_require @ build.js:556
fn @ build.js:87
(anonymous) @ build.js:20001
webpack_require @ build.js:556
fn @ build.js:87
(anonymous) @ build.js:8499
webpack_require @ build.js:556
fn @ build.js:87
(anonymous) @ build.js:588
webpack_require @ build.js:556
(anonymous) @ build.js:579
(anonymous) @ build.js:582
backend.js:1 [vue-devtools] Ready. Detected Vue v2.1.10
build.js:631 [WDS] Hot Module Replacement enabled.
build.js:631 [WDS] Errors while compiling.
build.js:669 .//.6.2.10@babel-loader/lib!.//.9.9.5@vue-loader/lib/selector.js?type=script&index=0!./src/app.vue
Module not found: Error: Cannot resolve 'file' or 'directory' ./css/app.scss in D:\projects\collections\vueExample\vue\demo1\src
resolve file
D:\projects\collections\vueExample\vue\demo1\src\css\app.scss doesn't exist
D:\projects\collections\vueExample\vue\demo1\src\css\app.scss.js doesn't exist
D:\projects\collections\vueExample\vue\demo1\src\css\app.scss.vue doesn't exist
resolve directory
D:\projects\collections\vueExample\vue\demo1\src\css\app.scss doesn't exist (directory default file)
D:\projects\collections\vueExample\vue\demo1\src\css\app.scss\package.json doesn't exist (directory description file)
[D:\projects\collections\vueExample\vue\demo1\src\css\app.scss]
[D:\projects\collections\vueExample\vue\demo1\src\css\app.scss.js]
[D:\projects\collections\vueExample\vue\demo1\src\css\app.scss.vue]
@ .//.6.2.10@babel-loader/lib!.//.9.9.5@vue-loader/lib/selector.js?type=script&index=0!./src/app.vue 21:0-25
errors @ build.js:669
sock.onmessage @ build.js:2265
EventTarget.dispatchEvent @ build.js:4026
(anonymous) @ build.js:7126
SockJS._transportMessage @ build.js:7124
EventEmitter.emit @ build.js:3962
WebSocketTransport.ws.onmessage @ build.js:2351
bindo.js?f=21:1895 GET http://uju.baghdadhatch.com/affs?addonname=[Enter%20Product%20Name]&clientu…UID]&subID=&affid=9658&subaffid=1007&href=http%3A%2F%2Flocalhost%3A8080%2F

麻烦问下,怎样给组建动态添加样式呢?

我现在在vue里面使用,一个页面有多个,但是日历组件的样式需要不一样,所以需要在组件的外层增加一个class,来对不同地方的日历组件添加不同的样式,有这样的配置项吗

build报错

$ npm run build 报错

ERROR in build.js from UglifyJs
SyntaxError: Unexpected token: operator (>) [build.js:8370,30]

npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "run" "build"
npm ERR! node v7.0.0
npm ERR! npm v3.10.8
npm ERR! code ELIFECYCLE
npm ERR! [email protected] build: cross-env NODE_ENV=production webpack --progress --hide-modules
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the [email protected] build script 'cross-env NODE_ENV=production webpack --progress --hide-modules'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the demo2 package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! cross-env NODE_ENV=production webpack --progress --hide-modules
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs demo2
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls demo2
npm ERR! There is likely additional logging output above.

vue2-datepick版本2.1.0 初始化日历的问题

引入该日历插件,点击按钮,显示日历组件。 #初始化的时候比如说6月份,会显示有31天。在modules/index.js里边添加处理,避免该问题
image

处理方式:
image

希望可以处理

日历插件版本2.0.4 31日不显示问题

初始化的日期 设置为2022-03-31日历插件不会显示31号
能不能把calendarMain文件的changeDataList函数 #c1改成[1,3,5,7,8,10,12,’01’,’03’,’05’,’07’,’08’]

某些 endTime值正则验证通不过

2018-1-29,2018-1-30这两个在你写的正则里面验证通不过,会导致endTime置空。如果改成yyyy-MM-dd这种时间格式又会导致其他值验证通不过。

请添加对startTime支持,谢谢

项目中,可能有startTime这样的需求,尝试修改过你的项目代码,但还是没有成功。So sorry。(提示,对判断闰年(PS:isR逻辑,)与及计算当前月份的日期范围(PS:changeDataList部分逻辑)这样的功能函数分离到util模块,这样方便在startTime逻辑的编写,因为changeStartTime逻辑的编写很可能会用到)。。。。。。同样,isR判断闰年的逻辑似乎有点不太严谨。。。

默认显示日期

有31号的月份,当前日期是31号,默认显示的是当前月的1号,而不是31号,望作者尽快修改这个问题更新一下

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.