diff --git a/orion-ops-ui/src/components/card-list/index.vue b/orion-ops-ui/src/components/card-list/index.vue
new file mode 100644
index 00000000..46981ef3
--- /dev/null
+++ b/orion-ops-ui/src/components/card-list/index.vue
@@ -0,0 +1,368 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/orion-ops-ui/src/components/card-list/types.ts b/orion-ops-ui/src/components/card-list/types.ts
new file mode 100644
index 00000000..a7949a5e
--- /dev/null
+++ b/orion-ops-ui/src/components/card-list/types.ts
@@ -0,0 +1,35 @@
+import { ResponsiveValue } from '@arco-design/web-vue';
+
+/**
+ * 创建卡片位置
+ */
+export type Position = 'head' | 'tail' | false
+
+/**
+ * 卡片字段
+ */
+export interface CardRecord {
+ disabled?: boolean;
+
+ [name: string]: any;
+}
+
+/**
+ * col 响应式值
+ */
+export interface ColResponsiveValue extends ResponsiveValue {
+ span?: number;
+ offset?: number;
+ order?: number;
+}
+
+/**
+ * 显示的操作
+ */
+export interface HandleVisible {
+ disableAdd?: boolean;
+ disableSearchInput?: boolean;
+ disableFilter?: boolean;
+ disableSearch?: boolean;
+ disableReset?: boolean;
+}
diff --git a/orion-ops-ui/src/components/index.ts b/orion-ops-ui/src/components/index.ts
index ef2c7d7a..3be71b6e 100644
--- a/orion-ops-ui/src/components/index.ts
+++ b/orion-ops-ui/src/components/index.ts
@@ -12,6 +12,7 @@ import {
} from 'echarts/components';
import Chart from './chart/index.vue';
import Breadcrumb from './breadcrumb/index.vue';
+import CardList from './card-list/index.vue';
use([
CanvasRenderer,
@@ -31,5 +32,6 @@ export default {
Vue.component('Chart', Chart);
Vue.component('Breadcrumb', Breadcrumb);
Vue.component('a-query-header', AQueryHeader);
+ Vue.component('card-list', CardList);
},
};
diff --git a/orion-ops-ui/src/components/menu/tree/index.vue b/orion-ops-ui/src/components/menu/tree/index.vue
index 692b69eb..006208cf 100644
--- a/orion-ops-ui/src/components/menu/tree/index.vue
+++ b/orion-ops-ui/src/components/menu/tree/index.vue
@@ -1,8 +1,7 @@
diff --git a/orion-ops-ui/src/views/asset/host/index.vue b/orion-ops-ui/src/views/asset/host/index.vue
index 6d239ab5..57a2482a 100644
--- a/orion-ops-ui/src/views/asset/host/index.vue
+++ b/orion-ops-ui/src/views/asset/host/index.vue
@@ -8,25 +8,10 @@
@openUpdateConfig="(e) => config.open(e)" />
modal.openAdd()"
- @openUpdate="(e) => modal.openUpdate(e)"
- @openUpdateConfig="(e) => config.open(e)">
-
-
- {{ record.name }}
-
-
- {{ index }}
-
-
- {{ record }}
-
-
+ ref="card" />
+
+
+
table.addedCallback()"
@@ -49,20 +34,6 @@
import HostCardList from '@/views/asset/host/components/host-card-list.vue';
import HostFormModal from './components/host-form-modal.vue';
import HostConfigDrawer from '@/views/asset/host/components/host-config-drawer.vue';
- import { useCardPagination } from '@/types/table';
-
- const pagination = useCardPagination();
- const list = ref>([]);
-
- for (let i = 0; i < 270; i++) {
- list.value.push({
- id: i + 1,
- name: `名称 ${i + 1}`,
- host: `192.168.1.${i}`,
- disabled: i === 0
- });
- }
- pagination.total = 270;
const table = ref();
const card = ref();