neo-cmp-cli 1.13.16 → 1.13.17
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/README.md +2 -1
- package/dist/index2.js +1 -1
- package/dist/main2.js +1 -1
- package/dist/neo/neoLogin.js +1 -1
- package/dist/package.json.js +1 -1
- package/package.json +1 -1
- package/template/antd-custom-cmp-template/package.json +1 -1
- package/template/asset-manage-template/package.json +2 -2
- package/template/echarts-custom-cmp-template/package.json +1 -1
- package/template/empty-custom-cmp-template/package.json +2 -2
- package/template/map-custom-cmp-template/package.json +1 -1
- package/template/neo-bi-cmps/neo.config.js +7 -1
- package/template/neo-bi-cmps/package.json +8 -7
- package/template/neo-bi-cmps/public/403.html +77 -0
- package/template/neo-bi-cmps/public/demo.html +2453 -0
- package/template/neo-bi-cmps/src/assets/icon/barChart.svg +1 -0
- package/template/neo-bi-cmps/src/assets/icon/card.svg +1 -0
- package/template/neo-bi-cmps/src/assets/icon/filter.svg +1 -0
- package/template/neo-bi-cmps/src/assets/icon/funnel.svg +1 -0
- package/template/neo-bi-cmps/src/assets/icon/tab.svg +1 -0
- package/template/neo-bi-cmps/src/components/filterBar__c/README.md +3 -14
- package/template/neo-bi-cmps/src/components/filterBar__c/common.scss +29 -0
- package/template/neo-bi-cmps/src/components/filterBar__c/index.tsx +668 -146
- package/template/neo-bi-cmps/src/components/filterBar__c/model.ts +26 -48
- package/template/neo-bi-cmps/src/components/filterBar__c/style.scss +46 -139
- package/template/neo-bi-cmps/src/components/targetNumber__c/customStyleConfig/index.tsx +11 -10
- package/template/neo-bi-cmps/src/components/targetNumber__c/index.tsx +9 -16
- package/template/neo-bi-cmps/src/utils/common.ts +231 -0
- package/template/neo-bi-cmps/src/utils/filter2chartFilter.ts +268 -0
- package/template/neo-bi-cmps/src/utils/filterBar.ts +140 -0
- package/template/neo-bi-cmps/src/utils/pipelineFunnel.ts +341 -0
- package/template/neo-bi-cmps/src/utils/queryByCustomSQL.ts +117 -0
- package/template/neo-bi-cmps/src/utils/requestDebounce.ts +22 -0
- package/template/neo-bi-cmps/src/utils/simpleTable.tsx +344 -0
- package/template/neo-bi-cmps/src/utils/stageSwitch.ts +15 -0
- package/template/neo-bi-cmps/src/utils/stageTimeChart.ts +90 -0
- package/template/neo-bi-cmps/src/utils/targetNumber.ts +12 -0
- package/template/neo-custom-cmp-template/package.json +2 -2
- package/template/neo-h5-cmps/package.json +2 -2
- package/template/neo-order-cmps/package.json +2 -2
- package/template/neo-pipeline-cmps/.prettierrc.js +12 -0
- package/template/neo-pipeline-cmps/@types/neo-ui-common.d.ts +36 -0
- package/template/neo-pipeline-cmps/README.md +99 -0
- package/template/neo-pipeline-cmps/commitlint.config.js +59 -0
- package/template/neo-pipeline-cmps/neo.config.js +124 -0
- package/template/neo-pipeline-cmps/package.json +66 -0
- package/template/neo-pipeline-cmps/public/403.html +77 -0
- package/template/neo-pipeline-cmps/public/css/base.css +283 -0
- package/template/neo-pipeline-cmps/public/demo.html +2453 -0
- package/template/neo-pipeline-cmps/public/scripts/app/bluebird.js +6679 -0
- package/template/neo-pipeline-cmps/public/template.html +13 -0
- package/template/neo-pipeline-cmps/src/assets/css/common.scss +127 -0
- package/template/neo-pipeline-cmps/src/assets/css/mixin.scss +47 -0
- package/template/neo-pipeline-cmps/src/assets/icon/barChart.svg +1 -0
- package/template/neo-pipeline-cmps/src/assets/icon/card.svg +1 -0
- package/template/neo-pipeline-cmps/src/assets/icon/filter.svg +1 -0
- package/template/neo-pipeline-cmps/src/assets/icon/funnel.svg +1 -0
- package/template/neo-pipeline-cmps/src/assets/icon/tab.svg +1 -0
- package/template/neo-pipeline-cmps/src/assets/img/AIBtn.gif +0 -0
- package/template/neo-pipeline-cmps/src/assets/img/NeoCRM.jpg +0 -0
- package/template/neo-pipeline-cmps/src/assets/img/aiLogo.png +0 -0
- package/template/neo-pipeline-cmps/src/assets/img/card-list.svg +1 -0
- package/template/neo-pipeline-cmps/src/assets/img/contact-form.svg +1 -0
- package/template/neo-pipeline-cmps/src/assets/img/custom-form.svg +1 -0
- package/template/neo-pipeline-cmps/src/assets/img/custom-widget.svg +1 -0
- package/template/neo-pipeline-cmps/src/assets/img/data-list.svg +1 -0
- package/template/neo-pipeline-cmps/src/assets/img/detail.svg +1 -0
- package/template/neo-pipeline-cmps/src/assets/img/favicon.png +0 -0
- package/template/neo-pipeline-cmps/src/assets/img/map.svg +1 -0
- package/template/neo-pipeline-cmps/src/assets/img/search.svg +1 -0
- package/template/neo-pipeline-cmps/src/assets/img/table.svg +1 -0
- package/template/neo-pipeline-cmps/src/components/filterBar__c/README.md +24 -0
- package/template/neo-pipeline-cmps/src/components/filterBar__c/common.scss +29 -0
- package/template/neo-pipeline-cmps/src/components/filterBar__c/index.tsx +730 -0
- package/template/neo-pipeline-cmps/src/components/filterBar__c/model.ts +50 -0
- package/template/neo-pipeline-cmps/src/components/filterBar__c/style.scss +119 -0
- package/template/neo-pipeline-cmps/src/components/pipelineFunnel__c/index.tsx +415 -0
- package/template/neo-pipeline-cmps/src/components/pipelineFunnel__c/model.ts +79 -0
- package/template/neo-pipeline-cmps/src/components/pipelineFunnel__c/style.scss +83 -0
- package/template/neo-pipeline-cmps/src/components/showHealthResult__c/index.tsx +463 -0
- package/template/neo-pipeline-cmps/src/components/showHealthResult__c/model.ts +45 -0
- package/template/neo-pipeline-cmps/src/components/showHealthResult__c/style.scss +137 -0
- package/template/neo-pipeline-cmps/src/components/simpleTable__c/README.md +90 -0
- package/template/neo-pipeline-cmps/src/components/simpleTable__c/common.scss +195 -0
- package/template/neo-pipeline-cmps/src/components/simpleTable__c/index.tsx +665 -0
- package/template/neo-pipeline-cmps/src/components/simpleTable__c/model.ts +124 -0
- package/template/neo-pipeline-cmps/src/components/simpleTable__c/style.scss +193 -0
- package/template/neo-pipeline-cmps/src/components/stageSwitch__c/index.tsx +511 -0
- package/template/neo-pipeline-cmps/src/components/stageSwitch__c/model.ts +70 -0
- package/template/{neo-bi-cmps → neo-pipeline-cmps}/src/components/stageSwitch__c/style.scss +4 -2
- package/template/neo-pipeline-cmps/src/components/stageTimeChart__c/index.tsx +455 -0
- package/template/neo-pipeline-cmps/src/components/stageTimeChart__c/model.ts +103 -0
- package/template/{neo-bi-cmps → neo-pipeline-cmps}/src/components/stageTimeChart__c/style.scss +3 -2
- package/template/neo-pipeline-cmps/src/utils/common.ts +229 -0
- package/template/neo-pipeline-cmps/src/utils/filter2chartFilter.ts +268 -0
- package/template/neo-pipeline-cmps/src/utils/filterBar.ts +140 -0
- package/template/neo-pipeline-cmps/src/utils/pipelineFunnel.ts +343 -0
- package/template/neo-pipeline-cmps/src/utils/queryByCustomSQL.ts +117 -0
- package/template/neo-pipeline-cmps/src/utils/requestDebounce.ts +22 -0
- package/template/neo-pipeline-cmps/src/utils/simpleTable.tsx +344 -0
- package/template/neo-pipeline-cmps/src/utils/stageSwitch.ts +15 -0
- package/template/neo-pipeline-cmps/src/utils/stageTimeChart.ts +90 -0
- package/template/neo-pipeline-cmps/src/utils/targetNumber.ts +12 -0
- package/template/neo-pipeline-cmps/tsconfig.json +40 -0
- package/template/neo-web-entity-grid/package.json +2 -2
- package/template/neo-web-form/package.json +2 -2
- package/template/react-custom-cmp-template/package.json +1 -1
- package/template/react-ts-custom-cmp-template/package.json +1 -1
- package/template/vue2-custom-cmp-template/package.json +1 -1
- package/template/neo-bi-cmps/.npmrc copy +0 -1
- package/template/neo-bi-cmps/src/components/aiCommitDrawer__c/README.md +0 -52
- package/template/neo-bi-cmps/src/components/aiCommitDrawer__c/index.tsx +0 -183
- package/template/neo-bi-cmps/src/components/aiCommitDrawer__c/model.ts +0 -90
- package/template/neo-bi-cmps/src/components/aiCommitDrawer__c/style.scss +0 -218
- package/template/neo-bi-cmps/src/components/forecastChart__c/README.md +0 -31
- package/template/neo-bi-cmps/src/components/forecastChart__c/index.tsx +0 -158
- package/template/neo-bi-cmps/src/components/forecastChart__c/model.ts +0 -40
- package/template/neo-bi-cmps/src/components/forecastChart__c/style.scss +0 -154
- package/template/neo-bi-cmps/src/components/forecastGrid__c/README.md +0 -36
- package/template/neo-bi-cmps/src/components/forecastGrid__c/index.tsx +0 -86
- package/template/neo-bi-cmps/src/components/forecastGrid__c/model.ts +0 -62
- package/template/neo-bi-cmps/src/components/forecastGrid__c/style.scss +0 -48
- package/template/neo-bi-cmps/src/components/gapCloser__c/README.md +0 -24
- package/template/neo-bi-cmps/src/components/gapCloser__c/index.tsx +0 -100
- package/template/neo-bi-cmps/src/components/gapCloser__c/model.ts +0 -46
- package/template/neo-bi-cmps/src/components/gapCloser__c/style.scss +0 -60
- package/template/neo-bi-cmps/src/components/kpiCards__c/README.md +0 -35
- package/template/neo-bi-cmps/src/components/kpiCards__c/index.tsx +0 -70
- package/template/neo-bi-cmps/src/components/kpiCards__c/model.ts +0 -50
- package/template/neo-bi-cmps/src/components/kpiCards__c/style.scss +0 -33
- package/template/neo-bi-cmps/src/components/oppList__c/README.md +0 -52
- package/template/neo-bi-cmps/src/components/oppList__c/index.tsx +0 -285
- package/template/neo-bi-cmps/src/components/oppList__c/model.ts +0 -86
- package/template/neo-bi-cmps/src/components/oppList__c/style.scss +0 -133
- package/template/neo-bi-cmps/src/components/pipelineFunnel__c/index.tsx +0 -130
- package/template/neo-bi-cmps/src/components/pipelineFunnel__c/model.ts +0 -66
- package/template/neo-bi-cmps/src/components/pipelineFunnel__c/style.scss +0 -133
- package/template/neo-bi-cmps/src/components/stageSwitch__c/index.tsx +0 -118
- package/template/neo-bi-cmps/src/components/stageSwitch__c/model.ts +0 -92
- package/template/neo-bi-cmps/src/components/stageTimeChart__c/index.tsx +0 -126
- package/template/neo-bi-cmps/src/components/stageTimeChart__c/model.ts +0 -57
- package/template/neo-bi-cmps/src/components/tabSwitch__c/README.md +0 -37
- package/template/neo-bi-cmps/src/components/tabSwitch__c/index.tsx +0 -80
- package/template/neo-bi-cmps/src/components/tabSwitch__c/model.ts +0 -45
- package/template/neo-bi-cmps/src/components/tabSwitch__c/style.scss +0 -37
- package/template/neo-bi-cmps/src/utils/axiosFetcher.ts +0 -37
- package/template/neo-bi-cmps/src/utils/queryObjectData.ts +0 -76
- package/template/neo-bi-cmps/src/utils/xobjects.ts +0 -162
- /package/template/{neo-bi-cmps → neo-pipeline-cmps}/src/components/pipelineFunnel__c/README.md +0 -0
- /package/template/{neo-bi-cmps → neo-pipeline-cmps}/src/components/stageSwitch__c/README.md +0 -0
- /package/template/{neo-bi-cmps → neo-pipeline-cmps}/src/components/stageTimeChart__c/README.md +0 -0
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
.showHealthResult__c {
|
|
2
|
+
background: #fff;
|
|
3
|
+
border-radius: 10px;
|
|
4
|
+
padding: 20px;
|
|
5
|
+
// width: 360px;
|
|
6
|
+
max-width: 100%;
|
|
7
|
+
box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
|
|
8
|
+
font-size: 13px;
|
|
9
|
+
box-sizing: border-box;
|
|
10
|
+
|
|
11
|
+
&__summary {
|
|
12
|
+
color: #666;
|
|
13
|
+
font-size: 12px;
|
|
14
|
+
margin-bottom: 12px;
|
|
15
|
+
white-space: pre-wrap;
|
|
16
|
+
word-break: break-word;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&__radar {
|
|
20
|
+
width: 100%;
|
|
21
|
+
height: 280px;
|
|
22
|
+
margin: 0 auto;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&__loading {
|
|
26
|
+
display: flex;
|
|
27
|
+
flex-wrap: wrap;
|
|
28
|
+
align-items: center;
|
|
29
|
+
justify-content: center;
|
|
30
|
+
gap: 6px 10px;
|
|
31
|
+
min-height: 120px;
|
|
32
|
+
padding: 24px 16px;
|
|
33
|
+
margin-top: 4px;
|
|
34
|
+
border-radius: 12px;
|
|
35
|
+
background: linear-gradient(145deg, #f8fafc 0%, #f1f5f9 100%);
|
|
36
|
+
border: 1px dashed #cbd5e1;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&__loadingDot {
|
|
40
|
+
width: 6px;
|
|
41
|
+
height: 6px;
|
|
42
|
+
border-radius: 50%;
|
|
43
|
+
background: #6366f1;
|
|
44
|
+
opacity: 0.35;
|
|
45
|
+
animation: showHealthResultPulse 1.1s ease-in-out infinite;
|
|
46
|
+
|
|
47
|
+
&:nth-child(2) {
|
|
48
|
+
animation-delay: 0.15s;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
&:nth-child(3) {
|
|
52
|
+
animation-delay: 0.3s;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
&__loadingText {
|
|
57
|
+
width: 100%;
|
|
58
|
+
text-align: center;
|
|
59
|
+
font-size: 12px;
|
|
60
|
+
color: #64748b;
|
|
61
|
+
letter-spacing: 0.02em;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&__placeholder {
|
|
65
|
+
margin-top: 4px;
|
|
66
|
+
padding: 18px 16px;
|
|
67
|
+
border-radius: 12px;
|
|
68
|
+
border: 1px solid #e2e8f0;
|
|
69
|
+
background: #f8fafc;
|
|
70
|
+
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
&__placeholder--empty {
|
|
74
|
+
border-color: #e0e7ff;
|
|
75
|
+
background: linear-gradient(160deg, #f5f7ff 0%, #eef2ff 55%, #f8fafc 100%);
|
|
76
|
+
|
|
77
|
+
.showHealthResult__c__placeholderTitle {
|
|
78
|
+
color: #3730a3;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.showHealthResult__c__placeholderHint {
|
|
82
|
+
color: #64748b;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
&__placeholder--error {
|
|
87
|
+
border-color: #fecaca;
|
|
88
|
+
background: linear-gradient(160deg, #fffbeb 0%, #fef2f2 45%, #fff 100%);
|
|
89
|
+
|
|
90
|
+
.showHealthResult__c__placeholderTitle {
|
|
91
|
+
color: #991b1b;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.showHealthResult__c__placeholderMsg {
|
|
95
|
+
color: #b91c1c;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
&__placeholderBody {
|
|
100
|
+
min-width: 0;
|
|
101
|
+
flex: 1;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
&__placeholderTitle {
|
|
105
|
+
font-size: 13px;
|
|
106
|
+
font-weight: 600;
|
|
107
|
+
line-height: 1.4;
|
|
108
|
+
margin-bottom: 6px;
|
|
109
|
+
color: #334155;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
&__placeholderHint {
|
|
113
|
+
font-size: 12px;
|
|
114
|
+
line-height: 1.55;
|
|
115
|
+
color: #64748b;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
&__placeholderMsg {
|
|
119
|
+
font-size: 12px;
|
|
120
|
+
line-height: 1.55;
|
|
121
|
+
word-break: break-word;
|
|
122
|
+
color: #64748b;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
@keyframes showHealthResultPulse {
|
|
127
|
+
0%,
|
|
128
|
+
100% {
|
|
129
|
+
opacity: 0.35;
|
|
130
|
+
transform: scale(1);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
50% {
|
|
134
|
+
opacity: 1;
|
|
135
|
+
transform: scale(1.15);
|
|
136
|
+
}
|
|
137
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
# XObject 数据表格组件(简化版)
|
|
2
|
+
|
|
3
|
+
基于 XObject 的数据表格组件,仅支持数据展示,表格列根据 `xObject.getDesc` 返回的 fields 动态生成。
|
|
4
|
+
备注:使用 Neo Open API SDK(neo-open-api) 提供的方法实现数据对象的查询操作。
|
|
5
|
+
|
|
6
|
+
## 功能特性
|
|
7
|
+
|
|
8
|
+
- 📊 **动态表格列**:根据 XObject 字段描述自动生成表格列
|
|
9
|
+
- 🔍 **数据展示**:支持展示 XObject 实体数据
|
|
10
|
+
- 🎨 **响应式设计**:适配不同屏幕尺寸
|
|
11
|
+
- ⚙️ **属性配置**:支持通过编辑器配置组件属性
|
|
12
|
+
|
|
13
|
+
## 组件属性
|
|
14
|
+
|
|
15
|
+
| 属性名 | 类型 | 默认值 | 说明 |
|
|
16
|
+
|--------|------|--------|------|
|
|
17
|
+
| title | string | '数据表格' | 表格标题 |
|
|
18
|
+
| xObjectDataApi | object | - | 实体数据源配置 |
|
|
19
|
+
| xObjectDataApi.xObjectApiKey | string | '' | 数据对象的 API Key |
|
|
20
|
+
| xObjectDataApi.fields | string[] | [] | 要显示的字段列表 |
|
|
21
|
+
|
|
22
|
+
## 使用方法
|
|
23
|
+
|
|
24
|
+
### 1. 在编辑器中使用
|
|
25
|
+
|
|
26
|
+
1. 从组件面板拖拽 "实体数据表格(简化版)" 组件到页面
|
|
27
|
+
2. 在右侧属性面板中选择要操作的数据对象
|
|
28
|
+
3. 配置要显示的字段(可选)
|
|
29
|
+
4. 保存并预览
|
|
30
|
+
|
|
31
|
+
### 2. 代码中使用
|
|
32
|
+
|
|
33
|
+
```tsx
|
|
34
|
+
import SimpleTable from './components/simpleTable__c';
|
|
35
|
+
|
|
36
|
+
// 使用组件
|
|
37
|
+
<SimpleTable
|
|
38
|
+
xObjectDataApi={{
|
|
39
|
+
xObjectApiKey: 'customContact__c',
|
|
40
|
+
fields: ['name', 'phone__c'],
|
|
41
|
+
}}
|
|
42
|
+
/>
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
## 技术实现
|
|
46
|
+
|
|
47
|
+
### 核心依赖
|
|
48
|
+
|
|
49
|
+
- **Ant Design**:UI 组件库
|
|
50
|
+
- **React**:前端框架
|
|
51
|
+
- **TypeScript**:类型支持
|
|
52
|
+
|
|
53
|
+
### 数据流程
|
|
54
|
+
|
|
55
|
+
1. **初始化**:组件挂载时获取字段描述
|
|
56
|
+
2. **列生成**:根据字段描述动态生成表格列
|
|
57
|
+
3. **数据加载**:使用 `xObject.query` 获取数据列表
|
|
58
|
+
|
|
59
|
+
## 样式定制
|
|
60
|
+
|
|
61
|
+
组件提供了完整的 SCSS 样式文件,支持以下定制:
|
|
62
|
+
|
|
63
|
+
- 表格样式(边框、悬停效果等)
|
|
64
|
+
- 响应式设计(移动端适配)
|
|
65
|
+
|
|
66
|
+
## 注意事项
|
|
67
|
+
|
|
68
|
+
1. **权限要求**:确保用户有对应 XObject 的读取权限
|
|
69
|
+
2. **字段类型**:支持所有基础字段类型的展示
|
|
70
|
+
3. **错误处理**:组件内置了完善的错误处理和用户提示
|
|
71
|
+
|
|
72
|
+
## 与完整版组件的区别
|
|
73
|
+
|
|
74
|
+
本简化版组件相比完整版 `entityTable__c` 组件:
|
|
75
|
+
|
|
76
|
+
- ❌ **不支持新增**:移除了新增记录功能
|
|
77
|
+
- ❌ **不支持编辑**:移除了编辑记录功能
|
|
78
|
+
- ❌ **不支持删除**:移除了删除记录功能
|
|
79
|
+
- ❌ **不支持刷新**:移除了手动刷新按钮
|
|
80
|
+
- ❌ **不支持分页**:移除了分页功能,显示所有数据
|
|
81
|
+
- ✅ **仅支持展示**:专注于数据展示功能
|
|
82
|
+
|
|
83
|
+
## 扩展开发
|
|
84
|
+
|
|
85
|
+
如需扩展功能,可以:
|
|
86
|
+
|
|
87
|
+
1. **添加字段类型支持**:在 `generateColumns()` 方法中添加字段格式化逻辑
|
|
88
|
+
2. **自定义样式**:修改 `style.scss` 文件定制组件外观
|
|
89
|
+
3. **添加排序功能**:扩展表格功能支持列排序
|
|
90
|
+
|
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
// css变量
|
|
2
|
+
:root {
|
|
3
|
+
--background-color: #f5f6fa;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
// sass变量
|
|
7
|
+
$background-color: #f5f6fa;
|
|
8
|
+
// 自定义公共样式
|
|
9
|
+
|
|
10
|
+
/* AI Win Rate:hover 卡片(对齐 demo.html #winRateTooltip) */
|
|
11
|
+
.simpleTable-winrate-trigger {
|
|
12
|
+
cursor: pointer;
|
|
13
|
+
border: none !important;
|
|
14
|
+
// border-bottom: 1px dashed rgba(99, 102, 241, 0.45);
|
|
15
|
+
// padding-bottom: 1px;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.simpleTable-winrate-popover {
|
|
19
|
+
.ant-popover-inner {
|
|
20
|
+
padding: 0;
|
|
21
|
+
border-radius: 10px;
|
|
22
|
+
box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.ant-popover-inner-content {
|
|
26
|
+
padding: 0;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.ant-popover-arrow {
|
|
30
|
+
display: none !important;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/* 健康度列 hover:内嵌 showHealthResult__c */
|
|
35
|
+
.simpleTable-health-popover-trigger {
|
|
36
|
+
cursor: pointer;
|
|
37
|
+
display: inline-block;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.simpleTable-health-popover-overlay {
|
|
41
|
+
.ant-popover-inner {
|
|
42
|
+
padding: 0;
|
|
43
|
+
border-radius: 10px;
|
|
44
|
+
box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.ant-popover-inner-content {
|
|
48
|
+
padding: 0;
|
|
49
|
+
max-width: min(440px, 92vw);
|
|
50
|
+
max-height: 520px;
|
|
51
|
+
overflow: auto;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.ant-popover-arrow {
|
|
55
|
+
display: none !important;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.simpleTable-health-popover-body {
|
|
60
|
+
min-width: 300px;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.simpleTable-change-popover {
|
|
64
|
+
.ant-popover-inner {
|
|
65
|
+
padding: 0;
|
|
66
|
+
border-radius: 10px;
|
|
67
|
+
box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.ant-popover-inner-content {
|
|
71
|
+
padding: 16px;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.ant-popover-arrow {
|
|
75
|
+
display: none !important;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.simpleTable-winrate-card {
|
|
80
|
+
width: 320px;
|
|
81
|
+
border-radius: 10px;
|
|
82
|
+
font-size: 13px;
|
|
83
|
+
box-shadow: none;
|
|
84
|
+
|
|
85
|
+
.ant-card-body {
|
|
86
|
+
padding: 16px;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
&__baseline {
|
|
90
|
+
font-weight: 600;
|
|
91
|
+
font-size: 12px;
|
|
92
|
+
color: #888;
|
|
93
|
+
margin-bottom: 10px;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
&__baseline-val {
|
|
97
|
+
color: #262626;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
&__hr {
|
|
101
|
+
border: none;
|
|
102
|
+
border-top: 1px solid #eee;
|
|
103
|
+
margin: 8px 0;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
&__section-title {
|
|
107
|
+
font-weight: 600;
|
|
108
|
+
margin-bottom: 4px;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
&__positives {
|
|
112
|
+
color: #22c55e;
|
|
113
|
+
margin-bottom: 8px;
|
|
114
|
+
white-space: pre-wrap;
|
|
115
|
+
word-break: break-word;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
&__negatives {
|
|
119
|
+
color: #ef4444;
|
|
120
|
+
margin-bottom: 8px;
|
|
121
|
+
white-space: pre-wrap;
|
|
122
|
+
word-break: break-word;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
&__footer {
|
|
126
|
+
display: flex;
|
|
127
|
+
justify-content: space-between;
|
|
128
|
+
align-items: center;
|
|
129
|
+
font-weight: 700;
|
|
130
|
+
font-size: 16px;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
&__winrate-val {
|
|
134
|
+
color: #6366f1;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.simpleTable-cell-trend-wrap {
|
|
139
|
+
display: inline-flex;
|
|
140
|
+
align-items: center;
|
|
141
|
+
gap: 6px;
|
|
142
|
+
max-width: 100%;
|
|
143
|
+
|
|
144
|
+
&__text {
|
|
145
|
+
min-width: 0;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
&__arrow {
|
|
149
|
+
flex-shrink: 0;
|
|
150
|
+
cursor: pointer;
|
|
151
|
+
line-height: 1;
|
|
152
|
+
|
|
153
|
+
.simpleTable-trend {
|
|
154
|
+
cursor: pointer;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.simpleTable-trend {
|
|
160
|
+
font-weight: 700;
|
|
161
|
+
font-size: 13px;
|
|
162
|
+
|
|
163
|
+
&--up {
|
|
164
|
+
color: #22c55e;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
&--down {
|
|
168
|
+
color: #ef4444;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.simpleTable-change-tip {
|
|
173
|
+
max-width: 280px;
|
|
174
|
+
font-size: 13px;
|
|
175
|
+
|
|
176
|
+
&__title {
|
|
177
|
+
font-weight: 700;
|
|
178
|
+
font-size: 14px;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
&__detail {
|
|
182
|
+
margin: 6px 0;
|
|
183
|
+
color: #333;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
&__meta {
|
|
187
|
+
color: #999;
|
|
188
|
+
font-size: 12px;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
&__to {
|
|
192
|
+
color: #ec4899;
|
|
193
|
+
font-weight: 600;
|
|
194
|
+
}
|
|
195
|
+
}
|