{"id":21842098,"url":"https://github.com/jypblue/vue-box-input","last_synced_at":"2026-04-17T02:32:10.242Z","repository":{"id":44123020,"uuid":"142742707","full_name":"jypblue/vue-box-input","owner":"jypblue","description":"A Vue.js component of chat input box","archived":false,"fork":false,"pushed_at":"2022-12-08T08:33:18.000Z","size":2608,"stargazers_count":1,"open_issues_count":22,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-08-03T12:38:45.217Z","etag":null,"topics":["chatbox","input","vue"],"latest_commit_sha":null,"homepage":"","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/jypblue.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}},"created_at":"2018-07-29T08:11:45.000Z","updated_at":"2019-12-16T08:07:37.000Z","dependencies_parsed_at":"2023-01-24T21:45:46.452Z","dependency_job_id":null,"html_url":"https://github.com/jypblue/vue-box-input","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jypblue/vue-box-input","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jypblue%2Fvue-box-input","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jypblue%2Fvue-box-input/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jypblue%2Fvue-box-input/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jypblue%2Fvue-box-input/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jypblue","download_url":"https://codeload.github.com/jypblue/vue-box-input/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jypblue%2Fvue-box-input/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31912373,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T18:22:33.417Z","status":"online","status_checked_at":"2026-04-17T02:00:06.879Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["chatbox","input","vue"],"created_at":"2024-11-27T22:10:06.698Z","updated_at":"2026-04-17T02:32:10.209Z","avatar_url":"https://github.com/jypblue.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vue-box-input\n\n[![Version](https://img.shields.io/npm/v/vue-box-input.svg)](https://www.npmjs.com/package/vue-box-input) [![License](https://img.shields.io/npm/l/vue-box-input.svg)](https://www.npmjs.com/package/vue-box-input) [![Downloads](https://img.shields.io/npm/dt/vue-box-input.svg)](https://www.npmjs.com/package/vue-box-input)\n\nA Vue.js component of chat input box\n\n## Features\n- Supports Vue2\n- Press 'shift + enter' to Change line\n- Press 'enter' to send message\n- Support 'paste event', we can get the image file and the text that is pasting in box.\n- Support the cursor positioning when we insert Text or emoji\n\n\n## Installation\n\n### NPM\n```\n$ npm install vue-box-input --save\n```\n### Yarn\n```\n$ yarn add vue-box-input\n```\n\n\n### Component Attributes:\n\n| 参数        | 说明           | 类型               | 默认值       |  必写   |\n|------------|----------------|--------------------|--------------|----------------|\n| emoji | 可插入的表情包(emoji)字符串 | String | -   | false |\n\n### Component Methods:\n\n| 参数        | 说明           | 类型               | 默认值       |  必写   |\n|------------|----------------|--------------------|--------------|----------------|\n| input | input事件| Function(val) | -   | false |\n| image-paste  | 剪贴板图片粘贴事件|Function(file) |  - | false |\n| message-send | 消息发送事件  |Function(text) | -  | true |\n| clearMessage | 清空输入框中的信息 | Function| - | false |\n## How To Use\n\n```\nImport:\nimport Vue from 'vue'\nimport VueBoxInput from 'vue-box-input'\nVue.use(VueBoxInput)\n\nComponent Use:\n \t\u003cvue-box-input\n \t\t  :emoji=\"emojiValue\"\n      ref=\"chatBox\"\n\t    @input=\"handleWordsInput\"\n\t    @image-paste=\"handleImageFileGet\"\n\t    @message-send=\"handleMessageSend\"\n\t    \u003e\n\n    \u003c/vue-box-input\u003e\n\n    this.$refs.chatBox.clearMessage();\n\n```\n\n## Update Log\n\n- version 1.1.0 =\u003e add clearMessage function\n- version 1.0.0 =\u003e add basic function of a chat input box\n\n\n\n## License\n\n[MIT](http://opensource.org/licenses/MIT)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjypblue%2Fvue-box-input","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjypblue%2Fvue-box-input","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjypblue%2Fvue-box-input/lists"}