@para-ui/core 5.0.0-beta.7 → 5.0.0-beta.8
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 +33 -599
- package/es/Argv/batchEdit/index.js +1 -1
- package/es/CodeEditor/index.js +1 -1
- package/es/InputCode/index.js +1 -1
- package/es/Tabs/index.d.ts +15 -21
- package/es/Tabs/index.js +103 -105
- package/es/_virtual/index3.js +2 -2
- package/es/_virtual/index4.js +2 -2
- package/es/node_modules/@para-snack/core/dist/index.js +1 -1
- package/es/node_modules/classnames/index.js +1 -1
- package/lib/Argv/batchEdit/index.js +1 -1
- package/lib/CodeEditor/index.js +1 -1
- package/lib/InputCode/index.js +1 -1
- package/lib/Tabs/index.d.ts +15 -21
- package/lib/Tabs/index.js +1 -1
- package/lib/node_modules/@para-snack/core/dist/index.js +1 -1
- package/lib/node_modules/classnames/index.js +1 -1
- package/package.json +1 -1
- /package/es/{CodeEditor → InputCode}/index.css +0 -0
- /package/lib/{InputCode → CodeEditor}/index.css +0 -0
package/README.md
CHANGED
|
@@ -1,167 +1,43 @@
|
|
|
1
|
-
|
|
1
|
+
# @para-ui/core
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Para FED 出品的 React 17 组件库,基于 TypeScript 5 + SCSS,使用 Vite 构建(库模式,输出 ESM + CJS)。
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
- 【表格-Table】`checkDefaultValue` 签名修正:`T[]` → `string[]`,与 `setCheck` 对齐,传入的是 rowKey 字符串数组;业务主键为 `number` 时需自行 `keys.map(String)`
|
|
7
|
-
- 【表格-Table】`data` 由 `Anyjson[]` 收窄为 `T[]`,`render(row)` 等回调里 `row` 按 `<Table<T>>` 指定的业务类型精确推导;以前依赖 `Anyjson` 索引签名访问未声明字段的代码需在 `T` 中显式声明字段
|
|
8
|
-
- 【表格-Table】`HeadDataProps` / `HeadDataReqProps` / `TableProps` / `ReqProps` / `FilterEnumsProps` 移除 `[name: string]: unknown` / `[key: string]: unknown` 索引签名,未声明字段的透传写法会 TS 报错
|
|
9
|
-
- 【表格-Table】`TableHeadBodyPublicProps.operate` 补齐泛型:`HeadDataProps` → `HeadDataProps<T>`,`operate.render(row)` 的 `row` 能推导为业务类型 `T`
|
|
10
|
-
- 【按钮-Button / IconButton】移除 `[name: string]: any` 索引签名;原生属性基类由 `React.ButtonHTMLAttributes<any>` 精确化为 `button / a` 共用的 DOM 属性集合,`type` 收窄为 `'button' | 'submit' | 'reset'`。原来依赖"未声明字段透传"或 `type` 传入自定义字符串的写法会 TS 报错
|
|
5
|
+
## 安装
|
|
11
6
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
## 🎉 para-ui/core@5.0.0-beta.6 发布
|
|
17
|
-
|
|
18
|
-
🎁【Feature】
|
|
19
|
-
|
|
20
|
-
- 【下拉框-Select】泛型按 `multiple` 判别:`SelectProps` 拆分为 `SelectSingleProps | SelectMultipleProps`,单选 `value` / `onChange` 推导为 `T`,多选推导为 `T[]`,使用方无需再处理 `T | T[]` 联合
|
|
21
|
-
|
|
22
|
-
⚠️【Breaking Change】
|
|
23
|
-
|
|
24
|
-
- 【下拉框-Select】单选清空时 `onChange` 入参由 `''` 调整为 `undefined`。原有 `if (val === '')` 写法需改为 `if (val === undefined)`;受控模式下旧代码传 `value=""` 仍能被识别为清空(向后兼容保留)
|
|
25
|
-
|
|
26
|
-
🔧【Bugfix】
|
|
27
|
-
|
|
28
|
-
- 【下拉框-Select】修复受控模式下 `value` 被置为 `undefined` 时 UI 未同步清空的问题
|
|
29
|
-
|
|
30
|
-
## 🎉 para-ui/core@5.0.0-beta.5 发布
|
|
31
|
-
|
|
32
|
-
🎁【Feature】
|
|
33
|
-
|
|
34
|
-
- 【单选框组-RadioGroup】支持泛型,`value`/`onChange` 可指定精确类型,替代原 `unknown`
|
|
35
|
-
- 【切换按钮-ToggleButton / ToggleButtonGroup】支持泛型,值类型由调用方指定
|
|
36
|
-
- 【复选框组-CheckboxGroup】支持泛型,`value` 可窄化到 `'a' | 'b'` 等枚举
|
|
37
|
-
- 【下拉框-Select】支持泛型,`value`/`onChange` 可窄化;`SelectProps` 严格化(移除索引签名,禁止未声明字段透传);新增共享类型 `SelectOptionValue`
|
|
38
|
-
|
|
39
|
-
🔧【Bugfix】
|
|
40
|
-
|
|
41
|
-
- 【下拉框-Select】修复 `fetchSuggestions` 未走全局 `componentsProps.Select` 默认值合并
|
|
42
|
-
- 【下拉框-Select】`handleInitValue` 内 `multiple` 判断与其它位置保持一致
|
|
43
|
-
- 【下拉框-Select】`closest` 内部辅助函数去除 `any`,复用 `VendorPrefixedElement` 类型
|
|
44
|
-
- 【动态多值框-FormSelect】过滤自定义 `change` 回调,不再泄漏到 Select DOM
|
|
45
|
-
- 【切换按钮组-ToggleButtonGroup】`icon` 字段不再透传给 Button 造成无效属性
|
|
46
|
-
|
|
47
|
-
## 🎉 para-ui/core@5.0.0-beta.4 发布
|
|
48
|
-
|
|
49
|
-
🔧【Bugfix】
|
|
50
|
-
|
|
51
|
-
- 【组合选择器-ComboSelect】补充导出 SelectOpt、SelectedOptions 类型
|
|
52
|
-
- 【文字提示-Tooltip】补充导出 TooltipPlacement 类型
|
|
53
|
-
- 【上传-Upload】补充导出 UploadFile、RcFile 类型
|
|
54
|
-
|
|
55
|
-
## 🎉 para-ui/core@5.0.0-beta.3 发布
|
|
56
|
-
|
|
57
|
-
🔧【Bugfix】
|
|
58
|
-
|
|
59
|
-
- 【全局提示-Message】修复在iframe中跨域访问window.top导致报错的问题
|
|
60
|
-
|
|
61
|
-
## 🎉 para-ui/core@4.0.83 发布
|
|
62
|
-
|
|
63
|
-
🔧【Bugfix】
|
|
64
|
-
|
|
65
|
-
- 【下拉框-Select】修复下拉框搜索框样式
|
|
66
|
-
|
|
67
|
-
## 🎉 para-ui/core@4.0.82 发布
|
|
68
|
-
|
|
69
|
-
🔧【Bugfix】
|
|
70
|
-
|
|
71
|
-
- 【验证码-InputCode】修复InputCode.Card组件 countdown 属性只有初始化时有效的问题
|
|
72
|
-
|
|
73
|
-
## 🎉 para-ui/core@4.0.81 发布
|
|
74
|
-
|
|
75
|
-
🔧【Bugfix】
|
|
76
|
-
|
|
77
|
-
- 修复组件具名导入导致打包体积过大的问题
|
|
78
|
-
|
|
79
|
-
## 🎉 para-ui/core@4.0.80 发布
|
|
80
|
-
|
|
81
|
-
🔧【Bugfix】
|
|
82
|
-
|
|
83
|
-
- 【开关-Switch】关闭背景色优化
|
|
84
|
-
|
|
85
|
-
## 🎉 para-ui/core@4.0.79 发布
|
|
86
|
-
|
|
87
|
-
🔧【Bugfix】
|
|
88
|
-
|
|
89
|
-
- 【时间选择框-TimePicker】修复error为true时,不未标红
|
|
90
|
-
- 【日期选择框-DatePicker】修复error为true时,不未标红
|
|
91
|
-
|
|
92
|
-
## 🎉 para-ui/core@4.0.78 发布
|
|
93
|
-
|
|
94
|
-
🔧【Bugfix】
|
|
95
|
-
|
|
96
|
-
- 【表格-Table】修复在大屏幕下,table的slider计算错误的问题;Empty国际化文案调整为clear
|
|
97
|
-
|
|
98
|
-
## 🎉 para-ui/core@4.0.77 发布
|
|
99
|
-
|
|
100
|
-
🔧【Bugfix】
|
|
101
|
-
|
|
102
|
-
- 【下拉选择器-SelectorPicker】增加overlayClassName参数
|
|
103
|
-
- 【菜单-Menu】修复菜单在safari滚动卡顿问题
|
|
104
|
-
|
|
105
|
-
## 🎉 para-ui/core@4.0.76 发布
|
|
106
|
-
|
|
107
|
-
🔧【Bugfix】
|
|
108
|
-
|
|
109
|
-
- 【表格-Table】新增onRefreshCallback事件,修复表格空状态恢复默认width不正确问题
|
|
110
|
-
- 【下拉框-Select】修复清空按钮被遮挡
|
|
111
|
-
|
|
112
|
-
## 🎉 para-ui/core@4.0.75 发布
|
|
113
|
-
|
|
114
|
-
🔧【Bugfix】
|
|
115
|
-
|
|
116
|
-
- 【树形控件-Tree】更改handleTreeNodeMEnter事件中判断 className 的逻辑,避免因 className 类型变化导致的错误
|
|
117
|
-
|
|
118
|
-
## 🎉 para-ui/core@4.0.74 发布
|
|
119
|
-
|
|
120
|
-
🔧【Feature】
|
|
121
|
-
|
|
122
|
-
- 【动态多值框-DynamicMultiBox】调整新增的国际化文案
|
|
123
|
-
|
|
124
|
-
## 🎉 para-ui/core@4.0.73 发布
|
|
125
|
-
|
|
126
|
-
🔧【Bugfix】
|
|
127
|
-
|
|
128
|
-
- 【上传-Upload】上传文件名称较长时无截断省略号问题修复
|
|
7
|
+
```bash
|
|
8
|
+
npm install @para-ui/core
|
|
9
|
+
```
|
|
129
10
|
|
|
130
|
-
##
|
|
11
|
+
## 快速开始
|
|
131
12
|
|
|
132
|
-
|
|
13
|
+
在应用入口包一层 `ParauiProvider` 提供国际化与全局上下文,然后按需导入组件:
|
|
133
14
|
|
|
134
|
-
|
|
15
|
+
```tsx
|
|
16
|
+
import { ParauiProvider, Tabs, Button } from '@para-ui/core';
|
|
135
17
|
|
|
136
|
-
|
|
18
|
+
const App = () => (
|
|
19
|
+
<ParauiProvider>
|
|
20
|
+
<Tabs
|
|
21
|
+
data={[
|
|
22
|
+
{ label: 'Tab1', value: 'a' },
|
|
23
|
+
{ label: 'Tab2', value: 'b' }
|
|
24
|
+
]}
|
|
25
|
+
/>
|
|
26
|
+
<Button>Submit</Button>
|
|
27
|
+
</ParauiProvider>
|
|
28
|
+
);
|
|
29
|
+
```
|
|
137
30
|
|
|
138
|
-
|
|
31
|
+
## 本地开发
|
|
139
32
|
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
const userHeadData: HeadDataProps<UserData>[] = [
|
|
149
|
-
{
|
|
150
|
-
name: 'id',
|
|
151
|
-
label: 'ID',
|
|
152
|
-
selected: true,
|
|
153
|
-
width: '80px'
|
|
154
|
-
},
|
|
155
|
-
{
|
|
156
|
-
name: 'name',
|
|
157
|
-
label: '姓名',
|
|
158
|
-
selected: true,
|
|
159
|
-
render: row => {
|
|
160
|
-
// 这里row参数自动推断为UserData类型,有完整的类型提示
|
|
161
|
-
return <Tag color={row.isActive ? 'green' : 'red'}>{row.name}</Tag>;
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
];
|
|
33
|
+
```bash
|
|
34
|
+
npm install
|
|
35
|
+
npm start # 启动文档站开发服务器
|
|
36
|
+
npm run build # 构建组件库(输出到 dist/)
|
|
37
|
+
npm run build:docs # 构建文档站
|
|
38
|
+
npm test # 运行 Jest 测试
|
|
39
|
+
npm run lint # 增量 lint(仅改动文件)
|
|
40
|
+
npm run lint:all # 全量 lint
|
|
165
41
|
```
|
|
166
42
|
|
|
167
43
|
## 浏览器支持
|
|
@@ -175,449 +51,7 @@ const userHeadData: HeadDataProps<UserData>[] = [
|
|
|
175
51
|
|
|
176
52
|
*(不支持 IE)*
|
|
177
53
|
|
|
178
|
-
##
|
|
179
|
-
|
|
180
|
-
🔧【Feature】
|
|
181
|
-
|
|
182
|
-
- 【表格-Table】新增表格列信息事件
|
|
183
|
-
|
|
184
|
-
## 🎉 para-ui/core@4.0.69 发布
|
|
185
|
-
|
|
186
|
-
🔧【Bugfix】
|
|
187
|
-
|
|
188
|
-
- 【选择器-Selector】禁用不控制下级按钮
|
|
189
|
-
|
|
190
|
-
## 🎉 para-ui/core@4.0.68 发布
|
|
191
|
-
|
|
192
|
-
🔧【Bugfix】
|
|
193
|
-
|
|
194
|
-
- 【树形控件-Tree】修复半选框在禁用态下样式异常的问题
|
|
195
|
-
|
|
196
|
-
## 🎉 para-ui/core@4.0.67 发布
|
|
197
|
-
|
|
198
|
-
🎁【Feature】
|
|
199
|
-
|
|
200
|
-
- 【选择器-Selector】新增内容区头部插槽自定义渲染
|
|
201
|
-
|
|
202
|
-
## 🎉 para-ui/core@4.0.66 发布
|
|
203
|
-
|
|
204
|
-
🔧【Bugfix】
|
|
205
|
-
|
|
206
|
-
- 【表单-FieldForm】修复 labelProps 的 required 属性无效问题
|
|
207
|
-
|
|
208
|
-
## 🎉 para-ui/core@4.0.65 发布
|
|
209
|
-
|
|
210
|
-
🔧【Bugfix】
|
|
211
|
-
|
|
212
|
-
- 【上传-Upload】修复图标对齐
|
|
213
|
-
|
|
214
|
-
## 🎉 para-ui/core@4.0.64 发布
|
|
215
|
-
|
|
216
|
-
🔧【Bugfix】
|
|
217
|
-
|
|
218
|
-
- 【上传-Upload】修复上传时可以操作删除操作
|
|
219
|
-
|
|
220
|
-
## 🎉 para-ui/core@4.0.63 发布
|
|
221
|
-
|
|
222
|
-
🎁【Feature】
|
|
223
|
-
|
|
224
|
-
- 【动态多值框-DynamicMultiBox】新增自定义操作按钮支持
|
|
225
|
-
|
|
226
|
-
🎁【Feature】
|
|
227
|
-
|
|
228
|
-
- 【国际化输入框-InputLang】增加长度限制参数
|
|
229
|
-
- 【卡片-Card】修复外容器改变宽度,不重新计算
|
|
230
|
-
|
|
231
|
-
## 🎉 para-ui/core@4.0.61 发布
|
|
232
|
-
|
|
233
|
-
🎁【Feature】
|
|
234
|
-
|
|
235
|
-
- 【超出省略-AutoTips】多行超出,监听事件替换 useResizeObserver
|
|
236
|
-
- 【数字输入框-InputNumber】增加前后缀参数 addonAfter,addonBefore
|
|
237
|
-
|
|
238
|
-
## 🎉 para-ui/core@4.0.60 发布
|
|
239
|
-
|
|
240
|
-
🎁【Feature】
|
|
241
|
-
|
|
242
|
-
- 【下拉选择器-SelectorPicker】去除下拉选择器边框
|
|
243
|
-
|
|
244
|
-
## 🎉 para-ui/core@4.0.59 发布
|
|
245
|
-
|
|
246
|
-
🎁【Feature】
|
|
247
|
-
|
|
248
|
-
- 【面包屑-Breadcrumbs】浮层报错
|
|
249
|
-
- 【自动按钮-AutoButton】修复下拉样式
|
|
250
|
-
- 【全局提示-Message】修复英文换行
|
|
251
|
-
|
|
252
|
-
## 🎉 para-ui/core@4.0.58 发布
|
|
253
|
-
|
|
254
|
-
🎁【Feature】
|
|
255
|
-
|
|
256
|
-
- 【面包屑-Breadcrumbs】修改页面自适应计算方式
|
|
257
|
-
- 【自动按钮-AutoButton】修复下拉禁用按钮点击还出现 popConfirm
|
|
258
|
-
- 【选择器-Selector】修复面包屑超出换行
|
|
259
|
-
- 【穿梭框-Transfer】修复下方按钮禁用判断条件,总数量显示
|
|
260
|
-
|
|
261
|
-
## 🎉 para-ui/core@4.0.57 发布
|
|
262
|
-
|
|
263
|
-
🎁【Feature】
|
|
264
|
-
|
|
265
|
-
- 【周期选择器-CycleSelector】新增禁用自定义重复选项 disabledCustom 参数
|
|
266
|
-
|
|
267
|
-
## 🎉 para-ui/core@4.0.56 发布
|
|
268
|
-
|
|
269
|
-
🎁【Feature】
|
|
270
|
-
|
|
271
|
-
- 【SplitButton-分体式按钮】支持自定义前置按钮
|
|
272
|
-
- 【FieldForm-表单】新增是否隐藏帮助信息、item 之间是否有间距参数;修复组件 size 参数覆盖问题
|
|
273
|
-
- 【AutoButton-自动按钮】调整外部尺寸发生变化,重新计算
|
|
274
|
-
|
|
275
|
-
## 🎉 para-ui/core@4.0.55 发布
|
|
276
|
-
|
|
277
|
-
🎁【Feature】
|
|
278
|
-
|
|
279
|
-
- 【AutoButton-超出自适应按钮】修改超出自适应按钮支持 PopConfirm
|
|
280
|
-
- 【Button-按钮】参数支持 disabledTooltip
|
|
281
|
-
- 【SplitButton-分体式按钮】option 支持气泡确认框
|
|
282
|
-
|
|
283
|
-
## 🎉 para-ui/core@4.0.54 发布
|
|
284
|
-
|
|
285
|
-
🎁【Feature】
|
|
286
|
-
|
|
287
|
-
- 【FieldForm-表单】新增表单组件
|
|
288
|
-
|
|
289
|
-
## 🎉 para-ui/core@4.0.53 发布
|
|
290
|
-
|
|
291
|
-
🔧【Bugfix】
|
|
292
|
-
|
|
293
|
-
- 【表格-Table】修改表格页面缩放抖动问题
|
|
294
|
-
|
|
295
|
-
## 🎉 para-ui/core@4.0.52 发布
|
|
296
|
-
|
|
297
|
-
🔧【Bugfix】
|
|
298
|
-
|
|
299
|
-
- 【组合选择器-ComboSelect】修复搜索框自动获取焦点的问题
|
|
300
|
-
- 【高亮提示-Prompt】按钮可隐藏
|
|
301
|
-
- 【空状态-Empty】修改文字样式
|
|
302
|
-
- 升级@paraview/lib 防止外部项目 axios 不同步
|
|
303
|
-
|
|
304
|
-
## 🎉 para-ui/core@4.0.51 发布
|
|
305
|
-
|
|
306
|
-
🔧【Bugfix】
|
|
307
|
-
|
|
308
|
-
- 【Dragger-拖拽】移除 console
|
|
309
|
-
|
|
310
|
-
## 🎉 para-ui/core@4.0.50 发布
|
|
311
|
-
|
|
312
|
-
🔧【Bugfix】
|
|
313
|
-
|
|
314
|
-
- 【表格-Table】表格修改尺寸变化方法,计算分页超出模式
|
|
315
|
-
|
|
316
|
-
## 🎉 para-ui/core@4.0.49 发布
|
|
317
|
-
|
|
318
|
-
🎁【Feature】
|
|
319
|
-
|
|
320
|
-
- 【Dragger-拖拽】支持 height
|
|
321
|
-
|
|
322
|
-
## 🎉 para-ui/core@4.0.48 发布
|
|
323
|
-
|
|
324
|
-
🔧【Bugfix】
|
|
325
|
-
|
|
326
|
-
- 【消息角标-Badge】消息角标新增 placement,支持 4 个角落定位
|
|
327
|
-
|
|
328
|
-
## 🎉 para-ui/core@4.0.47 发布
|
|
329
|
-
|
|
330
|
-
🔧【Bugfix】
|
|
331
|
-
|
|
332
|
-
- 【表格-Table】表格新增虚拟滚动
|
|
333
|
-
|
|
334
|
-
## 🎉 para-ui/core@4.0.46 发布
|
|
335
|
-
|
|
336
|
-
🎁【Feature】
|
|
337
|
-
|
|
338
|
-
- 【对齐容器-Align】新增组件-对齐容器
|
|
339
|
-
|
|
340
|
-
🔧【Bugfix】
|
|
341
|
-
|
|
342
|
-
- 【标签-Tag】新增 marginBottom,marginRight 参数,tag 默认没有,tagGroup 默认 8px
|
|
343
|
-
- 【帮助-Help】帮助组件设置 line-height 为 0,让容器与图标一样高度
|
|
344
|
-
|
|
345
|
-
## 🎉 para-ui/core@4.0.45 发布
|
|
346
|
-
|
|
347
|
-
🔧【Bugfix】
|
|
348
|
-
|
|
349
|
-
- 【分页-Pagination】重构复杂模式下,超出换行显示内容,逐个减少
|
|
350
|
-
- 【表格-Table】增加 resizePaginationLine 参数,重新计算分页换行不换行
|
|
351
|
-
- 【分栏收缩容器-CollapseLayout】onClickBtn 增加 duration 动画时间参数,新增 onDragEnd 拖拽结束事件
|
|
352
|
-
|
|
353
|
-
## 🎉 para-ui/core@4.0.44 发布
|
|
354
|
-
|
|
355
|
-
🎁【Feature】
|
|
356
|
-
|
|
357
|
-
- 【代码编辑器-CodeEditor】新增组件-代码编辑器
|
|
358
|
-
|
|
359
|
-
## 🎉 para-ui/core@4.0.43 发布
|
|
360
|
-
|
|
361
|
-
🔧【Bugfix】
|
|
362
|
-
|
|
363
|
-
- 【分页-Pagination】增加 pageMaxLimit 参数
|
|
364
|
-
- 【表格-Table】增加非首页空状态展示
|
|
365
|
-
|
|
366
|
-
## 🎉 para-ui/core@4.0.42 发布
|
|
367
|
-
|
|
368
|
-
🔧【Bugfix】
|
|
369
|
-
|
|
370
|
-
- 【对话框-Modal】修复同时存在 size 和 contentHeight 时,size 失效问题
|
|
371
|
-
|
|
372
|
-
🎁【Feature】
|
|
373
|
-
|
|
374
|
-
- 【结果-Result】新增组件-结果
|
|
375
|
-
|
|
376
|
-
## 🎉 para-ui/core@4.0.40 发布
|
|
377
|
-
|
|
378
|
-
🔧【Bugfix】
|
|
379
|
-
|
|
380
|
-
- 【级联选择-Cascader】修复异常数据导致页面报错问题
|
|
381
|
-
|
|
382
|
-
## 🎉 para-ui/core@4.0.39 发布
|
|
383
|
-
|
|
384
|
-
🔧【Bugfix】
|
|
385
|
-
|
|
386
|
-
- 【动态多值框-DynamicMultiBox】修复 keepLastItem 为 false,标题错位
|
|
387
|
-
- 【下拉框-Select】修复分组下拉框搜索数据丢失
|
|
388
|
-
|
|
389
|
-
## 🎉 para-ui/core@4.0.38 发布
|
|
390
|
-
|
|
391
|
-
🎁【Feature】
|
|
392
|
-
|
|
393
|
-
- 【changelog】样式调整
|
|
394
|
-
|
|
395
|
-
🔧【Bugfix】
|
|
396
|
-
|
|
397
|
-
- 【表格-Table】修复自定义 filter,多次渲染,导致自定义 filter 组件重复渲染
|
|
398
|
-
|
|
399
|
-
## 🎉 4.0.37 发布
|
|
400
|
-
|
|
401
|
-
🎁【Feature】
|
|
402
|
-
|
|
403
|
-
- 【上传-Upload】新增 defaultFile 参数支持
|
|
404
|
-
- 【changelog】新增 changelog 模块
|
|
405
|
-
|
|
406
|
-
## 版本: 4.0.36
|
|
407
|
-
|
|
408
|
-
para-ui/core@4.0.36 发布
|
|
409
|
-
【环境变量-Argv】新增环境变量组件
|
|
410
|
-
|
|
411
|
-
## 版本: 4.0.35
|
|
412
|
-
|
|
413
|
-
para-ui/core@4.0.35 发布
|
|
414
|
-
【锚点-Anchor】新增锚点组件
|
|
415
|
-
【按钮组-ButtonGroup】新增竖向布局、新增图标文字按钮组
|
|
416
|
-
【切换按钮-ToggleButton】新增图标切换按钮
|
|
417
|
-
|
|
418
|
-
## 版本: 4.0.34
|
|
419
|
-
|
|
420
|
-
para-ui/core@4.0.34 发布
|
|
421
|
-
【选择器-Selector】选择器新增错误状态
|
|
422
|
-
|
|
423
|
-
## 版本: 4.0.33
|
|
424
|
-
|
|
425
|
-
para-ui/core@4.0.33 发布
|
|
426
|
-
【表格-Table】新增拖拽排序表格
|
|
427
|
-
【自动按钮-AutoButton】新增拖拽排序表格
|
|
428
|
-
|
|
429
|
-
## 版本: 4.0.32
|
|
430
|
-
|
|
431
|
-
para-ui/core@4.0.32 发布
|
|
432
|
-
【验证码-InputCode】新增验证码组件
|
|
433
|
-
【排序容器-SortBox】修改排序事件
|
|
434
|
-
|
|
435
|
-
## 版本: 4.0.31
|
|
436
|
-
|
|
437
|
-
para-ui/core@4.0.31 发布
|
|
438
|
-
【滑块验证码-DragVerify】阻止移动端滑块触发屏幕滑动事件
|
|
439
|
-
【上传-Upload】更换头像增加头像属性,可配置圆角、是否展示重置按钮、默认图片(地址、名称)、是否展示图片名称功能
|
|
440
|
-
【范围输入框-RangeInput】新增组件范围输入框
|
|
441
|
-
【排序容器-SortBox】新增排序组件
|
|
442
|
-
【卡片-Card】新增卡片组件
|
|
443
|
-
【自动按钮-AutoButton】新增自动按钮组件
|
|
444
|
-
【消息角标-Badge】新增偏移量offset参数,sign传null为不显示角标
|
|
445
|
-
|
|
446
|
-
## 版本: 4.0.30
|
|
447
|
-
|
|
448
|
-
para-ui/core@4.0.30 发布
|
|
449
|
-
【范围输入框-RangeInput】新增组件范围输入框
|
|
450
|
-
【穿梭框-Transfer】修复传入data数据不变时,穿梭框数据更新异常问题;支持禁用态
|
|
451
|
-
【文档-codeBox】添加所有组件和icon默认依赖
|
|
452
|
-
【开关-switch】过滤error
|
|
453
|
-
【级联选择器】支持错误态
|
|
454
|
-
|
|
455
|
-
## 版本: 4.0.29
|
|
456
|
-
|
|
457
|
-
【展示内容容器-ContentBox】新增展示内容容器-ContentBox
|
|
458
|
-
|
|
459
|
-
## 版本: 4.0.28
|
|
460
|
-
|
|
461
|
-
【标题-Title】标题折叠内容新增Children渲染,新增默认是否展开参数,调整折叠样式
|
|
462
|
-
|
|
463
|
-
## 版本: 4.0.27
|
|
464
|
-
|
|
465
|
-
【组合选择器-ComboSelect】新增自定义渲染label
|
|
466
|
-
|
|
467
|
-
## 版本: 4.0.26
|
|
468
|
-
|
|
469
|
-
【周期选择器-CycleSelector】增加cRef参数,用来获取组件内部方法
|
|
470
|
-
|
|
471
|
-
## 版本: 4.0.25
|
|
472
|
-
|
|
473
|
-
【超出省略-AutoTips】修复未超出,只多出的最后一行一个字符出现浮层
|
|
474
|
-
【超出省略-AutoTips】更换Tooltip层级
|
|
475
|
-
【周期选择器-CycleSelector】增加时间类型timeType参数
|
|
476
|
-
【周期选择器-CycleSelector】增加提示文本自定义渲染tipRender参数
|
|
477
|
-
【周期选择器-CycleSelector】增加显示弹窗showPopover参数
|
|
478
|
-
|
|
479
|
-
## 版本: 4.0.24
|
|
480
|
-
|
|
481
|
-
【超出省略-AutoTips】修复多行超出省略,丢失只多出的最后一个字符
|
|
482
|
-
【表单-Form】修复输入框输入丢失焦点问题
|
|
483
|
-
【输入框-TextField】去除搜索空状态显示阴影
|
|
484
|
-
|
|
485
|
-
## 版本: 4.0.23
|
|
486
|
-
|
|
487
|
-
【下拉框-Select】新增blurChangeValueBol,失去焦点改变值
|
|
488
|
-
【空状态-Empty】去除R
|
|
489
|
-
【查询-Querying】去除R
|
|
490
|
-
【表格-Table】刷新增加清空选中操作
|
|
491
|
-
【上传-Upload】上传组件UI优化和BUG修复
|
|
492
|
-
【滑动输入条-Slider】文档DEMO优化;圆点上方数值调整为常显
|
|
493
|
-
|
|
494
|
-
## 版本: 4.0.22
|
|
495
|
-
|
|
496
|
-
【Tree】修复从左侧移入树节点时,超出省略弹窗未展示
|
|
497
|
-
【colors】添加色卡
|
|
498
|
-
|
|
499
|
-
## 版本: 4.0.21
|
|
500
|
-
|
|
501
|
-
【React】升级React版本到17.0.2
|
|
502
|
-
【GlobalContext】调整GlobalContext为引用本地
|
|
503
|
-
|
|
504
|
-
## 版本: 4.0.20
|
|
505
|
-
|
|
506
|
-
【组合选择器-ComboSelect】选中项新增超出收起、表格固定分页样式
|
|
507
|
-
【滑块验证码-DragVerify】适配移动端
|
|
508
|
-
【表格操作按钮-OperateBtn】阻止事件冒泡
|
|
509
|
-
【表格-Table】修复表格拖拽,过滤不显示列宽度叠加
|
|
510
|
-
|
|
511
|
-
## 版本: 4.0.19
|
|
512
|
-
|
|
513
|
-
para-ui/core@4.0.19 发布
|
|
514
|
-
【下拉框-Select】修改多选模式,布局方式,防止火狐浏览器宽度足够出现...
|
|
515
|
-
|
|
516
|
-
## 版本: 4.0.18
|
|
517
|
-
|
|
518
|
-
para-ui/core@4.0.18 发布
|
|
519
|
-
【对话框-Modal】去除 modal 的最大高度限制
|
|
520
|
-
|
|
521
|
-
## 版本: 4.0.17
|
|
522
|
-
|
|
523
|
-
para-ui/core@4.0.17 发布
|
|
524
|
-
【周期选择器-CycleSelector】去除截止时间清空
|
|
525
|
-
|
|
526
|
-
## 版本: 4.0.16
|
|
527
|
-
|
|
528
|
-
para-ui/core@4.0.16 发布
|
|
529
|
-
【级联下拉菜单-PopMenu】组件新增
|
|
530
|
-
|
|
531
|
-
## 版本: 4.0.15
|
|
532
|
-
|
|
533
|
-
para-ui/core@4.0.15 发布
|
|
534
|
-
【下拉框-Select】修复输入框长度占满整个空白区域,防止点击输入框后面空白区域,焦点消失
|
|
535
|
-
|
|
536
|
-
## 版本: 4.0.14
|
|
537
|
-
|
|
538
|
-
para-ui/core@4.0.14 发布
|
|
539
|
-
【组合选择器-ComboSelect】修复样式问题
|
|
540
|
-
【周期选择器-CycleSelector】禁用时,隐藏更改按钮
|
|
541
|
-
|
|
542
|
-
## 版本: 4.0.13
|
|
543
|
-
|
|
544
|
-
para-ui/core@4.0.13 发布
|
|
545
|
-
【浮层-Popover】标题及内容区域间距改为20px
|
|
546
|
-
|
|
547
|
-
## 版本: 4.0.12
|
|
548
|
-
|
|
549
|
-
para-ui/core@4.0.12 发布
|
|
550
|
-
【标签页-Tabs】轨道式页签增加medium尺寸,高度为32px
|
|
551
|
-
【周期选择器-CycleSelector】限定次数失焦校验小于0,设置为1
|
|
552
|
-
【表格-Table】修改ok国际化文案
|
|
553
|
-
|
|
554
|
-
## 版本: 4.0.11
|
|
555
|
-
|
|
556
|
-
para-ui/core@4.0.11 发布
|
|
557
|
-
【描述文本+描述列表-Descriptions】增加右边距参数设置,设置行高保证文字对齐
|
|
558
|
-
【下拉框-Select】修复下拉输入模式,点击input,内容被清空
|
|
559
|
-
|
|
560
|
-
## 版本: 4.0.10
|
|
561
|
-
|
|
562
|
-
para-ui/core@4.0.10 发布
|
|
563
|
-
【ParauiProvider】修复confirm国际化问题
|
|
564
|
-
|
|
565
|
-
## 版本: 4.0.9
|
|
566
|
-
|
|
567
|
-
para-ui/core@4.0.9 发布
|
|
568
|
-
【confirmLocale】支持国际化语言传入
|
|
569
|
-
|
|
570
|
-
## 版本: 4.0.8
|
|
571
|
-
|
|
572
|
-
para-ui/core@4.0.8 发布
|
|
573
|
-
【分体按钮-SplitButton】修复样式问题
|
|
574
|
-
【组合选择器-ComboSelect】修复样式问题
|
|
575
|
-
【菜单-Menu】增加菜单内容超出...
|
|
576
|
-
【分页-Pagination】分页国际化文案修改
|
|
577
|
-
【表格-Table】表格增加自定义浮层宽度设置
|
|
578
|
-
|
|
579
|
-
## 版本: 4.0.7
|
|
580
|
-
|
|
581
|
-
para-ui/core@4.0.7 发布
|
|
582
|
-
【周期选择器-CycleSelector】修复选择年,不显示年份,改变第几个星期算法
|
|
583
|
-
【菜单-Menu】增加分享图标
|
|
584
|
-
|
|
585
|
-
## 版本: 4.0.6
|
|
586
|
-
|
|
587
|
-
para-ui/core@4.0.6 发布
|
|
588
|
-
【周期选择器-CycleSelector】修复弹窗取消,未重置。取消时分的禁用
|
|
589
|
-
|
|
590
|
-
## 版本: 4.0.5
|
|
591
|
-
|
|
592
|
-
para-ui/core@4.0.5 发布
|
|
593
|
-
【周期选择器-CycleSelector】修改初始化报错
|
|
594
|
-
【树-tree】修改树样式问题
|
|
595
|
-
|
|
596
|
-
## 版本: 4.0.4
|
|
597
|
-
|
|
598
|
-
para-ui/core@4.0.4 发布
|
|
599
|
-
【国际化输入框-InputLang】支持输出输入为string | object, 是否带有i18n标识
|
|
600
|
-
【DynamicMultibox】动态多值框中输入框支持联想下拉列表
|
|
601
|
-
【周期选择器-CycleSelector】新增disabled,disabledDate,disabledTime,以及错误信息参数
|
|
602
|
-
|
|
603
|
-
## 版本: 4.0.3
|
|
604
|
-
|
|
605
|
-
para-ui/core@4.0.3 发布
|
|
606
|
-
【周期选择器-CycleSelector】新增周期选择器-CycleSelector
|
|
607
|
-
|
|
608
|
-
## 版本: 4.0.2
|
|
609
|
-
|
|
610
|
-
para-ui/core@4.0.2 发布
|
|
611
|
-
【表格-Table】修复表格name不传,出现浮层边框
|
|
612
|
-
【高亮提示-Prompt】新增组件
|
|
613
|
-
【标签-Tag】修复非图标tag与图标tag不对齐问题
|
|
614
|
-
|
|
615
|
-
## 版本: 4.0.1
|
|
616
|
-
|
|
617
|
-
para-ui/core@4.0.1 发布
|
|
618
|
-
【浮层-Popover,PopConfirm,Dropdown】修复浮层隐藏出现边框
|
|
619
|
-
【搜索框-Search】修复搜索onClickRightIcon事件无效
|
|
54
|
+
## 更新日志
|
|
620
55
|
|
|
621
|
-
|
|
56
|
+
见 [CHANGELOG.md](./CHANGELOG.md)。
|
|
622
57
|
|
|
623
|
-
para-ui/core@4.0.0 发布
|
|
@@ -7,7 +7,7 @@ import { Message as h } from "../../Message/index.js";
|
|
|
7
7
|
import k from "../../GlobalContext/useFormatMessage.js";
|
|
8
8
|
import { $prefixCls as g } from "../../GlobalContext/constant.js";
|
|
9
9
|
import x from "../lang/index.js";
|
|
10
|
-
import '../../
|
|
10
|
+
import '../../InputCode/index.css';/* empty css */
|
|
11
11
|
const B = (c) => {
|
|
12
12
|
const i = k("Argv", x), { className: u, sourceData: t, onFinish: m, dataToJson: s, jsonToData: a } = c, [e, o] = j({
|
|
13
13
|
open: !1,
|
package/es/CodeEditor/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import { $prefixCls as tr } from "../GlobalContext/constant.js";
|
|
|
7
7
|
import { d as gr } from "../_virtual/index.js";
|
|
8
8
|
import { Loading as fr } from "../Loading/index.js";
|
|
9
9
|
import hr from "./lang/index.js";
|
|
10
|
-
import '
|
|
10
|
+
import '../InputCode/index.css';/* empty css */
|
|
11
11
|
var kr = /* @__PURE__ */ ((r) => (r[r.Method = 0] = "Method", r[r.Function = 1] = "Function", r[r.Constructor = 2] = "Constructor", r[r.Field = 3] = "Field", r[r.Variable = 4] = "Variable", r[r.Class = 5] = "Class", r[r.Struct = 6] = "Struct", r[r.Interface = 7] = "Interface", r[r.Module = 8] = "Module", r[r.Property = 9] = "Property", r[r.Event = 10] = "Event", r[r.Operator = 11] = "Operator", r[r.Unit = 12] = "Unit", r[r.Value = 13] = "Value", r[r.Constant = 14] = "Constant", r[r.Enum = 15] = "Enum", r[r.EnumMember = 16] = "EnumMember", r[r.Keyword = 17] = "Keyword", r[r.Text = 18] = "Text", r[r.Color = 19] = "Color", r[r.File = 20] = "File", r[r.Reference = 21] = "Reference", r[r.Customcolor = 22] = "Customcolor", r[r.Folder = 23] = "Folder", r[r.TypeParameter = 24] = "TypeParameter", r[r.User = 25] = "User", r[r.Issue = 26] = "Issue", r[r.Snippet = 27] = "Snippet", r))(kr || {});
|
|
12
12
|
const wr = (r) => {
|
|
13
13
|
const {
|
package/es/InputCode/index.js
CHANGED
package/es/Tabs/index.d.ts
CHANGED
|
@@ -1,30 +1,25 @@
|
|
|
1
|
-
import { default as React,
|
|
1
|
+
import { default as React, ReactNode } from 'react';
|
|
2
2
|
import { TabPane, TabsProps as RcTabsProps, TabPaneProps } from 'rc-tabs';
|
|
3
3
|
import { PopConfirmProps } from '../PopConfirm';
|
|
4
4
|
import { HelpProps } from '../Help';
|
|
5
5
|
import { TooltipProps } from '../Tooltip';
|
|
6
6
|
export type TabsType = 'line' | 'card' | 'editable-card' | 'track' | 'card-container';
|
|
7
7
|
export type { TabPaneProps };
|
|
8
|
-
export interface TabProps {
|
|
8
|
+
export interface TabProps<K extends React.Key = string> extends Omit<TabPaneProps, 'tabKey' | 'tab' | 'children' | 'prefixCls'> {
|
|
9
9
|
/** tab text */
|
|
10
10
|
label?: ReactNode;
|
|
11
11
|
/** tab panel */
|
|
12
12
|
content?: ReactNode;
|
|
13
13
|
/** tab key */
|
|
14
|
-
value
|
|
15
|
-
/** 禁用 */
|
|
16
|
-
disabled?: boolean;
|
|
14
|
+
value: K;
|
|
17
15
|
/** 禁用文案提示 */
|
|
18
16
|
disabledTooltip?: TooltipProps;
|
|
19
|
-
/** 可关闭标签 */
|
|
20
|
-
closable?: boolean;
|
|
21
17
|
/** 显示帮助提示 Help */
|
|
22
18
|
showHelp?: boolean;
|
|
23
19
|
/** help props */
|
|
24
20
|
helpProps?: HelpProps;
|
|
25
|
-
[name: string]: unknown;
|
|
26
21
|
}
|
|
27
|
-
export interface TabsProps extends Omit<RcTabsProps, 'editable'> {
|
|
22
|
+
export interface TabsProps<K extends React.Key = string> extends Omit<RcTabsProps, 'editable' | 'onChange'> {
|
|
28
23
|
/** tabs 类型 */
|
|
29
24
|
type?: TabsType;
|
|
30
25
|
/** 模式:线性、卡片*/
|
|
@@ -46,30 +41,29 @@ export interface TabsProps extends Omit<RcTabsProps, 'editable'> {
|
|
|
46
41
|
/** popConfirm props*/
|
|
47
42
|
popConfirmProps?: PopConfirmProps;
|
|
48
43
|
/** 数据列表*/
|
|
49
|
-
data?: TabProps[];
|
|
44
|
+
data?: TabProps<K>[];
|
|
50
45
|
/** 选中的 value*/
|
|
51
|
-
value?:
|
|
46
|
+
value?: K;
|
|
52
47
|
/** 是否开启单选 */
|
|
53
48
|
radio?: boolean;
|
|
54
49
|
/** 单选值 */
|
|
55
|
-
radioValue?:
|
|
50
|
+
radioValue?: K;
|
|
56
51
|
/** 默认单选值 */
|
|
57
|
-
defaultRadioValue?:
|
|
52
|
+
defaultRadioValue?: K;
|
|
58
53
|
/** 线性选项卡导航栏主轴是否具有间距,开启为20px间距,关闭为0间距,默认开启 */
|
|
59
54
|
navWithPadding?: boolean;
|
|
60
55
|
/** 单选值切换的回调 */
|
|
61
|
-
onRadioChange?: (radioValue:
|
|
56
|
+
onRadioChange?: (radioValue: K) => void;
|
|
62
57
|
/** 新增按钮回调 showAdd 为 true 时有效*/
|
|
63
58
|
onAdd?: (e?: React.MouseEvent) => void;
|
|
64
59
|
/** 切换标签页的回调 */
|
|
65
|
-
onChange?: (activeKey:
|
|
60
|
+
onChange?: (activeKey: K, item?: TabProps<K>) => void;
|
|
66
61
|
/** 新增和删除页签的回调 */
|
|
67
|
-
onEdit?: (item: TabProps
|
|
68
|
-
[name: string]: unknown;
|
|
62
|
+
onEdit?: (item: TabProps<K>, e?: React.MouseEvent | React.KeyboardEvent | string | React.Key, action?: 'add' | 'remove') => void;
|
|
69
63
|
}
|
|
70
|
-
|
|
71
|
-
type
|
|
64
|
+
declare const TabsBase: <K extends React.Key = string>(props: TabsProps<K>) => import("react/jsx-runtime").JSX.Element;
|
|
65
|
+
type MergedTabs = typeof TabsBase & {
|
|
72
66
|
TabPane: typeof TabPane;
|
|
73
67
|
};
|
|
74
|
-
declare const
|
|
75
|
-
export default
|
|
68
|
+
export declare const Tabs: MergedTabs;
|
|
69
|
+
export default Tabs;
|
package/es/Tabs/index.js
CHANGED
|
@@ -1,170 +1,168 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { j as r } from "../_virtual/jsx-runtime.js";
|
|
2
|
+
import T, { useState as oe, useEffect as te, createElement as re } from "react";
|
|
3
|
+
import ae, { TabPane as R } from "rc-tabs";
|
|
4
4
|
import "../node_modules/@para-ui/icons/SvgIcon/index.js";
|
|
5
5
|
import { Close as u } from "../node_modules/@para-ui/icons/Close/index.js";
|
|
6
|
-
import { More as
|
|
7
|
-
import { Plus as
|
|
6
|
+
import { More as ne } from "../node_modules/@para-ui/icons/More/index.js";
|
|
7
|
+
import { Plus as se } from "../node_modules/@para-ui/icons/Plus/index.js";
|
|
8
8
|
import { PopConfirm as ie } from "../PopConfirm/index.js";
|
|
9
|
-
import { Radio as
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import { $rcPrefixCls as
|
|
15
|
-
import { Tooltip as
|
|
9
|
+
import { Radio as le } from "../Radio/index.js";
|
|
10
|
+
import de from "../Help/index.js";
|
|
11
|
+
import ce from "clsx";
|
|
12
|
+
import me from "../GlobalContext/useFormatMessage.js";
|
|
13
|
+
import pe from "./lang/index.js";
|
|
14
|
+
import { $rcPrefixCls as d, $prefixCls as fe } from "../GlobalContext/constant.js";
|
|
15
|
+
import { Tooltip as ue } from "../Tooltip/index.js";
|
|
16
16
|
import './index.css';/* empty css */
|
|
17
|
-
const
|
|
17
|
+
const k = (E) => {
|
|
18
18
|
const {
|
|
19
|
-
type:
|
|
20
|
-
className:
|
|
19
|
+
type: A,
|
|
20
|
+
className: N,
|
|
21
21
|
size: h,
|
|
22
|
-
onEdit:
|
|
23
|
-
hideAdd:
|
|
24
|
-
centered:
|
|
25
|
-
addIcon:
|
|
26
|
-
moreIcon:
|
|
27
|
-
editable:
|
|
22
|
+
onEdit: c,
|
|
23
|
+
hideAdd: y,
|
|
24
|
+
centered: V,
|
|
25
|
+
addIcon: w,
|
|
26
|
+
moreIcon: K = /* @__PURE__ */ r.jsx(ne, {}),
|
|
27
|
+
editable: m,
|
|
28
28
|
mode: b,
|
|
29
29
|
showAdd: S,
|
|
30
|
-
showPopConfirm:
|
|
31
|
-
popConfirmProps:
|
|
32
|
-
data:
|
|
33
|
-
onChange:
|
|
30
|
+
showPopConfirm: H,
|
|
31
|
+
popConfirmProps: M,
|
|
32
|
+
data: i,
|
|
33
|
+
onChange: z,
|
|
34
34
|
onAdd: C,
|
|
35
35
|
children: x,
|
|
36
|
-
value:
|
|
36
|
+
value: B,
|
|
37
37
|
activeKey: D,
|
|
38
38
|
radio: F,
|
|
39
|
-
radioValue:
|
|
39
|
+
radioValue: l,
|
|
40
40
|
defaultRadioValue: J,
|
|
41
41
|
navWithPadding: O = !0,
|
|
42
42
|
onRadioChange: W,
|
|
43
43
|
..._
|
|
44
|
-
} =
|
|
44
|
+
} = E, q = me("Tabs", pe), t = `${fe}-tabs`, a = A ?? b, [G, $] = oe(J);
|
|
45
45
|
te(() => {
|
|
46
|
-
|
|
47
|
-
}, [
|
|
48
|
-
const
|
|
49
|
-
|
|
50
|
-
}, g = (e) =>
|
|
51
|
-
let t = {}, o = e;
|
|
52
|
-
return s && (t = s.find((i) => String(i.value) === e) || {}, t?.value !== void 0 && (o = String(t.value))), { currItem: t, tKey: o };
|
|
53
|
-
};
|
|
46
|
+
l !== void 0 && $(l);
|
|
47
|
+
}, [l]);
|
|
48
|
+
const L = (e) => {
|
|
49
|
+
l === void 0 && $(e), W?.(e);
|
|
50
|
+
}, g = (e) => i?.find((o) => String(o.value) === e);
|
|
54
51
|
let v;
|
|
55
|
-
(
|
|
56
|
-
onEdit: (e, { key:
|
|
52
|
+
(a === "editable-card" || m) && (v = {
|
|
53
|
+
onEdit: (e, { key: o, event: n }) => {
|
|
57
54
|
if (e === "add")
|
|
58
|
-
C ? C(
|
|
55
|
+
C ? C(n) : c?.({}, n, e);
|
|
59
56
|
else {
|
|
60
|
-
const
|
|
61
|
-
|
|
57
|
+
const s = g(o);
|
|
58
|
+
s && c?.(s, s.value, e);
|
|
62
59
|
}
|
|
63
60
|
},
|
|
64
|
-
removeIcon: /* @__PURE__ */
|
|
65
|
-
addIcon:
|
|
66
|
-
showAdd:
|
|
61
|
+
removeIcon: /* @__PURE__ */ r.jsx(u, {}),
|
|
62
|
+
addIcon: w || /* @__PURE__ */ r.jsx(se, {}),
|
|
63
|
+
showAdd: y !== !0 && S !== !1
|
|
67
64
|
});
|
|
68
|
-
const
|
|
69
|
-
const
|
|
70
|
-
|
|
71
|
-
},
|
|
72
|
-
const { closable:
|
|
73
|
-
return
|
|
65
|
+
const Q = (e) => {
|
|
66
|
+
const o = g(e);
|
|
67
|
+
z?.(o?.value ?? e, o);
|
|
68
|
+
}, U = (e) => {
|
|
69
|
+
const { closable: o, closeIcon: n } = e;
|
|
70
|
+
return o === !1 ? null : H ? /* @__PURE__ */ r.jsx("span", { onClick: (s) => s.stopPropagation(), children: /* @__PURE__ */ r.jsx(
|
|
74
71
|
ie,
|
|
75
72
|
{
|
|
76
73
|
content: q({ id: "confirmDelete" }),
|
|
77
74
|
placement: "top",
|
|
78
|
-
...
|
|
79
|
-
onOk: () =>
|
|
80
|
-
children:
|
|
75
|
+
...M,
|
|
76
|
+
onOk: () => c?.(e, e.value, "remove"),
|
|
77
|
+
children: n || /* @__PURE__ */ r.jsx(u, {})
|
|
81
78
|
}
|
|
82
|
-
) }) :
|
|
83
|
-
},
|
|
84
|
-
if (!
|
|
79
|
+
) }) : n || /* @__PURE__ */ r.jsx(u, {});
|
|
80
|
+
}, X = () => {
|
|
81
|
+
if (!i?.length) return x;
|
|
85
82
|
const e = b === "card-container" && F;
|
|
86
|
-
return
|
|
87
|
-
const { label:
|
|
88
|
-
let f = j || e ? /* @__PURE__ */
|
|
89
|
-
e && /* @__PURE__ */
|
|
90
|
-
|
|
83
|
+
return i.map((o) => {
|
|
84
|
+
const { label: n, content: s, value: p, showHelp: j, helpProps: P, disabledTooltip: I, ...ee } = o;
|
|
85
|
+
let f = j || e ? /* @__PURE__ */ r.jsxs("span", { className: `${d}-tabs-tab-help`, children: [
|
|
86
|
+
e && /* @__PURE__ */ r.jsx(
|
|
87
|
+
le,
|
|
91
88
|
{
|
|
92
|
-
checked:
|
|
93
|
-
onChange: () =>
|
|
89
|
+
checked: G === p,
|
|
90
|
+
onChange: () => L(p)
|
|
94
91
|
}
|
|
95
92
|
),
|
|
96
|
-
|
|
97
|
-
j && /* @__PURE__ */
|
|
98
|
-
|
|
93
|
+
n,
|
|
94
|
+
j && /* @__PURE__ */ r.jsx(
|
|
95
|
+
de,
|
|
99
96
|
{
|
|
100
97
|
placement: "bottom-start",
|
|
101
98
|
...P,
|
|
102
99
|
title: P?.title ?? ""
|
|
103
100
|
}
|
|
104
101
|
)
|
|
105
|
-
] }) :
|
|
106
|
-
return I && (f = /* @__PURE__ */
|
|
107
|
-
|
|
102
|
+
] }) : n;
|
|
103
|
+
return I && (f = /* @__PURE__ */ r.jsx(
|
|
104
|
+
ue,
|
|
108
105
|
{
|
|
109
106
|
disabled: !0,
|
|
110
107
|
placement: "bottom-start",
|
|
111
108
|
...I,
|
|
112
109
|
children: f
|
|
113
110
|
}
|
|
114
|
-
)), /* @__PURE__ */
|
|
115
|
-
|
|
111
|
+
)), /* @__PURE__ */ re(
|
|
112
|
+
R,
|
|
116
113
|
{
|
|
117
|
-
...
|
|
114
|
+
...ee,
|
|
118
115
|
tab: f,
|
|
119
|
-
key:
|
|
120
|
-
closeIcon:
|
|
116
|
+
key: p,
|
|
117
|
+
closeIcon: U(o)
|
|
121
118
|
},
|
|
122
|
-
|
|
119
|
+
s
|
|
123
120
|
);
|
|
124
121
|
});
|
|
125
|
-
}, X = () => {
|
|
126
|
-
const e = D ?? z;
|
|
127
|
-
if (e !== void 0) return String(e);
|
|
128
122
|
}, Y = () => {
|
|
123
|
+
const e = D ?? B;
|
|
124
|
+
if (e !== void 0) return String(e);
|
|
125
|
+
}, Z = () => {
|
|
129
126
|
let e;
|
|
130
|
-
return
|
|
131
|
-
(
|
|
127
|
+
return i?.length ? e = i.some((o) => o.content) : e = T.Children.toArray(x).some(
|
|
128
|
+
(o) => T.isValidElement(o) && o.props.children
|
|
132
129
|
), !e;
|
|
133
130
|
};
|
|
134
|
-
return /* @__PURE__ */
|
|
135
|
-
|
|
131
|
+
return /* @__PURE__ */ r.jsx(
|
|
132
|
+
ae,
|
|
136
133
|
{
|
|
137
|
-
activeKey:
|
|
138
|
-
moreTransitionName: `${
|
|
134
|
+
activeKey: Y(),
|
|
135
|
+
moreTransitionName: `${d}-tabs-slide-up`,
|
|
139
136
|
..._,
|
|
140
|
-
className:
|
|
141
|
-
|
|
137
|
+
className: ce(
|
|
138
|
+
t,
|
|
142
139
|
{
|
|
143
|
-
[`${
|
|
144
|
-
[`${
|
|
145
|
-
[`${
|
|
146
|
-
[`${
|
|
147
|
-
[`${
|
|
148
|
-
[`${
|
|
149
|
-
[`${
|
|
150
|
-
[`${
|
|
151
|
-
[`${
|
|
152
|
-
[`${
|
|
153
|
-
[`${
|
|
140
|
+
[`${t}-${h}`]: h,
|
|
141
|
+
[`${t}-line`]: !a || a === "line",
|
|
142
|
+
[`${t}-editable-line`]: (!a || a === "line") && m,
|
|
143
|
+
[`${t}-card`]: ["card", "editable-card"].includes(a),
|
|
144
|
+
[`${t}-editable-card`]: a === "editable-card",
|
|
145
|
+
[`${t}-track`]: a === "track",
|
|
146
|
+
[`${t}-editable-track`]: a === "track" && m,
|
|
147
|
+
[`${t}-card-container ${t}-card`]: a === "card-container",
|
|
148
|
+
[`${t}-centered`]: V,
|
|
149
|
+
[`${t}-no-child`]: Z(),
|
|
150
|
+
[`${d}-nav-padding`]: O
|
|
154
151
|
},
|
|
155
|
-
|
|
152
|
+
N
|
|
156
153
|
),
|
|
157
154
|
editable: v,
|
|
158
|
-
moreIcon:
|
|
159
|
-
prefixCls: `${
|
|
160
|
-
onChange:
|
|
161
|
-
children:
|
|
155
|
+
moreIcon: K,
|
|
156
|
+
prefixCls: `${d}-tabs`,
|
|
157
|
+
onChange: Q,
|
|
158
|
+
children: X()
|
|
162
159
|
}
|
|
163
160
|
);
|
|
164
161
|
};
|
|
165
|
-
|
|
162
|
+
k.TabPane = R;
|
|
163
|
+
const ye = k;
|
|
166
164
|
export {
|
|
167
|
-
|
|
168
|
-
|
|
165
|
+
ye as Tabs,
|
|
166
|
+
ye as default
|
|
169
167
|
};
|
|
170
168
|
//# sourceMappingURL=index.js.map
|
package/es/_virtual/index3.js
CHANGED
package/es/_virtual/index4.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require('../../
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require('../../CodeEditor/index.css');const c=require("../../_virtual/jsx-runtime.js"),m=require("react"),E=require("../../Button/index.js"),k=require("../../TextField/index.js"),y=require("../../Modal/index.js"),h=require("../../Message/index.js"),p=require("../../GlobalContext/useFormatMessage.js"),S=require("../../GlobalContext/constant.js"),g=require("../lang/index.js");;/* empty css */const b=l=>{const i=p.default("Argv",g.default),{className:f,sourceData:s,onFinish:u,dataToJson:o,jsonToData:n}=l,[t,r]=m.useState({open:!1,json:""}),d=()=>{let e="";if(!Array.isArray(s))e="";else try{o?e=o(s):e=JSON.stringify(s,null,4)}catch(a){console.error(a)}r({...t,json:e,open:!t.open})},x=()=>{r({...t,open:!1})},j=e=>{let a=[];try{n?a=n(e):a=JSON.parse(e)}catch{return h.Message.error(i("formatErrorJson"),5e3),!1}r({...t,open:!1}),u&&u(a)};return c.jsxRuntimeExports.jsxs("div",{className:`argv-batch-edit-content ${f}`,children:[c.jsxRuntimeExports.jsx(E.Button,{variant:"outlined",size:"small",className:"btn-edit",onClick:d,children:i("batchEdit")}),c.jsxRuntimeExports.jsx(q,{open:t.open,onCancel:x,onOk:j,json:t.json,checkData:l.checkData})]})},q=l=>{const{open:i,disabled:f,onCancel:s,onOk:u,json:o,checkData:n}=l,t=p.default("Argv",g.default),[r,d]=m.useState("");m.useEffect(()=>{d(o||"")},[o]);const x=()=>{try{const e=JSON.parse(r);return Array.isArray(e)?!(n&&!n(e)):(h.Message.error(t("formatErrorArrayJson")),!1)}catch{return h.Message.error(t("formatErrorJson")),!1}},j=()=>{if(x())try{u(r)}catch(e){console.error(e)}};return c.jsxRuntimeExports.jsx(y.Modal,{className:`${S.$prefixCls}-form`,open:i,title:t("batchEdit"),onCancel:s,onOk:j,maskClosable:!0,showCancel:!1,okText:t("ok"),children:c.jsxRuntimeExports.jsx(k.TextField,{label:"API JSON",placeholder:"请输入",disabled:f,multiline:!0,rows:12,value:r||"",onChange:e=>d(e.target.value)})})};exports.default=b;
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/lib/CodeEditor/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require('
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require('./index.css');const f=require("../_virtual/jsx-runtime.js"),a=require("react"),rr=require("@paraview/lib"),er=require("react-dom"),sr=require("clsx"),ar=require("../GlobalContext/constant.js"),ur=require("../_virtual/index.js"),cr=require("../Loading/index.js"),tr=require("./lang/index.js");;/* empty css */var o=(r=>(r[r.Method=0]="Method",r[r.Function=1]="Function",r[r.Constructor=2]="Constructor",r[r.Field=3]="Field",r[r.Variable=4]="Variable",r[r.Class=5]="Class",r[r.Struct=6]="Struct",r[r.Interface=7]="Interface",r[r.Module=8]="Module",r[r.Property=9]="Property",r[r.Event=10]="Event",r[r.Operator=11]="Operator",r[r.Unit=12]="Unit",r[r.Value=13]="Value",r[r.Constant=14]="Constant",r[r.Enum=15]="Enum",r[r.EnumMember=16]="EnumMember",r[r.Keyword=17]="Keyword",r[r.Text=18]="Text",r[r.Color=19]="Color",r[r.File=20]="File",r[r.Reference=21]="Reference",r[r.Customcolor=22]="Customcolor",r[r.Folder=23]="Folder",r[r.TypeParameter=24]="TypeParameter",r[r.User=25]="User",r[r.Issue=26]="Issue",r[r.Snippet=27]="Snippet",r))(o||{});const gr=r=>{const{className:E,style:b,id:y,language:h,zoomLength:R=300,theme:q="vs-light",resize:v=!0,editorLanguage:w="javascript",disabledSelectLanguage:F,languageList:j,showExpand:L=!0,showFullScreen:T=!0,showFormat:P=!0,topRightRender:$,width:c="100%",height:t="100%",value:g="",disabled:n=!1,suggestions:U,triggerCharacters:V,codeSnippet:D,help:O,isSearchCode:N,drag:_=!0,dragMin:z=200,monacoEditorProps:H,title:A,hideSelectLanguage:B,hideLineNumber:G,onClickCodeSnippet:J,onChange:k,onChangeLanguage:Q,onMounted:S}=r,[W,x]=a.useState(!0),[M,X]=a.useState(),d=a.useRef(null),e=a.useRef({});a.useEffect(()=>(i(),()=>{clearTimeout(e.current.snackTimer)}),[]),a.useEffect(()=>{e.current.snackClass?.setValue(g||"")},[g]),a.useEffect(()=>{e.current.snackClass?.setDisabled(n)},[n]);const Y=(s,u)=>{e.current.snackClass&&(e.current.snackClass.data[s]=u,e.current.snackClass.$forceUpdate(),e.current.snackClass.editor?.focus())},Z=async()=>{if(e.current.sdk)return e.current.sdk;const s=new ur.distExports.SnackSDK({service:rr.Context.get("snackbar"),importMaps:{react:a,"react-dom":er},runtime:!0});return e.current.sdk=s,s},i=async()=>{x(!0);const u=await(await Z()).createModule({name:"codeeditornew",type:"code-editor"},{id:y,theme:q,language:h||tr.default,zoomLength:R,editorLanguage:w,title:A,disabledSelectLanguage:F,hideSelectLanguage:B,hideLineNumber:G,languageList:j,showExpand:L,showFullScreen:T,showFormat:P,topRightRender:$,width:c,height:t,resize:v,value:g,disabled:n,suggestions:U,triggerCharacters:V,codeSnippet:D,help:O,isSearchCode:N,drag:_,dragMin:z,onClickCodeSnippet:J,onChange:C,onChangeLanguage:Q,monacoEditorProps:H});if(x(!1),!u)return;const K=()=>u.FC();X(f.jsxRuntimeExports.jsx(K,{})),e.current.snackTimer=setTimeout(()=>{u.updateSnackModules=Y,e.current.snackClass=u,u.getMoveHeight=m=>{const l=d.current;l&&(l.style.height=m)},S&&S(u)})},C=s=>{k&&k(s)},p=a.useMemo(()=>M,[M]),I=()=>{const s={...b};return c&&(s.width=c),t&&(s.height=t),s};return f.jsxRuntimeExports.jsxs("div",{className:sr(`${ar.$prefixCls}-code-editor`,E),style:I(),ref:d,children:[W&&f.jsxRuntimeExports.jsx(cr.Loading,{}),p]})};exports.CompletionItemKind=o;exports.default=gr;
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/lib/InputCode/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require('
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require('../CodeEditor/index.css');const t=require("./inputCodeCard/index.js"),u=require("./inputCodeInput/index.js");;/* empty css */const e={Card:t.InputCodeCard,Input:u.InputCodeInput};exports.InputCode=e;exports.default=e;
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/lib/Tabs/index.d.ts
CHANGED
|
@@ -1,30 +1,25 @@
|
|
|
1
|
-
import { default as React,
|
|
1
|
+
import { default as React, ReactNode } from 'react';
|
|
2
2
|
import { TabPane, TabsProps as RcTabsProps, TabPaneProps } from 'rc-tabs';
|
|
3
3
|
import { PopConfirmProps } from '../PopConfirm';
|
|
4
4
|
import { HelpProps } from '../Help';
|
|
5
5
|
import { TooltipProps } from '../Tooltip';
|
|
6
6
|
export type TabsType = 'line' | 'card' | 'editable-card' | 'track' | 'card-container';
|
|
7
7
|
export type { TabPaneProps };
|
|
8
|
-
export interface TabProps {
|
|
8
|
+
export interface TabProps<K extends React.Key = string> extends Omit<TabPaneProps, 'tabKey' | 'tab' | 'children' | 'prefixCls'> {
|
|
9
9
|
/** tab text */
|
|
10
10
|
label?: ReactNode;
|
|
11
11
|
/** tab panel */
|
|
12
12
|
content?: ReactNode;
|
|
13
13
|
/** tab key */
|
|
14
|
-
value
|
|
15
|
-
/** 禁用 */
|
|
16
|
-
disabled?: boolean;
|
|
14
|
+
value: K;
|
|
17
15
|
/** 禁用文案提示 */
|
|
18
16
|
disabledTooltip?: TooltipProps;
|
|
19
|
-
/** 可关闭标签 */
|
|
20
|
-
closable?: boolean;
|
|
21
17
|
/** 显示帮助提示 Help */
|
|
22
18
|
showHelp?: boolean;
|
|
23
19
|
/** help props */
|
|
24
20
|
helpProps?: HelpProps;
|
|
25
|
-
[name: string]: unknown;
|
|
26
21
|
}
|
|
27
|
-
export interface TabsProps extends Omit<RcTabsProps, 'editable'> {
|
|
22
|
+
export interface TabsProps<K extends React.Key = string> extends Omit<RcTabsProps, 'editable' | 'onChange'> {
|
|
28
23
|
/** tabs 类型 */
|
|
29
24
|
type?: TabsType;
|
|
30
25
|
/** 模式:线性、卡片*/
|
|
@@ -46,30 +41,29 @@ export interface TabsProps extends Omit<RcTabsProps, 'editable'> {
|
|
|
46
41
|
/** popConfirm props*/
|
|
47
42
|
popConfirmProps?: PopConfirmProps;
|
|
48
43
|
/** 数据列表*/
|
|
49
|
-
data?: TabProps[];
|
|
44
|
+
data?: TabProps<K>[];
|
|
50
45
|
/** 选中的 value*/
|
|
51
|
-
value?:
|
|
46
|
+
value?: K;
|
|
52
47
|
/** 是否开启单选 */
|
|
53
48
|
radio?: boolean;
|
|
54
49
|
/** 单选值 */
|
|
55
|
-
radioValue?:
|
|
50
|
+
radioValue?: K;
|
|
56
51
|
/** 默认单选值 */
|
|
57
|
-
defaultRadioValue?:
|
|
52
|
+
defaultRadioValue?: K;
|
|
58
53
|
/** 线性选项卡导航栏主轴是否具有间距,开启为20px间距,关闭为0间距,默认开启 */
|
|
59
54
|
navWithPadding?: boolean;
|
|
60
55
|
/** 单选值切换的回调 */
|
|
61
|
-
onRadioChange?: (radioValue:
|
|
56
|
+
onRadioChange?: (radioValue: K) => void;
|
|
62
57
|
/** 新增按钮回调 showAdd 为 true 时有效*/
|
|
63
58
|
onAdd?: (e?: React.MouseEvent) => void;
|
|
64
59
|
/** 切换标签页的回调 */
|
|
65
|
-
onChange?: (activeKey:
|
|
60
|
+
onChange?: (activeKey: K, item?: TabProps<K>) => void;
|
|
66
61
|
/** 新增和删除页签的回调 */
|
|
67
|
-
onEdit?: (item: TabProps
|
|
68
|
-
[name: string]: unknown;
|
|
62
|
+
onEdit?: (item: TabProps<K>, e?: React.MouseEvent | React.KeyboardEvent | string | React.Key, action?: 'add' | 'remove') => void;
|
|
69
63
|
}
|
|
70
|
-
|
|
71
|
-
type
|
|
64
|
+
declare const TabsBase: <K extends React.Key = string>(props: TabsProps<K>) => import("react/jsx-runtime").JSX.Element;
|
|
65
|
+
type MergedTabs = typeof TabsBase & {
|
|
72
66
|
TabPane: typeof TabPane;
|
|
73
67
|
};
|
|
74
|
-
declare const
|
|
75
|
-
export default
|
|
68
|
+
export declare const Tabs: MergedTabs;
|
|
69
|
+
export default Tabs;
|
package/lib/Tabs/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require('./index.css');const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require('./index.css');const r=require("../_virtual/jsx-runtime.js"),l=require("react"),f=require("rc-tabs");require("../node_modules/@para-ui/icons/SvgIcon/index.js");const b=require("../node_modules/@para-ui/icons/Close/index.js"),ne=require("../node_modules/@para-ui/icons/More/index.js"),re=require("../node_modules/@para-ui/icons/Plus/index.js"),se=require("../PopConfirm/index.js"),oe=require("../Radio/index.js"),ie=require("../Help/index.js"),ae=require("clsx"),le=require("../GlobalContext/useFormatMessage.js"),ce=require("./lang/index.js"),c=require("../GlobalContext/constant.js"),de=require("../Tooltip/index.js");;/* empty css */const T=k=>{const{type:y,className:A,size:h,onEdit:u,hideAdd:N,centered:S,addIcon:V,moreIcon:_=r.jsxRuntimeExports.jsx(ne.More,{}),editable:x,mode:C,showAdd:w,showPopConfirm:M,popConfirmProps:K,data:a,onChange:H,onAdd:j,children:$,value:O,activeKey:z,radio:B,radioValue:d,defaultRadioValue:D,navWithPadding:F=!0,onRadioChange:W,...G}=k,J=le.default("Tabs",ce.default),n=`${c.$prefixCls}-tabs`,s=y??C,[L,R]=l.useState(D);l.useEffect(()=>{d!==void 0&&R(d)},[d]);const Q=e=>{d===void 0&&R(e),W?.(e)},g=e=>a?.find(t=>String(t.value)===e);let v;(s==="editable-card"||x)&&(v={onEdit:(e,{key:t,event:o})=>{if(e==="add")j?j(o):u?.({},o,e);else{const i=g(t);i&&u?.(i,i.value,e)}},removeIcon:r.jsxRuntimeExports.jsx(b.Close,{}),addIcon:V||r.jsxRuntimeExports.jsx(re.Plus,{}),showAdd:N!==!0&&w!==!1});const U=e=>{const t=g(e);H?.(t?.value??e,t)},X=e=>{const{closable:t,closeIcon:o}=e;return t===!1?null:M?r.jsxRuntimeExports.jsx("span",{onClick:i=>i.stopPropagation(),children:r.jsxRuntimeExports.jsx(se.PopConfirm,{content:J({id:"confirmDelete"}),placement:"top",...K,onOk:()=>u?.(e,e.value,"remove"),children:o||r.jsxRuntimeExports.jsx(b.Close,{})})}):o||r.jsxRuntimeExports.jsx(b.Close,{})},Y=()=>{if(!a?.length)return $;const e=C==="card-container"&&B;return a.map(t=>{const{label:o,content:i,value:p,showHelp:E,helpProps:P,disabledTooltip:q,...te}=t;let m=E||e?r.jsxRuntimeExports.jsxs("span",{className:`${c.$rcPrefixCls}-tabs-tab-help`,children:[e&&r.jsxRuntimeExports.jsx(oe.Radio,{checked:L===p,onChange:()=>Q(p)}),o,E&&r.jsxRuntimeExports.jsx(ie.default,{placement:"bottom-start",...P,title:P?.title??""})]}):o;return q&&(m=r.jsxRuntimeExports.jsx(de.Tooltip,{disabled:!0,placement:"bottom-start",...q,children:m})),l.createElement(f.TabPane,{...te,tab:m,key:p,closeIcon:X(t)},i)})},Z=()=>{const e=z??O;if(e!==void 0)return String(e)},ee=()=>{let e;return a?.length?e=a.some(t=>t.content):e=l.Children.toArray($).some(t=>l.isValidElement(t)&&t.props.children),!e};return r.jsxRuntimeExports.jsx(f,{activeKey:Z(),moreTransitionName:`${c.$rcPrefixCls}-tabs-slide-up`,...G,className:ae(n,{[`${n}-${h}`]:h,[`${n}-line`]:!s||s==="line",[`${n}-editable-line`]:(!s||s==="line")&&x,[`${n}-card`]:["card","editable-card"].includes(s),[`${n}-editable-card`]:s==="editable-card",[`${n}-track`]:s==="track",[`${n}-editable-track`]:s==="track"&&x,[`${n}-card-container ${n}-card`]:s==="card-container",[`${n}-centered`]:S,[`${n}-no-child`]:ee(),[`${c.$rcPrefixCls}-nav-padding`]:F},A),editable:v,moreIcon:_,prefixCls:`${c.$rcPrefixCls}-tabs`,onChange:U,children:Y()})};T.TabPane=f.TabPane;const I=T;exports.Tabs=I;exports.default=I;
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const index=require("../../../../_virtual/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const index=require("../../../../_virtual/index3.js"),React=require("react"),require$$1=require("@paraview/lib"),ReactDOM=require("react-dom");var hasRequiredDist;function requireDist(){return hasRequiredDist||(hasRequiredDist=1,(function(module,exports$1){(function(M,P){module.exports=P(React,require$$1,ReactDOM)})(self,(function(__WEBPACK_EXTERNAL_MODULE__155__,__WEBPACK_EXTERNAL_MODULE__663__,__WEBPACK_EXTERNAL_MODULE__514__){return(function(){var __webpack_modules__={212:function(M,P,F){(P=F(314)(!1)).push([M.id,".snack-core-error{color:#b1b1b1;margin:auto;padding:10px;text-align:left}.snack-core-error>*{vertical-align:middle}.snack-core-error-icon{margin:0 15px;display:inline-block}.snack-core-error-content{display:inline-block}.snack-core-error-sub{font-size:12px}",""]),M.exports=P},366:function(M,P,F){(P=F(314)(!1)).push([M.id,'.snack-core-loading{position:relative;background:#ace;margin:auto;align-items:center;justify-content:center}@keyframes spinner{to{transform:rotate(360deg)}}.snack-core-loading .spinner:before{content:"";box-sizing:border-box;position:absolute;top:-8px;left:-8px;width:16px;height:16px;border-radius:50%;border-top:2px solid #389bef;border-right:2px solid rgba(0,0,0,0);animation:spinner .6s linear infinite}',""]),M.exports=P},314:function(M){M.exports=function(P){var F=[];return F.toString=function(){return this.map((function(B){var N=(function(rt,st){var it=rt[1]||"",vt=rt[3];if(!vt)return it;if(st&&typeof btoa=="function"){var ct=(_=vt,et=btoa(unescape(encodeURIComponent(JSON.stringify(_)))),O="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(et),"/*# ".concat(O," */")),z=vt.sources.map((function(L){return"/*# sourceURL=".concat(vt.sourceRoot||"").concat(L," */")}));return[it].concat(z).concat([ct]).join(`
|
|
2
2
|
`)}var _,et,O;return[it].join(`
|
|
3
3
|
`)})(B,P);return B[2]?"@media ".concat(B[2]," {").concat(N,"}"):N})).join("")},F.i=function(B,N,rt){typeof B=="string"&&(B=[[null,B,""]]);var st={};if(rt)for(var it=0;it<this.length;it++){var vt=this[it][0];vt!=null&&(st[vt]=!0)}for(var ct=0;ct<B.length;ct++){var z=[].concat(B[ct]);rt&&st[z[0]]||(N&&(z[2]?z[2]="".concat(N," and ").concat(z[2]):z[2]=N),F.push(z))}},F}},441:function(M,P,F){var B=F(72),N=F(212);typeof(N=N.__esModule?N.default:N)=="string"&&(N=[[M.id,N,""]]);var rt={insert:"head",singleton:!1};B(N,rt),M.exports=N.locals||{}},719:function(M,P,F){var B=F(72),N=F(366);typeof(N=N.__esModule?N.default:N)=="string"&&(N=[[M.id,N,""]]);var rt={insert:"head",singleton:!1};B(N,rt),M.exports=N.locals||{}},72:function(M,P,F){var B,N=function(){return B===void 0&&(B=!!(window&&document&&document.all&&!window.atob)),B},rt=(function(){var U={};return function(J){if(U[J]===void 0){var V=document.querySelector(J);if(window.HTMLIFrameElement&&V instanceof window.HTMLIFrameElement)try{V=V.contentDocument.head}catch{V=null}U[J]=V}return U[J]}})(),st=[];function it(U){for(var J=-1,V=0;V<st.length;V++)if(st[V].identifier===U){J=V;break}return J}function vt(U,J){for(var V={},W=[],ot=0;ot<U.length;ot++){var k=U[ot],j=J.base?k[0]+J.base:k[0],X=V[j]||0,ut="".concat(j," ").concat(X);V[j]=X+1;var Z=it(ut),K={css:k[1],media:k[2],sourceMap:k[3]};Z!==-1?(st[Z].references++,st[Z].updater(K)):st.push({identifier:ut,updater:I(K,J),references:1}),W.push(ut)}return W}function ct(U){var J=document.createElement("style"),V=U.attributes||{};if(V.nonce===void 0){var W=F.nc;W&&(V.nonce=W)}if(Object.keys(V).forEach((function(k){J.setAttribute(k,V[k])})),typeof U.insert=="function")U.insert(J);else{var ot=rt(U.insert||"head");if(!ot)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");ot.appendChild(J)}return J}var z,_=(z=[],function(U,J){return z[U]=J,z.filter(Boolean).join(`
|
|
4
4
|
`)});function et(U,J,V,W){var ot=V?"":W.media?"@media ".concat(W.media," {").concat(W.css,"}"):W.css;if(U.styleSheet)U.styleSheet.cssText=_(J,ot);else{var k=document.createTextNode(ot),j=U.childNodes;j[J]&&U.removeChild(j[J]),j.length?U.insertBefore(k,j[J]):U.appendChild(k)}}function O(U,J,V){var W=V.css,ot=V.media,k=V.sourceMap;if(ot?U.setAttribute("media",ot):U.removeAttribute("media"),k&&typeof btoa<"u"&&(W+=`
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../../_virtual/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../../_virtual/index4.js");var u;function a(){return u||(u=1,(function(o){(function(){var f={}.hasOwnProperty;function n(){for(var e="",t=0;t<arguments.length;t++){var r=arguments[t];r&&(e=s(e,c(r)))}return e}function c(e){if(typeof e=="string"||typeof e=="number")return e;if(typeof e!="object")return"";if(Array.isArray(e))return n.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var r in e)f.call(e,r)&&e[r]&&(t=s(t,r));return t}function s(e,t){return t?e?e+" "+t:e+t:e}o.exports?(n.default=n,o.exports=n):window.classNames=n})()})(i.__module)),i.__module.exports}exports.__require=a;
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|