{"id":18496515,"url":"https://github.com/nicejade/vue-common-components","last_synced_at":"2025-09-03T08:36:30.111Z","repository":{"id":81311177,"uuid":"59286411","full_name":"nicejade/vue-common-components","owner":"nicejade","description":"Simple and common Vue1.* components，It has been stopped maintenance long ago(!已停止维护).","archived":false,"fork":false,"pushed_at":"2016-07-07T06:28:58.000Z","size":1135,"stargazers_count":15,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-12-25T17:25:30.308Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://blog.lovejade.cn/jade/vue-jade-components-demo.html","language":"Vue","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nicejade.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-05-20T10:36:17.000Z","updated_at":"2019-08-23T03:50:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"cdae1265-6f3d-4a49-b9db-1e0f5c986074","html_url":"https://github.com/nicejade/vue-common-components","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicejade%2Fvue-common-components","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicejade%2Fvue-common-components/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicejade%2Fvue-common-components/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicejade%2Fvue-common-components/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nicejade","download_url":"https://codeload.github.com/nicejade/vue-common-components/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239212565,"owners_count":19600833,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-06T13:29:52.909Z","updated_at":"2025-02-17T00:16:28.619Z","avatar_url":"https://github.com/nicejade.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch2 align=\"center\"\u003e Vue Common Components \u003c/h2\u003e\n\n![vue-common-components](http://7xoosr.com1.z0.glb.clouddn.com/vue-common-components.jpg?v1.0)\n\n## Demo and instructions\n\n[Vue Component Desc And Demo](http://nicejade.github.io/jade/vue-jade-components-demo.html#/) | ~~[vue-components-doc@gitbook](https://nicejade.gitbooks.io/vue-components-doc/content/index.html)~~\n\n\n## Prepare the environment\n\n```\n// install/update nodejs (Version 4.0 and above)\n\ngit clone https://github.com/nicejade/vue-common-components\ncd vue-common-components\n\n//安装npm插件;(PS: 可自行更改 package.json 选择所需安装的插件[gulp系非必须])\nnpm install\n\n//全局安装 webpack\nnpm install -g webpack\n\n//运行demo示例（Example Document）\ncd demo\nwebpack -w\n```\n\n## Usage by importing components  modules\n\n```js\n\u003ctemplate lang='jade'\u003e\n    \u003ccount-down :time.sync=\"time\" :is-complete-show-hms=\"isCompleteShowHms\" :start.sync=\"isStartCount\"\u003e\u003c/count-down\u003e\n    popup-toast\n\u003c/template\u003e\n\n\u003cscript type=\"text/javascript\"\u003e\nimport countDown from 'countDown'\nimport popupToast from 'popupToast'\n\nexport default {\n    data () {\n        return {\n            isCompleteShowHms: true,\n            time: 0,\n            isStartCount: false,\n        }\n    },\n    components: {\n        countDown,\n        popupToast,\n    },\n    methods: {\n        onStartCountClick: function(){\n            this.time = 9;\n            this.isStartCount = true;\n        },\n\n        showPopupToast: function( text ){\n            var toastMsg = {\n                bodyText: text,\n                timer: 2222,           //可不传；默认2000ms\n                callBackFunc: null     // 可不传，默认null；\n            }\n            this.$broadcast('show-popup-toast', toastMsg);\n        }\n    },\n    events: {\n        'on-countdown-finish': function (countNum) {\n            // callback of countdown finished(countNum)\n            this.showPopupToast( \"countdown had down; countNum = \" + countNum )\n        }\n    }\n}\n\u003c/script\u003e\n\n\u003cstyle media=\"screen\"\u003e\n.count-down-time{\n    color: #fe0;\n}\n\u003c/style\u003e\n```\n\n## Additional recommendations\n\n* 推荐结合使用 Es6 Jade Sass(webpack配置已支持) 以及 Gulp(处理sftp上传，图片压缩，雪碧图等等等等)\n* 推荐使用 Atom / SublimeText3 编辑器([如何优雅地使用Sublime Text](http://www.jeffjade.com/2015/12/15/2015-04-17-toss-sublime-text/), [新编码神器Atom使用纪要](http://www.jeffjade.com/2016/03/03/2016-03-02-how-to-use-atom/));\n* 推荐使用 Cmder 命令行工具([Win下必备神器之Cmder](http://www.jeffjade.com/2016/01/13/2016-01-13-windows-software-cmder/))\n* 其他推荐：Chrome-Vimmium，搜索神器 Listary，快启利器 Wox等，可参见 [那些所倚靠的利器记载](http://www.jeffjade.com/2016/03/17/2016-03-17-jade-tools/).\n\n\n\u003e以上内容仅代表编写 README 时之前的经验心得；后续将持续学习，探究，更新。last modify：16-06-17 。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnicejade%2Fvue-common-components","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnicejade%2Fvue-common-components","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnicejade%2Fvue-common-components/lists"}