{"id":27705944,"url":"https://github.com/Treri/vue-ios-alertview","last_synced_at":"2025-04-26T05:01:44.124Z","repository":{"id":143926181,"uuid":"72603943","full_name":"wyntau/vue-ios-alertview","owner":"wyntau","description":"iOS7+ style alertview service for Vue","archived":true,"fork":false,"pushed_at":"2017-06-16T08:09:13.000Z","size":53,"stargazers_count":31,"open_issues_count":0,"forks_count":7,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-19T05:49:09.683Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://wyntau.github.io/vue-ios-alertview/example/","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/wyntau.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2016-11-02T04:25:27.000Z","updated_at":"2025-02-15T14:39:55.000Z","dependencies_parsed_at":"2024-01-07T01:43:57.506Z","dependency_job_id":"2d923015-363e-46b3-84a7-08df2fe51876","html_url":"https://github.com/wyntau/vue-ios-alertview","commit_stats":null,"previous_names":["treri/vue-ios-alertview"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wyntau%2Fvue-ios-alertview","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wyntau%2Fvue-ios-alertview/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wyntau%2Fvue-ios-alertview/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wyntau%2Fvue-ios-alertview/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wyntau","download_url":"https://codeload.github.com/wyntau/vue-ios-alertview/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250935453,"owners_count":21510552,"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":"2025-04-26T05:01:10.752Z","updated_at":"2025-04-26T05:01:44.073Z","avatar_url":"https://github.com/wyntau.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)","UI组件"],"sub_categories":["Libraries \u0026 Plugins"],"readme":"## vue-ios-alertview\n\n\u003e iOS7+ style alertview service for Vue 2\n\nVue port of [angular-ios-alertview](https://github.com/Treri/angular-ios-alertview).\n\n#### Install\n\n```\nnpm install vue-ios-alertview\n```\n\n#### Dependences\n\nPromise\n\n#### Usage\n\n```\nimport Vue from 'vue';\nimport iosAlertView from 'vue-ios-alertview';\n\nVue.use(iosAlertView);\n\nnew Vue({\n  el: '#container',\n  methods: {\n    alert: function(){\n      this.$iosAlert('alert').then(function(){\n        console.log('alert);\n      });\n    }\n  }\n});\n```\n\n#### Options\n\n(Note: some options are specific to different alertview type, e.g. `remindDuration` is only for `$iosRemind`).\n\n- `title`, alertview title, default empty\n- `text`, alertview content, support html string. default empty\n- `input`, whether show input form, default false\n- `placeholder`, input field placeholder, default empty\n- `cancelText`, cancel button text, default `Cancel`\n- `okText`, ok button text, default `OK`\n- `remindDuration`, remind show duration, default 650ms\n- `buttons`, array of button object.\n\n    an example of button object\n\n        {\n          text: 'OK',\n          bold: true,\n          onClick: function(data){\n            // data.index\n            // data.button\n            // data.value\n          }\n        }\n- `defaultOption`, the option key if you just pass in a string when you invoke `$iosAlert`, `$iosConfirm`, `$iosPrompt` or `$iosRemind`. default `text`, you can set it to `title` or something else.\n\n#### License\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTreri%2Fvue-ios-alertview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FTreri%2Fvue-ios-alertview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTreri%2Fvue-ios-alertview/lists"}