{"_id":"@alanlee97/vue3-flex-box","_rev":"4-d2e08b3a853d98cccf7cc98cb4038b20","name":"@alanlee97/vue3-flex-box","dist-tags":{"latest":"0.0.4"},"versions":{"0.0.1":{"name":"@alanlee97/vue3-flex-box","version":"0.0.1","module":"./dist/flex-box.es.ts","main":"./dist/flex-box.umd.ts","exports":{".":{"import":"./dist/flex-box.es.ts","require":"./dist/flex-box.umd.ts"},"./dist/style.css":{"import":"./dist/style.css","require":"./dist/style.css"}},"scripts":{"dev":"vite","build":"vue-tsc --noEmit && vite build","preview":"vite preview"},"dependencies":{"vue":"^3.2.25"},"devDependencies":{"@types/node":"^17.0.6","@vitejs/plugin-vue":"^2.0.0","sass":"^1.45.2","typescript":"^4.4.4","vite":"^2.7.2","vue-tsc":"^0.29.8"},"description":"This template should help get you started developing with Vue 3 and Typescript in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.","_id":"@alanlee97/vue3-flex-box@0.0.1","_nodeVersion":"14.18.0","_npmVersion":"6.14.15","dist":{"integrity":"sha512-wwez8RhTT7KckQwznw5iWulqA4l+LkiyQXbqCYnpROh/2rMt6H0pxXe8OZy2JpnfjDKNKr1rXxeKFG1Kxwxm2g==","shasum":"3ef8297259725276cae36e613e50a298c78c53ba","tarball":"https://registry.npmjs.org/@alanlee97/vue3-flex-box/-/vue3-flex-box-0.0.1.tgz","fileCount":6,"unpackedSize":10859,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh0WBvCRA9TVsSAnZWagAAiHAP/jVwNVgaE5UD6BgAeZDP\njffWBvpLSzie7FrgSXl9utQfFCLDh7lHC4ue1r7Lgs2rEJvjZbMi+kDhOqJQ\nnJmWA0FEw6/hRjpGB3PVqfUfTVQ8ujLnU4tFqoTVbUzifwwS8lKyimpugaOd\nQppGOibuarInJUM8NGtuNyCa3m9545KP1BKEnjbGbVz4FzIdtYXpfkJaSaCX\nvtD+N8TxOImLhCD7VmUITCwNkqJsixcT/UDF0ZK3gwdgZJ0NcIMiNtpTwQ9D\nPCrJXhKesjysZaODSV+cXFZ0Au3mbrd4Wimqw+hWuOOdJjSZQRqJo/0MAOaC\nSGk3zXxq4CJ8h1lS34VQZLhc9NbX3I7hndbFNIklqRpsfWVB9Q2W2jMMNgZg\nj3CVoU480rqbZqcwTz5+u+236Q74Ee8WZIx10e3V48QCbDalaG5GpkRPNzt1\nMb0cG97zbV1shIu26Cg8fLIX8ll+bZGXJ+jGjeFcT+8lx3XRl5I3kgN0Csjm\nhbzhOTVuIX+d/kcSIBEaqH1vVrzR0SjNohJl1+6YwqdsA+SN+jC4saxlDA03\nKYnUOKsAqXnikRCAgE1SwpTDoxwmLVgmd8YOR2qmszPDzfxjruDwlwKxFaat\n3Hc6nnBOdhsCr2R5pTTDYbaze5XPJX/xijsj8OSaGWkJOiD+eX8K01IrFPZC\nLXSH\r\n=XsO0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDSBnbBLKz65iOjjtDinEFy9Xvd5s9onlhiLvGPngLCvAIhAIIBkIffmMc5k6bB4G4jXKzDUbI9/iRPdwWY2w/GaNG3"}]},"_npmUser":{"name":"alanlee97","email":"1445654576@qq.com"},"directories":{},"maintainers":[{"name":"alanlee97","email":"1445654576@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vue3-flex-box_0.0.1_1641111663551_0.5799633588352135"},"_hasShrinkwrap":false},"0.0.2":{"name":"@alanlee97/vue3-flex-box","version":"0.0.2","module":"./dist/flex-box.es.ts","main":"./dist/flex-box.umd.ts","exports":{".":{"import":"./dist/flex-box.es.ts","require":"./dist/flex-box.umd.ts"},"./dist/style.css":{"import":"./dist/style.css","require":"./dist/style.css"}},"scripts":{"dev":"vite","build":"vue-tsc --noEmit && vite build","preview":"vite preview"},"dependencies":{"vue":"^3.2.25"},"devDependencies":{"@types/node":"^17.0.6","@vitejs/plugin-vue":"^2.0.0","sass":"^1.45.2","typescript":"^4.4.4","vite":"^2.7.2","vue-tsc":"^0.29.8"},"description":"## 简介 | Description","_id":"@alanlee97/vue3-flex-box@0.0.2","_nodeVersion":"14.18.0","_npmVersion":"6.14.15","dist":{"integrity":"sha512-Q9njuC5JoV1nv+L/EB83Q5/hkDM0PmWXdZbH/czz+FxQ2zUCcAEh1Yy9Kvuyv48sswxR0DaRkSKdLbQy+tPuxg==","shasum":"e775a36ff358ae9fd04071ed5ad33bae7d1b3770","tarball":"https://registry.npmjs.org/@alanlee97/vue3-flex-box/-/vue3-flex-box-0.0.2.tgz","fileCount":6,"unpackedSize":11313,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh0XMwCRA9TVsSAnZWagAASCUP/1I8b1H+eknYWORXn/ZI\n+NNtzGIa/YkuU/Qk5EmH/BrLJo7pebJ48qGdD7oXOO9LgjGhaCA5DxeSa6li\nubsTpJbWEofA+y/Q09Fq1hWur7MB6zOGTttTVQ0LCUQVdN4Y+FDgID0Pd7Oo\n6z4D6cz/o8s3M/nF93o0S5QQJMJPtQzyDon/wnGp7c/I07Pb3UlmkmopRc+Y\ns7uRs/jmC5ZabpHgZAIfziaECUTNTa2HUxZD1JyNT7VwTLkW6gV15ZQ/HQt3\n6W2LDNarxz/V1hV52hxEFLYqu+2yhxBwuIOW2FWC4tCNzd99ihQBE+VeYhoq\nWfajbEn5lYcTX+Ovrbm0ZYV+5W1cCkud7BQQC6Rk6Lnx1jrkUIkJsHQkCSnE\nxOujbqZyb8aa25FSvPArHhW8Zjvp1jQVetcq4wg208a5jADn10WRzhC+ApIL\n5bXXVT6GGcRumJptU99MYIxQbKgL9QB4Fm18rbKsCqQwrHcpstbWoUn8j9Ii\nC82v089G1dcFSdLIPACxyfInKWWi3lqLRK/ZyAUy9QnK3yPdWziOVf5hfP8a\n1lArWt53gcBlxNQsM6Ni9Z44IC6HorZi22JLIUJ8gpFF0+UbcurGKW2XXyYJ\ntjZqpp3pyG7wo/kHdzNmLUrYQ8RpV/a2A9IqCNbjEguWyUSbCA1NrgtIo1Cl\nYTM5\r\n=mC3/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC1ifg57n0A1ZwDdJauG3Rq2Ha9GUAKYtpGc1hBS91MJAiEA2kJ9nbaI6g6pkpXi2tOShXconHdvUY27ODYPAGPSbj8="}]},"_npmUser":{"name":"alanlee97","email":"1445654576@qq.com"},"directories":{},"maintainers":[{"name":"alanlee97","email":"1445654576@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vue3-flex-box_0.0.2_1641116464660_0.27724157555457496"},"_hasShrinkwrap":false},"0.0.3":{"name":"@alanlee97/vue3-flex-box","version":"0.0.3","module":"./dist/flex-box.es.ts","main":"./dist/flex-box.umd.ts","homepage":"https://github.com/AlanLee97/vue3-flex-box","exports":{".":{"import":"./dist/flex-box.es.ts","require":"./dist/flex-box.umd.ts"},"./dist/style.css":{"import":"./dist/style.css","require":"./dist/style.css"}},"scripts":{"dev":"vite","build":"vue-tsc --noEmit && vite build","preview":"vite preview"},"dependencies":{"vue":"^3.2.25"},"devDependencies":{"@types/node":"^17.0.6","@vitejs/plugin-vue":"^2.0.0","sass":"^1.45.2","typescript":"^4.4.4","vite":"^2.7.2","vue-tsc":"^0.29.8"},"gitHead":"36a2de346b4ab7d0955371c1d6e5a5c99b3f423b","description":"## 简介 | Description","_id":"@alanlee97/vue3-flex-box@0.0.3","_nodeVersion":"14.18.0","_npmVersion":"6.14.15","dist":{"integrity":"sha512-FcEexQ0Be9Nk9ZetXilCmdIVymACmIn9ykjaonsigYesTjde2KH4Z3E2NN4oURJRwFJdnNIEbI65NBrN5gTCPg==","shasum":"02f7f81d48a95270bd72f3920f446f5bdc987949","tarball":"https://registry.npmjs.org/@alanlee97/vue3-flex-box/-/vue3-flex-box-0.0.3.tgz","fileCount":6,"unpackedSize":12861,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh2WRkCRA9TVsSAnZWagAABQgQAIIeyfdEtnW6OzKCrf0A\nvAltIn0sj0/21MBWzciM+pNwD3cwbt6rWqX/IvE19AFMhhWi7tfau3VBXt/S\nqIu+2KCzuTTKWq2q0ToNzpZSdvBehKnTnJlgP1dj3/B3ztyRywlU0UVfLUZO\njsNhpO42yLGBsH7/8NofEfLMTDWmdI5z/yhlFSXd68Bz1L7KzbR+SIbxuOMt\nxsYCoAXhTK9kIKbYAbKB56BtFdiK8EjPxkePDlINSVaVHc8fPH2DlBA6rtnH\nqKrZLLkBSZgIcuXVeXHSmURm7w78nOKpJQvxR5m9IVh9ruL/DsOD6EVeqlWP\nlvYczLSm/+2emD9fa+UC/9HCMrqPTD3rfdd5QoFf3e7fqEUytCEpDAFoU5CJ\nC88rqJgY1iFatBvNeoMJCzGK5HEPyoDrye+tVstA+Oj2p4wlQFDW81bqs7Kc\n0CAPdj+7R4uBKCEukJ9M6qp9aza7e9SfUldJR2UZOOt1Fx5rOP5RG51dbpIK\niYwjcTru8rrgI7bInf1cxKZwL/1R6UyJj4WzqwOoZz6jUEHtpJIE03uGoqzC\nxt6xl88694/8B0c3oubwVfBLniczWwlNY83uW5VSqKdKrDsGUtYs08VuI1yQ\nGzEVCG0NnTntx/poWYuaKfGpJbUsqp8WUF9WaQcZICBppS0QJG8HJFA/luQD\n1f4a\r\n=pdb3\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGgOyg5xOFPdhx0Su6NdLZhC6raZ19NzD/fabP8ev5UHAiAW6sFOhMs+SMpNkt6uv19tB+smY3jd8hUNvREh2lFDOQ=="}]},"_npmUser":{"name":"alanlee97","email":"1445654576@qq.com"},"directories":{},"maintainers":[{"name":"alanlee97","email":"1445654576@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vue3-flex-box_0.0.3_1641636964119_0.4989559514629842"},"_hasShrinkwrap":false},"0.0.4":{"name":"@alanlee97/vue3-flex-box","version":"0.0.4","module":"./dist/flex-box.es.ts","main":"./dist/flex-box.umd.ts","homepage":"https://github.com/AlanLee97/vue3-flex-box","exports":{".":{"import":"./dist/flex-box.es.ts","require":"./dist/flex-box.umd.ts"},"./dist/style.css":{"import":"./dist/style.css","require":"./dist/style.css"}},"scripts":{"dev":"vite","build":"vue-tsc --noEmit && vite build","preview":"vite preview"},"dependencies":{"vue":"^3.2.25"},"devDependencies":{"@types/node":"^17.0.6","@vitejs/plugin-vue":"^2.0.0","sass":"^1.45.2","typescript":"^4.4.4","vite":"^2.7.2","vue-tsc":"^0.29.8"},"gitHead":"b8906c25cac11aa784189ccac03be5e0c20a6194","description":"## 简介 | Description","_id":"@alanlee97/vue3-flex-box@0.0.4","_nodeVersion":"14.18.0","_npmVersion":"6.14.15","dist":{"integrity":"sha512-wF/b2Cuub5cPrZML0Zg3YvHAeyibEUnngGTssN96E/rW4Zwx2buWu0Xihm6cMZI26j9rWAeFxCz6u3NDaJU52g==","shasum":"7f688de40b89c4b513b4af467a92e76f4fe1339e","tarball":"https://registry.npmjs.org/@alanlee97/vue3-flex-box/-/vue3-flex-box-0.0.4.tgz","fileCount":6,"unpackedSize":17755,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh2Za9CRA9TVsSAnZWagAA0mMP/igpuhb2iwkL8KGJiSnY\neg8j842oVy+JfBzkVx85bn2AvOyjPwDtUNoqWqI/VmSrA1gdE0NKGfDsv3Gq\nUAiaWwbN4z3zUrD6Ej9eu7keKhkVtwH6M9RCQqRcYsgaeItO+NHDHLg7nwz+\nwEqzJQeZMIuF5SfGKBkDX1gJoN+l9sEFV917I3REbm8/0onEg132Pdhxs6sq\nSFWlKy+cxUT0g/Wa9W+zv7F/uxzSwSiKOIwYieLrJWvnFzBDWSIxDf6nW1xg\n6mC93sq01b4XVzLHtelRYZIZse1gEz7Lh0PXkSiEk5LoG9ToD5EyrDnLdb+X\nCu00v9ftnnLSKsXrplgRGh3j6Drleemke2wOvPWL5mZETYDRpgNahm4Z7ABG\nOyYjJuOc6a56k7Rmd5o5O1hfLBQOP1i3SJfIhGek9ssGY5sMgRnZXDAS3WKJ\nOrqJ6sf7OqoGDq3gNNzntYrto9dgGNTt63ljsPinuA1EyJ2LJhsvuuhaRsMM\nkjJcAa0vTLniA45ajQTNm53I/itr23zqDca9zJE8NFZwidqb6V76Uw4vsBPy\n1uIdgww/bwqovWV92rUCfEYKUbXvq3dP9VfHyFR9OatzlR9EFVLYlBsOuVxm\nYaJKs65F3ruRVmVGkJfC/M5WP1fQhz0LiCw4YsVtuSYOLaltTEYbPNmGbj7N\n9DUg\r\n=fW7T\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGUfo79fCGWrbffZDKuXfgoCFirmRbcO/HpsQIPMEuBHAiBzO3YuQ0ArXdVSAm81zclhkVKlodFdDOHj4QSa3MC3pQ=="}]},"_npmUser":{"name":"alanlee97","email":"1445654576@qq.com"},"directories":{},"maintainers":[{"name":"alanlee97","email":"1445654576@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vue3-flex-box_0.0.4_1641649852923_0.692963395874016"},"_hasShrinkwrap":false}},"time":{"created":"2022-01-02T08:21:03.504Z","0.0.1":"2022-01-02T08:21:03.692Z","modified":"2022-04-04T12:33:07.241Z","0.0.2":"2022-01-02T09:41:04.802Z","0.0.3":"2022-01-08T10:16:04.311Z","0.0.4":"2022-01-08T13:50:53.072Z"},"maintainers":[{"name":"alanlee97","email":"1445654576@qq.com"}],"description":"## 简介 | Description","readme":"# FlexBox Component For Vue3\n\n## 简介 | Description\n\n基于vue3开发的FlexBox组件。\n\nA flex-box component developed based on vue3.\n\n## 使用 | Usage\n\n### 基本使用\n\n**安装 | Install**\n\n```bash\nnpm i @alanlee97/vue3-flex-box\n```\n\n**引入组件 | Import Component**\n\n在需要使用flex-box组件的地方引入。\n\nIn the place where you need to use the flex - box component into it.\n\n```typescript\nimport FlexBox from '@alanlee97/vue3-flex-box';\n```\n\n或者全局引入，在main.ts中引入组件。\n\nOr you can globally import flex-box, import it in main.ts.\n\n```typescript\nimport { createApp } from 'vue'\nimport FlexBox from '@alanlee97/vue3-flex-box';\nimport '@alanlee97/vue3-flex-box/dist/style.css';\n\nconst app = createApp(App);\napp.component('flex-box', FlexBox);\napp.mount('#app');\n```\n\n\n\n**引入样式 | Import Style**\n\n在main.ts中引入样式。\n\nImport style file in main.ts.\n\n```typescript\nimport '@alanlee97/vue3-flex-box/dist/style.css';\n```\n\n\n\n**验证是否生效 | Validation**\n\n```vue\n<script setup lang=\"ts\">\n// This starter template is using Vue 3 <script setup> SFCs\n// Check out https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup\nimport FlexBox from '@alanlee97/vue3-flex-box';\n</script>\n\n<template>\n  <FlexBox space-between>\n    <div>1</div>\n    <div>2</div>\n  </FlexBox>\n</template>\n```\n\n可以看到效果，组件生效了。\n\nYou can see that the component works.\n\n![img](https://cdn.nlark.com/yuque/0/2022/png/743297/1641115019075-3b20045c-ddc4-406b-9c79-e7e640f238b9.png)\n\n\n\n### 通过v-flex指令使用flex-box | Use flex-box with v-flex directive\n\n**注册v-flex指令 | Register v-flex directive**\n\n```typescript\nimport { createApp } from 'vue'\nimport App from './App.vue'\nimport '@alanlee97/vue3-flex-box/dist/style.css';\nimport { vFlex } from '@alanlee97/vue3-flex-box';\n\nconst app = createApp(App);\napp.directive('flex', vFlex);\napp.mount('#app');\n```\n\n\n\n**通过指令修饰符的方式控制flex的效果 | Control the effect of flex by directive modifiers**\n\n```vue\n<div v-flex.space-between>\n  <div>1</div>\n  <div>2</div>\n</div>\n\n<div v-flex.between.wrap.center-v>\n  <div>1</div>\n  <div>2</div>\n</div>\n```\n\n\n\n## FlexBox属性 | Attributes\n\n| 属性            | 类型             | 默认值 | 说明                                                         |\n| --------------- | ---------------- | ------ | ------------------------------------------------------------ |\n| height          | string \\| number |        | 盒子的高度 <br/>Height of box                                |\n| width           | string \\| number |        | 盒子的宽度 <br/>Width of box                                 |\n| centerH         | boolean          | false  | 元素水平居中 <br/>Center element horizontally                |\n| centerV         | boolean          | false  | 元素垂直居中 <br/>Center elements vertically                 |\n| centerHV        | boolean          | false  | 元素水平垂直居中 <br/>Center elements horizontally and vertically |\n| spaceBetween    | boolean          | false  | 元素两边对齐 <br/>Align elements on both sides               |\n| between         | boolean          | false  | spaceBetween的属性简写（别名），元素两边对齐 <br>The attribute abbreviation (alias) of spaceBetween |\n| spaceAround     | boolean          | false  | 元素两边间距环绕 <br/>The spacing between two sides of the element is half of the other spacing |\n| around          | boolean          | false  | spaceAround的属性简写（别名），元素两边间距环绕<br/>Attribute abbreviation (alias) of spaceAround |\n| spaceEvenly     | boolean          | false  | 元素间距均等<br/>Space elements equally                      |\n| evenly          | boolean          | false  | spaceEvenly的属性简写（别名），元素间距均等<br/>Attribute abbreviation (alias) of spaceEvenly |\n| directionRow    | boolean          | false  | flex-box的方向，水平方向<br/>Direction of flex box, horizontal-direction |\n| directionR      | boolean          | false  | directionRow的属性简写（别名），flex-box的方向，水平方向<br/>Attribute abbreviation (alias) of directionRow |\n| horizontal      | boolean          | false  | directionRow的别名，flex-box的方向，水平方向<br/>Attribute abbreviation (alias) of directionRow |\n| directionColumn | boolean          | false  | flex-box的方向，垂直方向<br/>Direction of flex box, vertical-direction |\n| directionC      | boolean          | false  | directionColumn的属性简写（别名），flex-box的方向，垂直方向<br/>Attribute abbreviation (alias) of directionColumn |\n| vertical        | boolean          | false  | directionColumn的别名，flex-box的方向，垂直方向<br/>Attribute abbreviation (alias) of directionColumn |\n| direction       | string           |        | 手动指定flex-box的方向，同css的flex-direction的取值<br/>Manually specify the direction of the flex box |\n| itemAlignStart  | boolean          | false  | 元素排布的位置，从开端位置排列<br/>The position of element arrangement, arranged from the beginning |\n| itemAlignEnd    | boolean          | false  | 元素排布的位置，从末端位置排列<br/>The position of the element arrangement, arranged from the end position |\n| flexNum         | boolean          |        | flex的占比数，同css的flex属性的取值<br/>Flex number          |\n| wrap            | boolean          | false  | 是否换行<br/>Whether the element wraps                       |\n\n\n\n## 类型定义 | Type\n\n```ts\ninterface FlexBoxProps {\n  height?: string | number\n  width?: string | number\n  centerH?: boolean\n  centerV?: boolean\n  centerHV?: boolean\n  spaceBetween?: boolean\n  between?: boolean // the alias of spaceBetween\n  spaceAround?: boolean\n  around?: boolean // the alias of spaceAround\n  spaceEvenly?: boolean\n  evenly?: boolean // the alias of spaceEvenly\n  directionRow?: boolean\n  directionR?: boolean // the alias of directionRow\n  horizontal?: boolean // the alias of directionRow\n  directionColumn?: boolean\n  directionC?: boolean // the alias of directionColumn\n  vertical?: boolean // the alias of directionColumn\n  direction?: 'row' | 'column' | 'row-reverse' | 'column-reverse'\n  itemAlignStart?: boolean\n  itemAlignEnd?: boolean\n  flexNum?: number\n  wrap?: boolean\n}\n```\n\n","readmeFilename":"README.md","homepage":"https://github.com/AlanLee97/vue3-flex-box"}