@kne/super-select 0.1.16 → 0.1.20
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 +289 -43
- package/dist/index.css +20 -5
- package/dist/index.css.map +1 -1
- package/dist/index.js +121 -43
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +121 -43
- package/dist/index.modern.js.map +1 -1
- package/dist/locale/en-US.js +12 -0
- package/dist/locale/en-US.js.map +1 -0
- package/dist/locale/en-US.modern.js +12 -0
- package/dist/locale/en-US.modern.js.map +1 -0
- package/dist/locale/zh-CN.js +12 -0
- package/dist/locale/zh-CN.js.map +1 -0
- package/dist/locale/zh-CN.modern.js +12 -0
- package/dist/locale/zh-CN.modern.js.map +1 -0
- package/package.json +5 -2
package/README.md
CHANGED
|
@@ -13,6 +13,56 @@
|
|
|
13
13
|
npm i --save @kne/super-select
|
|
14
14
|
```
|
|
15
15
|
|
|
16
|
+
|
|
17
|
+
### 概述
|
|
18
|
+
|
|
19
|
+
@kne/super-select 是一个功能强大的 React 组件库,专门用于处理复杂的信息选择场景。它提供了一系列灵活且可组合的组件,使得在 React 应用中实现复杂的选择功能变得简单直观。
|
|
20
|
+
|
|
21
|
+
### 主要功能
|
|
22
|
+
|
|
23
|
+
- 支持多种选择模式(单选、多选)
|
|
24
|
+
- 提供灵活的列表和表格展示方式
|
|
25
|
+
- 内置标签式选中项展示
|
|
26
|
+
- 支持全选/反选功能
|
|
27
|
+
- 内置国际化支持(中文和英文)
|
|
28
|
+
- 自定义样式支持(基于CSS Modules)
|
|
29
|
+
|
|
30
|
+
### 组件概述
|
|
31
|
+
|
|
32
|
+
#### SelectInput
|
|
33
|
+
基础选择输入组件,提供核心的选择功能和状态管理。可以独立使用,也可以作为其他选择组件的基础。
|
|
34
|
+
|
|
35
|
+
#### SelectList
|
|
36
|
+
基于 SelectInput 的列表选择组件,适用于常规的列表选择场景。提供了简洁的列表界面和直观的选择交互。
|
|
37
|
+
|
|
38
|
+
#### SelectTableList
|
|
39
|
+
表格形式的选择组件,适用于需要展示多列数据的选择场景。支持自定义列配置和表格样式。
|
|
40
|
+
|
|
41
|
+
#### SelectedAll
|
|
42
|
+
全选功能组件,提供一键选择/取消选择所有项的功能。可以与其他选择组件配合使用。
|
|
43
|
+
|
|
44
|
+
#### SelectedTagList
|
|
45
|
+
已选项标签列表组件,以标签形式展示已选中的项目。支持单个标签删除和清空所有已选项。
|
|
46
|
+
|
|
47
|
+
### 使用场景
|
|
48
|
+
|
|
49
|
+
- 复杂的数据筛选和选择
|
|
50
|
+
- 多条件组合查询
|
|
51
|
+
- 批量操作数据
|
|
52
|
+
- 表格数据的多选处理
|
|
53
|
+
- 带标签展示的数据选择
|
|
54
|
+
- 需要全选/反选功能的列表操作
|
|
55
|
+
|
|
56
|
+
### 技术特点
|
|
57
|
+
|
|
58
|
+
- 基于 React 开发
|
|
59
|
+
- 使用 CSS Modules 进行样式隔离
|
|
60
|
+
- 支持 ES6+ 语法
|
|
61
|
+
- 模块化设计,组件可独立使用
|
|
62
|
+
- 支持主题定制
|
|
63
|
+
- 完善的类型定义支持
|
|
64
|
+
|
|
65
|
+
|
|
16
66
|
### 示例
|
|
17
67
|
|
|
18
68
|
|
|
@@ -65,44 +115,86 @@ const { Space, Button } = antd;
|
|
|
65
115
|
|
|
66
116
|
const optionList = Array.from({ length: 20 }).map((item, key) => {
|
|
67
117
|
return {
|
|
68
|
-
label: `第${key + 1}项`,
|
|
118
|
+
label: `第${key + 1}项`,
|
|
119
|
+
value: key + 1,
|
|
120
|
+
disabled: key === 1
|
|
69
121
|
};
|
|
70
122
|
});
|
|
71
123
|
|
|
72
124
|
const BaseExample = () => {
|
|
73
|
-
return
|
|
74
|
-
<
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
125
|
+
return (
|
|
126
|
+
<Space wrap>
|
|
127
|
+
<SuperSelect options={optionList} suffix={<Button type="text">预览</Button>} prefix={<Button type="text">查看</Button>} />
|
|
128
|
+
<SuperSelect
|
|
129
|
+
single
|
|
130
|
+
options={[
|
|
131
|
+
...optionList,
|
|
132
|
+
{
|
|
133
|
+
value: 'other',
|
|
134
|
+
label: '超长label项超长label项超长label项超长label项超长label项超长label项超长label项超长label项'
|
|
135
|
+
}
|
|
136
|
+
]}
|
|
137
|
+
/>
|
|
138
|
+
<SuperSelect
|
|
139
|
+
allowSelectedAll
|
|
140
|
+
options={optionList}
|
|
141
|
+
maxLength={10}
|
|
142
|
+
getSearchCallback={({ searchText }, item) => {
|
|
143
|
+
return !searchText || item.label.indexOf(searchText) > -1;
|
|
144
|
+
}}
|
|
145
|
+
/>
|
|
146
|
+
<SuperSelect
|
|
147
|
+
allowSelectedAll
|
|
148
|
+
options={optionList}
|
|
149
|
+
isPopup={false}
|
|
150
|
+
getSearchCallback={({ searchText }, item) => {
|
|
151
|
+
return !searchText || item.label.indexOf(searchText) > -1;
|
|
152
|
+
}}
|
|
153
|
+
/>
|
|
154
|
+
<SuperSelect
|
|
155
|
+
api={{
|
|
156
|
+
data: {},
|
|
157
|
+
loader: ({ data }) => {
|
|
158
|
+
const searchText = data.searchProps && data.searchProps.searchText;
|
|
159
|
+
if (!searchText) {
|
|
160
|
+
return {
|
|
161
|
+
pageData: optionList,
|
|
162
|
+
totalCount: optionList.length
|
|
163
|
+
};
|
|
164
|
+
}
|
|
165
|
+
const newOptionList = optionList.filter(item => !searchText || item.label.indexOf(searchText) > -1);
|
|
166
|
+
return {
|
|
167
|
+
pageData: newOptionList,
|
|
168
|
+
totalCount: newOptionList.length
|
|
169
|
+
};
|
|
170
|
+
}
|
|
171
|
+
}}
|
|
172
|
+
isPopup={false}
|
|
173
|
+
getSearchProps={({ searchText }) => {
|
|
174
|
+
return { searchText };
|
|
175
|
+
}}
|
|
176
|
+
/>
|
|
177
|
+
|
|
178
|
+
<SuperSelect
|
|
179
|
+
defaultOpen
|
|
180
|
+
options={optionList}
|
|
181
|
+
inputRender={({ value }) => {
|
|
182
|
+
return <Button type="link">编辑</Button>;
|
|
183
|
+
}}
|
|
184
|
+
/>
|
|
185
|
+
|
|
186
|
+
<SuperSelect
|
|
187
|
+
options={optionList}
|
|
188
|
+
footer={({ close, reload }) => {
|
|
189
|
+
return (
|
|
190
|
+
<Button type="link" onClick={reload}>
|
|
191
|
+
添加
|
|
192
|
+
</Button>
|
|
193
|
+
);
|
|
194
|
+
}}
|
|
195
|
+
/>
|
|
196
|
+
</Space>
|
|
197
|
+
);
|
|
106
198
|
};
|
|
107
199
|
|
|
108
200
|
render(<BaseExample />);
|
|
@@ -133,12 +225,12 @@ const columns = [{
|
|
|
133
225
|
|
|
134
226
|
const BaseExample = () => {
|
|
135
227
|
return <Space wrap>
|
|
136
|
-
<SelectTableList options={optionList} columns={columns} valueKey="id" />
|
|
137
|
-
<SelectTableList single options={optionList} columns={columns} valueKey="id" />
|
|
138
|
-
<SelectTableList allowSelectedAll options={optionList} columns={columns} valueKey="id" />
|
|
139
|
-
<SelectTableList options={optionList} columns={columns} isPopup={false} valueKey="id" />
|
|
140
|
-
<SelectTableList allowSelectedAll options={optionList} columns={columns} isPopup={false} valueKey="id" />
|
|
141
|
-
<SelectTableList single options={optionList} columns={columns} isPopup={false} valueKey="id" />
|
|
228
|
+
<SelectTableList options={optionList} columns={columns} valueKey="id" footer={<Button type="link">预览</Button>}/>
|
|
229
|
+
<SelectTableList single options={optionList} columns={columns} valueKey="id" footer={<Button type="link">预览</Button>}/>
|
|
230
|
+
<SelectTableList allowSelectedAll options={optionList} columns={columns} valueKey="id" footer={<Button type="link">预览</Button>}/>
|
|
231
|
+
<SelectTableList options={optionList} columns={columns} isPopup={false} valueKey="id" footer={<Button type="link">预览</Button>}/>
|
|
232
|
+
<SelectTableList allowSelectedAll options={optionList} columns={columns} isPopup={false} valueKey="id" footer={<Button type="link">预览</Button>}/>
|
|
233
|
+
<SelectTableList single options={optionList} columns={columns} isPopup={false} valueKey="id" footer={<Button type="link">预览</Button>}/>
|
|
142
234
|
</Space>;
|
|
143
235
|
};
|
|
144
236
|
|
|
@@ -178,7 +270,161 @@ render(<BaseExample />);
|
|
|
178
270
|
|
|
179
271
|
### API
|
|
180
272
|
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
273
|
+
#### SelectInput
|
|
274
|
+
|
|
275
|
+
基础选择输入组件,提供核心的选择功能和状态管理。
|
|
276
|
+
|
|
277
|
+
| 属性名 | 说明 | 类型 | 默认值 |
|
|
278
|
+
|-------------------|-------------------|-------------------------------|---------------------|
|
|
279
|
+
| value | 当前选中的值 | array | [] |
|
|
280
|
+
| onChange | 选中值变化时的回调函数 | function(value, item, {type}) | - |
|
|
281
|
+
| dataSource | 数据源 | array | [] |
|
|
282
|
+
| idField | 数据项唯一标识字段 | string | 'id' |
|
|
283
|
+
| multiple | 是否支持多选 | boolean | false |
|
|
284
|
+
| max | 最多可选数量 | number | - |
|
|
285
|
+
| disabled | 是否禁用 | boolean | false |
|
|
286
|
+
| readOnly | 是否只读 | boolean | false |
|
|
287
|
+
| className | 自定义类名 | string | - |
|
|
288
|
+
| style | 自定义样式 | object | - |
|
|
289
|
+
| children | 自定义渲染内容 | function(props) | - |
|
|
290
|
+
| locale | 国际化配置 | object | 默认中文 |
|
|
291
|
+
| getContainer | 指定下拉菜单挂载的 HTML 节点 | function | () => document.body |
|
|
292
|
+
| getPopupContainer | 菜单渲染父节点 | function(triggerNode) | () => document.body |
|
|
293
|
+
| onExceed | 超出最大可选数量时的回调 | function(value, item) | - |
|
|
294
|
+
| onSelect | 选择时的回调 | function(value, item) | - |
|
|
295
|
+
| onDeselect | 取消选择时的回调 | function(value, item) | - |
|
|
296
|
+
|
|
297
|
+
#### SelectList
|
|
298
|
+
|
|
299
|
+
基于 SelectInput 的列表选择组件,适用于常规的列表选择场景。
|
|
300
|
+
|
|
301
|
+
| 属性名 | 说明 | 类型 | 默认值 |
|
|
302
|
+
|---------------|--------------|-------------------------------|-------|
|
|
303
|
+
| value | 当前选中的值 | array | [] |
|
|
304
|
+
| onChange | 选中值变化时的回调函数 | function(value, item, {type}) | - |
|
|
305
|
+
| dataSource | 数据源 | array | [] |
|
|
306
|
+
| idField | 数据项唯一标识字段 | string | 'id' |
|
|
307
|
+
| multiple | 是否支持多选 | boolean | false |
|
|
308
|
+
| max | 最多可选数量 | number | - |
|
|
309
|
+
| disabled | 是否禁用 | boolean | false |
|
|
310
|
+
| readOnly | 是否只读 | boolean | false |
|
|
311
|
+
| className | 自定义类名 | string | - |
|
|
312
|
+
| style | 自定义样式 | object | - |
|
|
313
|
+
| renderItem | 自定义列表项渲染 | function(item, index) | - |
|
|
314
|
+
| emptyContent | 无数据时的显示内容 | ReactNode | - |
|
|
315
|
+
| locale | 国际化配置 | object | 默认中文 |
|
|
316
|
+
| onExceed | 超出最大可选数量时的回调 | function(value, item) | - |
|
|
317
|
+
| onSelect | 选择时的回调 | function(value, item) | - |
|
|
318
|
+
| onDeselect | 取消选择时的回调 | function(value, item) | - |
|
|
319
|
+
| itemClassName | 列表项自定义类名 | string | - |
|
|
320
|
+
| itemStyle | 列表项自定义样式 | object | - |
|
|
321
|
+
|
|
322
|
+
#### SelectTableList
|
|
323
|
+
|
|
324
|
+
表格形式的选择组件,适用于需要展示多列数据的选择场景。
|
|
325
|
+
|
|
326
|
+
| 属性名 | 说明 | 类型 | 默认值 |
|
|
327
|
+
|-----------------|--------------|-------------------------------|-------|
|
|
328
|
+
| value | 当前选中的值 | array | [] |
|
|
329
|
+
| onChange | 选中值变化时的回调函数 | function(value, item, {type}) | - |
|
|
330
|
+
| dataSource | 数据源 | array | [] |
|
|
331
|
+
| idField | 数据项唯一标识字段 | string | 'id' |
|
|
332
|
+
| multiple | 是否支持多选 | boolean | false |
|
|
333
|
+
| max | 最多可选数量 | number | - |
|
|
334
|
+
| disabled | 是否禁用 | boolean | false |
|
|
335
|
+
| readOnly | 是否只读 | boolean | false |
|
|
336
|
+
| className | 自定义类名 | string | - |
|
|
337
|
+
| style | 自定义样式 | object | - |
|
|
338
|
+
| columns | 表格列配置 | array | [] |
|
|
339
|
+
| emptyContent | 无数据时的显示内容 | ReactNode | - |
|
|
340
|
+
| locale | 国际化配置 | object | 默认中文 |
|
|
341
|
+
| onExceed | 超出最大可选数量时的回调 | function(value, item) | - |
|
|
342
|
+
| onSelect | 选择时的回调 | function(value, item) | - |
|
|
343
|
+
| onDeselect | 取消选择时的回调 | function(value, item) | - |
|
|
344
|
+
| rowClassName | 行自定义类名 | string | - |
|
|
345
|
+
| rowStyle | 行自定义样式 | object | - |
|
|
346
|
+
| headerClassName | 表头自定义类名 | string | - |
|
|
347
|
+
| headerStyle | 表头自定义样式 | object | - |
|
|
348
|
+
|
|
349
|
+
##### columns 配置项
|
|
350
|
+
|
|
351
|
+
| 属性名 | 说明 | 类型 | 默认值 |
|
|
352
|
+
|-----------|---------------|-------------------------------|-----|
|
|
353
|
+
| title | 列标题 | ReactNode | - |
|
|
354
|
+
| dataIndex | 列数据在数据项中对应的路径 | string | - |
|
|
355
|
+
| key | React key | string | - |
|
|
356
|
+
| render | 自定义渲染函数 | function(text, record, index) | - |
|
|
357
|
+
| width | 列宽度 | string \| number | - |
|
|
358
|
+
| className | 列自定义类名 | string | - |
|
|
359
|
+
| style | 列自定义样式 | object | - |
|
|
360
|
+
|
|
361
|
+
#### SelectedAll
|
|
362
|
+
|
|
363
|
+
全选功能组件,提供一键选择/取消选择所有项的功能。
|
|
364
|
+
|
|
365
|
+
| 属性名 | 说明 | 类型 | 默认值 |
|
|
366
|
+
|------------|-------------|-------------------------|-------|
|
|
367
|
+
| value | 当前选中的值 | array | [] |
|
|
368
|
+
| onChange | 选中值变化时的回调函数 | function(value, {type}) | - |
|
|
369
|
+
| dataSource | 数据源 | array | [] |
|
|
370
|
+
| idField | 数据项唯一标识字段 | string | 'id' |
|
|
371
|
+
| disabled | 是否禁用 | boolean | false |
|
|
372
|
+
| readOnly | 是否只读 | boolean | false |
|
|
373
|
+
| className | 自定义类名 | string | - |
|
|
374
|
+
| style | 自定义样式 | object | - |
|
|
375
|
+
| children | 自定义渲染内容 | function(props) | - |
|
|
376
|
+
| locale | 国际化配置 | object | 默认中文 |
|
|
377
|
+
|
|
378
|
+
#### SelectedTagList
|
|
379
|
+
|
|
380
|
+
已选项标签列表组件,以标签形式展示已选中的项目。
|
|
381
|
+
|
|
382
|
+
| 属性名 | 说明 | 类型 | 默认值 |
|
|
383
|
+
|--------------|-------------|-------------------------------|-------|
|
|
384
|
+
| value | 当前选中的值 | array | [] |
|
|
385
|
+
| onChange | 选中值变化时的回调函数 | function(value, item, {type}) | - |
|
|
386
|
+
| dataSource | 数据源 | array | [] |
|
|
387
|
+
| idField | 数据项唯一标识字段 | string | 'id' |
|
|
388
|
+
| disabled | 是否禁用 | boolean | false |
|
|
389
|
+
| readOnly | 是否只读 | boolean | false |
|
|
390
|
+
| className | 自定义类名 | string | - |
|
|
391
|
+
| style | 自定义样式 | object | - |
|
|
392
|
+
| renderItem | 自定义标签渲染 | function(item, index) | - |
|
|
393
|
+
| emptyContent | 无数据时的显示内容 | ReactNode | - |
|
|
394
|
+
| locale | 国际化配置 | object | 默认中文 |
|
|
395
|
+
| onRemove | 移除标签时的回调 | function(value, item) | - |
|
|
396
|
+
| onClear | 清空所有标签时的回调 | function(value) | - |
|
|
397
|
+
| showClear | 是否显示清空按钮 | boolean | true |
|
|
398
|
+
| tagClassName | 标签自定义类名 | string | - |
|
|
399
|
+
| tagStyle | 标签自定义样式 | object | - |
|
|
400
|
+
|
|
401
|
+
#### 国际化配置
|
|
402
|
+
|
|
403
|
+
组件内置了中文和英文两种语言配置,默认使用中文。可以通过 `locale` 属性进行自定义配置。
|
|
404
|
+
|
|
405
|
+
```jsx
|
|
406
|
+
import { zhCN, enUS } from '@kne/super-select/locale';
|
|
407
|
+
|
|
408
|
+
// 使用英文
|
|
409
|
+
<SelectList locale={enUS} />
|
|
410
|
+
|
|
411
|
+
// 自定义部分文案
|
|
412
|
+
<SelectList locale={{
|
|
413
|
+
...zhCN,
|
|
414
|
+
empty: '暂无数据',
|
|
415
|
+
selectAll: '全选',
|
|
416
|
+
clearAll: '清空'
|
|
417
|
+
}} />
|
|
418
|
+
```
|
|
419
|
+
|
|
420
|
+
##### 可配置的文案
|
|
421
|
+
|
|
422
|
+
| 键名 | 说明 | 默认中文值 |
|
|
423
|
+
|-----------|-----------|----------------|
|
|
424
|
+
| empty | 无数据时的提示文案 | 暂无数据 |
|
|
425
|
+
| selectAll | 全选按钮文案 | 全选 |
|
|
426
|
+
| clearAll | 清空按钮文案 | 清空 |
|
|
427
|
+
| selected | 已选文案 | 已选 |
|
|
428
|
+
| items | 项文案 | 项 |
|
|
429
|
+
| exceed | 超出限制提示文案 | 最多只能选择 {max} 项 |
|
|
184
430
|
|
package/dist/index.css
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
background-color: #fff;
|
|
4
4
|
font-size: var(--font-size-default);
|
|
5
5
|
border: 1px solid var(--font-color-grey-3);
|
|
6
|
-
border-radius: 2px;
|
|
6
|
+
border-radius: var(--radius-default, 2px);
|
|
7
7
|
cursor: pointer;
|
|
8
8
|
min-width: 150px;
|
|
9
9
|
position: relative;
|
|
@@ -69,6 +69,9 @@
|
|
|
69
69
|
|
|
70
70
|
._ybN30 {
|
|
71
71
|
box-shadow: 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05);
|
|
72
|
+
min-width: unset !important;
|
|
73
|
+
border-radius: 4px;
|
|
74
|
+
overflow: hidden;
|
|
72
75
|
}
|
|
73
76
|
._ybN30 .ant-popover-inner {
|
|
74
77
|
padding: 0;
|
|
@@ -207,6 +210,10 @@
|
|
|
207
210
|
overflow: hidden;
|
|
208
211
|
text-overflow: ellipsis;
|
|
209
212
|
}
|
|
213
|
+
|
|
214
|
+
._v3f23 {
|
|
215
|
+
border-top: solid 1px var(--font-color-grey-4);
|
|
216
|
+
}
|
|
210
217
|
._DrEYJ {
|
|
211
218
|
max-height: 300px;
|
|
212
219
|
}
|
|
@@ -300,8 +307,8 @@
|
|
|
300
307
|
}
|
|
301
308
|
|
|
302
309
|
._ttNK9 {
|
|
303
|
-
border-bottom: 1px solid
|
|
304
|
-
border-right: 1px solid
|
|
310
|
+
border-bottom: 1px solid var(--font-color-grey-4);
|
|
311
|
+
border-right: 1px solid var(--font-color-grey-4);
|
|
305
312
|
line-height: 20px;
|
|
306
313
|
}
|
|
307
314
|
._ttNK9:not(:last-child) {
|
|
@@ -312,8 +319,8 @@
|
|
|
312
319
|
._SvfzQ {
|
|
313
320
|
font-size: var(--font-size-default);
|
|
314
321
|
padding: 8px 16px;
|
|
315
|
-
border-top: 1px solid
|
|
316
|
-
border-left: 1px solid
|
|
322
|
+
border-top: 1px solid var(--font-color-grey-4);
|
|
323
|
+
border-left: 1px solid var(--font-color-grey-4);
|
|
317
324
|
line-height: 20px;
|
|
318
325
|
word-break: break-all;
|
|
319
326
|
}
|
|
@@ -327,4 +334,12 @@
|
|
|
327
334
|
word-break: break-all;
|
|
328
335
|
white-space: pre-line;
|
|
329
336
|
}
|
|
337
|
+
|
|
338
|
+
._lISfA {
|
|
339
|
+
border-top: 1px solid var(--font-color-grey-4);
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
._UXi-g ._lISfA {
|
|
343
|
+
margin-top: 12px;
|
|
344
|
+
}
|
|
330
345
|
/*# sourceMappingURL=index.css.map */
|
package/dist/index.css.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["style.module.scss"],"names":[],"mappings":"AAAA;EACE,mBAAmB;EACnB,sBAAsB;EACtB,mCAAmC;EACnC,0CAA0C;EAC1C,
|
|
1
|
+
{"version":3,"sources":["style.module.scss"],"names":[],"mappings":"AAAA;EACE,mBAAmB;EACnB,sBAAsB;EACtB,mCAAmC;EACnC,0CAA0C;EAC1C,yCAAyC;EACzC,eAAe;EACf,gBAAgB;EAChB,kBAAkB;EAClB,eAAe;EACf,uBAAuB;AACzB;AACA;EACE,kCAAkC;AACpC;AACA;EACE,kCAAkC;AACpC;AACA;EACE,kCAAkC;EAClC,+BAA+B;EAC/B,mBAAmB;AACrB;AACA;EACE,+BAA+B;AACjC;AACA;EACE,aAAa;AACf;AACA;EACE,eAAe;AACjB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,mBAAmB;AACrB;;AAEA;EACE,aAAa;EACb,mBAAmB;EACnB,kBAAkB;EAClB,gBAAgB;EAChB,8BAA8B;EAC9B,mBAAmB;EACnB,uBAAuB;EACvB,OAAO;AACT;AACA;EACE,qBAAqB;AACvB;;AAEA;EACE,+BAA+B;EAC/B,eAAe;EACf,+BAA+B;AACjC;;AAEA;EACE,+BAA+B;AACjC;;AAEA;EACE,gBAAgB;EAChB,2BAA2B;EAC3B,mBAAmB;AACrB;;AAEA;EACE,oHAAoH;EACpH,2BAA2B;EAC3B,kBAAkB;EAClB,gBAAgB;AAClB;AACA;EACE,UAAU;AACZ;;AAEA;EACE,4BAA4B;AAC9B;;AAEA;EACE,2BAA2B;AAC7B;AArFA;EACE,qBAAqB;AACvB;AACA;EACE,+BAA+B;AACjC;AALA;EACE,iBAAiB;AACnB;;AAEA;EACE,sBAAsB;AACxB;AACA;EACE,kCAAkC;AACpC;;AAEA;EACE,iBAAiB;EACjB,OAAO;AACT;;AAEA;EACE,mBAAmB;EACnB,sBAAsB;AACxB;;AAEA;EACE,aAAa;AACf;;AAEA;EACE,cAAc;EACd,gBAAgB;EAChB,mBAAmB;EACnB,uBAAuB;EACvB,gBAAgB;AAClB;AA/BA;EACE,iBAAiB;AACnB;AACA;EACE,iBAAiB;AACnB;;AAEA;EACE,kCAAkC;EAClC,mBAAmB;AACrB;AACA;EACE,+BAA+B;AACjC;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,4BAA4B;EAC5B,mBAAmB;EACnB,eAAe;EACf,4BAA4B;EAC5B,kBAAkB;EAClB,2CAA2C;AAC7C;AACA;EACE,kCAAkC;AACpC;AACA;EACE,kCAAkC;AACpC;AACA;;EAEE,2BAA2B;AAC7B;AACA;EACE,+BAA+B;EAC/B,mBAAmB;AACrB;AACA;EACE,gBAAgB;EAChB,iBAAiB;AACnB;AACA;;EAEE,uBAAuB;AACzB;AACA;EACE,+BAA+B;AACjC;;AAEA;EACE,cAAc;AAChB;;AAEA;EACE,eAAe;AACjB;AACA;EACE,aAAa;AACf;AACA;EACE,cAAc;AAChB;;AAEA;EACE,8CAA8C;AAChD;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,aAAa;AACf;AACA;EACE,aAAa;AACf;;AAEA;EACE,mBAAmB;EACnB,gBAAgB;EAChB,uBAAuB;AACzB;;AAEA;EACE,8CAA8C;AAChD;AA3FA;EACE,iBAAiB;AACnB;AACA;EACE,iBAAiB;AACnB;;AAEA;EACE,8BAA8B;AAChC;AACA;EACE,kCAAkC;EAClC,kCAAkC;AACpC;;AAEA;EACE,8BAA8B;AAChC;AACA;EACE,eAAe;AACjB;AACA;EACE,mBAAmB;EACnB,kCAAkC;AACpC;AACA;EACE,oBAAoB;EACpB,+BAA+B;AACjC;AACA;EACE,kCAAkC;EAClC,2BAA2B;AAC7B;AACA;EACE,mBAAmB;AACrB;AACA;EACE,oBAAoB;EACpB,+BAA+B;AACjC;AACA;EACE,kCAAkC;AACpC;;AAEA;EACE,YAAY;EACZ,gCAAgC;AAClC;;AAEA;EACE,8BAA8B;EAC9B,YAAY;AACd;AACA;EACE,cAAc;AAChB;AACA;EACE,UAAU;AACZ;AACA;EACE,kCAAkC;AACpC;;AAEA;EACE,aAAa;EACb,oBAAoB;AACtB;;AAEA;EACE,cAAc;EACd,gBAAgB;EAChB,mBAAmB;EACnB,uBAAuB;EACvB,gBAAgB;EAChB,eAAe;AACjB;;AAEA;EACE,cAAc;AAChB;;AAEA;EACE,aAAa;AACf;AACA;EACE,YAAY;AACd;;AAEA;EACE,aAAa;AACf;;AAEA;EACE,iDAAiD;EACjD,gDAAgD;EAChD,iBAAiB;AACnB;AACA;EACE,mBAAmB;AACrB;;AAEA;;EAEE,mCAAmC;EACnC,iBAAiB;EACjB,8CAA8C;EAC9C,+CAA+C;EAC/C,iBAAiB;EACjB,qBAAqB;AACvB;;AAEA;EACE,kCAAkC;EAClC,6BAA6B;AAC/B;;AAEA;EACE,qBAAqB;EACrB,qBAAqB;AACvB;;AAEA;EACE,8CAA8C;AAChD;;AAEA;EACE,gBAAgB;AAClB","file":"index.css","sourcesContent":[".list {\n max-height: 300px;\n}\n.list:not(.is-popup) {\n max-height: 400px;\n}\n\n.header {\n border-left: 1px solid #f0f0f0;\n}\n.header .col {\n background: var(--bg-color-grey-1);\n transition: background-color 300ms;\n}\n\n.body {\n border-left: 1px solid #f0f0f0;\n}\n.body .col {\n cursor: pointer;\n}\n.body.is-selected-all {\n cursor: not-allowed;\n background: var(--bg-color-grey-3);\n}\n.body.is-selected-all .col {\n pointer-events: none;\n color: var(--font-color-grey-2);\n}\n.body.is-selected {\n background: var(--primary-color-1);\n color: var(--primary-color);\n}\n.body.is-disabled {\n cursor: not-allowed;\n}\n.body.is-disabled .col {\n pointer-events: none;\n color: var(--font-color-grey-2);\n}\n.body:hover:not(.is-selected-all):not(.is-selected):not(.is-disabled) .col {\n background: var(--bg-color-grey-1);\n}\n\n.col {\n padding: 8px;\n border-bottom: 1px solid #f0f0f0;\n}\n\n.right-options {\n border-left: 1px solid #f0f0f0;\n padding: 8px;\n}\n.right-options:not(.right-options:global(.is-popup)) {\n padding-top: 0;\n}\n.right-options .no-padding-btn:global(.ant-btn) {\n padding: 0;\n}\n.right-options :global .ant-tag {\n background: var(--bg-color-grey-3);\n}\n\n.tag {\n display: flex;\n margin-inline-end: 0;\n}\n\n.tag-inner {\n display: block;\n max-width: 100px;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n cursor: pointer;\n}\n\n.single-checked {\n flex: 0 0 30px;\n}\n\n.select-search {\n display: flex;\n}\n.select-search:global(.is-popup) {\n padding: 8px;\n}\n\n.tags-search {\n display: flex;\n}\n\n.descriptions {\n border-bottom: 1px solid var(--font-color-grey-4);\n border-right: 1px solid var(--font-color-grey-4);\n line-height: 20px;\n}\n.descriptions:not(:last-child) {\n border-bottom: none;\n}\n\n.descriptions-col-label,\n.descriptions-col-content {\n font-size: var(--font-size-default);\n padding: 8px 16px;\n border-top: 1px solid var(--font-color-grey-4);\n border-left: 1px solid var(--font-color-grey-4);\n line-height: 20px;\n word-break: break-all;\n}\n\n.descriptions-col-label {\n background: var(--bg-color-grey-1);\n color: var(--font-color-grey);\n}\n\n.descriptions-col-content {\n word-break: break-all;\n white-space: pre-line;\n}\n\n.footer {\n border-top: 1px solid var(--font-color-grey-4);\n}\n\n.right-options .footer {\n margin-top: 12px;\n}"]}
|