Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: meta components migration phase II #601

Merged
merged 2 commits into from
Jun 28, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions packages/common/component/ConfigItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ import { Popover, Tooltip } from '@opentiny/vue'
import { IconWriting, IconHelpCircle, IconPlusCircle } from '@opentiny/vue-icon'
import { typeOf } from '@opentiny/vue-renderless/common/type'
import i18n from '@opentiny/tiny-engine-controller/js/i18n'
import { CodeConfigurator, VariableConfigurator } from '@opentiny/tiny-engine-configurator'
import MultiTypeSelector from './MultiTypeSelector.vue'
import { useHistory, useProperties, useResource, useLayout, useCanvas } from '@opentiny/tiny-engine-controller'
import { SCHEMA_DATA_TYPE, PAGE_STATUS, TYPES } from '@opentiny/tiny-engine-controller/js/constants'
Expand All @@ -123,8 +122,8 @@ const hasRule = (required, rules) => {
export default {
components: {
MultiTypeSelector,
CodeConfigurator,
VariableConfigurator,
CodeConfigurator: getConfigurator('CodeConfigurator'),
VariableConfigurator: getConfigurator('VariableConfigurator'),
gene9831 marked this conversation as resolved.
Show resolved Hide resolved
TinyPopover: Popover,
TinyTooltip: Tooltip,
IconWriting: IconWriting(),
Expand Down
72 changes: 0 additions & 72 deletions packages/common/component/MetaInput.vue

This file was deleted.

122 changes: 0 additions & 122 deletions packages/common/component/MetaSelect.vue

This file was deleted.

6 changes: 3 additions & 3 deletions packages/common/component/MultiTypeSelector.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<slot name="prefix"></slot>
<div class="component-wrap">
<component
:is="MetaComponents[meta.widget.component?.[index]]"
:is="getConfigurator(meta.widget.component?.[index])"
v-bind="meta.widget.props"
v-model="state.typesValue[index].modelValue"
:meta="meta"
Expand All @@ -29,7 +29,7 @@
<script>
import { reactive } from 'vue'
import { Tooltip, Popover, Radio, RadioGroup } from '@opentiny/vue'
import { MetaComponents } from '../index'
import { getConfigurator } from '@opentiny/tiny-engine-entry'

export default {
name: 'MultiTypeSelector',
Expand Down Expand Up @@ -113,7 +113,7 @@ export default {
TYPE_MAP,
change,
handleChange,
MetaComponents
getConfigurator
}
}
}
Expand Down
Loading