Skip to content

Commit

Permalink
fix: fix inherit attrs of <schema>
Browse files Browse the repository at this point in the history
regression of b8425dc
  • Loading branch information
shigma committed Jan 25, 2024
1 parent b8425dc commit b08e36b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/form/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "schemastery-vue",
"description": "Type driven schema validator",
"version": "7.2.4",
"version": "7.3.1",
"main": "src/index.ts",
"files": [
"src"
Expand Down
6 changes: 6 additions & 0 deletions packages/form/src/schema.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<template>
<schema-component
v-bind="$attrs"
v-if="!schema?.meta.hidden && (extra?.foldable || (schema && schema.type !== 'const'))"
:schema="schema"
:prefix="prefix"
Expand Down Expand Up @@ -59,6 +60,7 @@
<el-dialog
v-model="showJson"
destroy-on-close
append-to-body
class="k-schema-edit-dialog"
:title="t('edit.json')"
@open="input?.focus()"
Expand Down Expand Up @@ -97,6 +99,10 @@ import SchemaBase from './base.vue'
import zhCN from './locales/zh-CN.yml'
import enUS from './locales/en-US.yml'
defineOptions({
inheritAttrs: false,
})
const props = defineProps({
schema: {} as PropType<Schema>,
initial: {} as PropType<any>,
Expand Down
2 changes: 1 addition & 1 deletion packages/form/src/styles/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
}

&:hover {
background-color: var(--el-fill-color-light);
background-color: var(--el-fill-color);
}
}

Expand Down

0 comments on commit b08e36b

Please sign in to comment.