{"id":13424057,"url":"https://github.com/Coffcer/vue-bootstrap-modal","last_synced_at":"2025-03-15T18:33:19.946Z","repository":{"id":57153188,"uuid":"54107008","full_name":"Coffcer/vue-bootstrap-modal","owner":"Coffcer","description":"Bootstrap style modal for vue","archived":false,"fork":false,"pushed_at":"2017-04-17T10:33:52.000Z","size":1949,"stargazers_count":148,"open_issues_count":6,"forks_count":47,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-02-27T23:10:47.408Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/Coffcer.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":"2016-03-17T09:51:34.000Z","updated_at":"2023-07-15T13:14:07.000Z","dependencies_parsed_at":"2022-09-06T11:20:46.205Z","dependency_job_id":null,"html_url":"https://github.com/Coffcer/vue-bootstrap-modal","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/Coffcer%2Fvue-bootstrap-modal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Coffcer%2Fvue-bootstrap-modal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Coffcer%2Fvue-bootstrap-modal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Coffcer%2Fvue-bootstrap-modal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Coffcer","download_url":"https://codeload.github.com/Coffcer/vue-bootstrap-modal/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243775690,"owners_count":20346240,"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-07-31T00:00:47.647Z","updated_at":"2025-03-15T18:33:19.191Z","avatar_url":"https://github.com/Coffcer.png","language":"Vue","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-bootstrap-modal\n\nBootstrap style modal component for vue.\n\n\u003cimg src=\"https://github.com/Coffcer/vue-bootstrap-modal/blob/master/modal.gif\"\u003e\n\n# Usage\n\nimport Bootstrap.css\n```\n\u003clink href=\"bootstrap.css\"\u003e\u003c/link\u003e\n```\n**NOTE:**  By default, the modal style is pure bootstrap style, you can use any 3rd party bootstrap framework, like above GIF.\n\n\nsimple options:\n``` html\n\u003c!--text content--\u003e\n\u003cmodal title=\"Modal Title\" :show.sync=\"show\" @ok=\"ok\" @cancel=\"cancel\"\u003e\n    Modal Text\n\u003c/modal\u003e\n\n\u003c!--custom content--\u003e\n\u003cmodal title=\"Modal Title\" :show.sync=\"show\" @ok=\"ok\" @cancel=\"cancel\"\u003e\n    \u003cdiv\u003eModal Body\u003c/div\u003e\n    \n    \u003cdiv slot=\"header\"\u003eModal Header\u003c/div\u003e\n    \u003cdiv slot=\"title\"\u003eModal Title\u003c/div\u003e\n    \u003cdiv slot=\"footer\"\u003eModal Footer\u003c/div\u003e\n\u003c/modal\u003e\n\n```\n\n#Props\n``` javascript\nprops: {\n    show: {\n        type: Boolean,\n        twoWay: true,\n        default: false\n    },\n    title: {\n        type: String,\n        default: 'Modal'\n    },\n    // Bootstrap small style modal\n    small: {\n        type: Boolean,\n        default: false\n    },\n    // Bootstrap large style modal\n    large: {\n        type: Boolean,\n        default: false\n    },\n    // Bootstrap full style modal    \n    full: {\n        type: Boolean,\n        default: false\n    },\n    // if it set false, click background will close modal \n    force: {\n        type: Boolean,\n        default: false\n    },\n    // vue transition name\n    transition: {\n        type: String,\n        default: 'modal'\n    },\n    // [OK button] text\n    okText: {\n        type: String,\n        default: 'OK'\n    },\n    // [Cancel button] text\n    cancelText: {\n        type: String,\n        default: 'Cancel'\n    },\n    // [OK button] className\n    okClass: {\n        type: String,\n        default: 'btn blue'\n    },\n    // [Cancel button] className\n    cancelClass: {\n        type: String,\n        default: 'btn red btn-outline'\n    },\n    // automatically close when click [OK button]\n    closeWhenOK: {\n        type: Boolean,\n        default: false\n    }\n}\n```\n\n# License\nMIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FCoffcer%2Fvue-bootstrap-modal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FCoffcer%2Fvue-bootstrap-modal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FCoffcer%2Fvue-bootstrap-modal/lists"}