Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Master #26

Merged
merged 447 commits into from
Dec 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
447 commits
Select commit Hold shift + click to select a range
89901eb
fix: 修复Upload组件bug
llq0802 Dec 2, 2022
de47276
fix: 修复已知组件bug 调整表单项常用api优先级
llq0802 Dec 3, 2022
f3f2d2a
feat: 新增Lcolor组件禁用
llq0802 Dec 4, 2022
7246402
fix: 调整日期组件命名
llq0802 Dec 4, 2022
8ad1e53
fix: 调整目录结构
llq0802 Dec 4, 2022
b15c99b
feat: 新增LForm组件 LModalForm组件
llq0802 Dec 4, 2022
19422b0
fix: 修复tooltip已知bug
Dec 5, 2022
cfdacac
fix: 修复spin已知bug
Dec 5, 2022
0b1a717
fix: 修复switch已知bug
Dec 5, 2022
630adad
fix: 修复tooltip已知bug
Dec 5, 2022
8718172
fix: 修复switch已知bug
Dec 5, 2022
642e065
feat: 新增LForm组件 LModalForm组件
llq0802 Dec 5, 2022
b696f22
feat: 新增LForm组件 LModalForm组件
llq0802 Dec 5, 2022
f33c6f3
fix: 修复LMoadlFrom已知bug
llq0802 Dec 6, 2022
1adaba3
feat: 新增LForm组件 LModalForm组件
llq0802 Dec 6, 2022
3a7e67f
feat: 新增DrawerForm组件
Dec 7, 2022
8bf5fc7
fix: 修复已知bug
Dec 7, 2022
d7fb527
fix: 调整LMoadlFrom的api
llq0802 Dec 7, 2022
fa5fe80
fix: 调整部分组件命名
llq0802 Dec 7, 2022
d6e4dfa
fix: 调整部分组件api
llq0802 Dec 7, 2022
38d6f05
feat: 新增LQueryForm组件
llq0802 Dec 8, 2022
c1da0f0
feat: 新增LForm组件 调整部分api
llq0802 Dec 8, 2022
ce7aac5
docs: 更新LTrigger组件文档
llq0802 Dec 8, 2022
e8a9fac
fix: 修复FromItem组件验证假值bug
llq0802 Dec 9, 2022
a02d865
feat: 新增LTable组件文件
llq0802 Dec 9, 2022
fd682d9
feat: 水印
naixin-coder Dec 9, 2022
1e029fc
feat: 水印
naixin-coder Dec 9, 2022
eddce12
fix: 修复LFormItemTimePicker验证的bug
llq0802 Dec 10, 2022
f89034b
feat: 新增表格组件结构
llq0802 Dec 10, 2022
0a55814
feat: 新增表格组件结构
llq0802 Dec 10, 2022
e6c9412
docs: 更新水印组件文档
llq0802 Dec 10, 2022
5181576
feat: 新增表格组件结构
llq0802 Dec 10, 2022
9831b13
feat: 新增表格组件基础
llq0802 Dec 11, 2022
b3a7628
fix: 修复表格组件bug
llq0802 Dec 11, 2022
9d2b01f
fix: 修复表格组件bug
llq0802 Dec 12, 2022
f07947b
fix: 修复表格组件bug
llq0802 Dec 12, 2022
f466d9c
fix: 修复已知bug
Dec 12, 2022
0933b5b
fix: 修复已知bug
Dec 12, 2022
ab3fc0b
fix: 修复表格组件在全屏状态下无法正常显示弹窗等组件
llq0802 Dec 12, 2022
df13f29
fix: 修复表格组件在全屏状态下无法正常显示弹窗等组件
llq0802 Dec 12, 2022
e38e706
feat: 新增表格排序
llq0802 Dec 13, 2022
22e87dc
feat: 新增表格排序
llq0802 Dec 13, 2022
8dcccc6
feat: 新增表格排序
Dec 13, 2022
a037d23
feat: 新增可编辑表格基础
llq0802 Dec 13, 2022
860b033
feat: 新增可编辑表格结构
llq0802 Dec 14, 2022
6b37f64
fix: 修复已知bug
Dec 15, 2022
e64b15a
fix: 修复已知bug
Dec 15, 2022
d9b75b5
docs: 更新文档
llq0802 Dec 19, 2022
7049f11
docs: 更新文档
llq0802 Dec 24, 2022
4db0b72
docs: 更新文档
llq0802 Dec 26, 2022
a1e289d
fix: 修改LFormItemInput类型位idCard时的输入限制
llq0802 Dec 27, 2022
f985f68
docs: 更新文档
llq0802 Dec 27, 2022
31a9b71
docs: 更新文档
llq0802 Dec 27, 2022
0c5c937
fix: 修复验证码组件bug
llq0802 Dec 28, 2022
c7e7690
docs: 更新文档
llq0802 Dec 28, 2022
eb52f06
feat: 新增LFormItem属性
llq0802 Dec 28, 2022
59ad49c
docs: 更新开关组件文档
llq0802 Dec 28, 2022
05ac49b
docs: 更新Slider组件文档
llq0802 Jan 2, 2023
c5ddd7a
docs: 更新日期与时间组件文档
llq0802 Jan 2, 2023
1095adc
docs: 更新LForm文档
llq0802 Jan 3, 2023
1063d66
docs: 更新LForm文档
llq0802 Jan 3, 2023
6604b96
docs: 更新LFormItemSegmented文档
llq0802 Jan 3, 2023
2339339
docs: 更新LFormItemTreeSelect文档
llq0802 Jan 5, 2023
2f2600d
fix: 更新部分文档
Jan 5, 2023
55cd12e
docs: 更新LFormItemAddress文档
llq0802 Jan 5, 2023
3132f69
docs: 更新上传组件文档
llq0802 Jan 5, 2023
3be4456
docs: 更新LTable组件文档
llq0802 Jan 7, 2023
23d1847
docs: 更新LTable组件文档
llq0802 Jan 7, 2023
59da4c9
docs: 更新LTable组件文档
llq0802 Jan 9, 2023
7af748c
feat: 新增步骤条表单组件结构
llq0802 Jan 9, 2023
ad13d41
feat: 新增步骤条表单组件结构
llq0802 Jan 10, 2023
bc7b91a
fix: 修复已知bug
Jan 10, 2023
70465c0
feat: 新增登录组件
Jan 10, 2023
e0a5cb5
feat: 新增步骤条表单组件结构
llq0802 Jan 10, 2023
bb49901
fix: 修复LItemFormXX组件在验证必填时的错误
llq0802 Jan 10, 2023
fb23a02
docs: 更新弹窗组件文档
llq0802 Jan 10, 2023
876d4f2
feat: 新增步骤条表单组件部分
llq0802 Jan 10, 2023
0c2a8a1
feat: 新增登录组件api
Jan 11, 2023
052ba31
feat: 新增登录组件api
Jan 11, 2023
03232fd
fix: 修复已知bug
Jan 11, 2023
e3f0b79
fix: 删除基础组件switch
Jan 11, 2023
204e4b9
fix: 删除基础组件switch
Jan 11, 2023
8f00d99
feat: 新增步骤条表单组件部分
llq0802 Jan 11, 2023
01d7a83
feat: 新增评分案例组件
Jan 11, 2023
5c079f7
fix: 合并
Jan 11, 2023
68f5b0c
feat: 新增checkbox案例组件
Jan 11, 2023
c95bdae
fix: 修改评分案例组件
Jan 11, 2023
81277ae
fix: 修改评分案例组件
Jan 11, 2023
29eabe6
feat: 新增步骤条表单组件
llq0802 Jan 11, 2023
3582ded
fix: 修改表单步骤条bug
llq0802 Jan 12, 2023
f306320
fix: 增加loading配置api
Jan 12, 2023
e9e5536
fix: 增加loading配置api
Jan 12, 2023
dc81418
fix: 修改表单步骤条bug
llq0802 Jan 12, 2023
4343b91
fix: 修改表单步骤条bug
llq0802 Jan 12, 2023
5343528
fix: 修改表单步骤条bug
llq0802 Jan 12, 2023
0dc5d77
fix: 修改表单步骤条bug
llq0802 Jan 12, 2023
c433227
fix: 修改表单步骤条bug
llq0802 Jan 12, 2023
b13ccea
fix: 修改表单步骤条bug
llq0802 Jan 12, 2023
eb67f9c
fix: 增加loading配置api
Jan 12, 2023
57b58c7
fix: 修改表单步骤条bug
llq0802 Jan 12, 2023
4ebe4c1
fix: 增加loading配置api
Jan 12, 2023
db6abc7
fix: 修改表单步骤条bug
llq0802 Jan 12, 2023
47d993e
fix: 增加loading配置api
Jan 12, 2023
d8ef34d
fix: 增加loading配置api
Jan 12, 2023
7a083e7
fix: 修复LForm组件在重置时会重新挂载子组件问题
llq0802 Jan 12, 2023
1098fa5
fix: 修复LForm组件在重置时会重新挂载子组件问题
llq0802 Jan 12, 2023
a874ec7
fix: 修复LForm组件在重置时会重新挂载子组件问题
llq0802 Jan 12, 2023
b9bce81
fix: 修改变量命名
llq0802 Jan 12, 2023
1ecec2c
feat: 新增LForm和LFormItem组件的labelWidth属性
llq0802 Jan 12, 2023
cb0c12f
feat: 新增LForm和LFormItem组件的labelWidth属性
llq0802 Jan 12, 2023
aec91aa
feat: 新增模拟请求函数
llq0802 Jan 13, 2023
ef74ed0
fix: 增加loading配置api
Jan 13, 2023
5216ef8
feat: 新增模拟请求函数
llq0802 Jan 13, 2023
ec80b0d
feat: 新增模拟请求函数
llq0802 Jan 13, 2023
934a13d
fix: 修复LForm的提交bug
llq0802 Jan 13, 2023
1f25d81
fix: 修复弹窗表单和抽底表单bug
llq0802 Jan 14, 2023
be04d86
docs: 更新问题回答文档
llq0802 Jan 14, 2023
a5602ba
fix: 修复弹窗表单和抽底表单初始值bug
llq0802 Jan 14, 2023
c923f27
docs: 更新弹窗表单文档
llq0802 Jan 14, 2023
3ea492a
docs: 更新表单文档
llq0802 Jan 15, 2023
11fd87d
docs: 更新查询表单文档
llq0802 Jan 15, 2023
f8ce6b4
docs: 更新查询表单文档
llq0802 Jan 15, 2023
1032b1f
docs: 更新步骤表单文档
llq0802 Jan 15, 2023
4e31a9d
docs: 更新步骤表单文档
llq0802 Jan 15, 2023
eaa050d
docs: 更新步骤表单文档
llq0802 Jan 15, 2023
fb6aada
fix: 修复步骤条组件的bug
llq0802 Jan 16, 2023
7408476
docs: 更新步骤表单文档
llq0802 Jan 16, 2023
33728dd
fix: 修复步骤条组件的bug
llq0802 Jan 16, 2023
95ad994
docs: 更新文档
llq0802 Jan 16, 2023
54b0493
fix: 修复上传图片组件不能重置bug
llq0802 Jan 17, 2023
b3cd39c
docs: 更新LFormItem文档
llq0802 Jan 17, 2023
9a9590b
docs: 更新LFormItem文档
llq0802 Jan 18, 2023
4ad13e4
docs: 更新LFormItem文档
llq0802 Jan 18, 2023
91276e2
docs: 更新LFormItemNumber文档
llq0802 Jan 18, 2023
61a3a65
perf: 修改合并LFormItme子组件的props的方法
llq0802 Jan 19, 2023
cad52c3
perf: 优化上传头像组件
llq0802 Jan 19, 2023
fc0dad2
docs: 更新LFormItemPassword文档
llq0802 Jan 19, 2023
96927ea
docs: 更新LFormItemTextArea文档
llq0802 Jan 19, 2023
43ed0ec
docs: 更新LFormItemCaptcha文档
llq0802 Jan 19, 2023
f71fa67
docs: 更新LFormItemAutoComplete文档
llq0802 Jan 19, 2023
d196394
fix: 修复LFormItemSelect的bug
llq0802 Jan 19, 2023
128f48a
fix: 修复LFormItemTreeSelect的bug
llq0802 Jan 19, 2023
ea0a717
fix: 修复LForm禁用不生效
llq0802 Jan 19, 2023
76baab2
docs: 更新单选框文档
llq0802 Jan 19, 2023
2e5cae8
fix: 修复部分组件依赖异步自动请求bug
llq0802 Jan 20, 2023
506ced9
docs: 更新LFormItemCascader文档
llq0802 Jan 20, 2023
de30fd0
docs: 更新LFormItemCascader文档
llq0802 Jan 20, 2023
8223045
docs: 更新LFormItemCascader文档
llq0802 Jan 20, 2023
0c33d67
docs: 更新日期组件文档
llq0802 Jan 26, 2023
f715033
docs: 更新时间组件文档
llq0802 Jan 26, 2023
52fc958
docs: 更新上传组件文档
llq0802 Jan 26, 2023
f0b6461
docs: 更新抽屉组件文档
llq0802 Jan 26, 2023
943c2f1
docs: 更新抽屉组件文档
llq0802 Jan 27, 2023
abe95e0
docs: 更新抽屉组件文档
llq0802 Jan 27, 2023
e70c4d5
docs: 更新高级表格组件文档
llq0802 Jan 27, 2023
f2d840a
docs: 更新高级表格组件文档
llq0802 Jan 27, 2023
bde8c0b
docs: 更新高级表格组件文档
llq0802 Jan 27, 2023
6d2da9f
Merge pull request #16 from llq0802/dev
llq0802 Jan 27, 2023
20908bf
docs: 更新高级表格组件文档
llq0802 Jan 27, 2023
e003df6
docs: 更新高级表格组件文档
llq0802 Jan 27, 2023
85d1bad
perf: 优化导出包
llq0802 Jan 28, 2023
7e7e2d2
perf: 优化导出包
llq0802 Jan 28, 2023
537da19
perf: 优化导出包
llq0802 Jan 28, 2023
0bc8ea9
perf: 优化导出包
llq0802 Jan 28, 2023
e168d51
perf: 优化导出包
llq0802 Jan 28, 2023
5e8932c
feat: 新增预览器
llq0802 Jan 29, 2023
8a6b02a
feat: 新增预览器
llq0802 Jan 29, 2023
bb52256
perf: 优化上传组件
llq0802 Jan 29, 2023
c21b686
perf: 优化上传组件
llq0802 Jan 29, 2023
b7ee19f
feat: 新增上传图片裁剪功能
llq0802 Jan 29, 2023
e668e7f
fix: 修改文件预览器的图片代码
llq0802 Jan 29, 2023
08e4cbb
fix: 修改文件预览器的图片代码
llq0802 Jan 29, 2023
715f152
docs: 组件文档
llq0802 Jan 29, 2023
3bd6568
docs: 组件文档
llq0802 Jan 29, 2023
4797187
docs: 组件文档
llq0802 Jan 29, 2023
10eec75
docs: 组件文档
llq0802 Jan 29, 2023
78749cb
docs: 组件文档
llq0802 Jan 29, 2023
debf309
fix: 修复表格loading问题
llq0802 Jan 30, 2023
1323fb7
docs: 更新组件文档
llq0802 Jan 30, 2023
36964f4
docs: 更新组件文档
llq0802 Jan 30, 2023
898d535
docs: 更新组件文档
llq0802 Jan 31, 2023
439c729
fix: 修复表格重置的bug
llq0802 Feb 1, 2023
4780cc9
fix: 修复弹窗表单与抽屉表单重置的bug
llq0802 Feb 1, 2023
508f1b1
docs: 更新组件文档
llq0802 Feb 1, 2023
fc5f869
fix: 修复步骤表单的重置
llq0802 Feb 1, 2023
e11d584
docs: 更新组件文档
llq0802 Feb 2, 2023
23d4d3b
docs: 更新组件文档
llq0802 Feb 3, 2023
289655f
docs: 更新组件文档
llq0802 Feb 8, 2023
d536bbd
docs: 更新组件文档
llq0802 Feb 13, 2023
f5854b9
release: 发布内部测试版本
llq0802 Feb 13, 2023
f07a512
release: 发布内部测试版本
llq0802 Feb 13, 2023
7054893
release: 发布内部测试版本
llq0802 Feb 13, 2023
1838be4
docs: 更新组件文档
llq0802 Feb 13, 2023
afc65d8
Merge pull request #19 from llq0802/dev
llq0802 Feb 13, 2023
7cad013
perf: 优化打包
llq0802 Feb 15, 2023
47baff2
perf: 优化打包
llq0802 Feb 15, 2023
f0e45a3
perf: 优化打包
llq0802 Feb 15, 2023
54a1de9
Merge pull request #20 from llq0802/dev
llq0802 Feb 15, 2023
2d2ee53
perf: 优化打包
llq0802 Feb 16, 2023
8718923
feat: 新增LTypeit组件
Feb 16, 2023
7280cd6
fix: 合并
Feb 16, 2023
31116fd
fix: bug
Feb 16, 2023
5161650
feat: 新增打字机
llq0802 Feb 16, 2023
4eaccf7
feat: 新增打字机
llq0802 Feb 16, 2023
c5f706f
fix: 解决打字机兼容问题
llq0802 Feb 16, 2023
38e3334
fix: 解决打字机兼容问题
llq0802 Feb 16, 2023
33ee23e
fix: 解决打字机兼容问题
llq0802 Feb 16, 2023
b1624d7
fix: 打字机bug
Feb 16, 2023
7ede5a4
fix: 登录bug
Feb 16, 2023
e822b35
feat: 新增全屏抽屉演示
llq0802 Feb 17, 2023
62ed960
feat: 新增全屏抽屉演示
llq0802 Feb 17, 2023
b698fb6
fix: 解决头像上传组件默认值bug
llq0802 Feb 17, 2023
7f722d5
docs: 更新hooks文档
llq0802 Feb 17, 2023
784d5d8
docs: 更新hooks文档
llq0802 Feb 17, 2023
d7a2908
docs: 更新hooks文档
llq0802 Feb 17, 2023
9212431
perf: 优化上传组件逻辑
llq0802 Feb 18, 2023
31bc227
fix: 修复输入框验证问题
llq0802 Feb 18, 2023
053d47a
docs: 更新组件文档
llq0802 Feb 18, 2023
7137b41
fix: 修复水印组件bug
llq0802 Feb 18, 2023
7af708d
docs: 更新组件文档
llq0802 Feb 18, 2023
7bd14d0
perf: 优化打包配置
llq0802 Feb 20, 2023
32198a7
perf: 优化表格组件代码
llq0802 Feb 22, 2023
8db3e2a
fix: 修复numberRoll已知bug
Feb 23, 2023
ce5c16f
perf: 优化表格组件代码
llq0802 Feb 23, 2023
2b94155
perf: 优化表格组件代码
llq0802 Feb 23, 2023
4d97979
perf: 优化上传组件代码
llq0802 Feb 23, 2023
7688e0c
perf: 优化上传组件代码
llq0802 Feb 23, 2023
1f0a4b2
perf: 优化上传组件代码
llq0802 Feb 23, 2023
f5d05e0
perf: 优化上传组件代码
llq0802 Feb 23, 2023
5316122
perf: 优化上传组件代码
llq0802 Feb 24, 2023
d66d09e
Merge pull request #21 from llq0802/dev
llq0802 Feb 24, 2023
9ca1fcb
fix: 修复颜色选择组件bug
llq0802 Feb 24, 2023
a78dbb4
perf: 优化组件代码
llq0802 Feb 24, 2023
0e721ca
perf: 优化组件代码
llq0802 Feb 24, 2023
6779734
fix: 修复查询表单不能隐藏的问题
llq0802 Feb 24, 2023
08bffa4
fix: 修复Typeit已知bug,完善文档
Feb 26, 2023
4d70046
perf: 优化组件代码
llq0802 Feb 26, 2023
f380241
perf: 优化组件代码
llq0802 Feb 26, 2023
4b3df62
perf: 优化组件代码
llq0802 Mar 1, 2023
b7a9736
fix: 修复导出问题
llq0802 Mar 2, 2023
9249285
fix: 修复导出问题
llq0802 Mar 3, 2023
f11f3eb
fix: 修复部分组件类名
llq0802 Mar 4, 2023
74fe72a
fix: 修复部分组件类名
llq0802 Mar 6, 2023
79c5c29
fix: 修复部分组件类名
llq0802 Mar 7, 2023
786c9fa
fix: 弹窗表单拖动bug
llq0802 Mar 7, 2023
3625b49
fix: 弹窗表单拖动bug
llq0802 Mar 14, 2023
ae1a19c
Merge pull request #22 from llq0802/dev
llq0802 Mar 14, 2023
7bebbd3
fix: 🐛高级输入框修改
llq0802 Dec 22, 2024
88f5ced
fix: 🐛高级输入框修改
llq0802 Dec 22, 2024
1aa85a1
perf: ⚡️删除 lock 文件
llq0802 Dec 22, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
9 changes: 9 additions & 0 deletions .dumi/tmp-production/core/EmptyRoute.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// @ts-nocheck
// This file is generated by Umi automatically
// DO NOT CHANGE IT MANUALLY!
import React from 'react';
import { Outlet, useOutletContext } from 'umi';
export default function EmptyRoute() {
const context = useOutletContext();
return <Outlet context={context} />;
}
16 changes: 16 additions & 0 deletions .dumi/tmp-production/core/defineApp.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// @ts-nocheck
// This file is generated by Umi automatically
// DO NOT CHANGE IT MANUALLY!
interface IDefaultRuntimeConfig {
onRouteChange?: (props: { routes: any, clientRoutes: any, location: any, action: any, isFirst: boolean }) => void;
patchRoutes?: (props: { routes: any }) => void;
patchClientRoutes?: (props: { routes: any }) => void;
render?: (oldRender: () => void) => void;
rootContainer?: (lastRootContainer: JSX.Element, args?: any) => void;
[key: string]: any;
}
export type RuntimeConfig = IDefaultRuntimeConfig

