(component: T, alias?: string) => {
- const comp = component as any;
- comp.install = (app: App) => {
- app.component(comp.name || comp.displayName, component);
- if (alias) {
- app.config.globalProperties[alias] = component;
- }
- };
- return component as T & Plugin;
-};
+
export default {
install: (vue: App): void => {
vue.use(components["VueGridLayout"]);
diff --git a/src/views/dashboard/Edit.vue b/src/views/dashboard/Edit.vue
index 0d4ae911..12c1ed5c 100644
--- a/src/views/dashboard/Edit.vue
+++ b/src/views/dashboard/Edit.vue
@@ -14,31 +14,49 @@ See the License for the specific language governing permissions and
limitations under the License. -->
- Add Widget
- Dashboard Settings
- Discard
- Apply
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
+
+
- Configurations
-
+
Configurations
+
diff --git a/src/views/dashboard/New.vue b/src/views/dashboard/New.vue
index 565ff9e7..2598faf0 100644
--- a/src/views/dashboard/New.vue
+++ b/src/views/dashboard/New.vue
@@ -25,37 +25,21 @@ limitations under the License. -->
{{ t("layer") }}
-
-
-
-
+ @change="changeLayer"
+ />
{{ t("entityType") }}
-
-
-
-
+ @change="changeEntity"
+ />
@@ -68,7 +52,7 @@ limitations under the License. -->
import { reactive } from "vue";
import { useI18n } from "vue-i18n";
import router from "@/router";
-import { ElSelect, ElOption, ElInput, ElButton } from "element-plus";
+import { ElInput, ElButton } from "element-plus";
import { useSelectorStore } from "@/store/modules/selectors";
import { EntityType, Options } from "./data";
import uuid from "@/utils/uuid";
@@ -86,6 +70,12 @@ const onCreate = () => {
router.push(path);
};
selectorStore.fetchServices("general");
+function changeLayer(val: { label: string; value: string }) {
+ state.layer = val.value;
+}
+function changeEntity(val: { label: string; value: string }) {
+ state.entity = val.value;
+}