{"id":38358015,"url":"https://github.com/maggot-code/maggot-form","last_synced_at":"2026-01-17T03:17:28.960Z","repository":{"id":59288499,"uuid":"343985093","full_name":"maggot-code/maggot-form","owner":"maggot-code","description":null,"archived":false,"fork":false,"pushed_at":"2022-12-06T09:59:04.000Z","size":18787,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-30T13:38:30.841Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Vue","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/maggot-code.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-03-03T03:07:12.000Z","updated_at":"2022-06-12T16:25:36.000Z","dependencies_parsed_at":"2023-01-23T18:16:07.449Z","dependency_job_id":null,"html_url":"https://github.com/maggot-code/maggot-form","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/maggot-code/maggot-form","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maggot-code%2Fmaggot-form","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maggot-code%2Fmaggot-form/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maggot-code%2Fmaggot-form/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maggot-code%2Fmaggot-form/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maggot-code","download_url":"https://codeload.github.com/maggot-code/maggot-form/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maggot-code%2Fmaggot-form/sbom","scorecard":{"id":611488,"data":{"date":"2025-08-11","repo":{"name":"github.com/maggot-code/maggot-form","commit":"4da5c9b0a0e35b51faf62b3be0ba6a39dee86515"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.5,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-21T02:46:30.305Z","repository_id":59288499,"created_at":"2025-08-21T02:46:30.305Z","updated_at":"2025-08-21T02:46:30.305Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28492633,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T02:39:23.645Z","status":"ssl_error","status_checked_at":"2026-01-17T02:34:19.649Z","response_time":85,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-17T03:17:28.880Z","updated_at":"2026-01-17T03:17:28.946Z","avatar_url":"https://github.com/maggot-code.png","language":"Vue","readme":"# maggot-form\n\n## 属性\n\n| 属性           | 说明                                       | 类型               | 默认值  |\n| -------------- | ------------------------------------------ | ------------------ | ------- |\n| `schema`       | 表单结构                                   | `Object`           | 必填    |\n| `proName`      | 网络请求的前置标识，类似命名空间           | `String`           | `\"\"`    |\n| `token`        | 网络请求的身份校验属性                     | `String / Boolean` | `false` |\n| `submitFormat` | 输出和提交表单数据时，是否对数据进行格式化 | `Boolean`          | `true`  |\n| `job`          | 用于表单联动匹配的工作方法集合             | `Object`           | `{}`    |\n\n### `Schema`\n\n| 属性         | 说明                 | 类型     | 默认值                |\n| ------------ | -------------------- | -------- | --------------------- |\n| `formSchema` | 表单UI和整体控制结构 | `Object` | [详情](###FormSchema) |\n| `cellSchema` | 表单项结构集合       | `Array`  | [详情](###CellSchema) |\n\n### FormSchema\n\n| 属性                   | 说明                                   | 类型                     | 默认值  |\n| ---------------------- | -------------------------------------- | ------------------------ | ------- |\n| `inline`               | 设置行内表单模式（一般用在搜索的时候） | `Boolean`                | `false` |\n| `labelPosition`        | 设置表单标签的位置                     | `left / right / top`     | `right` |\n| `labelWidth`           | 表单标签的宽度                         | `String / Number / auto` | `120px` |\n| `labelSuffix`          | 表单标签的后缀                         | `String`                 |         |\n| `hideRequiredAsterisk` | 必填字段是否隐藏红色星号标识           | `Boolean`                | `false` |\n| `showMessage`          | 是否显示校验错误信息                   | `Boolean`                | `true`  |\n| `inlineMessage`        | 校验信息是否在行内显示                 | `Boolean`                | `false` |\n| `statusIcon`           | 是否在输入框显示校验信息               | `Boolean`                | `false` |\n| `disabled`             | 是否禁用表单                           | `Boolean`                | `false` |\n| `gutter`               | 表单项在栅格布局下的间距               | `Number`                 | `12`    |\n\n### CellSchema\n\n| 属性            | 说明                                                         | 类型     | 默认值                   |\n| --------------- | ------------------------------------------------------------ | -------- | ------------------------ |\n| `mold`          | 用作设置同组件下的不同使用方式                               | `String` | `default`                |\n| `componentName` | 表单项组件名称                                               | `String` | [必填/详情](##组件)      |\n| `field`         | 表单项数据的绑定字段名称                                     | `String` | 必填                     |\n| `value`         | 表单项所属数据                                               | `Any`    | 具体类型查看对应组件说明 |\n| `uiSchema`      | 表单项UI结构                                                 | `Object` | [详情](##UISchema)       |\n| `ruleSchema`    | 表单项校验规则                                               | `Array`  | [详情](##RuleSchema)     |\n| `dataSchema`    | 表单项数据结构（多用作有额外数据的表单项中，例如多选，单选） | `Object` | [详情](##DataSchema)     |\n| `leaderTag`     | 表单项触发数值修改后的对应异步操作（控制者）                 | `Object` | 详情                     |\n| `workerTag`     | 接收其他表单项异步操作的标识集合（受控者）                   | `Array`  | `[]`                     |\n\n### UISchema\n\n\u003e 以下只展示共享属性，独享属性需要查看对应组件说明\n\n| 属性    | 说明                                                     | 类型     | 默认值 |\n| ------- | -------------------------------------------------------- | -------- | ------ |\n| `col`   | 栅格布局分布数值，一行放几个表单项，数值相加最大值是`24` | `Number` | `24`   |\n| `label` | 表单项标签内容                                           | `String` | `\"\"`   |\n| `tips`  | 表单项说明内容                                           | `String` | `\"\"`   |\n\n### RuleSchema\n\n\u003e 以下只展示共享属性，独享属性需要查看对应组件说明\n\n| 属性       | 说明             | 类型                    | 默认值  |\n| ---------- | ---------------- | ----------------------- | ------- |\n| `required` | 是否必填         | `Boolean`               | `false` |\n| `message`  | `校验失败的说明` | `String`                | `\"\"`    |\n| `trigger`  | `校验时机`       | `blur / focus / change` |         |\n\n### DataSchema\n\n| 属性          | 说明                     | 类型              | 默认值     |\n| ------------- | ------------------------ | ----------------- | ---------- |\n| `valueField`  | 数值标识                 | `String`          | `id`       |\n| `textField`   | 标签标识                 | `String`          | `text`     |\n| `attachField` | 附加描述标识             | `String`          | `attach`   |\n| `isAttach`    | 是否显示附加描述         | `Boolean`         | `false`    |\n| `enums`       | 选项集合                 | `Array`           | `[]`       |\n| `lib`         | 额外数据                 | `Object`          | `{}`       |\n| `childrenKey` | 下级节点标识             | `String`          | `children` |\n| `step`        | `valueField`数值规则步长 | `String / Number` |            |\n| `api`         | 异步选项集合来源         | `String`          |            |\n\n---\n\n\n\n## 组件\n\n* `输入框 -\u003e mg-input` [说明](###mg-input)\n* `单选框 -\u003e mg-radio` [说明](###mg-radio)\n* `多选框 -\u003e mg-check-box` [说明](###mg-check-box)\n* `下拉框 -\u003e mg-select` [说明](###mg-select)\n* `日期框 -\u003e mg-time` [说明](###mg-time)\n* `上传 -\u003e mg-upload` [说明](###mg-upload)\n* `级联 -\u003e mg-cascade` [说明](###mg-cascade)\n* `搜索 -\u003e mg-search` [说明](###mg-search)\n* `开关 -\u003e mg-switch`[说明](###mg-switch)\n* `滑块 -\u003e mg-slider`[说明](###mg-slider)\n\n-----\n\n\n\n### mg-input\n\n#### `uiSchema`\n\n| 属性          | 说明           | 类型      | 默认值  |\n| ------------- | -------------- | --------- | ------- |\n| `placeholder` | 占位文本内容   | `String`  | `\"\"`    |\n| `disabled`    | 禁用           | `Boolean` | `false` |\n| `prefixIcon`  | 输入框头部图标 | `String`  | `\"\"`    |\n| `suffixIcon`  | 输入框尾部图标 | `String`  | `\"\"`    |\n| `prepend`     | 输入框前置内容 | `String`  | `\"\"`    |\n| `append`      | 输入框后置内容 | `String`  | `\"\"`    |\n| `readonly`    | 是否只读       | `Boolean` | `false` |\n| `disabled`    | 是否禁用       | `Boolean` | `false` |\n| `clearable`   | 是否允许清空   | `Boolean` | `false` |\n\n##### `mold - text`\n\n\u003e `value 和 defValue` 的类型是`String / Number`，默认值是`\"\"`\n\n| 属性          | 说明                     | 类型              | 默认值         |\n| ------------- | ------------------------ | ----------------- | -------------- |\n| `placeholder` | 占位文本内容             | `String`          | 请输入内容     |\n| `prefixIcon`  | 输入框头部图标           | `String`          | `el-icon-edit` |\n| `autofocus`   | 自动获取焦点（原生属性） | `Boolean`         | `false`        |\n\n##### `mold - textarea`\n\n\u003e `value 和 defValue` 的类型是`Number`，默认值是`\"\"`\n\n| 属性            | 说明                     | 类型                                  | 默认值                   |\n| --------------- | ------------------------ | ------------------------------------- | ------------------------ |\n| `placeholder`   | 占位文本内容             | `String`                              | 请输入文本内容           |\n| `showWordLimit` | 是否显示字数统计         | `Boolean`                             | `true`                   |\n| `maxlength`     | 最大输入长度（原生属性） | `Number`                              | `200`                    |\n| `minlength`     | 最小输入长度（原生属性） | `Number`                              | `0`                      |\n| `rows`          | 输入框默认行数           | `Number`                              | `2`                      |\n| `autosize`      | 自适应内容高度           | `Object / Boolean`                    | `{minRows:2, maxRows:4}` |\n| `resize`        | 是否允许用户缩放         | `none / both / horizontal / vertical` |                          |\n| `autofocus`     | 自动获取焦点（原生属性） | `Boolean`                             | `false`                  |\n\n##### `mold - password`\n\n\u003e `value 和 defValue` 的类型是`Number`，默认值是`\"\"`\n\n| 属性           | 说明                           | 类型      | 默认值         |\n| -------------- | ------------------------------ | --------- | -------------- |\n| `placeholder`  | 占位文本内容                   | `String`  | 请输入密码     |\n| `prefixIcon`   | 输入框头部图标                 | `String`  | `el-icon-lock` |\n| `showPassword` | 是否显示密码显示隐藏的切换按钮 | `Boolean` | `true`         |\n\n##### `mold - number`\n\n\u003e `value 和 defValue` 的类型是`Number`，默认值是`0`\n\n| 属性               | 说明                   | 类型         | 默认值  |\n| ------------------ | ---------------------- | ------------ | ------- |\n| `controlsPosition` | 控制按钮位置           | `right`      | `right` |\n| `controls`         | 是否显示控制按钮       | `Boolean`    | `true`  |\n| `step`             | 计数器步长             | `Number`     | `1`     |\n| `stepStrictly`     | 是否只能输入步长的倍数 | `Boolean`    | `false` |\n| `precision`        | 数值经度               | `Number`     |         |\n| `minus`            | 是否可以为负数         | `Boolean`    | `false` |\n| `min`              | 计数器允许的最小值     | ` -Infinity` | 负无穷  |\n| `max`              | 计数器允许的最大值     | `Infinity`   | 正无穷  |\n\n##### `mold - integer`\n\n\u003e `value 和 defValue` 的类型是`Number`，默认值是`0`\n\n| 属性               | 说明                   | 类型        | 默认值  |\n| ------------------ | ---------------------- | ----------- | ------- |\n| `step`             | 计数器步长             | `Number`    | `1`     |\n| `stepStrictly`     | 是否只能输入步长的倍数 | `Boolean`   | `true`  |\n| `controlsPosition` | 控制按钮位置           | `right`     | `right` |\n| `controls`         | 是否显示控制按钮       | `Boolean`   | `true`  |\n| `precision`        | 数值经度               | `Number`    |         |\n| `minus`            | 是否可以为负数         | `Boolean`   | `false` |\n| `min`              | 计数器允许的最小值     | `-Infinity` | 负无穷  |\n| `max`              | 计数器允许的最大值     | `Infinity`  | 正无穷  |\n\n##### `mold - float`\n\n\u003e `value 和 defValue` 的类型是`Number`，默认值是`0.0`\n\n| 属性               | 说明                   | 类型        | 默认值  |\n| ------------------ | ---------------------- | ----------- | ------- |\n| `step`             | 计数器步长             | `Number`    | `0.01`  |\n| `stepStrictly`     | 是否只能输入步长的倍数 | `Boolean`   | `true`  |\n| `controlsPosition` | 控制按钮位置           | `right`     | `right` |\n| `controls`         | 是否显示控制按钮       | `Boolean`   | `true`  |\n| `precision`        | 数值经度               | `Number`    | `2`     |\n| `minus`            | 是否可以为负数         | `Boolean`   | `false` |\n| `min`              | 计数器允许的最小值     | `-Infinity` | 负无穷  |\n| `max`              | 计数器允许的最大值     | `Infinity`  | 正无穷  |\n\n#### ruleSchema\n\n| 属性  | 说明           | 类型     | 默认值 |\n| ----- | -------------- | -------- | ------ |\n| `min` | 允许的最小数值 | `Number` |        |\n| `max` | 允许的最大数值 | `Number` |        |\n\n----\n\n\n\n### mg-radio\n\n\u003e 单选框的`mold`只有两种，并且没有实质区别，只是UI风格不同\n\u003e\n\u003e * `default`\n\u003e * `button`\n\n#### `uiSchema`\n\n| 属性        | 说明                           | 类型      | 默认值    |\n| ----------- | ------------------------------ | --------- | --------- |\n| `border`    | 是否显示边框                   | `Boolean` | `false`   |\n| `disabled`  | 是否禁用                       | `Boolean` | `false`   |\n| `textColor` | `button`时激活状态文本颜色     | `String`  | `#ffffff` |\n| `fill`      | `button`时激活状态填充和边框色 | `String`  | `#409EFF` |\n\n----\n\n\n\n### mg-check-box\n\n\u003e 多选框的`mold`只有两种，并且没有实质区别，只是UI风格不同\n\u003e\n\u003e * `default`\n\u003e * `button`\n\n#### `uiSchema`\n\n| 属性            | 说明                           | 类型      | 默认值    |\n| --------------- | ------------------------------ | --------- | --------- |\n| `indeterminate` | 全选是否可用                   | `Boolean` | `false`   |\n| `disabled`      | 是否禁用（整体）               | `Boolean` | `false`   |\n| `border`        | 是否显示边框                   | `Boolean` | `false`   |\n| `min`           | 允许被勾选数量的最小值         | `Number`  |           |\n| `max`           | 允许被勾选数量的最大值         | `Number`  |           |\n| `textColor`     | `button`时激活状态文本颜色     | `String`  | `#ffffff` |\n| `fill`          | `button`时激活状态填充和边框色 | `String`  | `#409EFF` |\n\n#### `ruleSchema`\n\n| 属性  | 说明                       | 类型     | 默认值 |\n| ----- | -------------------------- | -------- | ------ |\n| `min` | 校验勾选数量不能小于该数值 | `Number` |        |\n| `max` | 校验勾选数量不能大于该数值 | `Number` |        |\n\n---\n\n\n\n### mg-select\n\n#### `uiSchema`\n\n| 属性            | 说明                                      | 类型      | 默认值  |\n| --------------- | ----------------------------------------- | --------- | ------- |\n| `multiple`      | 是否可以多选                              | `Boolean` | `false` |\n| `disabled`      | 是否禁用                                  | `Boolean` | `false` |\n| `clearable`     | 是否可以清空                              | `Boolean` | `true`  |\n| `collapseTags`  | 多选时是否将选中值按文字方式展示          | `Boolean` | `false` |\n| `multipleLimit` | 多选时允许选择的最大数量，`0`标识不做限制 | `Number`  | `0`     |\n| `placeholder`   | 占位文本内容                              | `String`  | 请选择  |\n| `noDataText`    | 没有数据时的文本内容                      | `String`  | 无数据  |\n\n---\n\n### mg-time\n\n#### `uiSchema`\n\n| 属性               | 说明                               | 类型                    | 默认值                 |\n| ------------------ | ---------------------------------- | ----------------------- | ---------------------- |\n| `readonly`         | 是否只读                           | `Boolean`               | `false`                |\n| `disabled`         | 是否禁用                           | `Boolean`               | `false`                |\n| `clearable`        | 是否显示清除按钮                   | `Boolean`               | `true`                 |\n| `placeholder`      | 非范围选择器占位内容               | `String`                | `\"\"`                   |\n| `startPlaceholder` | 范围选择器 - 开始日期的占位内容    | `String`                | `\"\"`                   |\n| `endPlaceholder`   | 范围选择器 - 结束日期的占位内容    | `String`                | `\"\"`                   |\n| `timeArrowControl` | 是否使用箭头进行时间选择           | `Boolean`               | `false`                |\n| `format`           | 格式化规则                         | `String`                | 详情                   |\n| `align`            | 对齐方式                           | `left / right / center` | `center`               |\n| `rangeSeparator`   | 范围选择器分隔符号                 | `String`                | 至                     |\n| `unlinkPanels`     | 范围选择器中取消两个面板之间的联动 | `Boolean`               | `false`                |\n| `prefixIcon`       | 自定义头部图标                     | `String`                | `el-icon-date`         |\n| `clearIcon`        | 自定义清空图标                     | `String`                | `el-icon-circle-close` |\n\n##### `mold - date `\n\n\u003e `value 和 defValue`的类型是`String`，默认值是`\"\"`\n\n| 属性          | 说明       | 类型     | 默认值       |\n| ------------- | ---------- | -------- | ------------ |\n| `format`      | 格式化规则 | `String` | `yyyy-MM-dd` |\n| `placeholder` | 占位内容   | `String` | 请选择日期   |\n\n##### `mold - daterange`\n\n\u003e `value 和 defValue`的类型是`[String, String]`，默认值是`[\"\", \"\"]`\n\n| 属性               | 说明               | 类型     | 默认值       |\n| ------------------ | ------------------ | -------- | ------------ |\n| `format`           | 格式化规则         | `String` | `yyyy-MM-dd` |\n| `startPlaceholder` | 开始日期的占位内容 | `String` | 开始日期     |\n| `endPlaceholder`   | 结束日期的占位内容 | `String` | 结束日期     |\n\n##### `mold - datetime`\n\n\u003e `value 和 defValue`的类型是`String`，默认值是`\"\"`\n\n| 属性          | 说明       | 类型     | 默认值                |\n| ------------- | ---------- | -------- | --------------------- |\n| `format`      | 格式化规则 | `String` | `yyyy-MM-dd HH:mm:ss` |\n| `placeholder` | 占位内容   | `String` | 请选择时间            |\n\n##### `mold - datetimerange`\n\n\u003e `value 和 defValue`的类型是`[String, String]`，默认值是`[\"\", \"\"]`\n\n| 属性               | 说明             | 类型     | 默认值                |\n| ------------------ | ---------------- | -------- | --------------------- |\n| `format`           | 格式化规则       | `String` | `yyyy-MM-dd HH:mm:ss` |\n| `startPlaceholder` | 开始日期占位内容 | `String` | 开始日期              |\n| `endPlaceholder`   | 结束日期占位内容 | `String` | 结束日期              |\n\n##### `mold - month`\n\n\u003e `value 和 defValue`的类型是`String`，默认值是`\"\"`\n\n| 属性          | 说明       | 类型     | 默认值     |\n| ------------- | ---------- | -------- | ---------- |\n| `format`      | 格式化规则 | `String` | `yyyy-MM`  |\n| `placeholder` | 占位内容   | `String` | 请选择月份 |\n\n##### `mold - year`\n\n\u003e `value 和 defValue`的类型是`String`，默认值是`\"\"`\n\n| 属性          | 说明       | 类型     | 默认值     |\n| ------------- | ---------- | -------- | ---------- |\n| `format`      | 格式化规则 | `String` | `yyyy`     |\n| `placeholder` | 占位内容   | `String` | 请选择年份 |\n\n---\n\n### mg-upload\n\n#### `schema - value \u0026 defValue`\n\n\u003e `value 和 defValue`的类型都是`Array`，默认值是`[]`\n\n| 属性   | 说明                         | 类型              | 默认值 |\n| ------ | ---------------------------- | ----------------- | ------ |\n| `id`   | 文件对象主键                 | `String / Number` | 必填   |\n| `name` | 文件名称                     | `String`          | 必填   |\n| `url`  | 文件地址（推荐使用绝对地址） | `String`          | 必填   |\n\n#### `uiSchema`\n\n| 属性         | 说明                                                       | 类型            | 默认值  |\n| ------------ | ---------------------------------------------------------- | --------------- | ------- |\n| `multiple`   | 是否允许多选                                               | `Boolean`       | `false` |\n| `limit`      | 一次性选择文件的最大数量（0表示不做限制）                  | `Number`        | `0`     |\n| `size`       | 可上传文件大小限制（单位：MB，-1表示不做限制）             | `Number`        | `-1`    |\n| `types`      | 允许上传的文件后缀（只做后缀名的校验，没有校验文件本身）   | `Array\u003cString\u003e` | `[]`    |\n| `blacklist`  | 不允许上传的文件后缀（只做后缀名的校验，没有校验文件本身） | `Array\u003cString\u003e` | `[]`    |\n| `download`   | 点击文件名称时是否下载文件                                 | `Boolean`       | `false` |\n| `percentage` | 是否显示上传进度条                                         | `Boolean`       | `true`  |\n| `total`      | 是否显示上传文件总大小（单位：MB）                         | `Boolean`       | `true`  |\n| `current`    | 是否显示上传文件已上传大小（单位：MB）                     | `Boolean`       | `true`  |\n| `speed`      | 是否显示上传文件进度百分比（单位：%）                      | `Boolean`       | `true`  |\n---\n\n### mg-cascader\n\n\u003e `value 和 defValue`的类型可以是`String 或者 Array\u003cString\u003e`，默认值都是`\"\"`\n\u003e\n\u003e 在`uiSchema.multiple = true`的情况下`value 和 defValue`的类型都是`Array\u003cString\u003e`\n\u003e\n\u003e 在`uiSchema.multiple = false`的情况下`value 和 defValue`的类型都是`String`\n\u003e\n\u003e **如果类型不对的话，下拉列表和下拉框中的数据是没法儿对应起来的**\n\n#### `uiSchema`\n\n| 属性            | 说明                                                         | 类型            | 默认值  |\n| --------------- | ------------------------------------------------------------ | --------------- | ------- |\n| `disabled`      | 是否被禁用                                                   | `Boolean`       | `false` |\n| `clearable`     | 是否可以被清空                                               | `Boolean`       | `true`  |\n| `showAllLevels` | 输入框中是否显示选中值的完整路径                             | `Boolean`       | `true`  |\n| `collapseTags`  | 多选模式下是否折叠`Tag`                                      | `Boolean`       | `false` |\n| `separator`     | 选项分隔符                                                   | `String`        | `/`     |\n| `expandTrigger` | 菜单展开的触发方式                                           | `click / hover` | `hover` |\n| `multiple`      | 是否允许多选                                                 | `Boolean`       | `false` |\n| `checkStrictly` | 父亲节点是否需要关联（即无法随意选择任意一级，只能通过父节点找到最后一级子节点选中） | `Boolean`       | `true`  |\n\n---\n\n### mg-search\n\n\u003e `value 和 defValue`的类型可以是`String 或者 Array\u003cString\u003e`，默认值都是`\"\"`\n\u003e\n\u003e 在`uiSchema.multiple = true`的情况下`value 和 defValue`的类型都是`Array\u003cString\u003e`\n\u003e\n\u003e 在`uiSchema.multiple = false`的情况下`value  和 defValue`的类型都是`String`\n\u003e\n\u003e **如果类型不对的话，搜索列表和搜素框中的数据是没法儿对应起来**\n\n#### `uiSchema`\n\n| 属性            | 说明                                      | 类型      | 默认值  |\n| --------------- | ----------------------------------------- | --------- | ------- |\n| `multiple`      | 是否允许多选                              | `Boolean` | `false` |\n| `disabled`      | 是否被禁用                                | `Boolean` | `false` |\n| `collapseTags`  | 多选时是否仅显示选中数量                  | `Boolean` | `false` |\n| `multipleLimit` | 多选时用户最多可选择数量，`0`表示不做限制 | `Number`  | `0`     |\n\n---\n\n### mg-switch\n\n#### `uiSchema`\n\n| 属性            | 说明                 | 类型      | 默认值    |\n| --------------- | -------------------- | --------- | --------- |\n| `disabled`      | 是否禁用             | `Boolean` | `false`   |\n| `width`         | 开关的宽度（像素）   | `Number`  | `40`      |\n| `activeText`    | 开关打开时的文字描述 | `String`  | `''`      |\n| `inactiveText`  | 开关关闭时的文字描述 | `String`  | `''`      |\n| `activeColor`   | 开关打开时的背景色   | `String`  | `#409EFF` |\n| `inactiveColor` | 开关关闭时的背景色   | `String`  | `#C0CCDA` |\n\n\n#### `dataSchema`\n\n\u003e 如果类型和数值无法匹配或校验不通过的话则对应数值会使用该类型的默认值\n\n| 属性            | 说明         | 类型                                | 默认值                   |\n| --------------- | ------------ | ----------------------------------- | ------------------------ |\n| `valueType`     | 描述值的类型 | `String\u003cBoolean / String / Number\u003e` | `'Boolean'`              |\n| `activeValue`   | 选中状态的值 | `Boolean / String / Number`         | `true / 'usable' / 1`    |\n| `inactiveValue` | 未选中的值   | `Boolean / String / Number`         | `false / 'unusable' / 0` |\n\n---\n\n### mg-slider\n\n#### `uiSchema`\n\n| 属性                | 说明               | 类型      | 默认值  |\n| ------------------- | ------------------ | --------- | ------- |\n| `min`               | 最小值             | `Number`  | `0`     |\n| `max`               | 最大值             | `Number`  | `100`   |\n| `disabled`          | 是否禁用           | `Boolean` | `false` |\n| `step`              | 步长               | `Number`  | `1`     |\n| `showInput`         | 是否显示输入框     | `Boolean` | `false` |\n| `showInputControls` | 是否显示输入框控件 | `Boolean` | `true`  |\n| `showStops`         | 是否显示间隔断点   | `Boolean` | `false` |\n| `showTooltip`       | 是否显示提示       | `Boolean` | `true`  |\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaggot-code%2Fmaggot-form","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaggot-code%2Fmaggot-form","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaggot-code%2Fmaggot-form/lists"}