export function defineApp(config: RuntimeConfig): RuntimeConfig {
return config;
}
11 changes: 11 additions & 0 deletions .dumi/tmp-production/core/exportStaticRuntimePlugin.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// @ts-nocheck
// This file is generated by Umi automatically
// DO NOT CHANGE IT MANUALLY!
export function modifyClientRenderOpts(memo: any) {
const { history, hydrate } = memo;

return {
...memo,
hydrate: hydrate && ![].includes(history.location.pathname),
};
}
10 changes: 10 additions & 0 deletions .dumi/tmp-production/core/helmet.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// @ts-nocheck
// This file is generated by Umi automatically
// DO NOT CHANGE IT MANUALLY!
import React from 'react';
import { HelmetProvider } from 'D:/MyWeb/KaiYuan/lighting-design-v2/node_modules/@umijs/renderer-react';
import { context } from './helmetContext';

export const innerProvider = (container) => {
return React.createElement(HelmetProvider, { context }, container);
}
4 changes: 4 additions & 0 deletions .dumi/tmp-production/core/helmetContext.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// @ts-nocheck
// This file is generated by Umi automatically
// DO NOT CHANGE IT MANUALLY!
export const context = {};
66 changes: 66 additions & 0 deletions .dumi/tmp-production/core/history.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
// @ts-nocheck
// This file is generated by Umi automatically
// DO NOT CHANGE IT MANUALLY!
import { createHashHistory, createMemoryHistory, createBrowserHistory } from 'D:/MyWeb/KaiYuan/lighting-design-v2/node_modules/@umijs/renderer-react';
import type { UmiHistory } from './historyIntelli';

