{"_id":"@aligov/gov-department-field","_rev":"20-64e95351f80d6d1833cbd460233b2d81","name":"@aligov/gov-department-field","description":"政务部门字段","dist-tags":{"beta":"1.0.0-beta.11","latest":"1.0.0"},"versions":{"1.0.0-beta.0":{"name":"@aligov/gov-department-field","version":"1.0.0-beta.0","keywords":["ice","react","component"],"license":"MIT","_id":"@aligov/gov-department-field@1.0.0-beta.0","maintainers":[{"name":"shenyu.wsy","email":"shenyu.wsy@alibaba-inc.com"},{"name":"liunian","email":"dengjij@gmail.com"},{"name":"tao1991123","email":"tao360907796@gmail.com"},{"name":"itrip","email":"1198488651@qq.com"},{"name":"xiazhiqiang","email":"xiazhiqiangcuc@126.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":"daip","email":"15858208586@163.com"},{"name":"baizhao","email":"ethan.cqw@alibaba-inc.com"}],"homepage":"https://unpkg.com/@aligov/gov-department-field@1.0.0-beta.0/build/index.html","dist":{"shasum":"616c672b9bda0c72059105345ee357b0aa896009","tarball":"https://registry.npmjs.org/@aligov/gov-department-field/-/gov-department-field-1.0.0-beta.0.tgz","fileCount":20,"integrity":"sha512-75gwrxltbF++Hvj59j4O9NAZQZhUira92WCFqNv9rI9GKCphNHkDL8JCYEUZaYP6JyddoE0vrLYTJIzCmDmvSA==","signatures":[{"sig":"MEUCIQDJ+zMbTDiGBGk9zBZoxaspsSn/lOu1PDEaUKsNQp7+FwIgZ4eSjlDeLBYFhNyEqlX+cGVLr95X0W4jf1k8Z6k7xc8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1308048},"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,.ts,.tsx ./","stylelint":"stylelint \"**/*.{css,scss,less}\"","eslint:fix":"npm run eslint -- --fix","prepublishOnly":"npm run build"},"_npmUser":{"name":"guoliang.hgl","email":"guoliang.hgl@alibaba-inc.com"},"_npmVersion":"6.7.0","description":"政务部门字段","directories":{},"sideEffects":["dist/*","*.scss","*.less","*.css"],"_nodeVersion":"11.15.0","dependencies":{"lodash":"^4.17.21","moment":"^2.29.1","prop-types":"^15.5.8","@alifd/next":"^1.24.10","@ali/request-olympics":"^1.3.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"componentConfig":{"name":"GovDepartmentField","title":"department field","category":"Others"},"devDependencies":{"react":"^17.0.2","enzyme":"^3.10.0","eslint":"^7.0.0","react-dom":"^17.0.2","stylelint":"^13.7.2","@types/react":"^17.0.2","build-scripts":"^1.1.1","@iceworks/spec":"^1.0.0","@types/react-dom":"^17.0.2","build-plugin-component":"^1.0.0","enzyme-adapter-react-16":"^1.14.0"},"peerDependencies":{"react":"^16 || ^17"},"_npmOperationalInternal":{"tmp":"tmp/gov-department-field_1.0.0-beta.0_1635256837672_0.8401454149084084","host":"s3://npm-registry-packages"}},"1.0.0-beta.1":{"name":"@aligov/gov-department-field","version":"1.0.0-beta.1","keywords":["ice","react","component"],"license":"MIT","_id":"@aligov/gov-department-field@1.0.0-beta.1","maintainers":[{"name":"shenyu.wsy","email":"shenyu.wsy@alibaba-inc.com"},{"name":"liunian","email":"dengjij@gmail.com"},{"name":"tao1991123","email":"tao360907796@gmail.com"},{"name":"itrip","email":"1198488651@qq.com"},{"name":"xiazhiqiang","email":"xiazhiqiangcuc@126.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":"daip","email":"15858208586@163.com"},{"name":"baizhao","email":"ethan.cqw@alibaba-inc.com"}],"homepage":"https://unpkg.com/@aligov/gov-department-field@1.0.0-beta.1/build/index.html","dist":{"shasum":"6c1fcafa0b45f17bf05c2f958646a439e3d2e1b5","tarball":"https://registry.npmjs.org/@aligov/gov-department-field/-/gov-department-field-1.0.0-beta.1.tgz","fileCount":20,"integrity":"sha512-sJUAKRKXsFMkjL+xJWnmckXwqyzIrwNWb4pmsB2b41LODq8H/2sg1j/jrt2CysZbIwMRsEemMYIMUOIwbWUZYg==","signatures":[{"sig":"MEYCIQCirNwn3XrYysir80D5Dm4RCBZ8iBqcSM8zJNrdFbPPAgIhAN2Bt4KCEhg7kelMZkc2Lm1VRSdJI0F9a89YuI04tArC","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1323509},"main":"lib/index.js","module":"es/index.js","readme":"# department field\n\n@aligov/gov-department-field\n\n政务部门组件，作为表单中的一个字段。\n\n推荐作为受控组件使用，即传value和onChange\n\n## Usage\n\n1. 普通受控用法\n\n```jsx\n  import GovDepartment from '@aligov/gov-department-field';\n\n\n  export default class Department extends Field {\n  static displayName = 'Department';\n\n  static defaultProps = {\n    componentId: null,\n    content: null,\n    style: null\n  };\n\n  static propTypes = {\n    componentId: React.PropTypes.string,\n    content: React.PropTypes.string,\n    style: React.PropTypes.object\n  };\n\n  constructor(props) {\n    super(props);\n\n    this.onChange = this.onChange.bind(this);\n  }\n\n  onChange(data) {\n    const { onChange } = this.getControlProps();\n\n    if (onChange) {\n      onChange(data);\n    }\n  }\n\n  render() {\n    const { value } = this.props;\n  \n    return <GovDepartment {...this.props} value={value} onChange={this.onChange} />;\n  }\n}\n```\n\n2. formily注册自定义组件用法\n\n```jsx\nimport React, { useState } from 'react'\nimport ReactDOM from 'react-dom'\nimport { SchemaForm, SchemaMarkupField as Field, useSchemaProps } from '@formily/antd' // 或者 @formily/next\nimport GovDepartment from '@aligov/gov-department-field';\n \nimport 'antd/dist/antd.css'\n\n\nconst CustomFieldComponent = props => {\n  const schemaProps = useSchemaProps()\n  return (\n    <GovDepartment\n      value={props.value || ''}\n      onChange={e => props.mutators.change(e.target.value)}\n    />\n  )\n}\n\nCustomFieldComponent.isFieldComponent = true\n\nconst App = () => {\n  const [value, setValue] = useState({});\n  return (\n    <SchemaForm\n      components={{ CustomFieldComponent }}\n      onChange={values => {\n        setValue(values)\n      }}\n    >\n      <Field\n        type=\"string\"\n        name=\"lastName\"\n        title=\"Last Name\"\n        x-component=\"CustomFieldComponent\"\n      />\n      {JSON.stringify(value, null, 2)}\n    </SchemaForm>\n  )\n}\n\nReactDOM.render(<App />, document.getElementById('root'))\n```","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,.ts,.tsx ./","stylelint":"stylelint \"**/*.{css,scss,less}\"","eslint:fix":"npm run eslint -- --fix","prepublishOnly":"npm run build"},"_npmUser":{"name":"guoliang.hgl","email":"guoliang.hgl@alibaba-inc.com"},"_npmVersion":"6.7.0","description":"政务部门字段","directories":{},"sideEffects":["dist/*","*.scss","*.less","*.css"],"_nodeVersion":"11.15.0","dependencies":{"lodash":"^4.17.21","moment":"^2.29.1","prop-types":"^15.5.8","@alifd/next":"^1.24.10","@ali/request-olympics":"^1.3.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","componentConfig":{"name":"GovDepartmentField","title":"department field","category":"Others"},"devDependencies":{"react":"^17.0.2","enzyme":"^3.10.0","eslint":"^7.0.0","react-dom":"^17.0.2","stylelint":"^13.7.2","@types/react":"^17.0.2","build-scripts":"^1.1.1","@iceworks/spec":"^1.0.0","@types/react-dom":"^17.0.2","build-plugin-component":"^1.0.0","enzyme-adapter-react-16":"^1.14.0"},"peerDependencies":{"react":"^16 || ^17"},"_npmOperationalInternal":{"tmp":"tmp/gov-department-field_1.0.0-beta.1_1635258188277_0.3130830417846766","host":"s3://npm-registry-packages"}},"1.0.0-beta.2":{"name":"@aligov/gov-department-field","version":"1.0.0-beta.2","keywords":["ice","react","component"],"license":"MIT","_id":"@aligov/gov-department-field@1.0.0-beta.2","maintainers":[{"name":"shenyu.wsy","email":"shenyu.wsy@alibaba-inc.com"},{"name":"liunian","email":"dengjij@gmail.com"},{"name":"tao1991123","email":"tao360907796@gmail.com"},{"name":"itrip","email":"1198488651@qq.com"},{"name":"xiazhiqiang","email":"xiazhiqiangcuc@126.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":"daip","email":"15858208586@163.com"},{"name":"baizhao","email":"ethan.cqw@alibaba-inc.com"}],"homepage":"https://unpkg.com/@aligov/gov-department-field@1.0.0-beta.2/build/index.html","dist":{"shasum":"8b9dcfa897e862d9aec8087f03f938044a818fa6","tarball":"https://registry.npmjs.org/@aligov/gov-department-field/-/gov-department-field-1.0.0-beta.2.tgz","fileCount":20,"integrity":"sha512-iC/PaUGQ9/bGdEi7F+SSZ00MDCcxM9fbjk4moCeFuF5LBkaADTZNxiE5d2lt7TAHNcoStiuYnesEvKGd/j/+RA==","signatures":[{"sig":"MEUCIGQMtFI8CPtg8EefrJW2c20Vbptx83/StiguPn87cHYlAiEAp56lfpXaJW0eQglw4zTih3u+83/Vid05mVOF+K6ZWBM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1323930},"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,.ts,.tsx ./","stylelint":"stylelint \"**/*.{css,scss,less}\"","eslint:fix":"npm run eslint -- --fix","prepublishOnly":"npm run build"},"_npmUser":{"name":"guoliang.hgl","email":"guoliang.hgl@alibaba-inc.com"},"_npmVersion":"6.7.0","description":"政务部门字段","directories":{},"sideEffects":["dist/*","*.scss","*.less","*.css"],"_nodeVersion":"11.15.0","dependencies":{"lodash":"^4.17.21","moment":"^2.29.1","prop-types":"^15.5.8","@alifd/next":"^1.24.10","@ali/request-olympics":"^1.3.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"componentConfig":{"name":"GovDepartmentField","title":"department field","category":"Others"},"devDependencies":{"react":"^17.0.2","enzyme":"^3.10.0","eslint":"^7.0.0","react-dom":"^17.0.2","stylelint":"^13.7.2","@types/react":"^17.0.2","build-scripts":"^1.1.1","@iceworks/spec":"^1.0.0","@types/react-dom":"^17.0.2","build-plugin-component":"^1.0.0","enzyme-adapter-react-16":"^1.14.0"},"peerDependencies":{"react":"^16 || ^17"},"_npmOperationalInternal":{"tmp":"tmp/gov-department-field_1.0.0-beta.2_1635258691342_0.34479461731322814","host":"s3://npm-registry-packages"}},"1.0.0-beta.3":{"name":"@aligov/gov-department-field","version":"1.0.0-beta.3","keywords":["ice","react","component"],"license":"MIT","_id":"@aligov/gov-department-field@1.0.0-beta.3","maintainers":[{"name":"shenyu.wsy","email":"shenyu.wsy@alibaba-inc.com"},{"name":"liunian","email":"dengjij@gmail.com"},{"name":"tao1991123","email":"tao360907796@gmail.com"},{"name":"itrip","email":"1198488651@qq.com"},{"name":"xiazhiqiang","email":"xiazhiqiangcuc@126.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":"daip","email":"15858208586@163.com"},{"name":"baizhao","email":"ethan.cqw@alibaba-inc.com"}],"homepage":"https://unpkg.com/@aligov/gov-department-field@1.0.0-beta.3/build/index.html","dist":{"shasum":"22a6d1a7d6580268d231275f224eabb357d93f38","tarball":"https://registry.npmjs.org/@aligov/gov-department-field/-/gov-department-field-1.0.0-beta.3.tgz","fileCount":20,"integrity":"sha512-VO5MCTmUVbf3dYxyHpYGyYc9Sbn930BP1HxE9t1laLxXxepuRnyba0ZY0Poy7q5BW87Vblf4KaPSXXWNYlnlLA==","signatures":[{"sig":"MEYCIQCUQ8sy8tdWSMgVaCKdP7wAumCbdLV8/DEOKwmJAxJhbAIhAM+lg0lD9SYhZs+YSWFwBK91m7l5CDFoHxquXDumR/iV","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1324078},"main":"lib/index.js","module":"es/index.js","readme":"# department field\n\n@aligov/gov-department-field\n\n政务部门组件，作为表单中的一个字段。\n\n推荐作为受控组件使用，即传value和onChange\n\n## Install\n\n```PowerShell\n(t)npm i @aligov/gov-department-field -S\n```\n\n## API\n\n```typescript\nvalue: [{ text: string; value: string }]\n```\n\n## Usage\n\n1. 普通受控用法\n\n```jsx\n  import GovDepartment from '@aligov/gov-department-field';\n\n  export default class Department extends Field {\n  static displayName = 'Department';\n\n  static defaultProps = {\n    componentId: null,\n    content: null,\n    style: null\n  };\n\n  static propTypes = {\n    componentId: React.PropTypes.string,\n    content: React.PropTypes.string,\n    style: React.PropTypes.object\n  };\n\n  constructor(props) {\n    super(props);\n\n    this.onChange = this.onChange.bind(this);\n  }\n\n  onChange(data) {\n    const { onChange } = this.getControlProps();\n\n    if (onChange) {\n      onChange(data);\n    }\n  }\n\n  render() {\n    const { value } = this.props;\n  \n    return <GovDepartment {...this.props} value={value} onChange={this.onChange} />;\n  }\n}\n```\n\n2. formily注册自定义组件用法\n\n```jsx\nimport React, { useState } from 'react'\nimport ReactDOM from 'react-dom'\nimport { SchemaForm, SchemaMarkupField as Field, useSchemaProps } from '@formily/antd' // 或者 @formily/next\nimport GovDepartment from '@aligov/gov-department-field';\n \nimport 'antd/dist/antd.css'\n\n\nconst CustomFieldComponent = props => {\n  const schemaProps = useSchemaProps()\n  return (\n    <GovDepartment\n      value={props.value || ''}\n      onChange={e => props.mutators.change(e.target.value)}\n    />\n  )\n}\n\nCustomFieldComponent.isFieldComponent = true\n\nconst App = () => {\n  const [value, setValue] = useState({});\n  return (\n    <SchemaForm\n      components={{ CustomFieldComponent }}\n      onChange={values => {\n        setValue(values)\n      }}\n    >\n      <Field\n        type=\"string\"\n        name=\"lastName\"\n        title=\"Last Name\"\n        x-component=\"CustomFieldComponent\"\n      />\n      {JSON.stringify(value, null, 2)}\n    </SchemaForm>\n  )\n}\n\nReactDOM.render(<App />, document.getElementById('root'))\n```\n\n","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,.ts,.tsx ./","stylelint":"stylelint \"**/*.{css,scss,less}\"","eslint:fix":"npm run eslint -- --fix","prepublishOnly":"npm run build"},"_npmUser":{"name":"guoliang.hgl","email":"guoliang.hgl@alibaba-inc.com"},"_npmVersion":"6.7.0","description":"政务部门字段","directories":{},"sideEffects":["dist/*","*.scss","*.less","*.css"],"_nodeVersion":"11.15.0","dependencies":{"lodash":"^4.17.21","moment":"^2.29.1","prop-types":"^15.5.8","@alifd/next":"^1.24.10","@ali/request-olympics":"^1.3.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","componentConfig":{"name":"GovDepartmentField","title":"department field","category":"Others"},"devDependencies":{"react":"^17.0.2","enzyme":"^3.10.0","eslint":"^7.0.0","react-dom":"^17.0.2","stylelint":"^13.7.2","@types/react":"^17.0.2","build-scripts":"^1.1.1","@iceworks/spec":"^1.0.0","@types/react-dom":"^17.0.2","build-plugin-component":"^1.0.0","enzyme-adapter-react-16":"^1.14.0"},"peerDependencies":{"react":"^16 || ^17"},"_npmOperationalInternal":{"tmp":"tmp/gov-department-field_1.0.0-beta.3_1635302997536_0.7210891331666374","host":"s3://npm-registry-packages"}},"1.0.0-beta.4":{"name":"@aligov/gov-department-field","version":"1.0.0-beta.4","keywords":["ice","react","component"],"license":"MIT","_id":"@aligov/gov-department-field@1.0.0-beta.4","maintainers":[{"name":"shenyu.wsy","email":"shenyu.wsy@alibaba-inc.com"},{"name":"liunian","email":"dengjij@gmail.com"},{"name":"tao1991123","email":"tao360907796@gmail.com"},{"name":"itrip","email":"1198488651@qq.com"},{"name":"xiazhiqiang","email":"xiazhiqiangcuc@126.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":"daip","email":"15858208586@163.com"},{"name":"baizhao","email":"ethan.cqw@alibaba-inc.com"}],"homepage":"https://unpkg.com/@aligov/gov-department-field@1.0.0-beta.4/build/index.html","dist":{"shasum":"65093ac010e79ce7dcd46ecc73d2b7af4be627f9","tarball":"https://registry.npmjs.org/@aligov/gov-department-field/-/gov-department-field-1.0.0-beta.4.tgz","fileCount":20,"integrity":"sha512-iqCqjNiMhOhS1uDG8a4PybtkLEOLYyaueQ+fkn3Ofy8gN6yIl0dcUx4NQB4MJu1nVQiBVWWxs8vkrTXCMkOu3Q==","signatures":[{"sig":"MEQCICJNjbDTAnXZNbYXzjYbZwIBBB46IdH20+UBpZX/zrX/AiBt/bccv86luHocZxfaqkcdTOjFOUGqvj0YiZVbBwqBAA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1324997},"main":"lib/index.js","module":"es/index.js","readme":"# department field\n\n@aligov/gov-department-field\n\n政务部门组件，作为表单中的一个字段。\n\n推荐作为受控组件使用，即传value和onChange\n\n## Install\n\n```PowerShell\n(t)npm i @aligov/gov-department-field -S\n```\n\n## API\n\n```typescript\nvalue: [{ text: string; value: string }]\n```\n\n## 依赖\n\n接口一: \n\n## Usage\n\n1. 普通受控用法\n\n```jsx\n  import GovDepartment from '@aligov/gov-department-field';\n\n  export default class Department extends Field {\n  static displayName = 'Department';\n\n  static defaultProps = {\n    componentId: null,\n    content: null,\n    style: null\n  };\n\n  static propTypes = {\n    componentId: React.PropTypes.string,\n    content: React.PropTypes.string,\n    style: React.PropTypes.object\n  };\n\n  constructor(props) {\n    super(props);\n\n    this.onChange = this.onChange.bind(this);\n  }\n\n  onChange(data) {\n    const { onChange } = this.getControlProps();\n\n    if (onChange) {\n      onChange(data);\n    }\n  }\n\n  render() {\n    const { value } = this.props;\n  \n    return <GovDepartment {...this.props} value={value} onChange={this.onChange} />;\n  }\n}\n```\n\n2. formily注册自定义组件用法\n\n```jsx\nimport React, { useState } from 'react'\nimport ReactDOM from 'react-dom'\nimport { SchemaForm, SchemaMarkupField as Field, useSchemaProps } from '@formily/antd' // 或者 @formily/next\nimport GovDepartment from '@aligov/gov-department-field';\n \nimport 'antd/dist/antd.css'\n\n\nconst CustomFieldComponent = props => {\n  const schemaProps = useSchemaProps()\n  return (\n    <GovDepartment\n      value={props.value || ''}\n      onChange={e => props.mutators.change(e.target.value)}\n    />\n  )\n}\n\nCustomFieldComponent.isFieldComponent = true\n\nconst App = () => {\n  const [value, setValue] = useState({});\n  return (\n    <SchemaForm\n      components={{ CustomFieldComponent }}\n      onChange={values => {\n        setValue(values)\n      }}\n    >\n      <Field\n        type=\"string\"\n        name=\"lastName\"\n        title=\"Last Name\"\n        x-component=\"CustomFieldComponent\"\n      />\n      {JSON.stringify(value, null, 2)}\n    </SchemaForm>\n  )\n}\n\nReactDOM.render(<App />, document.getElementById('root'))\n```\n\n","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,.ts,.tsx ./","stylelint":"stylelint \"**/*.{css,scss,less}\"","eslint:fix":"npm run eslint -- --fix","prepublishOnly":"npm run build"},"_npmUser":{"name":"guoliang.hgl","email":"guoliang.hgl@alibaba-inc.com"},"_npmVersion":"6.7.0","description":"政务部门字段","directories":{},"sideEffects":["dist/*","*.scss","*.less","*.css"],"_nodeVersion":"11.15.0","dependencies":{"lodash":"^4.17.21","moment":"^2.29.1","prop-types":"^15.5.8","@alifd/next":"^1.24.10","@ali/request-olympics":"^1.3.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","componentConfig":{"name":"GovDepartmentField","title":"department field","category":"Others"},"devDependencies":{"react":"^17.0.2","enzyme":"^3.10.0","eslint":"^7.0.0","react-dom":"^17.0.2","stylelint":"^13.7.2","@types/react":"^17.0.2","build-scripts":"^1.1.1","@iceworks/spec":"^1.0.0","@types/react-dom":"^17.0.2","build-plugin-component":"^1.0.0","enzyme-adapter-react-16":"^1.14.0"},"peerDependencies":{"react":"^16 || ^17"},"_npmOperationalInternal":{"tmp":"tmp/gov-department-field_1.0.0-beta.4_1635321923358_0.9755079800004138","host":"s3://npm-registry-packages"}},"1.0.0-beta.5":{"name":"@aligov/gov-department-field","version":"1.0.0-beta.5","keywords":["ice","react","component"],"license":"MIT","_id":"@aligov/gov-department-field@1.0.0-beta.5","maintainers":[{"name":"shenyu.wsy","email":"shenyu.wsy@alibaba-inc.com"},{"name":"liunian","email":"dengjij@gmail.com"},{"name":"tao1991123","email":"tao360907796@gmail.com"},{"name":"itrip","email":"1198488651@qq.com"},{"name":"xiazhiqiang","email":"xiazhiqiangcuc@126.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":"daip","email":"15858208586@163.com"},{"name":"baizhao","email":"ethan.cqw@alibaba-inc.com"}],"homepage":"https://unpkg.com/@aligov/gov-department-field@1.0.0-beta.5/build/index.html","dist":{"shasum":"02b5143b60182ed6bb88b8750fadf6d06b798656","tarball":"https://registry.npmjs.org/@aligov/gov-department-field/-/gov-department-field-1.0.0-beta.5.tgz","fileCount":20,"integrity":"sha512-c61T2j5hUVI+5AFNrVPed9KItDFfX+mYuJy0PVau//dXdcJhb59gkaezm/KpFV+1sPRNvIKbvRLEOceuGRWzkg==","signatures":[{"sig":"MEQCIBGsxkm7Yfn33BR7Q2j+XiAkSvsiBObI8YQdrdWxny13AiBJ00FgwAUhDweCi9DUwZLejuiNxXkpChw+mwT4jDbaaA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1326965},"main":"lib/index.js","module":"es/index.js","readme":"# department field\n\n@aligov/gov-department-field\n\n政务部门组件，作为表单中的一个字段。\n\n推荐作为受控组件使用，即传value和onChange\n\n## Install\n\n```PowerShell\n(t)npm i @aligov/gov-department-field -S\n```\n\n## API\n\n```typescript\nvalue: [{ text: string; value: string }]\n```\n\n## 依赖\n\n接口一: \n\n## Usage\n\n1. 普通受控用法\n\n```jsx\n  import GovDepartment from '@aligov/gov-department-field';\n\n  export default class Department extends Field {\n  static displayName = 'Department';\n\n  static defaultProps = {\n    componentId: null,\n    content: null,\n    style: null\n  };\n\n  static propTypes = {\n    componentId: React.PropTypes.string,\n    content: React.PropTypes.string,\n    style: React.PropTypes.object\n  };\n\n  constructor(props) {\n    super(props);\n\n    this.onChange = this.onChange.bind(this);\n  }\n\n  onChange(data) {\n    const { onChange } = this.getControlProps();\n\n    if (onChange) {\n      onChange(data);\n    }\n  }\n\n  render() {\n    const { value } = this.props;\n  \n    return <GovDepartment {...this.props} value={value} onChange={this.onChange} />;\n  }\n}\n```\n\n2. formily注册自定义组件用法\n\n```jsx\nimport React, { useState } from 'react'\nimport ReactDOM from 'react-dom'\nimport { SchemaForm, SchemaMarkupField as Field, useSchemaProps } from '@formily/antd' // 或者 @formily/next\nimport GovDepartment from '@aligov/gov-department-field';\n \nimport 'antd/dist/antd.css'\n\n\nconst CustomFieldComponent = props => {\n  const schemaProps = useSchemaProps()\n  return (\n    <GovDepartment\n      value={props.value || ''}\n      onChange={e => props.mutators.change(e.target.value)}\n    />\n  )\n}\n\nCustomFieldComponent.isFieldComponent = true\n\nconst App = () => {\n  const [value, setValue] = useState({});\n  return (\n    <SchemaForm\n      components={{ CustomFieldComponent }}\n      onChange={values => {\n        setValue(values)\n      }}\n    >\n      <Field\n        type=\"string\"\n        name=\"lastName\"\n        title=\"Last Name\"\n        x-component=\"CustomFieldComponent\"\n      />\n      {JSON.stringify(value, null, 2)}\n    </SchemaForm>\n  )\n}\n\nReactDOM.render(<App />, document.getElementById('root'))\n```\n\n","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,.ts,.tsx ./","stylelint":"stylelint \"**/*.{css,scss,less}\"","eslint:fix":"npm run eslint -- --fix","prepublishOnly":"npm run build"},"_npmUser":{"name":"guoliang.hgl","email":"guoliang.hgl@alibaba-inc.com"},"_npmVersion":"6.7.0","description":"政务部门字段","directories":{},"sideEffects":["dist/*","*.scss","*.less","*.css"],"_nodeVersion":"11.15.0","dependencies":{"lodash":"^4.17.21","moment":"^2.29.1","prop-types":"^15.5.8","@alifd/next":"^1.24.10","@ali/request-olympics":"^1.3.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","componentConfig":{"name":"GovDepartmentField","title":"department field","category":"Others"},"devDependencies":{"react":"^17.0.2","enzyme":"^3.10.0","eslint":"^7.0.0","react-dom":"^17.0.2","stylelint":"^13.7.2","@types/react":"^17.0.2","build-scripts":"^1.1.1","@iceworks/spec":"^1.0.0","@types/react-dom":"^17.0.2","build-plugin-component":"^1.0.0","enzyme-adapter-react-16":"^1.14.0"},"peerDependencies":{"react":"^16 || ^17"},"_npmOperationalInternal":{"tmp":"tmp/gov-department-field_1.0.0-beta.5_1635342279906_0.6990434966051833","host":"s3://npm-registry-packages"}},"1.0.0-beta.6":{"name":"@aligov/gov-department-field","version":"1.0.0-beta.6","keywords":["ice","react","component"],"license":"MIT","_id":"@aligov/gov-department-field@1.0.0-beta.6","maintainers":[{"name":"shenyu.wsy","email":"shenyu.wsy@alibaba-inc.com"},{"name":"liunian","email":"dengjij@gmail.com"},{"name":"tao1991123","email":"tao360907796@gmail.com"},{"name":"itrip","email":"1198488651@qq.com"},{"name":"xiazhiqiang","email":"xiazhiqiangcuc@126.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":"daip","email":"15858208586@163.com"},{"name":"baizhao","email":"ethan.cqw@alibaba-inc.com"}],"homepage":"https://unpkg.com/@aligov/gov-department-field@1.0.0-beta.6/build/index.html","dist":{"shasum":"470cd671f58fa79a2cbee965f4a52c0512bdaac4","tarball":"https://registry.npmjs.org/@aligov/gov-department-field/-/gov-department-field-1.0.0-beta.6.tgz","fileCount":20,"integrity":"sha512-NPD/9ZN0sIkXPwvWdIpY6ZtvaWCzNW8FpCOh+nEP4kQrLI4nBpg97/QoaI9lwI23r7MxT+/toS4JYMMUaA4kpQ==","signatures":[{"sig":"MEYCIQD5Xr1Mm2Ou2KzvptsvO6UO0cCyJ3JYV4KjBucdX9uHqgIhAPelGgXgI6gTwJ0TuI+xkR5xCDqUxaXqg4QjQx7sMrh5","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1327152},"main":"lib/index.js","module":"es/index.js","readme":"# department field\n\n@aligov/gov-department-field\n\n政务部门组件，作为表单中的一个字段。\n\n推荐作为受控组件使用，即传value和onChange\n\n## Install\n\n```PowerShell\n(t)npm i @aligov/gov-department-field -S\n```\n\n## API\n\n```typescript\nvalue: [{ text: string; value: string }]\n```\n\n## 依赖\n\n接口一: \n\n## Usage\n\n1. 普通受控用法\n\n```jsx\n  import GovDepartment from '@aligov/gov-department-field';\n\n  export default class Department extends Field {\n  static displayName = 'Department';\n\n  static defaultProps = {\n    componentId: null,\n    content: null,\n    style: null\n  };\n\n  static propTypes = {\n    componentId: React.PropTypes.string,\n    content: React.PropTypes.string,\n    style: React.PropTypes.object\n  };\n\n  constructor(props) {\n    super(props);\n\n    this.onChange = this.onChange.bind(this);\n  }\n\n  onChange(data) {\n    const { onChange } = this.getControlProps();\n\n    if (onChange) {\n      onChange(data);\n    }\n  }\n\n  render() {\n    const { value } = this.props;\n  \n    return <GovDepartment {...this.props} value={value} onChange={this.onChange} />;\n  }\n}\n```\n\n2. formily注册自定义组件用法\n\n```jsx\nimport React, { useState } from 'react'\nimport ReactDOM from 'react-dom'\nimport { SchemaForm, SchemaMarkupField as Field, useSchemaProps } from '@formily/antd' // 或者 @formily/next\nimport GovDepartment from '@aligov/gov-department-field';\n \nimport 'antd/dist/antd.css'\n\n\nconst CustomFieldComponent = props => {\n  const schemaProps = useSchemaProps()\n  return (\n    <GovDepartment\n      value={props.value || ''}\n      onChange={e => props.mutators.change(e.target.value)}\n    />\n  )\n}\n\nCustomFieldComponent.isFieldComponent = true\n\nconst App = () => {\n  const [value, setValue] = useState({});\n  return (\n    <SchemaForm\n      components={{ CustomFieldComponent }}\n      onChange={values => {\n        setValue(values)\n      }}\n    >\n      <Field\n        type=\"string\"\n        name=\"lastName\"\n        title=\"Last Name\"\n        x-component=\"CustomFieldComponent\"\n      />\n      {JSON.stringify(value, null, 2)}\n    </SchemaForm>\n  )\n}\n\nReactDOM.render(<App />, document.getElementById('root'))\n```\n\n","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,.ts,.tsx ./","stylelint":"stylelint \"**/*.{css,scss,less}\"","eslint:fix":"npm run eslint -- --fix","prepublishOnly":"npm run build"},"_npmUser":{"name":"guoliang.hgl","email":"guoliang.hgl@alibaba-inc.com"},"_npmVersion":"6.7.0","description":"政务部门字段","directories":{},"sideEffects":["dist/*","*.scss","*.less","*.css"],"_nodeVersion":"11.15.0","dependencies":{"lodash":"^4.17.21","moment":"^2.29.1","prop-types":"^15.5.8","@alifd/next":"^1.24.10","@ali/request-olympics":"^1.3.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","componentConfig":{"name":"GovDepartmentField","title":"department field","category":"Others"},"devDependencies":{"react":"^17.0.2","enzyme":"^3.10.0","eslint":"^7.0.0","react-dom":"^17.0.2","stylelint":"^13.7.2","@types/react":"^17.0.2","build-scripts":"^1.1.1","@iceworks/spec":"^1.0.0","@types/react-dom":"^17.0.2","build-plugin-component":"^1.0.0","enzyme-adapter-react-16":"^1.14.0"},"peerDependencies":{"react":"^16 || ^17"},"_npmOperationalInternal":{"tmp":"tmp/gov-department-field_1.0.0-beta.6_1635393361855_0.8918088289992736","host":"s3://npm-registry-packages"}},"1.0.0-beta.7":{"name":"@aligov/gov-department-field","version":"1.0.0-beta.7","keywords":["ice","react","component"],"license":"MIT","_id":"@aligov/gov-department-field@1.0.0-beta.7","maintainers":[{"name":"shenyu.wsy","email":"shenyu.wsy@alibaba-inc.com"},{"name":"liunian","email":"dengjij@gmail.com"},{"name":"tao1991123","email":"tao360907796@gmail.com"},{"name":"itrip","email":"1198488651@qq.com"},{"name":"xiazhiqiang","email":"xiazhiqiangcuc@126.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":"daip","email":"15858208586@163.com"},{"name":"baizhao","email":"ethan.cqw@alibaba-inc.com"}],"homepage":"https://unpkg.com/@aligov/gov-department-field@1.0.0-beta.7/build/index.html","dist":{"shasum":"e72e27c8448d85203cedecf78b11fef8659c48e0","tarball":"https://registry.npmjs.org/@aligov/gov-department-field/-/gov-department-field-1.0.0-beta.7.tgz","fileCount":20,"integrity":"sha512-X09aJKINB5ECJr4mte5grWDD6KSn43HyhmrZroF1at/mf4hIfwQEcw0wH65mWbO/BprAsyAZi5wqsANYmGzbDg==","signatures":[{"sig":"MEYCIQDz8fsMgQxtj0gY4RwZ4LJGPxUKTJYldxelVKwOKxvjIwIhAND9DUb8vhqTCHH4X9hx/n+WXUQquxBsyK6coQ35K0gD","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1327145},"main":"lib/index.js","module":"es/index.js","readme":"# department field\n\n@aligov/gov-department-field\n\n政务部门组件，作为表单中的一个字段。\n\n推荐作为受控组件使用，即传value和onChange\n\n## Install\n\n```PowerShell\n(t)npm i @aligov/gov-department-field -S\n```\n\n## API\n\n```typescript\nvalue: [{ text: string; value: string }]\n```\n\n## 依赖\n\n接口一: \n\n## Usage\n\n1. 普通受控用法\n\n```jsx\n  import GovDepartment from '@aligov/gov-department-field';\n\n  export default class Department extends Field {\n  static displayName = 'Department';\n\n  static defaultProps = {\n    componentId: null,\n    content: null,\n    style: null\n  };\n\n  static propTypes = {\n    componentId: React.PropTypes.string,\n    content: React.PropTypes.string,\n    style: React.PropTypes.object\n  };\n\n  constructor(props) {\n    super(props);\n\n    this.onChange = this.onChange.bind(this);\n  }\n\n  onChange(data) {\n    const { onChange } = this.getControlProps();\n\n    if (onChange) {\n      onChange(data);\n    }\n  }\n\n  render() {\n    const { value } = this.props;\n  \n    return <GovDepartment {...this.props} value={value} onChange={this.onChange} />;\n  }\n}\n```\n\n2. formily注册自定义组件用法\n\n```jsx\nimport React, { useState } from 'react'\nimport ReactDOM from 'react-dom'\nimport { SchemaForm, SchemaMarkupField as Field, useSchemaProps } from '@formily/antd' // 或者 @formily/next\nimport GovDepartment from '@aligov/gov-department-field';\n \nimport 'antd/dist/antd.css'\n\n\nconst CustomFieldComponent = props => {\n  const schemaProps = useSchemaProps()\n  return (\n    <GovDepartment\n      value={props.value || ''}\n      onChange={e => props.mutators.change(e.target.value)}\n    />\n  )\n}\n\nCustomFieldComponent.isFieldComponent = true\n\nconst App = () => {\n  const [value, setValue] = useState({});\n  return (\n    <SchemaForm\n      components={{ CustomFieldComponent }}\n      onChange={values => {\n        setValue(values)\n      }}\n    >\n      <Field\n        type=\"string\"\n        name=\"lastName\"\n        title=\"Last Name\"\n        x-component=\"CustomFieldComponent\"\n      />\n      {JSON.stringify(value, null, 2)}\n    </SchemaForm>\n  )\n}\n\nReactDOM.render(<App />, document.getElementById('root'))\n```\n\n","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,.ts,.tsx ./","stylelint":"stylelint \"**/*.{css,scss,less}\"","eslint:fix":"npm run eslint -- --fix","prepublishOnly":"npm run build"},"_npmUser":{"name":"guoliang.hgl","email":"guoliang.hgl@alibaba-inc.com"},"_npmVersion":"6.7.0","description":"政务部门字段","directories":{},"sideEffects":["dist/*","*.scss","*.less","*.css"],"_nodeVersion":"11.15.0","dependencies":{"lodash":"^4.17.21","moment":"^2.29.1","prop-types":"^15.5.8","@alifd/next":"^1.24.10","@ali/request-olympics":"^1.3.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","componentConfig":{"name":"GovDepartmentField","title":"department field","category":"Others"},"devDependencies":{"react":"^17.0.2","enzyme":"^3.10.0","eslint":"^7.0.0","react-dom":"^17.0.2","stylelint":"^13.7.2","@types/react":"^17.0.2","build-scripts":"^1.1.1","@iceworks/spec":"^1.0.0","@types/react-dom":"^17.0.2","build-plugin-component":"^1.0.0","enzyme-adapter-react-16":"^1.14.0"},"peerDependencies":{"react":"^16 || ^17"},"_npmOperationalInternal":{"tmp":"tmp/gov-department-field_1.0.0-beta.7_1635410166111_0.47577282497936224","host":"s3://npm-registry-packages"}},"1.0.0-beta.8":{"name":"@aligov/gov-department-field","version":"1.0.0-beta.8","keywords":["ice","react","component"],"license":"MIT","_id":"@aligov/gov-department-field@1.0.0-beta.8","maintainers":[{"name":"shenyu.wsy","email":"shenyu.wsy@alibaba-inc.com"},{"name":"liunian","email":"dengjij@gmail.com"},{"name":"tao1991123","email":"tao360907796@gmail.com"},{"name":"itrip","email":"1198488651@qq.com"},{"name":"xiazhiqiang","email":"xiazhiqiangcuc@126.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":"daip","email":"15858208586@163.com"},{"name":"baizhao","email":"ethan.cqw@alibaba-inc.com"}],"homepage":"https://unpkg.com/@aligov/gov-department-field@1.0.0-beta.8/build/index.html","dist":{"shasum":"d211cee8b1f5239aff8bfecd3d5a029cefa9dd25","tarball":"https://registry.npmjs.org/@aligov/gov-department-field/-/gov-department-field-1.0.0-beta.8.tgz","fileCount":22,"integrity":"sha512-Ytyhzz9AMoag16ifiiHvCiUEo/Vzi4xmcg3PqS9IXv7K/LduqQzRcfj/zd/myRDDvF/i34hYnQS5n87w+8dL2g==","signatures":[{"sig":"MEQCIETY0VbtFMdOoqlqNDCEBExW5Lj5qBT+24GGHYfDzMvTAiAXhIxczr3COWeFkuygB+dL9VU+V3hqTSm1AYTrn5U/0w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1329727},"main":"lib/index.js","module":"es/index.js","readme":"# department field\n\n@aligov/gov-department-field\n\n政务部门组件，作为表单中的一个字段。\n\n推荐作为受控组件使用，即传value和onChange\n\n## Install\n\n```PowerShell\n(t)npm i @aligov/gov-department-field -S\n```\n\n## API\n\n```typescript\nvalue: [{ text: string; value: string }]\n```\n\n## 依赖\n\n接口一: \n\n## Usage\n\n1. 普通受控用法\n\n```jsx\n  import GovDepartment from '@aligov/gov-department-field';\n\n  export default class Department extends Field {\n  static displayName = 'Department';\n\n  static defaultProps = {\n    componentId: null,\n    content: null,\n    style: null\n  };\n\n  static propTypes = {\n    componentId: React.PropTypes.string,\n    content: React.PropTypes.string,\n    style: React.PropTypes.object\n  };\n\n  constructor(props) {\n    super(props);\n\n    this.onChange = this.onChange.bind(this);\n  }\n\n  onChange(data) {\n    const { onChange } = this.getControlProps();\n\n    if (onChange) {\n      onChange(data);\n    }\n  }\n\n  render() {\n    const { value } = this.props;\n  \n    return <GovDepartment {...this.props} value={value} onChange={this.onChange} />;\n  }\n}\n```\n\n2. formily注册自定义组件用法\n\n```jsx\nimport React, { useState } from 'react'\nimport ReactDOM from 'react-dom'\nimport { SchemaForm, SchemaMarkupField as Field, useSchemaProps } from '@formily/antd' // 或者 @formily/next\nimport GovDepartment from '@aligov/gov-department-field';\n \nimport 'antd/dist/antd.css'\n\n\nconst CustomFieldComponent = props => {\n  const schemaProps = useSchemaProps()\n  return (\n    <GovDepartment\n      value={props.value || ''}\n      onChange={e => props.mutators.change(e.target.value)}\n    />\n  )\n}\n\nCustomFieldComponent.isFieldComponent = true\n\nconst App = () => {\n  const [value, setValue] = useState({});\n  return (\n    <SchemaForm\n      components={{ CustomFieldComponent }}\n      onChange={values => {\n        setValue(values)\n      }}\n    >\n      <Field\n        type=\"string\"\n        name=\"lastName\"\n        title=\"Last Name\"\n        x-component=\"CustomFieldComponent\"\n      />\n      {JSON.stringify(value, null, 2)}\n    </SchemaForm>\n  )\n}\n\nReactDOM.render(<App />, document.getElementById('root'))\n```\n\n","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,.ts,.tsx ./","stylelint":"stylelint \"**/*.{css,scss,less}\"","eslint:fix":"npm run eslint -- --fix","prepublishOnly":"npm run build"},"_npmUser":{"name":"guoliang.hgl","email":"guoliang.hgl@alibaba-inc.com"},"_npmVersion":"6.7.0","description":"政务部门字段","directories":{},"sideEffects":["dist/*","*.scss","*.less","*.css"],"_nodeVersion":"11.15.0","dependencies":{"lodash":"^4.17.21","moment":"^2.29.1","prop-types":"^15.5.8","@alifd/next":"^1.24.10","@ali/request-olympics":"^1.3.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","componentConfig":{"name":"GovDepartmentField","title":"department field","category":"Others"},"devDependencies":{"react":"^17.0.2","enzyme":"^3.10.0","eslint":"^7.0.0","react-dom":"^17.0.2","stylelint":"^13.7.2","@types/react":"^17.0.2","build-scripts":"^1.1.1","@iceworks/spec":"^1.0.0","@types/react-dom":"^17.0.2","build-plugin-component":"^1.0.0","enzyme-adapter-react-16":"^1.14.0"},"peerDependencies":{"react":"^16 || ^17"},"_npmOperationalInternal":{"tmp":"tmp/gov-department-field_1.0.0-beta.8_1635492676588_0.5165062839058383","host":"s3://npm-registry-packages"}},"1.0.0-beta.9":{"name":"@aligov/gov-department-field","version":"1.0.0-beta.9","keywords":["ice","react","component"],"license":"MIT","_id":"@aligov/gov-department-field@1.0.0-beta.9","maintainers":[{"name":"shenyu.wsy","email":"shenyu.wsy@alibaba-inc.com"},{"name":"liunian","email":"dengjij@gmail.com"},{"name":"tao1991123","email":"tao360907796@gmail.com"},{"name":"itrip","email":"1198488651@qq.com"},{"name":"xiazhiqiang","email":"xiazhiqiangcuc@126.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":"daip","email":"15858208586@163.com"},{"name":"baizhao","email":"ethan.cqw@alibaba-inc.com"}],"homepage":"https://unpkg.com/@aligov/gov-department-field@1.0.0-beta.9/build/index.html","dist":{"shasum":"1ab8765ba1b78ad324ca41cfe170546b18fdc860","tarball":"https://registry.npmjs.org/@aligov/gov-department-field/-/gov-department-field-1.0.0-beta.9.tgz","fileCount":22,"integrity":"sha512-4ziWjbk36iv1AFErWquq38vCNtYZxnHHc3zhxE/xEhJAE19zdwzQ8RABE57FK2EUI1f1AVCK97BBaZ2pCnY5Mw==","signatures":[{"sig":"MEQCIGtY8D1nUKdzzoXGWale3XL9V73yTgMyw7YdsMxoCui7AiBa2m+kvKiY8WxoGKjLdo/hiMP6PRn+Pq3IJXjmZ9h0pg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1329692},"main":"lib/index.js","module":"es/index.js","readme":"# department field\n\n@aligov/gov-department-field\n\n政务部门组件，作为表单中的一个字段。\n\n推荐作为受控组件使用，即传value和onChange\n\n## Install\n\n```PowerShell\n(t)npm i @aligov/gov-department-field -S\n```\n\n## API\n\n```typescript\nvalue: [{ text: string; value: string }]\n```\n\n## 依赖\n\n接口一: \n\n## Usage\n\n1. 普通受控用法\n\n```jsx\n  import GovDepartment from '@aligov/gov-department-field';\n\n  export default class Department extends Field {\n  static displayName = 'Department';\n\n  static defaultProps = {\n    componentId: null,\n    content: null,\n    style: null\n  };\n\n  static propTypes = {\n    componentId: React.PropTypes.string,\n    content: React.PropTypes.string,\n    style: React.PropTypes.object\n  };\n\n  constructor(props) {\n    super(props);\n\n    this.onChange = this.onChange.bind(this);\n  }\n\n  onChange(data) {\n    const { onChange } = this.getControlProps();\n\n    if (onChange) {\n      onChange(data);\n    }\n  }\n\n  render() {\n    const { value } = this.props;\n  \n    return <GovDepartment {...this.props} value={value} onChange={this.onChange} />;\n  }\n}\n```\n\n2. formily注册自定义组件用法\n\n```jsx\nimport React, { useState } from 'react'\nimport ReactDOM from 'react-dom'\nimport { SchemaForm, SchemaMarkupField as Field, useSchemaProps } from '@formily/antd' // 或者 @formily/next\nimport GovDepartment from '@aligov/gov-department-field';\n \nimport 'antd/dist/antd.css'\n\n\nconst CustomFieldComponent = props => {\n  const schemaProps = useSchemaProps()\n  return (\n    <GovDepartment\n      value={props.value || ''}\n      onChange={e => props.mutators.change(e.target.value)}\n    />\n  )\n}\n\nCustomFieldComponent.isFieldComponent = true\n\nconst App = () => {\n  const [value, setValue] = useState({});\n  return (\n    <SchemaForm\n      components={{ CustomFieldComponent }}\n      onChange={values => {\n        setValue(values)\n      }}\n    >\n      <Field\n        type=\"string\"\n        name=\"lastName\"\n        title=\"Last Name\"\n        x-component=\"CustomFieldComponent\"\n      />\n      {JSON.stringify(value, null, 2)}\n    </SchemaForm>\n  )\n}\n\nReactDOM.render(<App />, document.getElementById('root'))\n```\n\n","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,.ts,.tsx ./","stylelint":"stylelint \"**/*.{css,scss,less}\"","eslint:fix":"npm run eslint -- --fix","prepublishOnly":"npm run build"},"_npmUser":{"name":"guoliang.hgl","email":"guoliang.hgl@alibaba-inc.com"},"_npmVersion":"6.7.0","description":"政务部门字段","directories":{},"sideEffects":["dist/*","*.scss","*.less","*.css"],"_nodeVersion":"11.15.0","dependencies":{"lodash":"^4.17.21","moment":"^2.29.1","prop-types":"^15.5.8","@alifd/next":"^1.24.10","@ali/request-olympics":"^1.3.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","componentConfig":{"name":"GovDepartmentField","title":"department field","category":"Others"},"devDependencies":{"react":"^17.0.2","enzyme":"^3.10.0","eslint":"^7.0.0","react-dom":"^17.0.2","stylelint":"^13.7.2","@types/react":"^17.0.2","build-scripts":"^1.1.1","@iceworks/spec":"^1.0.0","@types/react-dom":"^17.0.2","build-plugin-component":"^1.0.0","enzyme-adapter-react-16":"^1.14.0"},"peerDependencies":{"react":"^16 || ^17"},"_npmOperationalInternal":{"tmp":"tmp/gov-department-field_1.0.0-beta.9_1635751806345_0.37970643478683885","host":"s3://npm-registry-packages"}},"1.0.0-beta.10":{"name":"@aligov/gov-department-field","version":"1.0.0-beta.10","keywords":["ice","react","component"],"license":"MIT","_id":"@aligov/gov-department-field@1.0.0-beta.10","maintainers":[{"name":"shenyu.wsy","email":"shenyu.wsy@alibaba-inc.com"},{"name":"liunian","email":"dengjij@gmail.com"},{"name":"tao1991123","email":"tao360907796@gmail.com"},{"name":"itrip","email":"1198488651@qq.com"},{"name":"xiazhiqiang","email":"xiazhiqiangcuc@126.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":"daip","email":"15858208586@163.com"},{"name":"baizhao","email":"ethan.cqw@alibaba-inc.com"}],"homepage":"https://unpkg.com/@aligov/gov-department-field@1.0.0-beta.10/build/index.html","dist":{"shasum":"12227d7b75f3611cc41d9f64da585d57aa9eb992","tarball":"https://registry.npmjs.org/@aligov/gov-department-field/-/gov-department-field-1.0.0-beta.10.tgz","fileCount":22,"integrity":"sha512-iCb5+rBmlG1s5lWwLKtUcENN7fikskTfeFrgRBp0K9rbjHLYYvSNbwiraSZNJ2Pp1BC/fwjQ7kwQ8kxkKhSw/Q==","signatures":[{"sig":"MEUCIQDP7s4YhUF2Amv6lC4qSBBryWBkZkTx/vTg0yXYfdhT4gIgeLvWV0mLGDjduBxiD7w2el2xUznKBZA/gDLm/1dEvWI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1329912},"main":"lib/index.js","module":"es/index.js","readme":"# department field\n\n@aligov/gov-department-field\n\n政务部门组件，作为表单中的一个字段。\n\n推荐作为受控组件使用，即传value和onChange\n\n## Install\n\n```PowerShell\n(t)npm i @aligov/gov-department-field -S\n```\n\n## API\n\n```typescript\nvalue: [{ text: string; value: string }]\n```\n\n## 依赖\n\n接口一: \n\n## Usage\n\n1. 普通受控用法\n\n```jsx\n  import GovDepartment from '@aligov/gov-department-field';\n\n  export default class Department extends Field {\n  static displayName = 'Department';\n\n  static defaultProps = {\n    componentId: null,\n    content: null,\n    style: null\n  };\n\n  static propTypes = {\n    componentId: React.PropTypes.string,\n    content: React.PropTypes.string,\n    style: React.PropTypes.object\n  };\n\n  constructor(props) {\n    super(props);\n\n    this.onChange = this.onChange.bind(this);\n  }\n\n  onChange(data) {\n    const { onChange } = this.getControlProps();\n\n    if (onChange) {\n      onChange(data);\n    }\n  }\n\n  render() {\n    const { value } = this.props;\n  \n    return <GovDepartment {...this.props} value={value} onChange={this.onChange} />;\n  }\n}\n```\n\n2. formily注册自定义组件用法\n\n```jsx\nimport React, { useState } from 'react'\nimport ReactDOM from 'react-dom'\nimport { SchemaForm, SchemaMarkupField as Field, useSchemaProps } from '@formily/antd' // 或者 @formily/next\nimport GovDepartment from '@aligov/gov-department-field';\n \nimport 'antd/dist/antd.css'\n\n\nconst CustomFieldComponent = props => {\n  const schemaProps = useSchemaProps()\n  return (\n    <GovDepartment\n      value={props.value || ''}\n      onChange={e => props.mutators.change(e.target.value)}\n    />\n  )\n}\n\nCustomFieldComponent.isFieldComponent = true\n\nconst App = () => {\n  const [value, setValue] = useState({});\n  return (\n    <SchemaForm\n      components={{ CustomFieldComponent }}\n      onChange={values => {\n        setValue(values)\n      }}\n    >\n      <Field\n        type=\"string\"\n        name=\"lastName\"\n        title=\"Last Name\"\n        x-component=\"CustomFieldComponent\"\n      />\n      {JSON.stringify(value, null, 2)}\n    </SchemaForm>\n  )\n}\n\nReactDOM.render(<App />, document.getElementById('root'))\n```\n\n","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,.ts,.tsx ./","stylelint":"stylelint \"**/*.{css,scss,less}\"","eslint:fix":"npm run eslint -- --fix","prepublishOnly":"npm run build"},"_npmUser":{"name":"guoliang.hgl","email":"guoliang.hgl@alibaba-inc.com"},"_npmVersion":"6.7.0","description":"政务部门字段","directories":{},"sideEffects":["dist/*","*.scss","*.less","*.css"],"_nodeVersion":"11.15.0","dependencies":{"lodash":"^4.17.21","moment":"^2.29.1","prop-types":"^15.5.8","@alifd/next":"^1.24.10","@ali/request-olympics":"^1.3.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","componentConfig":{"name":"GovDepartmentField","title":"department field","category":"Others"},"devDependencies":{"react":"^17.0.2","enzyme":"^3.10.0","eslint":"^7.0.0","react-dom":"^17.0.2","stylelint":"^13.7.2","@types/react":"^17.0.2","build-scripts":"^1.1.1","@iceworks/spec":"^1.0.0","@types/react-dom":"^17.0.2","build-plugin-component":"^1.0.0","enzyme-adapter-react-16":"^1.14.0"},"peerDependencies":{"react":"^16 || ^17"},"_npmOperationalInternal":{"tmp":"tmp/gov-department-field_1.0.0-beta.10_1635824849896_0.28555156222471245","host":"s3://npm-registry-packages"}},"1.0.0-beta.11":{"name":"@aligov/gov-department-field","version":"1.0.0-beta.11","keywords":["ice","react","component"],"license":"MIT","_id":"@aligov/gov-department-field@1.0.0-beta.11","maintainers":[{"name":"shenyu.wsy","email":"shenyu.wsy@alibaba-inc.com"},{"name":"liunian","email":"dengjij@gmail.com"},{"name":"tao1991123","email":"tao360907796@gmail.com"},{"name":"itrip","email":"1198488651@qq.com"},{"name":"xiazhiqiang","email":"xiazhiqiangcuc@126.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":"daip","email":"15858208586@163.com"},{"name":"baizhao","email":"ethan.cqw@alibaba-inc.com"}],"homepage":"https://unpkg.com/@aligov/gov-department-field@1.0.0-beta.11/build/index.html","dist":{"shasum":"469ca366664c1d6a72996629d4c276aaeaf336cf","tarball":"https://registry.npmjs.org/@aligov/gov-department-field/-/gov-department-field-1.0.0-beta.11.tgz","fileCount":22,"integrity":"sha512-V6A4LRdPJvh+jri3xhYrfbU3gLGjvUSouT74gjgESB/GX/3BAtlkz3VFi3kUNvexQfq4glvI8M6ywKnrgTYkMA==","signatures":[{"sig":"MEYCIQDMBImEyyqwgWcL0BmuYN1DZHVAknD3bYyJ0g9E1XkbvwIhAIc5gGXtXVozhh4AtQe4Ypxmtot7CqZAFIa8S2QLb80i","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1329912,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhlgZOCRA9TVsSAnZWagAA0ogP/3b0qSZSE1/CmP88OW+L\nYrRviGw/VNn8d0Ybo86J/H18oGjl1r0K4JUEudWw4x8fn2ajsLeny5SJL/Eo\nb4i+bzgPJ/P8e4/tqrzjaCNtxY2S8LKzy1O7Z55Og0jfY7dcPf05gkPePZq9\npCz33puRmqmOyYbtBpc3gu4YfOGHdoElByXx2NJi+WhKha0ZcbwbFmaCkN1C\nH9sYffB59eki6gMidzf+OG0avM0kDZzFZyqP6STfhXhiLA0947nUiHQ9ALKi\nVM/Uk751jhqSd/NquYk2gft7lX4lLTyqqUGGb9ApBFCQFQiYzzL5r6Xi6TTE\nbfUrFpNIIsuj/sCoHgrl9UAohbq4KcKhVAcxqay/2YyD4N9P22ZOLLWVgqla\nVWCD5MsHYfy/KyTk3CVZ4qnkCX4L+CzV82VqlThyItCemS4C9cbGT2Znk1iY\nWsy6+1TOI/YHPp5SJphHVI+5ZHCppF96dCgDbp/uCGOa979p0acKIxIDDRzc\nok4IaHsC3lsikNp4bYVL6VJia/d0bl0muQRBijMEmEktoLvzqwUunirbkf0u\n7p1pfefCdaDZXlp/SyJ2coM50sBvvnbecDC+YUD01k8kxDRAF8JyEUgLf/sG\nJQUJ6HiHXo20Zkg3M8+c/GJIkLfgxVZRx2Pn3IVdolhwfR5ZFiKyYDIDlTq1\nolo6\r\n=zIg0\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","module":"es/index.js","readme":"# department field\n\n@aligov/gov-department-field\n\n政务部门组件，作为表单中的一个字段。\n\n推荐作为受控组件使用，即传value和onChange\n\n## Install\n\n```PowerShell\n(t)npm i @aligov/gov-department-field -S\n```\n\n## API\n\n```typescript\nvalue: [{ text: string; value: string }]\n```\n\n## 依赖\n\n接口一: \n\n## Usage\n\n1. 普通受控用法\n\n```jsx\n  import GovDepartment from '@aligov/gov-department-field';\n\n  export default class Department extends Field {\n  static displayName = 'Department';\n\n  static defaultProps = {\n    componentId: null,\n    content: null,\n    style: null\n  };\n\n  static propTypes = {\n    componentId: React.PropTypes.string,\n    content: React.PropTypes.string,\n    style: React.PropTypes.object\n  };\n\n  constructor(props) {\n    super(props);\n\n    this.onChange = this.onChange.bind(this);\n  }\n\n  onChange(data) {\n    const { onChange } = this.getControlProps();\n\n    if (onChange) {\n      onChange(data);\n    }\n  }\n\n  render() {\n    const { value } = this.props;\n  \n    return <GovDepartment {...this.props} value={value} onChange={this.onChange} />;\n  }\n}\n```\n\n2. formily注册自定义组件用法\n\n```jsx\nimport React, { useState } from 'react'\nimport ReactDOM from 'react-dom'\nimport { SchemaForm, SchemaMarkupField as Field, useSchemaProps } from '@formily/antd' // 或者 @formily/next\nimport GovDepartment from '@aligov/gov-department-field';\n \nimport 'antd/dist/antd.css'\n\n\nconst CustomFieldComponent = props => {\n  const schemaProps = useSchemaProps()\n  return (\n    <GovDepartment\n      value={props.value || ''}\n      onChange={e => props.mutators.change(e.target.value)}\n    />\n  )\n}\n\nCustomFieldComponent.isFieldComponent = true\n\nconst App = () => {\n  const [value, setValue] = useState({});\n  return (\n    <SchemaForm\n      components={{ CustomFieldComponent }}\n      onChange={values => {\n        setValue(values)\n      }}\n    >\n      <Field\n        type=\"string\"\n        name=\"lastName\"\n        title=\"Last Name\"\n        x-component=\"CustomFieldComponent\"\n      />\n      {JSON.stringify(value, null, 2)}\n    </SchemaForm>\n  )\n}\n\nReactDOM.render(<App />, document.getElementById('root'))\n```\n\n","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,.ts,.tsx ./","stylelint":"stylelint \"**/*.{css,scss,less}\"","eslint:fix":"npm run eslint -- --fix","prepublishOnly":"npm run build"},"_npmUser":{"name":"guoliang.hgl","email":"guoliang.hgl@alibaba-inc.com"},"_npmVersion":"6.7.0","description":"政务部门字段","directories":{},"sideEffects":["dist/*","*.scss","*.less","*.css"],"_nodeVersion":"11.15.0","dependencies":{"lodash":"^4.17.21","moment":"^2.29.1","prop-types":"^15.5.8","@alifd/next":"^1.24.10","@ali/request-olympics":"^1.3.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","componentConfig":{"name":"GovDepartmentField","title":"department field","category":"Others"},"devDependencies":{"react":"^17.0.2","enzyme":"^3.10.0","eslint":"^7.0.0","react-dom":"^17.0.2","stylelint":"^13.7.2","@types/react":"^17.0.2","build-scripts":"^1.1.1","@iceworks/spec":"^1.0.0","@types/react-dom":"^17.0.2","build-plugin-component":"^1.0.0","enzyme-adapter-react-16":"^1.14.0"},"peerDependencies":{"react":"^16 || ^17"},"_npmOperationalInternal":{"tmp":"tmp/gov-department-field_1.0.0-beta.11_1637221966504_0.062161893033575666","host":"s3://npm-registry-packages"}},"1.0.0":{"name":"@aligov/gov-department-field","version":"1.0.0","keywords":["ice","react","component"],"license":"MIT","_id":"@aligov/gov-department-field@1.0.0","maintainers":[{"name":"shenyu.wsy","email":"shenyu.wsy@alibaba-inc.com"},{"name":"liunian","email":"dengjij@gmail.com"},{"name":"tao1991123","email":"tao360907796@gmail.com"},{"name":"itrip","email":"1198488651@qq.com"},{"name":"xiazhiqiang","email":"xiazhiqiangcuc@126.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":"daip","email":"15858208586@163.com"},{"name":"baizhao","email":"ethan.cqw@alibaba-inc.com"}],"homepage":"https://unpkg.com/@aligov/gov-department-field@1.0.0/build/index.html","dist":{"shasum":"f0d96fe5715362899bb1d9094612cf7c7028a4b0","tarball":"https://registry.npmjs.org/@aligov/gov-department-field/-/gov-department-field-1.0.0.tgz","fileCount":22,"integrity":"sha512-d+ioD7S7TTOjKFLnNyRkCJ71ZbANFqOc8io/Cis0U4SGFZTja7J38KU2TddSyHKnD0/CHH/WE/k2+C7EcF+udQ==","signatures":[{"sig":"MEQCIFs9GZXsy7h8B9iInkfLO4u52cTstSXY7zt3WLgHWubkAiAJlnzk0OT377x1AGEMUMw/DeK57qqrZLp9iaqiX0ahgQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1329896,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhlgaTCRA9TVsSAnZWagAAs+0QAIVz2d6dfHFgckqmnvu3\nPFe/E/B8ve5tIYcG1PAgGKxrx4vvM1gCLiWT9O0V7KXut3lto0xSJnyj/jbt\nRyTbqyiRJ9YX6RYF/1mQ+sMCzH/FtF9szgYPCEtHOACiqXKbiJzhGYx0uOpX\nOEHjzjbCd80v9yM21cFMrK4rnmaQFTYzSjHDfuBu/q5Qjw5Lno5inueDHXIL\nC+HyN4GgJmorjtvqCaRMsLbPtA+pCjWjeZV4Q5SQiE4iDglsNkP9e2hMi7qq\n7LVlv6n9Q2MIVVtH2P/bDrs+Lo0SyV5ie4ibhB3KR/JaYO6Q5RLpiblV56Ef\n/+v609aqgE27B8l6QOO2xaRiwEwz2pBN7z1Uqd71V65HQCa71Y3oPpobI5n6\n5bggD16b3jIokCquuB3Tc7puKDI72AQ2m03GB6HUHLAiceOqHSXadQQ+TmnO\nbd7fTqDvNWdOG53vtIUayLu1/51GRI2qPhX9sIRQyTGL+7+PF9n9mT1Sc245\n/yJpJZRzOBuDmhRQmQ3GuT7j79L3gpHUTymz6TP8ch4dp2h6KT0O9Er0MUfl\nCrm/H+YbyGq9t3pEbr18La0gCGXq/Rw4tWrBL48gWcSKj9U/toppuDY7MXnl\nBTGeGS/FyI8dsCzL3sDqTJSt/RuuAVBGfJVPejgtqTy4pPTUrfdtRUVyyFNq\n0aZO\r\n=LiwZ\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,.ts,.tsx ./","stylelint":"stylelint \"**/*.{css,scss,less}\"","eslint:fix":"npm run eslint -- --fix","prepublishOnly":"npm run build"},"_npmUser":{"name":"guoliang.hgl","email":"guoliang.hgl@alibaba-inc.com"},"_npmVersion":"6.7.0","description":"政务部门字段","directories":{},"sideEffects":["dist/*","*.scss","*.less","*.css"],"_nodeVersion":"11.15.0","dependencies":{"lodash":"^4.17.21","moment":"^2.29.1","prop-types":"^15.5.8","@alifd/next":"^1.24.10","@ali/request-olympics":"^1.3.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"componentConfig":{"name":"GovDepartmentField","title":"department field","category":"Others"},"devDependencies":{"react":"^17.0.2","enzyme":"^3.10.0","eslint":"^7.0.0","react-dom":"^17.0.2","stylelint":"^13.7.2","@types/react":"^17.0.2","build-scripts":"^1.1.1","@iceworks/spec":"^1.0.0","@types/react-dom":"^17.0.2","build-plugin-component":"^1.0.0","enzyme-adapter-react-16":"^1.14.0"},"peerDependencies":{"react":"^16 || ^17"},"_npmOperationalInternal":{"tmp":"tmp/gov-department-field_1.0.0_1637222035225_0.5407149725316287","host":"s3://npm-registry-packages"}}},"time":{"created":"2021-10-26T14:00:37.622Z","modified":"2024-07-04T09:19:14.003Z","1.0.0-beta.0":"2021-10-26T14:00:37.890Z","1.0.0-beta.1":"2021-10-26T14:23:08.583Z","1.0.0-beta.2":"2021-10-26T14:31:31.567Z","1.0.0-beta.3":"2021-10-27T02:49:57.709Z","1.0.0-beta.4":"2021-10-27T08:05:23.528Z","1.0.0-beta.5":"2021-10-27T13:44:40.120Z","1.0.0-beta.6":"2021-10-28T03:56:02.059Z","1.0.0-beta.7":"2021-10-28T08:36:06.355Z","1.0.0-beta.8":"2021-10-29T07:31:16.762Z","1.0.0-beta.9":"2021-11-01T07:30:06.550Z","1.0.0-beta.10":"2021-11-02T03:47:30.104Z","1.0.0-beta.11":"2021-11-18T07:52:46.690Z","1.0.0":"2021-11-18T07:53:55.395Z"},"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/gov-department-field@1.0.0/build/index.html","readme":"# department field\n\n@aligov/gov-department-field\n\n政务部门组件，作为表单中的一个字段。\n\n推荐作为受控组件使用，即传value和onChange\n\n## Install\n\n```PowerShell\n(t)npm i @aligov/gov-department-field -S\n```\n\n## API\n\n```typescript\nvalue: [{ text: string; value: string }]\n```\n\n## 依赖\n\n接口一: \n\n## Usage\n\n1. 普通受控用法\n\n```jsx\n  import GovDepartment from '@aligov/gov-department-field';\n\n  export default class Department extends Field {\n  static displayName = 'Department';\n\n  static defaultProps = {\n    componentId: null,\n    content: null,\n    style: null\n  };\n\n  static propTypes = {\n    componentId: React.PropTypes.string,\n    content: React.PropTypes.string,\n    style: React.PropTypes.object\n  };\n\n  constructor(props) {\n    super(props);\n\n    this.onChange = this.onChange.bind(this);\n  }\n\n  onChange(data) {\n    const { onChange } = this.getControlProps();\n\n    if (onChange) {\n      onChange(data);\n    }\n  }\n\n  render() {\n    const { value } = this.props;\n  \n    return <GovDepartment {...this.props} value={value} onChange={this.onChange} />;\n  }\n}\n```\n\n2. formily注册自定义组件用法\n\n```jsx\nimport React, { useState } from 'react'\nimport ReactDOM from 'react-dom'\nimport { SchemaForm, SchemaMarkupField as Field, useSchemaProps } from '@formily/antd' // 或者 @formily/next\nimport GovDepartment from '@aligov/gov-department-field';\n \nimport 'antd/dist/antd.css'\n\n\nconst CustomFieldComponent = props => {\n  const schemaProps = useSchemaProps()\n  return (\n    <GovDepartment\n      value={props.value || ''}\n      onChange={e => props.mutators.change(e.target.value)}\n    />\n  )\n}\n\nCustomFieldComponent.isFieldComponent = true\n\nconst App = () => {\n  const [value, setValue] = useState({});\n  return (\n    <SchemaForm\n      components={{ CustomFieldComponent }}\n      onChange={values => {\n        setValue(values)\n      }}\n    >\n      <Field\n        type=\"string\"\n        name=\"lastName\"\n        title=\"Last Name\"\n        x-component=\"CustomFieldComponent\"\n      />\n      {JSON.stringify(value, null, 2)}\n    </SchemaForm>\n  )\n}\n\nReactDOM.render(<App />, document.getElementById('root'))\n```\n\n","readmeFilename":"README.md"}