{"_id":"u-switch.vue","_rev":"3-b92e4d8c1cfe4e18b71c58b7a14656b3","name":"u-switch.vue","description":"Vusion Proto UI - Switch","dist-tags":{"latest":"0.1.1"},"versions":{"0.1.0":{"name":"u-switch.vue","description":"Vusion Proto UI - Switch","version":"0.1.0","author":{"name":"Rainfore","email":"rainforest92@126.com"},"main":"./index.js","repository":{"type":"git","url":"git+https://github.com/vusion/proto-ui.git"},"homepage":"http://vusion.github.io","bugs":{"url":"http://github.com/vusion/proto-ui/issues"},"license":"MIT","keywords":["vusion","proto","ui","proto-ui"],"tags":["vusion","proto","ui","proto-ui"],"peerDependencies":{"vue":"^2.4.0"},"_id":"u-switch.vue@0.1.0","scripts":{},"_shasum":"9fdb2eb873953592e7c8243e94ba75db9a673034","_from":".","_npmVersion":"4.0.5","_nodeVersion":"7.4.0","_npmUser":{"name":"rainfore","email":"rainforest92@126.com"},"dist":{"shasum":"9fdb2eb873953592e7c8243e94ba75db9a673034","tarball":"https://registry.npmjs.org/u-switch.vue/-/u-switch.vue-0.1.0.tgz","integrity":"sha512-sVqh5eTlU0BGlX/EHhcNDg5P9lVL48Vu1uAtjNoZevy5ko4kVuPtKf9ghXwNyJxhkPKijXLjs669fhs6JjXSCQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFEreznaCw/EK+2/dtodrv53GPQzYtg8h5h4Xy5TRMH1AiEArQzgfkUoEkXytdb3MixTJ3UrOYVbebGB852WKycbSIA="}]},"maintainers":[{"name":"rainfore","email":"rainforest92@126.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/u-switch.vue-0.1.0.tgz_1502272705375_0.4903168233577162"}},"0.1.1":{"name":"u-switch.vue","description":"Vusion Proto UI - Switch","version":"0.1.1","author":{"name":"Rainfore","email":"rainforest92@126.com"},"main":"./index.js","repository":{"type":"git","url":"git+https://github.com/vusion/proto-ui.git"},"homepage":"http://vusion.github.io","bugs":{"url":"http://github.com/vusion/proto-ui/issues"},"license":"MIT","keywords":["vusion","proto","ui","proto-ui"],"tags":["vusion","proto","ui","proto-ui"],"dependencies":{"u-field.vue":"~0.1.4"},"peerDependencies":{"vue":"^2.4.0"},"_id":"u-switch.vue@0.1.1","scripts":{},"_shasum":"c73dfb8d599b0fb3bdbd6f87a09e1023cc4e8dc5","_from":".","_npmVersion":"4.0.5","_nodeVersion":"7.4.0","_npmUser":{"name":"rainfore","email":"rainforest92@126.com"},"dist":{"shasum":"c73dfb8d599b0fb3bdbd6f87a09e1023cc4e8dc5","tarball":"https://registry.npmjs.org/u-switch.vue/-/u-switch.vue-0.1.1.tgz","integrity":"sha512-tCv6+jfB3Llpz1hBKcvGaATCboVQyu5um8ApjdxcRgNLYXVkIi9pbIZ9s9cmlzmA2z/EC3AnRE5Gxm+Mxhb7GQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICvGcPgsYl34LCUpI/M9oaorbczb9ZaEhouXsteAaIiNAiEA2Kf1lEtXCIIgxX7HNLtCblacAEbcr/J2VHg00otV6PY="}]},"maintainers":[{"name":"rainfore","email":"rainforest92@126.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/u-switch.vue-0.1.1.tgz_1504151820635_0.34201805107295513"}}},"readme":"# Switch\n\n## Examples\n### Basic\n\n``` html\n<u-switch></u-switch>\n```\n\n### v-model & Text\n\n``` vue\n<template>\n<u-switch v-model=\"value\" width=\"wide\">{{ value ? 'ON' : 'OFF' }}</u-switch>\n</template>\n<script>\nexport default {\n    data() {\n        return { value: false };\n    },\n};\n</script>\n```\n\n### Readonly & Disabled\n\n``` html\n<u-linear-layout>\n    <u-switch readonly></u-switch>\n    <u-switch disabled></u-switch>\n</u-linear-layout>\n```\n\n## API\n### Attrs/Props\n\n| Attr/Prop | Type | Default | Description |\n| --------- | ---- | ------- | ----------- |\n| value | Boolean | `false` | Switch status. |\n| readonly | Boolean | `false` | Readonly |\n| disabled | Boolean | `false` | Disabled |\n\n### Slots\n\n| Slot | Description |\n| ---- | ----------- |\n| (default) | |\n\n### Events\n\n#### @input\n\nEmit when checking.\n\n| Property | Type | Description |\n| -------- | ---- | ----------- |\n| value | Boolean | Checked value |\n\n#### @change\n\nEmit when change value.\n\n| Property | Type | Description |\n| -------- | ---- | ----------- |\n| newValue | Boolean | New value |\n| oldValue | Boolean | Old value |\n","maintainers":[{"name":"rainfore","email":"rainforest92@126.com"}],"time":{"modified":"2022-06-28T02:27:57.887Z","created":"2017-08-09T09:58:25.448Z","0.1.0":"2017-08-09T09:58:25.448Z","0.1.1":"2017-08-31T03:57:00.889Z"},"homepage":"http://vusion.github.io","keywords":["vusion","proto","ui","proto-ui"],"repository":{"type":"git","url":"git+https://github.com/vusion/proto-ui.git"},"author":{"name":"Rainfore","email":"rainforest92@126.com"},"bugs":{"url":"http://github.com/vusion/proto-ui/issues"},"license":"MIT","readmeFilename":"README.en-US.md"}