let history: UmiHistory;
let basename: string = '/';
export function createHistory(opts: any) {
let h;
if (opts.type === 'hash') {
h = createHashHistory();
} else if (opts.type === 'memory') {
h = createMemoryHistory(opts);
} else {
h = createBrowserHistory();
}
if (opts.basename) {
basename = opts.basename;
}


history = {
...h,
push(to, state) {
h.push(patchTo(to, h), state);
},
replace(to, state) {
h.replace(patchTo(to, h), state);
},
get location() {
return h.location;
},
get action() {
return h.action;
}
}

return h;
}

// Patch `to` to support basename
// Refs:
// https://github.com/remix-run/history/blob/3e9dab4/packages/history/index.ts#L484
// https://github.com/remix-run/history/blob/dev/docs/api-reference.md#to
function patchTo(to: any, h: History) {
if (typeof to === 'string') {
return `${stripLastSlash(basename)}${to}`;
} else if (typeof to === 'object') {

const currentPathname = h.location.pathname;

return {
...to,
pathname: to.pathname? `${stripLastSlash(basename)}${to.pathname}` : currentPathname,
};
} else {
throw new Error(`Unexpected to: ${to}`);
}
}

function stripLastSlash(path) {
return path.slice(-1) === '/' ? path.slice(0, -1) : path;
}

