diff --git a/.commitlintrc.cjs b/.commitlintrc.cjs index 34fee141..9ead01b6 100644 --- a/.commitlintrc.cjs +++ b/.commitlintrc.cjs @@ -17,12 +17,18 @@ module.exports = { 'perf', // 性能优化 ] ], - 'type-case': [0], - 'type-empty': [0], - 'scope-empty': [0], 'scope-case': [0], - 'subject-full-stop': [0, 'never'], - 'subject-case': [0, 'never'], - 'header-max-length': [0, 'always', 72] - } + }, + plugins: [ + { + rules: { + "commit-rule": ({ raw }) => { + return [ + /^\[(build|feat|fix|update|refactor|docs|chore|style|revert|perf)].+/g.test(raw), + `commit备注信息格式错误,格式为 <[type] 修改内容>,type支持${types.join(",")}` + ] + } + } + } + ] } \ No newline at end of file diff --git a/components.d.ts b/components.d.ts index 2aeb1249..40a545e5 100644 --- a/components.d.ts +++ b/components.d.ts @@ -7,40 +7,9 @@ export {} declare module '@vue/runtime-core' { export interface GlobalComponents { - AAlert: typeof import('ant-design-vue/es')['Alert'] - ABadge: typeof import('ant-design-vue/es')['Badge'] - AButton: typeof import('ant-design-vue/es')['Button'] - ACheckbox: typeof import('ant-design-vue/es')['Checkbox'] - ACheckboxGroup: typeof import('ant-design-vue/es')['CheckboxGroup'] - ACol: typeof import('ant-design-vue/es')['Col'] - ACollapse: typeof import('ant-design-vue/es')['Collapse'] - ACollapsePanel: typeof import('ant-design-vue/es')['CollapsePanel'] - ADatePicker: typeof import('ant-design-vue/es')['DatePicker'] - ADivider: typeof import('ant-design-vue/es')['Divider'] - AEmpty: typeof import('ant-design-vue/es')['Empty'] - AForm: typeof import('ant-design-vue/es')['Form'] - AFormItem: typeof import('ant-design-vue/es')['FormItem'] - AInput: typeof import('ant-design-vue/es')['Input'] - AInputNumber: typeof import('ant-design-vue/es')['InputNumber'] - AInputPassword: typeof import('ant-design-vue/es')['InputPassword'] - AModal: typeof import('ant-design-vue/es')['Modal'] - APagination: typeof import('ant-design-vue/es')['Pagination'] - APopconfirm: typeof import('ant-design-vue/es')['Popconfirm'] - ARadioGroup: typeof import('ant-design-vue/es')['RadioGroup'] - ARow: typeof import('ant-design-vue/es')['Row'] - ASelect: typeof import('ant-design-vue/es')['Select'] - ASelectOption: typeof import('ant-design-vue/es')['SelectOption'] - ASpin: typeof import('ant-design-vue/es')['Spin'] - ASwitch: typeof import('ant-design-vue/es')['Switch'] - ATable: typeof import('ant-design-vue/es')['Table'] - ATimePicker: typeof import('ant-design-vue/es')['TimePicker'] - ATooltip: typeof import('ant-design-vue/es')['Tooltip'] - ATreeSelect: typeof import('ant-design-vue/es')['TreeSelect'] - AUpload: typeof import('ant-design-vue/es')['Upload'] BadgeStatus: typeof import('./src/components/BadgeStatus/index.vue')['default'] CardBox: typeof import('./src/components/CardBox/index.vue')['default'] FormFormBuilder: typeof import('./src/components/Form/FormBuilder.vue')['default'] - FormFormItem: typeof import('./src/components/Form/FormItem.vue')['default'] GeoComponent: typeof import('./src/components/GeoComponent/index.vue')['default'] MonacoEditor: typeof import('./src/components/MonacoEditor/index.vue')['default'] PermissionButton: typeof import('./src/components/PermissionButton/index.vue')['default'] diff --git a/src/components/Search/Search.vue b/src/components/Search/Search.vue index a3908588..2bcd6615 100644 --- a/src/components/Search/Search.vue +++ b/src/components/Search/Search.vue @@ -35,6 +35,7 @@ const props = defineProps({ type: String, default: 'advanced' }, + key: { type: String, default: '',