st-comp 0.0.48 → 0.0.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components.d.ts +2 -1
- package/lib/bundle.js +26113 -27282
- package/lib/bundle.umd.cjs +62 -78
- package/lib/style.css +1 -1
- package/package.json +2 -1
- package/packages/VarietySearch/components/CheckBox/index.vue +77 -0
- package/packages/VarietySearch/components/FactorFilter/index.vue +256 -0
- package/packages/VarietySearch/components/ModelSearch/Dialog.vue +310 -0
- package/packages/VarietySearch/components/ModelSearch/config.js +649 -0
- package/packages/VarietySearch/components/ModelSearch/index.vue +142 -0
- package/packages/VarietySearch/index.ts +8 -0
- package/packages/VarietySearch/index.vue +85 -0
- package/packages/VirtualTable/index.ts +8 -0
- package/packages/VirtualTable/index.vue +237 -0
- package/packages/index.ts +4 -2
- package/src/pages/VarietySearch/index.vue +69 -0
- package/src/pages/VirtualTable/demo.json +6377 -0
- package/src/pages/VirtualTable/index.vue +85 -0
- package/src/router/routes.ts +8 -3
- package/packages/VarSeach/components/ModalQuery/index.ts +0 -730
- package/packages/VarSeach/components/ModalQuery/index.vue +0 -486
- package/packages/VarSeach/components/ModalScreenv/index.vue +0 -306
- package/packages/VarSeach/index.ts +0 -8
- package/packages/VarSeach/index.vue +0 -121
- package/src/pages/VarSeach/index.vue +0 -571
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div style="width: 100%; height: 100%; display: flex">
|
|
3
|
+
<div style="width: 300px; height: 100%">
|
|
4
|
+
<st-virtualTable
|
|
5
|
+
:data="tableData"
|
|
6
|
+
:columns="tableColumns"
|
|
7
|
+
:config="{
|
|
8
|
+
activeRowNum: 9,
|
|
9
|
+
activeRowKey: 'id',
|
|
10
|
+
}"
|
|
11
|
+
v-model:activeData="activeData"
|
|
12
|
+
@scrollCallBack="scrollCallBack"
|
|
13
|
+
/>
|
|
14
|
+
</div>
|
|
15
|
+
<div style="flex: 1; margin-left: 10px; padding-left: 10px; border-left: 1px solid silver">
|
|
16
|
+
<div
|
|
17
|
+
style="
|
|
18
|
+
background-color: tomato;
|
|
19
|
+
width: 100%;
|
|
20
|
+
height: 100%;
|
|
21
|
+
font-size: 20px;
|
|
22
|
+
font-weight: bold;
|
|
23
|
+
overflow-y: scroll;
|
|
24
|
+
padding: 10px;
|
|
25
|
+
box-sizing: border-box;
|
|
26
|
+
"
|
|
27
|
+
>
|
|
28
|
+
<p v-for="(item, index) in activeData">{{ item.id }} - {{ item.featureName }}</p>
|
|
29
|
+
</div>
|
|
30
|
+
</div>
|
|
31
|
+
</div>
|
|
32
|
+
</template>
|
|
33
|
+
|
|
34
|
+
<script setup lang="jsx">
|
|
35
|
+
import { ref, watch } from "vue";
|
|
36
|
+
import demo from "./demo.json";
|
|
37
|
+
|
|
38
|
+
const tableData = ref(demo);
|
|
39
|
+
const tableColumns = ref([
|
|
40
|
+
{
|
|
41
|
+
key: "id",
|
|
42
|
+
title: "ID",
|
|
43
|
+
dataKey: "id",
|
|
44
|
+
width: 120,
|
|
45
|
+
fixed: true,
|
|
46
|
+
cellRenderer: ({ rowData }) => {
|
|
47
|
+
const { id } = rowData;
|
|
48
|
+
return <div>{id}</div>;
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
key: "code",
|
|
53
|
+
title: "品种",
|
|
54
|
+
dataKey: "code",
|
|
55
|
+
width: 120,
|
|
56
|
+
cellRenderer: ({ rowData }) => {
|
|
57
|
+
const { featureName } = rowData;
|
|
58
|
+
return (
|
|
59
|
+
<div class="overflowText" title={`${featureName}`}>
|
|
60
|
+
{featureName}
|
|
61
|
+
</div>
|
|
62
|
+
);
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
key: "exchangeName",
|
|
67
|
+
title: "类型",
|
|
68
|
+
dataKey: "exchangeName",
|
|
69
|
+
width: 120,
|
|
70
|
+
cellRenderer: ({ rowData }) => {
|
|
71
|
+
const { exchangeName } = rowData;
|
|
72
|
+
return <div>{exchangeName}</div>;
|
|
73
|
+
},
|
|
74
|
+
},
|
|
75
|
+
]);
|
|
76
|
+
const activeData = ref([]);
|
|
77
|
+
const scrollCallBack = (params) => {
|
|
78
|
+
const { yAxisScrollDir, isTouchBottom } = params;
|
|
79
|
+
if (yAxisScrollDir === "forward" && isTouchBottom) {
|
|
80
|
+
ElMessage.warning("触底了");
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
</script>
|
|
84
|
+
|
|
85
|
+
<style lang="scss" scoped></style>
|
package/src/router/routes.ts
CHANGED
|
@@ -55,8 +55,13 @@ export default [
|
|
|
55
55
|
component: () => import('../pages/TreeMap/index.vue'),
|
|
56
56
|
},
|
|
57
57
|
{
|
|
58
|
-
path: '/
|
|
59
|
-
name: '
|
|
60
|
-
component: () => import('../pages/
|
|
58
|
+
path: '/varietySearch',
|
|
59
|
+
name: 'VarietySearch',
|
|
60
|
+
component: () => import('../pages/VarietySearch/index.vue'),
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
path: '/virtualTable',
|
|
64
|
+
name: 'VirtualTable',
|
|
65
|
+
component: () => import('../pages/VirtualTable/index.vue'),
|
|
61
66
|
},
|
|
62
67
|
]
|