export { history };
132 changes: 132 additions & 0 deletions .dumi/tmp-production/core/historyIntelli.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,132 @@
// @ts-nocheck
// This file is generated by Umi automatically
// DO NOT CHANGE IT MANUALLY!
import { getRoutes } from './route'
import type { History } from 'D:/MyWeb/KaiYuan/lighting-design-v2/node_modules/@umijs/renderer-react'

type Routes = Awaited<ReturnType<typeof getRoutes>>['routes']
type AllRoute = Routes[keyof Routes]
type IsRoot<T extends any> = 'parentId' extends keyof T ? false : true

// show `/` in not `layout / wrapper` only
type GetAllRouteWithoutLayout<Item extends AllRoute> = Item extends any
? 'isWrapper' extends keyof Item
? never
: 'isLayout' extends keyof Item
? never
: Item
: never
type AllRouteWithoutLayout = GetAllRouteWithoutLayout<AllRoute>
type IndexRoutePathname = '/' extends AllRouteWithoutLayout['path']
? '/'
: never

type GetChildrens<T extends any> = T extends any
? IsRoot<T> extends true
? never
: T
: never
type Childrens = GetChildrens<AllRoute>
type Root = Exclude<AllRoute, Childrens>
type AllIds = AllRoute['id']

type GetChildrensByParentId<
Id extends AllIds,
Item = AllRoute
> = Item extends any
? 'parentId' extends keyof Item
? Item['parentId'] extends Id
? Item
: never
: never
: never

