@yqg/simple 1.0.1-beta.1.0 → 1.0.1-beta.1.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yqg/simple",
3
- "version": "1.0.1-beta.1.0",
3
+ "version": "1.0.1-beta.1.2",
4
4
  "description": "YQG Simple Component Library - Vue 2 + Ant Design Vue 组件库",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",
@@ -63,9 +63,33 @@
63
63
  "types": "./src/types/util/swim-lane.d.ts"
64
64
  },
65
65
  "./constant": "./src/constant/index.js",
66
+ "./constant/fields": {
67
+ "import": "./src/constant/fields.ts",
68
+ "require": "./src/constant/fields.ts",
69
+ "types": "./dist/constant/fields.d.ts"
70
+ },
71
+ "./constant/common-fields": {
72
+ "import": "./src/constant/common-fields.ts",
73
+ "require": "./src/constant/common-fields.ts",
74
+ "types": "./dist/constant/common-fields.d.ts"
75
+ },
76
+ "./constant/table": {
77
+ "import": "./src/constant/table.ts",
78
+ "require": "./src/constant/table.ts",
79
+ "types": "./dist/constant/table.d.ts"
80
+ },
66
81
  "./constant/*": "./src/constant/*",
67
- "./mixin": "./src/mixin/index.js",
82
+ "./mixin": {
83
+ "import": "./src/mixin/index.js",
84
+ "require": "./src/mixin/index.js",
85
+ "types": "./src/types/mixin/index.d.ts"
86
+ },
68
87
  "./mixin/*": "./src/mixin/*",
88
+ "./src/mixin": {
89
+ "import": "./src/mixin/index.js",
90
+ "require": "./src/mixin/index.js",
91
+ "types": "./src/types/mixin/index.d.ts"
92
+ },
69
93
  "./filter": "./src/filter/index.js",
70
94
  "./filter/*": "./src/filter/*",
71
95
  "./style": "./dist/style.css",
@@ -10,11 +10,11 @@ import moment from 'moment';
10
10
  import type { Def } from '@yqg/type';
11
11
 
12
12
  import DefValue from '../component/def-value.vue';
13
- import { dateTimeDef } from './common-fields.ts';
13
+ import { dateTimeDef } from './common-fields';
14
14
 
15
- import type { CommonObject } from './common-fields.ts';
15
+ import type { CommonObject } from './common-fields';
16
16
 
17
- export * from './common-fields.ts';
17
+ export * from './common-fields';
18
18
 
19
19
  export const extendsDefValue = (options: CommonObject): CommonObject => ({
20
20
  extends: DefValue,
@@ -0,0 +1,60 @@
1
+ /**
2
+ * YQG Simple - Mixin Type Definitions
3
+ * @description 混入类型声明文件
4
+ */
5
+
6
+ import { ComponentOptions } from 'vue'
7
+
8
+ /**
9
+ * 表格混入
10
+ * 提供表格相关的通用方法和数据
11
+ */
12
+ export const table: ComponentOptions<any>
13
+
14
+ /**
15
+ * 表格选择混入工厂函数
16
+ * @param TableOptions - 表格选项
17
+ * @param options - 行选择配置
18
+ */
19
+ export function tableSelection(
20
+ TableOptions?: any,
21
+ options?: {
22
+ disabled?: (record: any) => boolean
23
+ title?: string
24
+ width?: number
25
+ [key: string]: any
26
+ }
27
+ ): ComponentOptions<any>
28
+
29
+ /**
30
+ * 模态框混入
31
+ * 提供 close 和 dismiss 方法的 props
32
+ */
33
+ export const modal: ComponentOptions<any>
34
+
35
+ /**
36
+ * 水印混入
37
+ * 提供水印功能
38
+ */
39
+ export const watermark: ComponentOptions<any>
40
+
41
+ /**
42
+ * 通用表格混入
43
+ */
44
+ export const commonTable: ComponentOptions<any>
45
+
46
+ /**
47
+ * 客户端表格混入
48
+ */
49
+ export const clientTable: ComponentOptions<any>
50
+
51
+ /**
52
+ * 枚举类型混入
53
+ */
54
+ export const enumType: ComponentOptions<any>
55
+
56
+ /**
57
+ * 卡片列表混入
58
+ */
59
+ export const cardList: ComponentOptions<any>
60
+