{"id":23186103,"url":"https://github.com/termosa/vue-default-value","last_synced_at":"2025-08-18T16:32:34.043Z","repository":{"id":57395587,"uuid":"80572051","full_name":"termosa/vue-default-value","owner":"termosa","description":"Vue.js 2.x directive to set a default value for editable elements with no affect to the model state","archived":false,"fork":false,"pushed_at":"2017-02-16T16:03:20.000Z","size":10,"stargazers_count":16,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-04-24T00:02:09.965Z","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/termosa.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-01-31T23:14:13.000Z","updated_at":"2024-01-18T09:56:59.000Z","dependencies_parsed_at":"2022-08-30T20:01:04.637Z","dependency_job_id":null,"html_url":"https://github.com/termosa/vue-default-value","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/termosa%2Fvue-default-value","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/termosa%2Fvue-default-value/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/termosa%2Fvue-default-value/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/termosa%2Fvue-default-value/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/termosa","download_url":"https://codeload.github.com/termosa/vue-default-value/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230252844,"owners_count":18197284,"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-12-18T10:14:41.545Z","updated_at":"2024-12-18T10:14:42.174Z","avatar_url":"https://github.com/termosa.png","language":"JavaScript","funding_links":[],"categories":["Awesome Vue.js [![Awesome](https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg)](https://github.com/sindresorhus/awesome)","UI组件","Components \u0026 Libraries","UI Components","UI Components [🔝](#readme)"],"sub_categories":["Libraries \u0026 Plugins","形成","UI Components","Form"],"readme":"# vue-default-value\n\nA Vue.js Directive to set a default value for editable elements with no affect to the model state.\n\n[![NPM version](https://img.shields.io/npm/v/vue-default-value.svg?style=flat-square)](https://www.npmjs.com/package/vue-default-value)\n![Bower version](https://img.shields.io/bower/v/vue-default-value.svg?style=flat-square)\n\n## Installation\n\n### Via NPM\n\nInstall the package\n\n```bash\n$ npm install vue-default-value\n```\n\nand require it in the code\n\n```js\nvar Vue = require('vue');\nvar VueDefaultValue = require('vue-default-value');\nVue.use(VueDefaultValue);\n```\n\n### Via Bower\n\nInstall the package\n\n```bash\n$ bower install vue-default-value\n```\n\nadd script on page\n\n```html\n\u003cscript src=\"/bower_components/vue-default-value/dist/vue-default-value.js\"\u003e\u003c/script\u003e\n\u003cscript\u003eVue.use(VueDefaultValue);\u003c/script\u003e\n```\n\nor you can do it with [RequireJS](http://requirejs.org/) or any similar tool.\n\n## Usage\n\nThe directive can be used with any element that has value attribute.\n\n```js\nUsername: \u003cinput v-model=\"username\" v-default-value=\"'Guest'\" /\u003e\n```\n\n## License\n\nMIT © [Stanislav Termosa](https://github.com/termosa)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftermosa%2Fvue-default-value","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftermosa%2Fvue-default-value","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftermosa%2Fvue-default-value/lists"}