type RouteObject<
Id extends AllIds,
Item = GetChildrensByParentId<Id>
> = IsNever<Item> extends true
? ''
: Item extends AllRoute
? {
[Key in Item['path'] as TrimSlash<Key>]: UnionMerge<
RouteObject<Item['id']>
>
}
: never

type GetRootRouteObject<Item extends Root> = Item extends Root
? {
[K in Item['path'] as TrimSlash<K>]: UnionMerge<RouteObject<Item['id']>>
}
: never
type MergedResult = UnionMerge<GetRootRouteObject<Root>>

// --- patch history types ---

type HistoryTo = Parameters<History['push']>['0']
type HistoryPath = Exclude<HistoryTo, string>

type UmiPathname = Path<MergedResult> | (string & {})
interface UmiPath extends HistoryPath {
pathname: UmiPathname
}
type UmiTo = UmiPathname | UmiPath

type UmiPush = (to: UmiTo, state?: any) => void
type UmiReplace = (to: UmiTo, state?: any) => void


export interface UmiHistory extends History {
push: UmiPush
replace: UmiReplace
}

// --- type utils ---
type TrimLeftSlash<T extends string> = T extends `/${infer R}`
? TrimLeftSlash<R>
: T
type TrimRightSlash<T extends string> = T extends `${infer R}/`
? TrimRightSlash<R>
: T
type TrimSlash<T extends string> = TrimLeftSlash<TrimRightSlash<T>>

