@techui/scifi 0.0.5-alpha.1 → 0.0.7-alpha.5
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 +36 -0
- package/TECHUI.md +38 -40
- package/UPDATE.md +78 -6
- package/core/core.d.ts +6 -2
- package/core/core.js +61 -11
- package/core/core_bg.wasm +0 -0
- package/core/core_bg.wasm.d.ts +3 -1
- package/dist/index.css +1 -1
- package/dist/index.js +1 -1
- package/index.js +79 -13
- package/package.json +8 -8
- package/dist/modules/echartsTheme.js +0 -1
- package/dist/modules/tuiEcharts.js +0 -1
- package/dist/modules/tuiEchartsMap.js +0 -1
package/README.md
CHANGED
|
@@ -41,6 +41,24 @@ The library includes **TuiAdaptive**, an incredibly powerful adaptive component
|
|
|
41
41
|
|
|
42
42
|
> **Proudly the best adaptive/responsive component available on the market today!**
|
|
43
43
|
|
|
44
|
+
### 🖥️ TechUI Component Library
|
|
45
|
+
|
|
46
|
+
- **@techui/prime:** Closed-source **Paid**
|
|
47
|
+
- **@techui/admin:** Closed-source **Free**
|
|
48
|
+
- **@techui/base:** Closed-source **Free**
|
|
49
|
+
- **@techui/scifi:** Closed-source **Free**
|
|
50
|
+
|
|
51
|
+
### 📦 Dependencies
|
|
52
|
+
|
|
53
|
+
This library depends on the following TechUI ecosystem packages:
|
|
54
|
+
|
|
55
|
+
- `@techui/colors` - Color system
|
|
56
|
+
- `@techui/lessmixins` - LESS mixins
|
|
57
|
+
- `@techui/locales` - Internationalization
|
|
58
|
+
- `@techui/themes` - Theme system
|
|
59
|
+
- `@techui/libs` - Utility libraries
|
|
60
|
+
- `@techui/utils` - Utility functions
|
|
61
|
+
|
|
44
62
|
### 📚 Documentation
|
|
45
63
|
|
|
46
64
|
Visit [https://techui.net](https://techui.net) for full documentation and examples.
|
|
@@ -95,6 +113,24 @@ UNLICENSED
|
|
|
95
113
|
|
|
96
114
|
> **可以自豪地说,它是现在市面上最好用的自适应/适配组件!**
|
|
97
115
|
|
|
116
|
+
### 🖥️ TechUI组件库
|
|
117
|
+
|
|
118
|
+
- **@techui/prime:** 闭源 **付费**
|
|
119
|
+
- **@techui/admin:** 闭源 **免费**
|
|
120
|
+
- **@techui/base:** 闭源 **免费**
|
|
121
|
+
- **@techui/scifi:** 闭源 **免费**
|
|
122
|
+
|
|
123
|
+
### 📦 依赖项
|
|
124
|
+
|
|
125
|
+
该库依赖以下 TechUI 生态系统包:
|
|
126
|
+
|
|
127
|
+
- `@techui/colors` - 色彩系统
|
|
128
|
+
- `@techui/lessmixins` - LESS 混入
|
|
129
|
+
- `@techui/locales` - 国际化
|
|
130
|
+
- `@techui/themes` - 主题系统
|
|
131
|
+
- `@techui/libs` - 工具库
|
|
132
|
+
- `@techui/utils` - 工具函数
|
|
133
|
+
|
|
98
134
|
### 📚 文档
|
|
99
135
|
|
|
100
136
|
访问 [https://techui.net](https://techui.net) 查看完整文档和示例。
|
package/TECHUI.md
CHANGED
|
@@ -4,44 +4,43 @@
|
|
|
4
4
|
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
|
|
8
7
|
## English
|
|
9
8
|
|
|
10
9
|
### Development Background
|
|
11
10
|
|
|
12
|
-
TechUI was independently developed by **ayin**. All components before 2023 were manually coded. From
|
|
11
|
+
TechUI was independently developed by **ayin**. All components before 2023 were manually coded. From 2023 to 2025, AI-assisted development was introduced for new components, significantly improving development efficiency.
|
|
13
12
|
|
|
14
|
-
|
|
13
|
+
-----
|
|
15
14
|
|
|
16
15
|
### Version Evolution
|
|
17
16
|
|
|
18
|
-
#### Ver 0.1 - Genesis (
|
|
17
|
+
#### Ver 0.1 - Genesis (2019)
|
|
19
18
|
|
|
20
19
|
The project originated from a friend's commission to develop a data visualization product with a sci-fi tech aesthetic. The first version was built upon **@jiaminghi/data-view**.
|
|
21
20
|
|
|
22
|
-
#### Ver 1.0 - Deep Customization
|
|
21
|
+
#### Ver 1.0 - Deep Customization (Around 2020)
|
|
23
22
|
|
|
24
23
|
Through practical usage, valuable insights were gained, leading to deep iteration of the data-view component library. Major achievements during this phase include:
|
|
25
24
|
|
|
26
|
-
- In-depth study of data-view's SVG calculation mechanisms
|
|
27
|
-
- Independent development of multiple dynamic SVG components
|
|
28
|
-
- Implementation of pure front-end licensing functionality using encrypted JavaScript
|
|
25
|
+
- In-depth study of data-view's SVG calculation mechanisms
|
|
26
|
+
- Independent development of multiple dynamic SVG components
|
|
27
|
+
- Implementation of pure front-end licensing functionality using encrypted JavaScript
|
|
29
28
|
|
|
30
|
-
#### Ver 2.0 - Technical Breakthrough
|
|
29
|
+
#### Ver 2.0 - Technical Breakthrough (Around 2021)
|
|
31
30
|
|
|
32
31
|
To enhance the security of the licensing system, the **Rust** language was learned and mastered, resulting in the creation of a **WebAssembly (WASM)** component for license encryption/decryption and specialized computations.
|
|
33
32
|
|
|
34
|
-
#### Ver 3.x - Challenging Exploration
|
|
33
|
+
#### Ver 3.x - Challenging Exploration (Around 2022-2023)
|
|
35
34
|
|
|
36
35
|
During the iteration from 2.0, due to less formal development processes and numerous breaking changes, the version number rapidly jumped to 3.x. The market response to this version fell short of expectations. A post-mortem analysis revealed the following key issues:
|
|
37
36
|
|
|
38
|
-
1.
|
|
39
|
-
2.
|
|
40
|
-
3.
|
|
37
|
+
1. **Unreasonable Pricing Strategy** - Prices were too high and lacked market competitiveness
|
|
38
|
+
2. **Poor User Experience** - As a first-time component library release, the syntax design and usage patterns had many inconveniences
|
|
39
|
+
3. **Overly Restrictive Licensing** - Harsh and unreasonable restrictions (such as annual license renewal requirements)
|
|
41
40
|
|
|
42
|
-
|
|
41
|
+
-----
|
|
43
42
|
|
|
44
|
-
### Ver 3.0 - A Fresh Start
|
|
43
|
+
### Ver 3.0 - A Fresh Start (Since 2023)
|
|
45
44
|
|
|
46
45
|
#### Reconstruction Philosophy
|
|
47
46
|
|
|
@@ -53,66 +52,65 @@ The new version starts from **0.0.1**, with all releases before **1.0.0** consid
|
|
|
53
52
|
|
|
54
53
|
**Component Library Reconstruction**
|
|
55
54
|
|
|
56
|
-
1.
|
|
57
|
-
2.
|
|
58
|
-
3.
|
|
55
|
+
1. Developed numerous new components to form the **@techui/base** foundational component library
|
|
56
|
+
2. Built the **@techui/admin** admin dashboard component library based on the workbench and newly developed base components
|
|
57
|
+
3. Upgraded all techui-vue2 components to **Vue 3**, refined props configurations, and created the **@techui/scifi** sci-fi themed component library
|
|
59
58
|
|
|
60
59
|
**Core Module Optimization**
|
|
61
60
|
|
|
62
|
-
4.
|
|
63
|
-
5.
|
|
64
|
-
6.
|
|
65
|
-
7.
|
|
61
|
+
4. Refactored the **techui-core (WASM)** module, adding lightweight licensing functionality and perfecting the heavy licensing mechanism
|
|
62
|
+
5. Fully upgraded the **adaptivePanel** component to **TuiAdaptive**, adding view control modes, pass-through containers, and other features
|
|
63
|
+
6. Upgraded the **panel3D** component to **Tui3DPanel**, adding thickness parameters and more configuration options
|
|
64
|
+
7. Removed the monitoring and debugging tools from techui-vue2, refactoring them into the **tuiPanicAlert** component
|
|
66
65
|
|
|
67
66
|
**Infrastructure Enhancement**
|
|
68
67
|
|
|
69
|
-
8.
|
|
70
|
-
9.
|
|
68
|
+
8. Redesigned the global theme system, developed a custom multilingual functionality, transformed the global vector background, and added global audio notifications
|
|
69
|
+
9. Customized and repackaged commonly used third-party tools into the **@techui/libs** library to meet customization needs and avoid risks from breaking changes in third-party components
|
|
71
70
|
10. Consolidated self-developed utility functions to build the **@techui/utils** toolkit
|
|
72
71
|
11. Completely removed dependencies on data-view component library functions and methods (retained 9 classic dv-border-box components with renaming), fully adopting self-developed utility functions
|
|
73
72
|
12. Leveraged AI to develop multiple data display components, such as scrolling tables, scrolling progress bars, etc.
|
|
74
73
|
|
|
75
|
-
|
|
74
|
+
-----
|
|
76
75
|
|
|
77
76
|
### Acknowledgments
|
|
78
77
|
|
|
79
|
-
- chroma.js
|
|
80
|
-
- Floating UI
|
|
78
|
+
- chroma.js
|
|
79
|
+
- Floating UI
|
|
81
80
|
|
|
82
81
|
**Special Thanks**
|
|
83
82
|
|
|
84
|
-
- @jiaminghi/data-view
|
|
83
|
+
- @jiaminghi/data-view
|
|
85
84
|
|
|
86
|
-
|
|
85
|
+
-----
|
|
87
86
|
|
|
88
87
|
### Author
|
|
89
88
|
|
|
90
|
-
- **aYin**
|
|
91
|
-
- Email:
|
|
92
|
-
- WeChat: jay1986cn
|
|
89
|
+
- **aYin**
|
|
90
|
+
- Email: [ayin86cn@gmail.com](mailto:ayin86cn@gmail.com)
|
|
91
|
+
- WeChat: jay1986cn
|
|
93
92
|
|
|
94
93
|
### Homepage
|
|
95
94
|
|
|
96
|
-
|
|
95
|
+
[https://techui.net](https://techui.net)
|
|
97
96
|
|
|
98
97
|
---
|
|
99
98
|
|
|
100
|
-
|
|
101
99
|
## 中文
|
|
102
100
|
|
|
103
101
|
### 开发背景
|
|
104
102
|
|
|
105
|
-
TechUI 工程由 **ayin** 独立完成开发。2023 年之前的所有组件均采用手工编写,
|
|
103
|
+
TechUI 工程由 **ayin** 独立完成开发。2023 年之前的所有组件均采用手工编写,2023-2025 年期间,借助 AI 辅助开发新组件,显著提升了开发效率。
|
|
106
104
|
|
|
107
105
|
---
|
|
108
106
|
|
|
109
107
|
### 版本演进
|
|
110
108
|
|
|
111
|
-
#### Ver 0.1 - 初创阶段(
|
|
109
|
+
#### Ver 0.1 - 初创阶段(2019年)
|
|
112
110
|
|
|
113
111
|
项目起源于好友委托,需要开发一款具有科技科幻风格的数据可视化产品。基于 **@jiaminghi/data-view** 完成了首个版本的开发。
|
|
114
112
|
|
|
115
|
-
#### Ver 1.0 - 深度定制
|
|
113
|
+
#### Ver 1.0 - 深度定制 (2020年前后)
|
|
116
114
|
|
|
117
115
|
在实际使用中积累了大量实践经验,对 data-view 组件库进行了深度迭代。这一阶段的主要成果包括:
|
|
118
116
|
|
|
@@ -120,11 +118,11 @@ TechUI 工程由 **ayin** 独立完成开发。2023 年之前的所有组件均
|
|
|
120
118
|
- 自主研发了多款动态 SVG 组件
|
|
121
119
|
- 使用加密 JS 实现了纯前端许可证功能
|
|
122
120
|
|
|
123
|
-
#### Ver 2.0 - 技术突破
|
|
121
|
+
#### Ver 2.0 - 技术突破 (2021年前后)
|
|
124
122
|
|
|
125
123
|
为了强化许可证功能的安全性,学习并掌握了 **Rust** 语言,构建了 **WebAssembly 组件(WASM)**,用于许可证的加解密和特殊计算。
|
|
126
124
|
|
|
127
|
-
#### Ver 3.x - 曲折探索
|
|
125
|
+
#### Ver 3.x - 曲折探索 (2022-2023年前后)
|
|
128
126
|
|
|
129
127
|
在 2.0 的迭代过程中,由于开发流程不够规范,伴随着大量破坏性更新,版本号快速跃升至 3.x。这一版本的市场推广未达预期,经过复盘总结出以下主要问题:
|
|
130
128
|
|
|
@@ -134,7 +132,7 @@ TechUI 工程由 **ayin** 独立完成开发。2023 年之前的所有组件均
|
|
|
134
132
|
|
|
135
133
|
---
|
|
136
134
|
|
|
137
|
-
### Ver 3.0 - 全新起点
|
|
135
|
+
### Ver 3.0 - 全新起点 (2023年至今)
|
|
138
136
|
|
|
139
137
|
#### 重构理念
|
|
140
138
|
|
package/UPDATE.md
CHANGED
|
@@ -6,7 +6,41 @@
|
|
|
6
6
|
|
|
7
7
|
## English
|
|
8
8
|
|
|
9
|
-
###
|
|
9
|
+
### Update Notes
|
|
10
|
+
|
|
11
|
+
- The English documentation was translated using translation software or AI alignment, so some terms may be inappropriate or expressions unclear.
|
|
12
|
+
- To date, every TechUI release has synchronously packaged and released all four component libraries. Consequently, the update log may list components no longer present in the current library—this is normal. The current Update documentation pertains to the entire TechUI project, not just the current component library.
|
|
13
|
+
|
|
14
|
+
### v0.0.7 (2026-01-25)
|
|
15
|
+
|
|
16
|
+
- The `adaptiveConfig/portletCounter` in the global service has been moved to `globalState/portletCounter`.
|
|
17
|
+
- The `$aPortletCounter` exposed in the global service has been changed to `$gPortletCounter`, and all elements within the component have also been modified accordingly.
|
|
18
|
+
- `TuiSelect` and `TuiToggle` variable definitions have been iterated, and the CSS code has been modified.
|
|
19
|
+
- The `Echarts` wrapper component and theme-related components have been iterated, and the `echarts` object is passed as a parameter to the TechUI initialization parameters.
|
|
20
|
+
- The `TechUIScifi` component library has been added with a large number of basic components.
|
|
21
|
+
- `ScifiTabs` has been developed, using the `ScifiButton` component for tab switching.
|
|
22
|
+
- The `core` has been updated, the license logic has been iterated, the version verification has been modified to only use the major version number, and the domain binding logic has been iterated.
|
|
23
|
+
- Many `Scifi components` and `TuiButton` variants have had aliases added.
|
|
24
|
+
- Add a state type to `ScifiButton`, such as `Primary`, `Danger`, etc. Add the `activeIsPrimary` parameter to display the `Primary` appearance when the button is active.
|
|
25
|
+
- `i18n` adds an additional `args` object parameter. By passing the `args` parameter, you can retrieve data and simultaneously perform replacement operations on the template string.
|
|
26
|
+
- Fixed a style pollution issue caused by nested `Scifi` components.
|
|
27
|
+
- Fixed the issue of `TuiAdaptive` penetrating the container to adapt the timing; added a `pointEvent` parameter to set the main interactive container.
|
|
28
|
+
|
|
29
|
+
### v0.0.6 (2025-11-23)
|
|
30
|
+
|
|
31
|
+
- Added a preview.html file to techui/colors for previewing, copying, and matching colors.
|
|
32
|
+
- Iterated on the appearance of the digitalFlip and digitalRolling components.
|
|
33
|
+
- Added a parameter to rollingTabs to differentiate the change trigger method, resolving incorrect transition animations caused by the 'Close All' and 'Close Other' tabs in the workbench.
|
|
34
|
+
- Upgraded techui/icons to 1.0.3, updated the preview.html file for the icon library, and simplified long names in the carbon icon library.
|
|
35
|
+
- Upgraded techui/colors to 1.0.2, added a preview.html file for quick start and viewing preview color schemes.
|
|
36
|
+
- teshui/lessminins upgraded to version 0.0.6, flexCenter changed to centerFlex, and all elements' calls to less mixins flexCenter were replaced with centerFlex.
|
|
37
|
+
- TuiAdaptive component: Due to multiple root containers, it was unable to bind class, style, and other attributes. This issue was fixed by using v-bind="$attrs", and the is-resizing state was corrected.
|
|
38
|
+
- TuiGrid component: The tui-cess-xx-xx class tag was added to tui-grid-item to distinguish the row and column markers of the current container. Custom class names can also be added to the current container for easier use.
|
|
39
|
+
- TuiRollingTable and TuiRollingProgress added the ability to highlight the top three indices with the parameter showRankings. TuiRollingProgress added the hasIndex parameter to disable the display of serial numbers.
|
|
40
|
+
- TuiRolling's indicator display was enhanced; previously, the transparency was too low and it was not very noticeable.
|
|
41
|
+
- Modified tStr.rdm for generating UIDs for all components to the genUid function.
|
|
42
|
+
|
|
43
|
+
### v0.0.5 (2025-11-15)
|
|
10
44
|
|
|
11
45
|
- Theme iteration updates
|
|
12
46
|
- Adjusted and streamlined color schemes in the theme
|
|
@@ -30,11 +64,13 @@
|
|
|
30
64
|
- Removed fullbox from less mixin, replaced with native inset
|
|
31
65
|
- Upgraded icon library to version 1.0.2
|
|
32
66
|
- Added global transition state to startViewTransition, disabling all element transitions during animation switching
|
|
67
|
+
- Added new digitalFlip component, deeply iterated digitalRolling component
|
|
33
68
|
- Renamed routerGo to routerTransition, added query parameter
|
|
34
69
|
- Modified updateRouteQuery method: default changed from replace to push for route back navigation, can be controlled via parameter to use replace or push, added getRouteQuery method
|
|
35
70
|
- Grid component: added custom cell className
|
|
71
|
+
- Fixed bug where poptip doesn't hide when triggered after sidebar navigation is collapsed
|
|
36
72
|
|
|
37
|
-
### v0.0.4 (2025-10-
|
|
73
|
+
### v0.0.4 (2025-10-25)
|
|
38
74
|
|
|
39
75
|
- Theme and i18n refactored to support dynamic imports for on-demand loading
|
|
40
76
|
- Added new TuiGrid component
|
|
@@ -47,7 +83,7 @@
|
|
|
47
83
|
- TuiPopInfo component: added titleIcon Props to support adding icons to titles
|
|
48
84
|
- Improved checkbox and radio components: now supports displaying both custom icons and default icons simultaneously
|
|
49
85
|
|
|
50
|
-
### v0.0.2 (2025-10-
|
|
86
|
+
### v0.0.2 (2025-10-12)
|
|
51
87
|
|
|
52
88
|
- Removed all SVG icons embedded in CSS
|
|
53
89
|
- Updated component icons to use @techui/icons default icon library
|
|
@@ -60,7 +96,41 @@
|
|
|
60
96
|
|
|
61
97
|
## 中文
|
|
62
98
|
|
|
63
|
-
###
|
|
99
|
+
### 更新说明
|
|
100
|
+
|
|
101
|
+
- 英文部分的文档,采用了翻译软件或者AI对齐进行翻译,所以可能存在部分用词不当或者表达模糊的情况。
|
|
102
|
+
- 截止到目前为止,TechUI的每次发布,均会对当前四个组件库进行同步打包发布。并且更新记录中,可能会出现当前组件库中不存在的组件,属于正常现象。因为当前Update文档是针对整个TechUI工程,而非争对当前的组件库。
|
|
103
|
+
|
|
104
|
+
### v0.0.7 (2026-01-25)
|
|
105
|
+
|
|
106
|
+
- 全局服务中的 `adaptiveConfig/portletCounter` 改变位置到 `globalState/portletCounter`。
|
|
107
|
+
- 全局服务中暴露的 `$aPortletCounter` 改为 `$gPortletCounter`,组件内部所有元素也进行修改。
|
|
108
|
+
- `TuiSelect、TuiToggle`叠代var定义,修改CSS代码。
|
|
109
|
+
- `Echarts`壳组件和主题相关组件叠代,`echarts`对象作为参数传入TechUI初始化参数。
|
|
110
|
+
- `TechUIScifi` 组件库,添加大量的基础组件。
|
|
111
|
+
- 开发 `ScifiTabs`,通过调用 `ScifiButton` 组件进行标签页切换。
|
|
112
|
+
- `core` 核心更新,许可证逻辑叠代,版主验证修改为仅主版本号,叠代域名绑定的逻辑。
|
|
113
|
+
- 大量 `Scifi组件` 和 `TuiButton`变体添加别名。
|
|
114
|
+
- `ScifiButton` 添加状态类型,如`Primary`、`Danger`等。添加 `activeIsPrimary` 参数,激活状态显示 `Primary` 外观
|
|
115
|
+
- `i18n` 新增额外的 `args` 对象参数。通过传递 `args` 参数,您可以检索数据并同时在模板字符串中执行替换操作。
|
|
116
|
+
- 修正 `Scifi` 组件嵌套导致的样式污染的问题。
|
|
117
|
+
- 修正 `TuiAdaptive` 穿透容器自适应时序的问题,新增 `pointEvent` 参数用于设定交互主容器
|
|
118
|
+
|
|
119
|
+
### v0.0.6 (2025-11-23)
|
|
120
|
+
|
|
121
|
+
- techui/colors 添加preview.html文件可以对颜色进行预览复制与匹配
|
|
122
|
+
- digitalFlip,digitalRolling组件进行外观方面的迭代
|
|
123
|
+
- rollingTabs,添加一个参数,区分change触发方式,解决工作台tabs标签'关闭全部'和'关闭其他'时导致的错误转场动画。
|
|
124
|
+
- techui/icons升级为1.0.3,图标库的preview.html更新,carbon图标库中的长名称进行精简。
|
|
125
|
+
- techui/colors升级为1.0.2,新增preview.html文件,用于快速入门和查看预览配色表。
|
|
126
|
+
- teshui/lessminins升级为0.0.6,flexCenter改为centerFlex,批量替换所有元素的调用的less mixins flexCenter为centerFlex;
|
|
127
|
+
- TuiAdaptive组件,因为内部有多个根容器,导致无法绑定class,style等属性,通过v-bind="$attrs"修复此问题,修正is-resizing状态。
|
|
128
|
+
- TuiGrid组件,在tui-grid-item上,添加tui-cess-xx-xx的class标记用于区分当前容器的行列标记,并且可以给当前容器添加自定义Class名,使之更易用。
|
|
129
|
+
- TuiRollingTable,TuiRollingProgress添加突出前三index的功能,参数为showRankings,TuiRollingProgress添加hasIndex参数,可以关闭序号显示
|
|
130
|
+
- TuiRolling的indicator强化显示,此前透明度太低,较为不明显。
|
|
131
|
+
- 修改所有组件生成uid的tStr.rdm为genUid函数。
|
|
132
|
+
|
|
133
|
+
### v0.0.5 (2025-11-15)
|
|
64
134
|
|
|
65
135
|
- 主题迭代
|
|
66
136
|
- 对主题中的配色进行调整和删减
|
|
@@ -84,11 +154,13 @@
|
|
|
84
154
|
- lessmixin移除fullbox,改为原生inset
|
|
85
155
|
- 图标库升级到1.0.2
|
|
86
156
|
- startViewTransition添加全局过渡状态,切换动画时禁止所有元素过渡动画
|
|
157
|
+
- 新增digitalFlip组件,对digitalRolling组件进行深度迭代
|
|
87
158
|
- routerGo改为routerTransition,添加query参数
|
|
88
159
|
- updateRouteQuery方法,replace默认改为push,可以进行路由回退,可以根据参数控制使用replace或者push,添加getRouteQuery方法
|
|
89
160
|
- grid组件,添加自定义单元格className
|
|
161
|
+
- 修正侧边导航折叠的时候,触发poptip后不隐藏的bug
|
|
90
162
|
|
|
91
|
-
### v0.0.4 (2025-10-
|
|
163
|
+
### v0.0.4 (2025-10-25)
|
|
92
164
|
|
|
93
165
|
- 主题和多语言改为动态导入,支持按需加载
|
|
94
166
|
- 新增 TuiGrid 组件
|
|
@@ -101,7 +173,7 @@
|
|
|
101
173
|
- TuiPopInfo组件,添加titleIcon Props,可以通过此属性给标题添加图标
|
|
102
174
|
- checkbox、radio迭代,prop传入图标和默认图标可同时显示
|
|
103
175
|
|
|
104
|
-
### v0.0.2 (2025-10-
|
|
176
|
+
### v0.0.2 (2025-10-12)
|
|
105
177
|
|
|
106
178
|
- 移除所有 CSS 中内置的 SVG 图标
|
|
107
179
|
- 组件中的图标更新为使用 @techui/icons 默认图标库
|
package/core/core.d.ts
CHANGED
|
@@ -106,6 +106,8 @@ export function scifiPanelDV8(width: number, height: number): string;
|
|
|
106
106
|
export function scifiPanelDV9(width: number, height: number): string;
|
|
107
107
|
export function rdmStr(length: number, has_digits: boolean): string;
|
|
108
108
|
export function md5Enc(input: string): string;
|
|
109
|
+
export function b64_rpl_proc(input: string, pad: number): string;
|
|
110
|
+
export function b64_rpl_revt(input: string, has_pad: boolean): string;
|
|
109
111
|
export function openEnc(plaintext: string, key_type: string): string;
|
|
110
112
|
export function openDec(ciphertext: string, key_type: string): string;
|
|
111
113
|
export function getEnv(): string;
|
|
@@ -118,7 +120,7 @@ export function coreInfo(input: any): any;
|
|
|
118
120
|
export function cidGen(input: string): string;
|
|
119
121
|
export function cidVaild(uid: string, classname: string): boolean;
|
|
120
122
|
export function floatInfo(): void;
|
|
121
|
-
export function techuiCoreInit(li_str
|
|
123
|
+
export function techuiCoreInit(li_str?: string | null, sub_str?: string | null, core_init_str?: string | null, keychain?: string | null): void;
|
|
122
124
|
|
|
123
125
|
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
|
124
126
|
|
|
@@ -229,6 +231,8 @@ export interface InitOutput {
|
|
|
229
231
|
readonly scifiPanelDV9: (a: number, b: number, c: number) => void;
|
|
230
232
|
readonly rdmStr: (a: number, b: number, c: number) => void;
|
|
231
233
|
readonly md5Enc: (a: number, b: number, c: number) => void;
|
|
234
|
+
readonly b64_rpl_proc: (a: number, b: number, c: number, d: number) => void;
|
|
235
|
+
readonly b64_rpl_revt: (a: number, b: number, c: number, d: number) => void;
|
|
232
236
|
readonly openEnc: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
233
237
|
readonly openDec: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
234
238
|
readonly getEnv: (a: number) => void;
|
|
@@ -241,7 +245,7 @@ export interface InitOutput {
|
|
|
241
245
|
readonly cidGen: (a: number, b: number, c: number) => void;
|
|
242
246
|
readonly cidVaild: (a: number, b: number, c: number, d: number) => number;
|
|
243
247
|
readonly floatInfo: () => void;
|
|
244
|
-
readonly techuiCoreInit: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
248
|
+
readonly techuiCoreInit: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
245
249
|
readonly svgPatTest: (a: number) => void;
|
|
246
250
|
readonly __wbindgen_export_0: (a: number) => void;
|
|
247
251
|
readonly __wbindgen_export_1: (a: number, b: number) => number;
|
package/core/core.js
CHANGED
|
@@ -2371,6 +2371,54 @@ export function md5Enc(input) {
|
|
|
2371
2371
|
}
|
|
2372
2372
|
}
|
|
2373
2373
|
|
|
2374
|
+
/**
|
|
2375
|
+
* @param {string} input
|
|
2376
|
+
* @param {number} pad
|
|
2377
|
+
* @returns {string}
|
|
2378
|
+
*/
|
|
2379
|
+
export function b64_rpl_proc(input, pad) {
|
|
2380
|
+
let deferred2_0;
|
|
2381
|
+
let deferred2_1;
|
|
2382
|
+
try {
|
|
2383
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2384
|
+
const ptr0 = passStringToWasm0(input, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
|
|
2385
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2386
|
+
wasm.b64_rpl_proc(retptr, ptr0, len0, pad);
|
|
2387
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2388
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2389
|
+
deferred2_0 = r0;
|
|
2390
|
+
deferred2_1 = r1;
|
|
2391
|
+
return getStringFromWasm0(r0, r1);
|
|
2392
|
+
} finally {
|
|
2393
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
2394
|
+
wasm.__wbindgen_export_4(deferred2_0, deferred2_1, 1);
|
|
2395
|
+
}
|
|
2396
|
+
}
|
|
2397
|
+
|
|
2398
|
+
/**
|
|
2399
|
+
* @param {string} input
|
|
2400
|
+
* @param {boolean} has_pad
|
|
2401
|
+
* @returns {string}
|
|
2402
|
+
*/
|
|
2403
|
+
export function b64_rpl_revt(input, has_pad) {
|
|
2404
|
+
let deferred2_0;
|
|
2405
|
+
let deferred2_1;
|
|
2406
|
+
try {
|
|
2407
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2408
|
+
const ptr0 = passStringToWasm0(input, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
|
|
2409
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2410
|
+
wasm.b64_rpl_revt(retptr, ptr0, len0, has_pad);
|
|
2411
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2412
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2413
|
+
deferred2_0 = r0;
|
|
2414
|
+
deferred2_1 = r1;
|
|
2415
|
+
return getStringFromWasm0(r0, r1);
|
|
2416
|
+
} finally {
|
|
2417
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
2418
|
+
wasm.__wbindgen_export_4(deferred2_0, deferred2_1, 1);
|
|
2419
|
+
}
|
|
2420
|
+
}
|
|
2421
|
+
|
|
2374
2422
|
/**
|
|
2375
2423
|
* @param {string} plaintext
|
|
2376
2424
|
* @param {string} key_type
|
|
@@ -2582,19 +2630,21 @@ export function floatInfo() {
|
|
|
2582
2630
|
}
|
|
2583
2631
|
|
|
2584
2632
|
/**
|
|
2585
|
-
* @param {string | null
|
|
2586
|
-
* @param {string | null
|
|
2587
|
-
* @param {string | null
|
|
2588
|
-
* @param {
|
|
2633
|
+
* @param {string | null} [li_str]
|
|
2634
|
+
* @param {string | null} [sub_str]
|
|
2635
|
+
* @param {string | null} [core_init_str]
|
|
2636
|
+
* @param {string | null} [keychain]
|
|
2589
2637
|
*/
|
|
2590
|
-
export function techuiCoreInit(li_str, sub_str, core_init_str,
|
|
2638
|
+
export function techuiCoreInit(li_str, sub_str, core_init_str, keychain) {
|
|
2591
2639
|
var ptr0 = isLikeNone(li_str) ? 0 : passStringToWasm0(li_str, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
|
|
2592
2640
|
var len0 = WASM_VECTOR_LEN;
|
|
2593
2641
|
var ptr1 = isLikeNone(sub_str) ? 0 : passStringToWasm0(sub_str, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
|
|
2594
2642
|
var len1 = WASM_VECTOR_LEN;
|
|
2595
2643
|
var ptr2 = isLikeNone(core_init_str) ? 0 : passStringToWasm0(core_init_str, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
|
|
2596
2644
|
var len2 = WASM_VECTOR_LEN;
|
|
2597
|
-
|
|
2645
|
+
var ptr3 = isLikeNone(keychain) ? 0 : passStringToWasm0(keychain, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
|
|
2646
|
+
var len3 = WASM_VECTOR_LEN;
|
|
2647
|
+
wasm.techuiCoreInit(ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
|
|
2598
2648
|
}
|
|
2599
2649
|
|
|
2600
2650
|
function __wbg_adapter_38(arg0, arg1) {
|
|
@@ -2690,10 +2740,6 @@ function __wbg_get_imports() {
|
|
|
2690
2740
|
const ret = Object.entries(getObject(arg0));
|
|
2691
2741
|
return addHeapObject(ret);
|
|
2692
2742
|
};
|
|
2693
|
-
imports.wbg.__wbg_eval_e10dc02e9547f640 = function() { return handleError(function (arg0, arg1) {
|
|
2694
|
-
const ret = eval(getStringFromWasm0(arg0, arg1));
|
|
2695
|
-
return addHeapObject(ret);
|
|
2696
|
-
}, arguments) };
|
|
2697
2743
|
imports.wbg.__wbg_firstChild_b0603462b5172539 = function(arg0) {
|
|
2698
2744
|
const ret = getObject(arg0).firstChild;
|
|
2699
2745
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
@@ -2709,6 +2755,10 @@ function __wbg_get_imports() {
|
|
|
2709
2755
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
2710
2756
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
2711
2757
|
}, arguments) };
|
|
2758
|
+
imports.wbg.__wbg_getOwnPropertyDescriptor_5e8ddf002549cc1f = function() { return handleError(function (arg0, arg1) {
|
|
2759
|
+
const ret = Reflect.getOwnPropertyDescriptor(getObject(arg0), getObject(arg1));
|
|
2760
|
+
return addHeapObject(ret);
|
|
2761
|
+
}, arguments) };
|
|
2712
2762
|
imports.wbg.__wbg_getRandomValues_e2aed5b1dc8645ee = function() { return handleError(function (arg0, arg1) {
|
|
2713
2763
|
getObject(arg0).getRandomValues(getObject(arg1));
|
|
2714
2764
|
}, arguments) };
|
|
@@ -2959,7 +3009,7 @@ function __wbg_get_imports() {
|
|
|
2959
3009
|
const ret = false;
|
|
2960
3010
|
return ret;
|
|
2961
3011
|
};
|
|
2962
|
-
imports.wbg.
|
|
3012
|
+
imports.wbg.__wbindgen_closure_wrapper151 = function(arg0, arg1, arg2) {
|
|
2963
3013
|
const ret = makeMutClosure(arg0, arg1, 5, __wbg_adapter_38);
|
|
2964
3014
|
return addHeapObject(ret);
|
|
2965
3015
|
};
|
package/core/core_bg.wasm
CHANGED
|
Binary file
|
package/core/core_bg.wasm.d.ts
CHANGED
|
@@ -106,6 +106,8 @@ export const scifiPanelDV8: (a: number, b: number, c: number) => void;
|
|
|
106
106
|
export const scifiPanelDV9: (a: number, b: number, c: number) => void;
|
|
107
107
|
export const rdmStr: (a: number, b: number, c: number) => void;
|
|
108
108
|
export const md5Enc: (a: number, b: number, c: number) => void;
|
|
109
|
+
export const b64_rpl_proc: (a: number, b: number, c: number, d: number) => void;
|
|
110
|
+
export const b64_rpl_revt: (a: number, b: number, c: number, d: number) => void;
|
|
109
111
|
export const openEnc: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
110
112
|
export const openDec: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
111
113
|
export const getEnv: (a: number) => void;
|
|
@@ -118,7 +120,7 @@ export const coreInfo: (a: number) => number;
|
|
|
118
120
|
export const cidGen: (a: number, b: number, c: number) => void;
|
|
119
121
|
export const cidVaild: (a: number, b: number, c: number, d: number) => number;
|
|
120
122
|
export const floatInfo: () => void;
|
|
121
|
-
export const techuiCoreInit: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
123
|
+
export const techuiCoreInit: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
122
124
|
export const svgPatTest: (a: number) => void;
|
|
123
125
|
export const __wbindgen_export_0: (a: number) => void;
|
|
124
126
|
export const __wbindgen_export_1: (a: number, b: number) => number;
|