{"id":13536246,"url":"https://github.com/syropian/vue-input-autosize","last_synced_at":"2025-04-02T02:32:48.597Z","repository":{"id":57396311,"uuid":"64070989","full_name":"syropian/vue-input-autosize","owner":"syropian","description":"A simple Vue.js directive to autosize text input fields","archived":true,"fork":false,"pushed_at":"2017-08-22T23:02:29.000Z","size":23,"stargazers_count":21,"open_issues_count":2,"forks_count":6,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-01T13:18:35.748Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/syropian.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-07-24T15:05:33.000Z","updated_at":"2024-09-16T09:27:18.000Z","dependencies_parsed_at":"2022-09-18T12:02:46.779Z","dependency_job_id":null,"html_url":"https://github.com/syropian/vue-input-autosize","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syropian%2Fvue-input-autosize","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syropian%2Fvue-input-autosize/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syropian%2Fvue-input-autosize/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syropian%2Fvue-input-autosize/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/syropian","download_url":"https://codeload.github.com/syropian/vue-input-autosize/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246744025,"owners_count":20826654,"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:36.397Z","updated_at":"2025-04-02T02:32:48.298Z","avatar_url":"https://github.com/syropian.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)","Awesome Vue.js"],"sub_categories":["Libraries \u0026 Plugins"],"readme":"# vue-input-autosize [DEPRECATED]\n\n## This package has been deprecated in favour of [vue-input-autowidth](https://github.com/syropian/vue-input-autowidth) that has support for Vue.js 2+ and a slew of bug fixes and improvements.\n\n[![Build Status](https://travis-ci.org/syropian/vue-input-autosize.svg?branch=master)](https://travis-ci.org/syropian/vue-input-autosize)\n\n\u003e A simple Vue.js directive for autosizing a text input based on its content.\n\n## Install\n\n```js\n$ npm install vue-input-autosize --save\n```\n\n**or** include the UMD build, hosted by [npmcdn](https://npmcdn.com) in a `\u003cscript\u003e` tag:\n\n```js\n\u003cscript src=\"//npmcdn.com/vue-input-autosize\"\u003e\u003c/script\u003e\n```\n\n## Usage\n\n```js\nimport Vue from \"vue\";\nimport VueInputAutosize from \"vue-input-autosize\";\n\nVue.use(VueInputAutosize, { maxWidth: 500, minWidth: 20, comfortZone: 0 });\n```\n\n...and inside your template:\n\n`\u003cinput type='text' :value='msg' v-input-autosize /\u003e`\n\n### Why bind to `value` instead of using `v-model`?\nCurrently, there's no easy way to track changes to a `v-model` value from a directive. However, since the `value` property of a text field controls its content, and is also a valid parameter to watch for updates from the directive, we can dynamically bind to that instead.\n\n## License\n\nMIT © [Collin Henderson](https://github.com/syropian)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsyropian%2Fvue-input-autosize","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsyropian%2Fvue-input-autosize","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsyropian%2Fvue-input-autosize/lists"}