type IsNever<T> = [T] extends [never] ? true : false
type IsEqual<A, B> = (<G>() => G extends A ? 1 : 2) extends <G>() => G extends B
? 1
: 2
? true
: false

type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends (
k: infer I
) => void
? I
: never
type UnionMerge<U> = UnionToIntersection<U> extends infer O
? { [K in keyof O]: O[K] }
: never

type ExcludeEmptyKey<T> = IsEqual<T, ''> extends true ? never : T

type PathConcat<
TKey extends string,
TValue,
N = TrimSlash<TKey>
> = TValue extends string
? ExcludeEmptyKey<N>
:
| ExcludeEmptyKey<N>
| `${N & string}${IsNever<ExcludeEmptyKey<N>> extends true
? ''
: '/'}${UnionPath<TValue>}`

type UnionPath<T> = {
[K in keyof T]-?: PathConcat<K & string, T[K]>
}[keyof T]

type MakeSureLeftSlash<T> = T extends any
? `/${TrimRightSlash<T & string>}`
: never

// exclude `/*`, because it always at the top of the IDE tip list
type Path<T, K = UnionPath<T>> = Exclude<MakeSureLeftSlash<K>, '/*'> | IndexRoutePathname
60 changes: 60 additions & 0 deletions .dumi/tmp-production/core/plugin.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
// @ts-nocheck
// This file is generated by Umi automatically
// DO NOT CHANGE IT MANUALLY!
import * as Plugin_0 from '@@/core/exportStaticRuntimePlugin.ts';
import * as Plugin_1 from '@@/core/helmet.ts';
import * as Plugin_2 from '@@/dumi/meta/runtime.ts';
import * as Plugin_3 from '@@/dumi/locales/runtime.tsx';
import * as Plugin_4 from '@@/dumi/exportStaticRuntimePlugin.ts';
import { PluginManager } from 'umi';

