{"_id":"@aligov/use-drawer-hook","_rev":"12-87bbceae5a198796bb71546fe6ccbeee","name":"@aligov/use-drawer-hook","description":"intro component","dist-tags":{"latest":"1.0.1-1"},"versions":{"1.0.0":{"name":"@aligov/use-drawer-hook","version":"1.0.0","keywords":["ice","react","component"],"license":"MIT","_id":"@aligov/use-drawer-hook@1.0.0","maintainers":[{"name":"tao1991123","email":"tao360907796@gmail.com"},{"name":"itrip","email":"1198488651@qq.com"},{"name":"liunian","email":"dengjij@gmail.com"},{"name":"xiazhiqiang","email":"xiazhiqiangcuc@126.com"},{"name":"jerrywang12","email":"463174595@qq.com"},{"name":"zhousufa","email":"zhousufa@gmail.com"},{"name":"mo.zhou","email":"bjfuzm@163.com"},{"name":"guoliang.hgl","email":"guoliang.hgl@alibaba-inc.com"},{"name":"zwhu","email":"zwhu2014@foxmail.com"},{"name":"zhangcong52","email":"386333321@qq.com"},{"name":"ccs0118","email":"ccs19871030@gmail.com"},{"name":"daip","email":"15858208586@163.com"},{"name":"zhaojian6516","email":"zhaojian6516@163.com"},{"name":"baizhao","email":"ethan.cqw@alibaba-inc.com"},{"name":"leezq","email":"lizhenq2009@gmail.com"},{"name":"jasoncapricorn","email":"17682318001@163.com"}],"homepage":"https://unpkg.com/@aligov/use-drawer-hook@1.0.0/build/index.html","dist":{"shasum":"1a09fa1784747472b5ff4ab5dff4754c1189d7b7","tarball":"https://registry.npmjs.org/@aligov/use-drawer-hook/-/use-drawer-hook-1.0.0.tgz","fileCount":14,"integrity":"sha512-gE4BvS31rF/S0Bgd3Gu2TjCC++3eLvzpK02gWClY4380svj4B8FGndvZIBt4pR7xO1E/u0hNCEjmg6rHmIVSxA==","signatures":[{"sig":"MEQCIAr9/bCHKWb+uHLtAtt4ZqgW+/0NDEEZ3U0hcaOC3QSYAiB1jvjk9iHzxSEDOgCdA5Ke64FHBLu/R04ikdOzmsHeNQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":322338,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgIj8oCRA9TVsSAnZWagAAdRIP/1/8F8GiCWhgjbBL6MeC\nODaVpTz+oVX1Vp9gjARVMvqJ7ZGrKT1GuIHV5D75tLV34oeZxHgEJHL7i88W\nrw/f2Q6S00Jvnfq0K8qYhAZvyt3SqIea9SACwecgNrOgwSde1XhLuR0d36bM\nGKFOzalr1+dKa+rcrpnhuXHFMOPcivpwEKNSzjasHQv9PUM7AzHR8kU098RT\nOsvkbFKAy5eeeo/rRaDB+zVuVjci+7dT8iYpVhF9UNDetAJxL55q0sKdptpq\n81AVxc0U6IWkWCBMW2Tfz/oRFk/QHYFWZuTbwCQkotaeZJ4BY3Vto1QYcqrC\n6hMtJKuj19waXxfh1QWtJGR2I9oOTbcF4zWnSVfT6KE8z0H0TynMqVe8k4t9\nmUmaBCtqfKhQEz5v3ybpHneviRSJSiegPWUIT2NaUG9cx6RQrpMB7x/SYBf0\nKsq16NI7dIlyVrxLNjsOs0ZEQZ5RpRHEzfrdLFDH9ToZm/gEJjcny8GFrakc\nDDPrn6ssNt85PB6F9MvmOiku3K9TAVe+srJvApEUOIych1XhFH43X+Df+grH\ngyG6jZR/Q8GBMN9vqkJuhyG9CaMoM8/tpx084F0dimu4uoVxNj43pgohlxqx\n6yECMFgf7o6oYbKKpPpjxPQRSldg8zDVAUO9fmb4CU3OF7vlfTvbKGtPPlJl\nqpBn\r\n=rZbO\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","module":"es/index.js","scripts":{"lint":"npm run eslint && npm run stylelint","test":"build-scripts test","build":"build-scripts build","start":"build-scripts start","eslint":"eslint --cache --ext .js,.jsx ./","stylelint":"stylelint \"**/*.{css,scss,less}\"","eslint:fix":"npm run eslint -- --fix","prepublishOnly":"npm run build"},"_npmUser":{"name":"mo.zhou","email":"bjfuzm@163.com"},"stylePath":"style.js","_npmVersion":"6.13.4","description":"intro component","directories":{},"_nodeVersion":"12.16.1","dependencies":{"prop-types":"^15.5.8"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"componentConfig":{"name":"UseDrawerHook","title":"demo component","category":"Others"},"devDependencies":{"react":"^16.3.0","enzyme":"^3.10.0","eslint":"^6.8.0","react-dom":"^16.3.0","stylelint":"^13.7.2","@alifd/next":"1.x","@types/react":"^16.9.13","@iceworks/spec":"^1.0.0","@types/react-dom":"^16.9.4","@alib/build-scripts":"^0.1.3","build-plugin-fusion":"^0.1.0","build-plugin-component":"^1.0.0","enzyme-adapter-react-16":"^1.14.0","build-plugin-moment-locales":"^0.1.0"},"peerDependencies":{"react":"^16.3.0","@alifd/next":"1.x"},"_npmOperationalInternal":{"tmp":"tmp/use-drawer-hook_1.0.0_1612857127740_0.2944361029305076","host":"s3://npm-registry-packages"}},"1.0.1-1":{"name":"@aligov/use-drawer-hook","version":"1.0.1-1","keywords":["ice","react","component"],"license":"MIT","_id":"@aligov/use-drawer-hook@1.0.1-1","maintainers":[{"name":"tao1991123","email":"tao360907796@gmail.com"},{"name":"itrip","email":"1198488651@qq.com"},{"name":"liunian","email":"dengjij@gmail.com"},{"name":"xiazhiqiang","email":"xiazhiqiangcuc@126.com"},{"name":"jerrywang12","email":"463174595@qq.com"},{"name":"zhousufa","email":"zhousufa@gmail.com"},{"name":"mo.zhou","email":"bjfuzm@163.com"},{"name":"guoliang.hgl","email":"guoliang.hgl@alibaba-inc.com"},{"name":"zwhu","email":"zwhu2014@foxmail.com"},{"name":"zhangcong52","email":"386333321@qq.com"},{"name":"ccs0118","email":"ccs19871030@gmail.com"},{"name":"daip","email":"15858208586@163.com"},{"name":"zhaojian6516","email":"zhaojian6516@163.com"},{"name":"baizhao","email":"ethan.cqw@alibaba-inc.com"},{"name":"leezq","email":"lizhenq2009@gmail.com"},{"name":"jasoncapricorn","email":"17682318001@163.com"}],"homepage":"https://unpkg.com/@aligov/use-drawer-hook@1.0.1-1/build/index.html","dist":{"shasum":"4dbade1ff232ccf1a474f06f9b35095931a85784","tarball":"https://registry.npmjs.org/@aligov/use-drawer-hook/-/use-drawer-hook-1.0.1-1.tgz","fileCount":14,"integrity":"sha512-gTY69wsd087L8LPD+Ss+47rdS3dwTPPpSpkKftuDf3zq9Odtc0+Mx7P9K7WE1cUnkyqNuxtvogNvqo2vy6bNNQ==","signatures":[{"sig":"MEQCIGy7O2Fm9GyKheF0AyqQjR1xBMFpawPTJZKDKLEmwbGBAiAmiwEXPnQT8IpGPvmNpt6gtga9lrxjWypiPvasmAeVyQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":329788,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh11Z6CRA9TVsSAnZWagAAQ0wP/1rtmrgyHe+RqSwvIsmY\nThvL7qmiDW8mCag31FbgNJL/vE/mfczGmPkWHRSWeOXn24U6AVp6bm87Tmn+\nb802VpRjsjNc3HgWEAjOVZ5bYsHsMvvbapO5jYCcz3S2LZBXDDap1sqjT72Y\nulzn+e2pNVP3sQpk1WD9aNGO7tHOiySsZS/XGwphp4S8Ya9cU9Ve1g+GWZUq\nTO2lUiRgcywv4xenRwjIJJfQUFiJZF0Yq/fXEKYlTsP9aobb12l7ZN1e887n\nlA5YahV5/3sTNs4sNE+3jpQzzfMdjHVaVb2+pU85COwHt67zyFBTeMa1fiMP\n2daNOndSyXWVXBwaUS8FMaVr3tEHxB7KrNzgdBwhhnZytx2vyjQgFz24ycwp\nXnVjEO1pabSQeBhVuk9o329BnWF16mLwuEfSH1RMHAoslo2L91JK03IZOt4K\nEskhRCA88IbvgBGLi59GP24KYaM7ga29SPTY4rjpQ3UWTN6ngCyvLKBLOQFr\nTCriasnA4F46u49c9mx0gMRK8IQV3tfj+t9U9PqnYzvp1c8AiiIVm4pcKFTZ\n/hII+qEt2hgloiBw6ncb98SobtkPqyrGirnpy3LsGmavlNc6LcqZB8Z2xTs3\nPKxD43tEBEJUhdVkw7SGbyeqBv3Pt6jla9IbtOtFFWq0mIH0/G1DBf05dmZ/\n+cUP\r\n=D9TC\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","module":"es/index.js","scripts":{"lint":"npm run eslint && npm run stylelint","test":"build-scripts test","build":"build-scripts build","start":"build-scripts start","eslint":"eslint --cache --ext .js,.jsx ./","stylelint":"stylelint \"**/*.{css,scss,less}\"","eslint:fix":"npm run eslint -- --fix","prepublishOnly":"npm run build"},"_npmUser":{"name":"mo.zhou","email":"bjfuzm@163.com"},"stylePath":"style.js","_npmVersion":"6.13.4","description":"intro component","directories":{},"_nodeVersion":"12.16.1","dependencies":{"prop-types":"^15.5.8"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"componentConfig":{"name":"UseDrawerHook","title":"demo component","category":"Others"},"devDependencies":{"react":"^16.3.0","enzyme":"^3.10.0","eslint":"^6.8.0","react-dom":"^16.3.0","stylelint":"^13.7.2","@alifd/next":"1.x","@types/react":"^16.9.13","@iceworks/spec":"^1.0.0","@types/react-dom":"^16.9.4","@alib/build-scripts":"^0.1.3","build-plugin-fusion":"^0.1.0","build-plugin-component":"^1.0.0","enzyme-adapter-react-16":"^1.14.0","build-plugin-moment-locales":"^0.1.0"},"peerDependencies":{"react":"^16.3.0","@alifd/next":"1.x"},"_npmOperationalInternal":{"tmp":"tmp/use-drawer-hook_1.0.1-1_1614740063205_0.6225734893798185","host":"s3://npm-registry-packages"}}},"time":{"created":"2021-02-09T07:52:07.525Z","modified":"2024-07-04T09:20:18.778Z","1.0.0":"2021-02-09T07:52:07.894Z","1.0.1-1":"2021-03-03T02:54:23.326Z"},"maintainers":[{"email":"wanyi.css@alibaba-inc.com","name":"wanyi.css"},{"email":"17682318001@163.com","name":"jasoncapricorn"},{"email":"chris_jun@aliyun.com","name":"qingkaili"},{"email":"hgxjyh@163.com","name":"huguoxin"},{"email":"shenyu.wsy@alibaba-inc.com","name":"shenyu.wsy"},{"email":"dengjij@gmail.com","name":"liunian"},{"email":"tao360907796@gmail.com","name":"tao1991123"},{"email":"1198488651@qq.com","name":"itrip"},{"email":"xiazhiqiangcuc@126.com","name":"xiazhiqiang"},{"email":"bjfuzm@163.com","name":"mo.zhou"},{"email":"guoliang.hgl@alibaba-inc.com","name":"guoliang.hgl"},{"email":"15858208586@163.com","name":"daip"},{"email":"ethan.cqw@gmail.com","name":"baizhao"}],"keywords":["ice","react","component"],"license":"MIT","homepage":"https://unpkg.com/@aligov/use-drawer-hook@1.0.1-1/build/index.html","readme":"# demo component\n\n@aligov/use-drawer-hook\n\nintro component\n\n## API\n\ndrawerInfo\nsetDrawerInfo\nonAddClose\n\n## 用法\n\n和@aligov/common-form-drawer 一起使用\n\n```jsx\nimport React, { Component } from \"react\";\nimport ReactDOM from \"react-dom\";\nimport UseDrawerHook from \"@aligov/use-drawer-hook\";\nimport CommonFormDrawer from \"@aligov/common-form-drawer\";\nimport { Button } from \"@alifd/next\";\n\nconst Home = () => {\n  const { drawerInfo, onAddClose, setDrawerInfo } = useDrawerHook();\n  return (\n    <div>\n      <Button\n        onClick={() => {\n          setDrawerInfo({\n            visible: true,\n            value: {},\n          });\n        }}\n      >\n        展开drawer\n      </Button>\n      <CommonFormDrawer\n        visible={drawerInfo.visible}\n        components={{ Input }}\n        dialogValue={drawerInfo.value}\n        onOk={console.log}\n        onClose={onAddClose}\n        mode={drawerInfo.mode}\n      >\n        <Field\n          name=\"name\"\n          title=\"Field用法\"\n          type=\"string\"\n          required={true}\n          x-component=\"Input\"\n        />\n      </CommonFormDrawer>\n    </div>\n  );\n};\n\nReactDOM.render(<Home />, mountNode);\n```\n","readmeFilename":"README.md"}