{"id":20414445,"url":"https://github.com/x-extends/vxe-utils","last_synced_at":"2025-04-12T16:44:32.841Z","repository":{"id":65412492,"uuid":"115435254","full_name":"x-extends/vxe-utils","owner":"x-extends","description":"🌵 用于 Vue 全局安装 xe-utils","archived":false,"fork":false,"pushed_at":"2021-11-14T13:07:22.000Z","size":89,"stargazers_count":7,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-11T22:23:46.134Z","etag":null,"topics":["xe-utils"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/x-extends.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-12-26T15:51:26.000Z","updated_at":"2023-08-23T12:45:47.000Z","dependencies_parsed_at":"2023-01-22T08:05:43.897Z","dependency_job_id":null,"html_url":"https://github.com/x-extends/vxe-utils","commit_stats":null,"previous_names":[],"tags_count":30,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x-extends%2Fvxe-utils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x-extends%2Fvxe-utils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x-extends%2Fvxe-utils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x-extends%2Fvxe-utils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/x-extends","download_url":"https://codeload.github.com/x-extends/vxe-utils/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224601062,"owners_count":17338455,"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":["xe-utils"],"created_at":"2024-11-15T06:09:57.939Z","updated_at":"2024-11-15T06:09:58.688Z","avatar_url":"https://github.com/x-extends.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vxe-utils\n\n[![gitee star](https://gitee.com/x-extends/vxe-utils/badge/star.svg?theme=dark)](https://gitee.com/x-extends/vxe-utils/stargazers)\n[![npm version](https://img.shields.io/npm/v/vxe-utils.svg?style=flat-square)](https://www.npmjs.com/package/vxe-utils)\n[![npm build](https://travis-ci.com/x-extends/vxe-utils.svg?branch=master)](https://travis-ci.com/x-extends/vxe-utils)\n[![npm downloads](https://img.shields.io/npm/dm/vxe-utils.svg?style=flat-square)](http://npm-stat.com/charts.html?package=vxe-utils)\n[![gzip size: JS](http://img.badgesize.io/https://unpkg.com/vxe-utils/dist/vxe-utils.umd.min.js?compression=gzip\u0026label=gzip%20size:%20JS)](https://unpkg.com/vxe-utils/dist/vxe-utils.umd.min.js)\n[![npm license](https://img.shields.io/github/license/mashape/apistatus.svg)](LICENSE)\n\n用于 Vue 全局安装 xe-utils\n\n## Installing\n\n```shell\nnpm install xe-utils vxe-utils\n```\n\n```HTML\n\u003cscript src=\"https://cdn.jsdelivr.net/npm/vue\"\u003e\u003c/script\u003e\n\u003cscript src=\"https://cdn.jsdelivr.net/npm/xe-utils\"\u003e\u003c/script\u003e\n\u003cscript src=\"https://cdn.jsdelivr.net/npm/vxe-utils\"\u003e\u003c/script\u003e\n```\n\n## Example\n\n[Run this demo on jsfiddle.net](https://jsfiddle.net/tcf15qu4/)\n\n```javascript\nimport Vue from 'vue'\nimport XEUtils from 'xe-utils'\nimport VXEUtils from 'vxe-utils'\n\nVue.use(VXEUtils, XEUtils, { mounts: ['cookie'] })\n```\n\n```html\n\u003ctemplate\u003e\n  \u003ch1\u003e{{ userName }}\u003c/h1\u003e\n  \u003cdiv\u003e{{ $utils.toDateString(startDate, 'yyyy-dd-MM HH:mm:ss') }}\u003c/div\u003e\n  \u003cdiv\u003e{{ endDate }}\u003c/div\u003e\n\u003c/template\u003e\n```\n\n```html\n\u003cscript\u003e\nexport default {\n  data () {\n    return {\n      userName: null,\n      startDate: new Date(),\n      endDate: null\n    }\n  },\n  created () {\n    this.userName = this.$cookie('U_NAME')\n    this.endDate = this.$utils.toDateString(new Date(), 'MM/dd/yyyy HH:mm:ss.SSS')\n  }\n}\n\u003c/script\u003e\n```\n\n## License\n\n[MIT](LICENSE) © 2017-present, Xu Liangzhan\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fx-extends%2Fvxe-utils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fx-extends%2Fvxe-utils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fx-extends%2Fvxe-utils/lists"}