@yqg/simple 1.0.6 → 1.0.7-beta.1
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/dist/cjs/component/i18n/index.js +53 -0
- package/dist/cjs/component/i18n/index.js.map +1 -0
- package/dist/cjs/component/i18n/zh-cn.js +215 -0
- package/dist/cjs/component/i18n/zh-cn.js.map +1 -0
- package/dist/cjs/index.js +11 -0
- package/dist/component/i18n/index.js +51 -0
- package/dist/component/i18n/index.js.map +1 -0
- package/dist/component/i18n/zh-cn.js +213 -0
- package/dist/component/i18n/zh-cn.js.map +1 -0
- package/dist/index-22f1744c.js +2 -0
- package/dist/index-22f1744c.js.map +1 -0
- package/dist/index-5250e96d.js +2 -0
- package/dist/index-5250e96d.js.map +1 -0
- package/dist/index-7ddf0c12.js +2 -0
- package/dist/index-7ddf0c12.js.map +1 -0
- package/dist/index-c0ee9a41.js +2 -0
- package/dist/index-c0ee9a41.js.map +1 -0
- package/dist/index.esm.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +192 -54
- package/src/component/yqg-simple-form/component/field-table-form.vue +13 -2
- package/src/types/component/i18n/index.d.ts +14 -0
- package/src/types/component/i18n/zh-cn.d.ts +32 -0
- package/src/types/constant/common-fields.d.ts +66 -0
- package/src/types/constant/def-type.d.ts +33 -0
- package/src/types/constant/fields.d.ts +13 -0
- package/src/types/constant/index.d.ts +9 -0
- package/src/types/constant/table.d.ts +20 -0
- package/src/types/filter/count-to-time.d.ts +8 -0
- package/src/types/filter/date.d.ts +8 -0
- package/src/types/filter/index.d.ts +14 -0
- package/src/types/filter/mardown-to-html.d.ts +8 -0
- package/src/types/filter/number-with-commas.d.ts +8 -0
- package/src/types/filter/percent.d.ts +12 -0
- package/src/types/filter/phone-mask.d.ts +8 -0
- package/src/types/mixin/collect-slots.d.ts +17 -0
- package/src/types/mixin/gen-text.d.ts +40 -0
- package/src/types/mixin/index.d.ts +4 -0
- package/src/types/mixin/static-props.d.ts +22 -0
- package/src/types/store/module/timezone.d.ts +21 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* YQG Simple - Filter Type Definitions
|
|
3
|
+
* @description 过滤器类型声明文件
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import type { PluginObject } from 'vue';
|
|
7
|
+
|
|
8
|
+
interface FilterPlugin extends PluginObject<any> {
|
|
9
|
+
install(Vue: any): void;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
declare const filters: FilterPlugin;
|
|
13
|
+
|
|
14
|
+
export default filters;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* YQG Simple - Number With Commas Filter Type Definitions
|
|
3
|
+
* @description 数字千分位过滤器类型声明文件
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
export declare const numberWithCommas: (x: any) => string;
|
|
7
|
+
export declare const numberWithCommasFixed2: (x: any) => any;
|
|
8
|
+
export declare const numberWithCommasFixed4: (x: any) => any;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* YQG Simple - Percent Filter Type Definitions
|
|
3
|
+
* @description 百分比过滤器类型声明文件
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
interface PercentFilterParams {
|
|
7
|
+
digit?: number;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
declare const percent: (input: any, filterParams?: PercentFilterParams) => string;
|
|
11
|
+
|
|
12
|
+
export default percent;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* YQG Simple - Collect Slots Mixin Type Definitions
|
|
3
|
+
* @description 收集插槽混入类型声明文件
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { ComponentOptions } from 'vue';
|
|
7
|
+
|
|
8
|
+
interface CollectSlotsMixin {
|
|
9
|
+
methods: {
|
|
10
|
+
genSlots(params: { def: any; parentIndex: any }): Record<string, Function>;
|
|
11
|
+
renderSlot(name: string, props: any, fallback?: any): any;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
declare const collectSlots: ComponentOptions<any> & CollectSlotsMixin;
|
|
16
|
+
|
|
17
|
+
export default collectSlots;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* YQG Simple - Gen Text Mixin Type Definitions
|
|
3
|
+
* @description 生成文本混入类型声明文件
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { ComponentOptions } from 'vue';
|
|
7
|
+
|
|
8
|
+
interface GenTextMixin {
|
|
9
|
+
inject: {
|
|
10
|
+
timestamp?: {
|
|
11
|
+
default: undefined;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
computed: {
|
|
15
|
+
timezone: any;
|
|
16
|
+
isTimestamp: boolean;
|
|
17
|
+
};
|
|
18
|
+
methods: {
|
|
19
|
+
genText(params: {
|
|
20
|
+
fallback?: any;
|
|
21
|
+
enumType?: any;
|
|
22
|
+
mapKey?: string;
|
|
23
|
+
value: any;
|
|
24
|
+
def: {
|
|
25
|
+
type?: string;
|
|
26
|
+
seperator?: string;
|
|
27
|
+
enumOptions?: any;
|
|
28
|
+
timezone?: any;
|
|
29
|
+
filter?: string;
|
|
30
|
+
nameKey?: string;
|
|
31
|
+
idKey?: string;
|
|
32
|
+
filterParams?: any;
|
|
33
|
+
};
|
|
34
|
+
}): any;
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
declare const genText: ComponentOptions<any> & GenTextMixin;
|
|
39
|
+
|
|
40
|
+
export default genText;
|
|
@@ -5,6 +5,10 @@
|
|
|
5
5
|
|
|
6
6
|
import { ComponentOptions } from 'vue'
|
|
7
7
|
|
|
8
|
+
export { default as collectSlots } from './collect-slots.d.ts'
|
|
9
|
+
export { default as genText } from './gen-text.d.ts'
|
|
10
|
+
export { default as staticProps } from './static-props.d.ts'
|
|
11
|
+
|
|
8
12
|
/**
|
|
9
13
|
* 表格混入
|
|
10
14
|
* 提供表格相关的通用方法和数据
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* YQG Simple - Static Props Mixin Type Definitions
|
|
3
|
+
* @description 静态属性混入类型声明文件
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { ComponentOptions } from 'vue';
|
|
7
|
+
|
|
8
|
+
interface StaticPropsMixin {
|
|
9
|
+
props: {
|
|
10
|
+
dynamicProps: {
|
|
11
|
+
type: Boolean;
|
|
12
|
+
default: boolean;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
methods: {
|
|
16
|
+
getCompProps(params: any): any;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
declare const staticProps: ComponentOptions<any> & StaticPropsMixin;
|
|
21
|
+
|
|
22
|
+
export default staticProps;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* YQG Simple - Timezone Store Module Type Definitions
|
|
3
|
+
* @description 时区store模块类型声明文件
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
interface TimezoneState {
|
|
7
|
+
current: string;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
interface TimezoneGetters {
|
|
11
|
+
timezone: (state: TimezoneState) => string;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
interface TimezoneModule {
|
|
15
|
+
state: TimezoneState;
|
|
16
|
+
getters: TimezoneGetters;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
declare const timezoneModule: TimezoneModule;
|
|
20
|
+
|
|
21
|
+
export default timezoneModule;
|