{"id":13535974,"url":"https://github.com/steven5538/vue-button","last_synced_at":"2025-04-02T02:32:00.660Z","repository":{"id":57394852,"uuid":"74272756","full_name":"steven5538/vue-button","owner":"steven5538","description":"Button component for Vue.js v2.0.1+.","archived":false,"fork":false,"pushed_at":"2016-11-22T03:36:07.000Z","size":94,"stargazers_count":18,"open_issues_count":0,"forks_count":12,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T05:38:23.927Z","etag":null,"topics":[],"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/steven5538.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":"2016-11-20T12:32:17.000Z","updated_at":"2024-05-13T09:21:35.000Z","dependencies_parsed_at":"2022-09-06T02:52:01.536Z","dependency_job_id":null,"html_url":"https://github.com/steven5538/vue-button","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/steven5538%2Fvue-button","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steven5538%2Fvue-button/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steven5538%2Fvue-button/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steven5538%2Fvue-button/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/steven5538","download_url":"https://codeload.github.com/steven5538/vue-button/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246743795,"owners_count":20826604,"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-08-01T09:00:32.884Z","updated_at":"2025-04-02T02:32:00.354Z","avatar_url":"https://github.com/steven5538.png","language":"JavaScript","readme":"# vue-button [![Build Status](https://travis-ci.org/steven5538/vue-button.svg?branch=master)](https://travis-ci.org/steven5538/vue-button) [![Dependency Status](https://gemnasium.com/badges/github.com/steven5538/vue-button.svg)](https://gemnasium.com/github.com/steven5538/vue-button) ![MIT License](https://img.shields.io/github/license/steven5538/vue-button.svg)\n\n\u003e Button component for Vue.js v2.0.1+.\n\n![vue-button](http://i.imgur.com/YLEH5Ko.png)\n\n## Installation\n\n### NPM (Recommended)\n``` bash\n$ npm install vue-button\n```\n### manual\nDownload `dist/vue-button.js` and include it in your HTML file:\n```html\n\u003cscript src=\"path/to/vue-button/dist/vue-button.js\"\u003e\u003c/script\u003e\n```\nor you can include from [unpkg](https://unpkg.com).\n```html\n\u003c!--use the lastest release--\u003e\n\u003cscript src=\"https://unpkg.com/vue-button@lastest\"\u003e\u003c/script\u003e\n```\n## Usage\n```html\n\u003c!-- default button --\u003e\n\u003cv-button\u003e\n  Button\n\u003c/v-button\u003e\n\n\u003c!-- disabled button --\u003e\n\u003cv-button disabled\u003e\n  Button\n\u003c/v-button\u003e\n\n\u003c!-- large button --\u003e\n\u003cv-button large\u003e\n  Button\n\u003c/v-button\u003e\n\n\u003c!-- markup button option: primary, success, warning, error --\u003e\n\u003cv-button markup=\"success\"\u003e\n  Button\n\u003c/v-button\u003e\n\n\u003c!-- button with multiple attribute --\u003e\n\u003cv-button markup=\"warning\" large\u003e\n Button\n\u003c/v-button\u003e\n```\n## ES Modules with NPM \u0026 vue-loader (Recommended)\n```js\nimport Vue from 'Vue'\nimport VueButton from 'vue-button'\n\n// register component to use\nVue.component('v-button', VueButton)\n```\n## Parameters\n```js\n/**\n * Equivalent to the `id` attribute on an `\u003cbutton\u003e`.\n * @type {String}\n */\nid: {\n  type: String,\n  default: null\n},\n\n/**\n * Attach your custom class on the compontent.\n * That means you can change the style if you want.\n * @type {String}\n */\ncustomClass: {\n  type: String,\n  default: null\n},\n\n/**\n * Equivalent to the `name` attribute on an `\u003cbutton\u003e`.\n * @type {String}\n */\nname: {\n  type: String,\n  default: null\n},\n\n/**\n * Equivalent to the `disabled` attribute on an `\u003cbutton\u003e`.\n * @type {Boolean}\n */\ndisabled: {\n  type: Boolean,\n  default: false\n},\n\n/**\n * If set enable button font size will be large.\n * @type {Boolean}\n */\nlarge: {\n  type: Boolean,\n  default: false\n},\n\n/**\n * Markup button.\n * The value can be `default`, `primary`, `success`, `warning`, `error`.\n * @type {String}\n */\nmarkup: {\n  type: String,\n  default: 'default'\n},\n\n/**\n * Set the click event on `\u003cbutton\u003e`.\n */\n@click {\n  type: Object,\n  defalut: null\n}\n```\n","funding_links":[],"categories":["UI组件","Awesome Vue.js [![Awesome](https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg)](https://github.com/sindresorhus/awesome)"],"sub_categories":["Libraries \u0026 Plugins"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsteven5538%2Fvue-button","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsteven5538%2Fvue-button","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsteven5538%2Fvue-button/lists"}