function __defaultExport (obj) {
if (obj.default) {
return typeof obj.default === 'function' ? obj.default() : obj.default
}
return obj;
}
export function getPlugins() {
return [
{
apply: Plugin_0,
path: process.env.NODE_ENV === 'production' ? void 0 : '@@/core/exportStaticRuntimePlugin.ts',
},
{
apply: Plugin_1,
path: process.env.NODE_ENV === 'production' ? void 0 : '@@/core/helmet.ts',
},
{
apply: Plugin_2,
path: process.env.NODE_ENV === 'production' ? void 0 : '@@/dumi/meta/runtime.ts',
},
{
apply: Plugin_3,
path: process.env.NODE_ENV === 'production' ? void 0 : '@@/dumi/locales/runtime.tsx',
},
{
apply: Plugin_4,
path: process.env.NODE_ENV === 'production' ? void 0 : '@@/dumi/exportStaticRuntimePlugin.ts',
},
];
}

export function getValidKeys() {
return ['patchRoutes','patchClientRoutes','modifyContextOpts','modifyClientRenderOpts','rootContainer','innerProvider','i18nProvider','accessProvider','dataflowProvider','outerProvider','render','onRouteChange','modifyCodeSandboxData','modifyStackBlitzData',];
}

let pluginManager = null;

export function createPluginManager() {
pluginManager = PluginManager.create({
plugins: getPlugins(),
validKeys: getValidKeys(),
});


return pluginManager;
}

export function getPluginManager() {
return pluginManager;
}
Loading
Loading