diff --git a/src/extension/extension-loader.js b/src/extension/extension-loader.js
index 54055ab..76e0abc 100644
--- a/src/extension/extension-loader.js
+++ b/src/extension/extension-loader.js
@@ -76,9 +76,13 @@ export const loadExtension = function (app) {
{label: 'info', value: 'info'},
{label: 'error', value: 'error'},
]
- PERegister.registerCPEditor(app, 'alert-type', 'alert-type-editor',
+ // PERegister.registerCPEditor(app, 'alert-type', 'alert-type-editor',
+ // PEFactory.createSelectEditor('type', 'extension.setting.alertType',
+ // {optionItems: typeOptions}))
+ /* type属性映射已存在,无须再注册,故只需注册属性编辑器即可!! */
+ app.component('alert-type-editor',
PEFactory.createSelectEditor('type', 'extension.setting.alertType',
- {optionItems: typeOptions}))
+ {optionItems: typeOptions}))
PERegister.registerCPEditor(app, 'alert-description', 'alert-description-editor',
PEFactory.createInputTextEditor('description', 'extension.setting.description'))
diff --git a/src/extension/samples/card/card-item.vue b/src/extension/samples/card/card-item.vue
index c4eedc4..71414e8 100644
--- a/src/extension/samples/card/card-item.vue
+++ b/src/extension/samples/card/card-item.vue
@@ -6,8 +6,14 @@
{{widget.options.label}}
-
+
+
+
+
+
+
+
+
@@ -43,6 +49,7 @@
import ContainerItemWrapper from '@/components/form-render/container-item/container-item-wrapper'
import containerItemMixin from "@/components/form-render/container-item/containerItemMixin"
import FieldComponents from '@/components/form-designer/form-widget/field-widget/index'
+ import { ArrowDown, ArrowUp } from '@element-plus/icons-vue'
export default {
name: "card-item",
@@ -51,6 +58,8 @@
components: {
ContainerItemWrapper,
...FieldComponents,
+ ArrowDown,
+ ArrowUp
},
props: {
widget: Object,
diff --git a/src/extension/samples/card/card-widget.vue b/src/extension/samples/card/card-widget.vue
index 07babd6..b771d89 100644
--- a/src/extension/samples/card/card-widget.vue
+++ b/src/extension/samples/card/card-widget.vue
@@ -7,9 +7,14 @@
{{widget.options.label}}
-
+
+
+
+
+
+
+
+