@infly/ui 1.0.28 → 1.0.30

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/index.d.ts ADDED
@@ -0,0 +1,53 @@
1
+ /**
2
+ * @infly/ui TypeScript 类型声明
3
+ *
4
+ * Vue 2 运营端组件库类型声明。
5
+ * 所有组件已全局注册,支持 Vue.use() 安装。
6
+ */
7
+
8
+ import Vue from "vue";
9
+
10
+ declare module "@infly/ui" {
11
+ interface InflyComponent {
12
+ name: string;
13
+ install(vue: typeof Vue): void;
14
+ }
15
+
16
+ /** 配置化列表页(表单 + 表格 + 分页一体) */
17
+ export const InflyList: InflyComponent;
18
+
19
+ /** 配置化表单(搜索栏 / 弹窗表单) */
20
+ export const InflyForm: InflyComponent;
21
+
22
+ /** 弹窗容器 */
23
+ export const InflyDialog: InflyComponent;
24
+
25
+ /** 输入框(支持 textarea / autocomplete) */
26
+ export const InflyInput: InflyComponent;
27
+
28
+ /** 复选框组件 */
29
+ export const InflyCheckBox: InflyComponent;
30
+
31
+ /** 业务开关组件 */
32
+ export const BusinessSwitch: InflyComponent;
33
+
34
+ /** 业务标签组件 */
35
+ export const BusinessTag: InflyComponent;
36
+
37
+ /** 机构选择器 */
38
+ export const InstitutionSelect: InflyComponent;
39
+
40
+ const _default: {
41
+ install(vue: typeof Vue): void;
42
+ InflyList: typeof InflyList;
43
+ InflyForm: typeof InflyForm;
44
+ InflyDialog: typeof InflyDialog;
45
+ InflyInput: typeof InflyInput;
46
+ InflyCheckBox: typeof InflyCheckBox;
47
+ BusinessSwitch: typeof BusinessSwitch;
48
+ BusinessTag: typeof BusinessTag;
49
+ InstitutionSelect: typeof InstitutionSelect;
50
+ };
51
+
52
+ export default _default;
53
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infly/ui",
3
- "version": "1.0.28",
3
+ "version": "1.0.30",
4
4
  "description": "Infly 公共 UI 组件库(Vue 2)",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -12,6 +12,7 @@
12
12
  },
13
13
  "files": [
14
14
  "index.js",
15
+ "index.d.ts",
15
16
  "src/",
16
17
  "styles/",
17
18
  "scripts/install-comp.js",
@@ -39,13 +40,15 @@
39
40
  "author": "Kahal",
40
41
  "license": "ISC",
41
42
  "devDependencies": {
43
+ "@vitejs/plugin-vue2": "2.3.4",
42
44
  "@vue/test-utils": "^1.3.6",
43
45
  "vite": "^7.3.6",
44
46
  "vitest": "^4.1.10",
45
47
  "vue-template-compiler": "2.7.16",
46
48
  "eslint": "^9.0.0",
47
49
  "@eslint/js": "^9.0.0",
48
- "globals": "^15.0.0"
50
+ "globals": "^15.0.0",
51
+ "@vitest/coverage-v8": "4.1.10"
49
52
  },
50
53
  "scripts": {
51
54
  "test": "vitest run",