meixioacomponent 2.0.59 → 2.0.60
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/lib/components/base/baseGuide/GuideControl.d.ts +44 -44
- package/lib/components/base/baseGuide/GuideControl.js +238 -238
- package/lib/components/dynamicmount/DynamicMountClass.d.ts +15 -15
- package/lib/components/dynamicmount/DynamicMountClass.js +65 -65
- package/lib/components/dynamicmount/index.d.ts +4 -4
- package/lib/components/dynamicmount/index.js +71 -71
- package/lib/components/index.d.ts +110 -111
- package/lib/components/index.d.ts.map +1 -1
- package/lib/components/index.js +244 -250
- package/lib/config/LinkViewClass.d.ts +56 -56
- package/lib/config/LinkViewClass.js +154 -154
- package/lib/config/ProTableLocalConfigManage/ProTableLocalConfigManage.d.ts +12 -12
- package/lib/config/ProTableLocalConfigManage/ProTableLocalConfigManage.js +68 -68
- package/lib/config/componentConfig.d.ts +3 -3
- package/lib/config/componentConfig.js +71 -71
- package/lib/config/uploadRequest.d.ts +2 -2
- package/lib/config/uploadRequest.js +87 -87
- package/lib/config/use/UseGuide.d.ts +8 -8
- package/lib/config/use/UseGuide.js +33 -33
- package/lib/config/use/UseImg.d.ts +9 -9
- package/lib/config/use/UseImg.js +45 -45
- package/lib/config/use/UseUpload.d.ts +12 -12
- package/lib/config/use/UseUpload.js +79 -79
- package/lib/config/use/UseViewVideo.d.ts +11 -11
- package/lib/config/use/UseViewVideo.js +41 -41
- package/lib/config/use/UseWait.d.ts +4 -4
- package/lib/config/use/UseWait.js +21 -21
- package/lib/config/use/WaitPlugin.d.ts +25 -25
- package/lib/config/use/WaitPlugin.js +106 -106
- package/lib/config/use/useConfirm/UseConfirm.d.ts +6 -6
- package/lib/config/use/useConfirm/UseConfirm.js +33 -33
- package/lib/config/use/useConfirm/UseNotify.d.ts +6 -6
- package/lib/config/use/useConfirm/UseNotify.js +18 -18
- package/lib/config/use/useConfirm/executeConfirm.d.ts +2 -2
- package/lib/config/use/useConfirm/executeConfirm.js +11 -11
- package/lib/config/use/useConfirm/registerConfirm.d.ts +4 -4
- package/lib/config/use/useConfirm/registerConfirm.js +8 -8
- package/lib/meixioacomponent.common.js +23649 -24907
- package/lib/meixioacomponent.umd.js +23678 -24936
- package/lib/meixioacomponent.umd.min.js +3 -3
- package/lib/plugin/PluginByReferenceByOss.d.ts +1 -1
- package/lib/plugin/PluginByReferenceByOss.js +16 -16
- package/lib/style/tdesignStyle.less +21 -21
- package/lib/typings/type.d.ts +405 -405
- package/lib/typings/type.js +2 -2
- package/lib/useType/useType.d.ts +27 -27
- package/lib/useType/useType.js +89 -89
- package/package.json +2 -2
- package/packages/components/base/baseAnchor/baseAnchor.vue +168 -168
- package/packages/components/base/baseAnchor/baseAnchorV2.vue +165 -165
- package/packages/components/base/baseArea/api.js +6 -6
- package/packages/components/base/baseArea/area.js +14979 -14979
- package/packages/components/base/baseArea/areaConfig.js +7 -7
- package/packages/components/base/baseArea/baseArea.vue +590 -590
- package/packages/components/base/baseArea/baseAreaV2.vue +144 -144
- package/packages/components/base/baseArea/baseAreaV21.vue +156 -156
- package/packages/components/base/baseArea/index.js +6 -6
- package/packages/components/base/baseAreaByMultiple/baseAreaByMultiple.vue +70 -70
- package/packages/components/base/baseAreaByMultiple/index.js +7 -7
- package/packages/components/base/baseButton/baseButton.vue +85 -85
- package/packages/components/base/baseButton/index.js +6 -6
- package/packages/components/base/baseDrawer/index.vue +1 -1
- package/packages/components/base/baseInput/baseInput.vue +98 -98
- package/packages/components/base/baseSelect/baseSelect.vue +102 -102
- package/packages/components/base/baseSelect/index.js +6 -6
- package/packages/components/base/baseStoreSelect/index.vue +1 -1
- package/packages/components/base/baseTimeRangePicker/baseTimeRangePicker.vue +59 -59
- package/packages/components/base/baseTimeRangePicker/index.js +7 -7
- package/packages/components/base/baseToggle/toggle.vue +9 -8
- package/packages/components/base/tDateRangePicker/index.js +5 -5
- package/packages/components/base/tDateRangePicker/tDateRangePicker.vue +102 -111
- package/packages/components/dynamicmount/DynamicMountClass.js +64 -64
- package/packages/components/dynamicmount/index.js +69 -69
- package/packages/components/hooks/useHookByBaseArea.js +49 -49
- package/packages/components/hooks/useHookByGuide.js +46 -46
- package/packages/components/hooks/useHookByUpload.js +130 -130
- package/packages/components/index.js +241 -247
- package/packages/components/index.ts +5 -13
- package/packages/components/mixins/mixinsByBaseArea.js +53 -53
- package/packages/components/mixins/tableSectionMixins.js +0 -1
- package/packages/components/proPageTable/oa_pro_table.vue +1 -1
- package/packages/components/style/tdesignStyle.less +21 -21
- package/packages/config/LinkViewClass.js +152 -152
- package/packages/config/ProTableLocalConfigManage/ProTableLocalConfigManage.js +75 -75
- package/packages/config/ProTableLocalConfigManage/ProTableLocalConfigManage.ts +99 -99
- package/packages/config/componentConfig.js +68 -68
- package/packages/config/use/UseGuide.js +43 -43
- package/packages/config/use/UseImg.js +46 -46
- package/packages/config/use/UseUpload.js +79 -79
- package/packages/config/use/UseViewVideo.js +40 -40
- package/packages/config/use/UseWait.js +18 -18
- package/packages/config/use/WaitPlugin.js +106 -106
- package/packages/config/use/useConfirm/UseConfirm.js +31 -31
- package/packages/config/use/useConfirm/UseConfirm.ts +34 -34
- package/packages/config/use/useConfirm/UseNotify.js +16 -16
- package/packages/config/use/useConfirm/UseNotify.ts +18 -18
- package/packages/config/use/useConfirm/executeConfirm.js +8 -8
- package/packages/config/use/useConfirm/executeConfirm.ts +6 -6
- package/packages/config/use/useConfirm/registerConfirm.js +8 -8
- package/packages/config/use/useConfirm/registerConfirm.ts +7 -7
- package/packages/plugin/PluginByReferenceByOss.js +16 -16
- package/packages/plugin/PluginByReferenceByOss.ts +11 -11
- package/packages/typings/type.js +2 -2
- package/packages/useType/useType.js +90 -90
- package/packages/utils/utils.js +14 -1
- package/tsconfig.json +3 -3
- package/lib/config/TransferTDComponent.d.ts +0 -2
- package/lib/config/TransferTDComponent.d.ts.map +0 -1
- package/lib/config/TransferTDComponent.js +0 -31
- package/packages/components/base/tInput/index.js +0 -6
- package/packages/components/base/tInput/tInput.vue +0 -149
- package/packages/components/base/tInputNumber/index.js +0 -6
- package/packages/components/base/tInputNumber/tInputNumber.vue +0 -104
- package/packages/components/base/tSelect/index.js +0 -0
- package/packages/components/base/tSelect/tSelect.vue +0 -176
- package/packages/config/TransferTDComponent.js +0 -31
- package/packages/config/TransferTDComponent.ts +0 -23
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import {TypeByNotifyOptions, TypeByTheme} from "../../../typings/type";
|
|
2
|
-
import componentConfig from "../../componentConfig";
|
|
3
|
-
|
|
4
|
-
class UseNotify {
|
|
5
|
-
constructor() {
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
toMountedConfirm = (type: TypeByTheme, options: TypeByNotifyOptions) => {
|
|
10
|
-
componentConfig.Vue.prototype.$notify(type,{
|
|
11
|
-
title: options.title,
|
|
12
|
-
content: options.content,
|
|
13
|
-
duration: options.duration
|
|
14
|
-
})
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
|
|
1
|
+
import {TypeByNotifyOptions, TypeByTheme} from "../../../typings/type";
|
|
2
|
+
import componentConfig from "../../componentConfig";
|
|
3
|
+
|
|
4
|
+
class UseNotify {
|
|
5
|
+
constructor() {
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
toMountedConfirm = (type: TypeByTheme, options: TypeByNotifyOptions) => {
|
|
10
|
+
componentConfig.Vue.prototype.$notify(type,{
|
|
11
|
+
title: options.title,
|
|
12
|
+
content: options.content,
|
|
13
|
+
duration: options.duration
|
|
14
|
+
})
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
|
|
19
19
|
export default UseNotify;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
exports.__esModule = true;
|
|
3
|
-
exports.executeConfirm = void 0;
|
|
4
|
-
var UseConfirm_1 = require("./UseConfirm");
|
|
5
|
-
var executeConfirm = function (body, title, options) {
|
|
6
|
-
return new UseConfirm_1["default"]().toMountedConfirm(body, title, options);
|
|
7
|
-
};
|
|
8
|
-
exports.executeConfirm = executeConfirm;
|
|
1
|
+
"use strict";
|
|
2
|
+
exports.__esModule = true;
|
|
3
|
+
exports.executeConfirm = void 0;
|
|
4
|
+
var UseConfirm_1 = require("./UseConfirm");
|
|
5
|
+
var executeConfirm = function (body, title, options) {
|
|
6
|
+
return new UseConfirm_1["default"]().toMountedConfirm(body, title, options);
|
|
7
|
+
};
|
|
8
|
+
exports.executeConfirm = executeConfirm;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {TypeByConfirmOptions} from "../../../typings/type";
|
|
2
|
-
import UseConfirm from "./UseConfirm";
|
|
3
|
-
|
|
4
|
-
export const executeConfirm = (body: string, title: string, options: TypeByConfirmOptions) => {
|
|
5
|
-
return new UseConfirm().toMountedConfirm(body, title, options)
|
|
6
|
-
}
|
|
1
|
+
import {TypeByConfirmOptions} from "../../../typings/type";
|
|
2
|
+
import UseConfirm from "./UseConfirm";
|
|
3
|
+
|
|
4
|
+
export const executeConfirm = (body: string, title: string, options: TypeByConfirmOptions) => {
|
|
5
|
+
return new UseConfirm().toMountedConfirm(body, title, options)
|
|
6
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
exports.__esModule = true;
|
|
3
|
-
var executeConfirm_1 = require("./executeConfirm");
|
|
4
|
-
exports["default"] = {
|
|
5
|
-
install: function (Vue) {
|
|
6
|
-
Vue.prototype.$confirm = executeConfirm_1.executeConfirm;
|
|
7
|
-
}
|
|
8
|
-
};
|
|
1
|
+
"use strict";
|
|
2
|
+
exports.__esModule = true;
|
|
3
|
+
var executeConfirm_1 = require("./executeConfirm");
|
|
4
|
+
exports["default"] = {
|
|
5
|
+
install: function (Vue) {
|
|
6
|
+
Vue.prototype.$confirm = executeConfirm_1.executeConfirm;
|
|
7
|
+
}
|
|
8
|
+
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
import {executeConfirm} from "./executeConfirm";
|
|
3
|
-
|
|
4
|
-
export default {
|
|
5
|
-
install(Vue) {
|
|
6
|
-
Vue.prototype.$confirm = executeConfirm;
|
|
7
|
-
}
|
|
1
|
+
|
|
2
|
+
import {executeConfirm} from "./executeConfirm";
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
install(Vue) {
|
|
6
|
+
Vue.prototype.$confirm = executeConfirm;
|
|
7
|
+
}
|
|
8
8
|
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
exports.__esModule = true;
|
|
3
|
-
exports.PluginByReferenceByOss = void 0;
|
|
4
|
-
var PluginByReferenceByOss = function (Vue) {
|
|
5
|
-
var metaTag = document.querySelector('meta[name="referrer"][content="no-referrer"]');
|
|
6
|
-
if (metaTag) {
|
|
7
|
-
metaTag.remove();
|
|
8
|
-
}
|
|
9
|
-
// 创建 meta 元素
|
|
10
|
-
var metaTagByStrict = document.createElement('meta');
|
|
11
|
-
metaTagByStrict.name = 'referrer';
|
|
12
|
-
metaTagByStrict.content = 'strict-origin-when-cross-origin';
|
|
13
|
-
// 添加到 head
|
|
14
|
-
document.getElementsByTagName('head')[0].appendChild(metaTagByStrict);
|
|
15
|
-
};
|
|
16
|
-
exports.PluginByReferenceByOss = PluginByReferenceByOss;
|
|
1
|
+
"use strict";
|
|
2
|
+
exports.__esModule = true;
|
|
3
|
+
exports.PluginByReferenceByOss = void 0;
|
|
4
|
+
var PluginByReferenceByOss = function (Vue) {
|
|
5
|
+
var metaTag = document.querySelector('meta[name="referrer"][content="no-referrer"]');
|
|
6
|
+
if (metaTag) {
|
|
7
|
+
metaTag.remove();
|
|
8
|
+
}
|
|
9
|
+
// 创建 meta 元素
|
|
10
|
+
var metaTagByStrict = document.createElement('meta');
|
|
11
|
+
metaTagByStrict.name = 'referrer';
|
|
12
|
+
metaTagByStrict.content = 'strict-origin-when-cross-origin';
|
|
13
|
+
// 添加到 head
|
|
14
|
+
document.getElementsByTagName('head')[0].appendChild(metaTagByStrict);
|
|
15
|
+
};
|
|
16
|
+
exports.PluginByReferenceByOss = PluginByReferenceByOss;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export const PluginByReferenceByOss = (Vue) => {
|
|
2
|
-
const metaTag = document.querySelector('meta[name="referrer"][content="no-referrer"]');
|
|
3
|
-
if (metaTag) {
|
|
4
|
-
metaTag.remove();
|
|
5
|
-
}
|
|
6
|
-
// 创建 meta 元素
|
|
7
|
-
const metaTagByStrict = document.createElement('meta');
|
|
8
|
-
metaTagByStrict.name = 'referrer';
|
|
9
|
-
metaTagByStrict.content = 'strict-origin-when-cross-origin';
|
|
10
|
-
// 添加到 head
|
|
11
|
-
document.getElementsByTagName('head')[0].appendChild(metaTagByStrict);
|
|
1
|
+
export const PluginByReferenceByOss = (Vue) => {
|
|
2
|
+
const metaTag = document.querySelector('meta[name="referrer"][content="no-referrer"]');
|
|
3
|
+
if (metaTag) {
|
|
4
|
+
metaTag.remove();
|
|
5
|
+
}
|
|
6
|
+
// 创建 meta 元素
|
|
7
|
+
const metaTagByStrict = document.createElement('meta');
|
|
8
|
+
metaTagByStrict.name = 'referrer';
|
|
9
|
+
metaTagByStrict.content = 'strict-origin-when-cross-origin';
|
|
10
|
+
// 添加到 head
|
|
11
|
+
document.getElementsByTagName('head')[0].appendChild(metaTagByStrict);
|
|
12
12
|
}
|
package/packages/typings/type.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
exports.__esModule = true;
|
|
1
|
+
"use strict";
|
|
2
|
+
exports.__esModule = true;
|
|
@@ -1,90 +1,90 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
exports.__esModule = true;
|
|
3
|
-
exports.useProScreenParamsItem = exports.useFormItemParamsType = exports.useTableColumnParamsType = void 0;
|
|
4
|
-
/**
|
|
5
|
-
*
|
|
6
|
-
* @param paramsList
|
|
7
|
-
*
|
|
8
|
-
*/
|
|
9
|
-
var useTypeByProTableParams = function (paramsList) {
|
|
10
|
-
return paramsList;
|
|
11
|
-
};
|
|
12
|
-
//普通表格的单列的配置
|
|
13
|
-
var useTypeByPlainTableParams = function (paramsList) {
|
|
14
|
-
return paramsList;
|
|
15
|
-
};
|
|
16
|
-
// form表单的配置类型
|
|
17
|
-
//input 类型
|
|
18
|
-
var useTypeByInputFormItem = function (params) {
|
|
19
|
-
return params;
|
|
20
|
-
};
|
|
21
|
-
// textarea 类型
|
|
22
|
-
var useTypeTextareaFormItem = function (params) {
|
|
23
|
-
return params;
|
|
24
|
-
};
|
|
25
|
-
// number 类型
|
|
26
|
-
var useTypeNumberFormItem = function (params) {
|
|
27
|
-
return params;
|
|
28
|
-
};
|
|
29
|
-
// select 类型
|
|
30
|
-
var useTypeSelectFormItem = function (params) {
|
|
31
|
-
return params;
|
|
32
|
-
};
|
|
33
|
-
// 时间类型 类型
|
|
34
|
-
var useTypeTimeFormItem = function (params) {
|
|
35
|
-
return params;
|
|
36
|
-
};
|
|
37
|
-
// radio单选框 类型
|
|
38
|
-
var useTypeRadioFormItem = function (params) {
|
|
39
|
-
return params;
|
|
40
|
-
};
|
|
41
|
-
// 单文件上传 类型
|
|
42
|
-
var useTypeSingleUploadFormItem = function (params) {
|
|
43
|
-
return params;
|
|
44
|
-
};
|
|
45
|
-
/**
|
|
46
|
-
* pro/plain表格的表头配置
|
|
47
|
-
*/
|
|
48
|
-
var useTableColumnParamsType = function () {
|
|
49
|
-
return {
|
|
50
|
-
/**
|
|
51
|
-
* 页面表格的头部配置
|
|
52
|
-
*/
|
|
53
|
-
useTypeByProTableParams: useTypeByProTableParams,
|
|
54
|
-
/**
|
|
55
|
-
* plain表格的头部配置
|
|
56
|
-
*/
|
|
57
|
-
useTypeByPlainTableParams: useTypeByPlainTableParams
|
|
58
|
-
};
|
|
59
|
-
};
|
|
60
|
-
exports.useTableColumnParamsType = useTableColumnParamsType;
|
|
61
|
-
/**
|
|
62
|
-
* form表单的各个类型的配置
|
|
63
|
-
*/
|
|
64
|
-
var useFormItemParamsType = function () {
|
|
65
|
-
return {
|
|
66
|
-
//表单类型为input类型
|
|
67
|
-
useTypeByInputFormItem: useTypeByInputFormItem,
|
|
68
|
-
//表单类型为文本域
|
|
69
|
-
useTypeTextareaFormItem: useTypeTextareaFormItem,
|
|
70
|
-
// 数字类型
|
|
71
|
-
useTypeNumberFormItem: useTypeNumberFormItem,
|
|
72
|
-
// 下拉菜单
|
|
73
|
-
useTypeSelectFormItem: useTypeSelectFormItem,
|
|
74
|
-
// 时间类型
|
|
75
|
-
useTypeTimeFormItem: useTypeTimeFormItem,
|
|
76
|
-
// 单选框
|
|
77
|
-
useTypeRadioFormItem: useTypeRadioFormItem,
|
|
78
|
-
// 单文件上传
|
|
79
|
-
useTypeSingleUploadFormItem: useTypeSingleUploadFormItem
|
|
80
|
-
};
|
|
81
|
-
};
|
|
82
|
-
exports.useFormItemParamsType = useFormItemParamsType;
|
|
83
|
-
var useProScreenParamsItem = function (proScreenItem, auth) {
|
|
84
|
-
if (auth === void 0) { auth = true; }
|
|
85
|
-
if (auth) {
|
|
86
|
-
return proScreenItem;
|
|
87
|
-
}
|
|
88
|
-
return null;
|
|
89
|
-
};
|
|
90
|
-
exports.useProScreenParamsItem = useProScreenParamsItem;
|
|
1
|
+
"use strict";
|
|
2
|
+
exports.__esModule = true;
|
|
3
|
+
exports.useProScreenParamsItem = exports.useFormItemParamsType = exports.useTableColumnParamsType = void 0;
|
|
4
|
+
/**
|
|
5
|
+
*
|
|
6
|
+
* @param paramsList
|
|
7
|
+
*
|
|
8
|
+
*/
|
|
9
|
+
var useTypeByProTableParams = function (paramsList) {
|
|
10
|
+
return paramsList;
|
|
11
|
+
};
|
|
12
|
+
//普通表格的单列的配置
|
|
13
|
+
var useTypeByPlainTableParams = function (paramsList) {
|
|
14
|
+
return paramsList;
|
|
15
|
+
};
|
|
16
|
+
// form表单的配置类型
|
|
17
|
+
//input 类型
|
|
18
|
+
var useTypeByInputFormItem = function (params) {
|
|
19
|
+
return params;
|
|
20
|
+
};
|
|
21
|
+
// textarea 类型
|
|
22
|
+
var useTypeTextareaFormItem = function (params) {
|
|
23
|
+
return params;
|
|
24
|
+
};
|
|
25
|
+
// number 类型
|
|
26
|
+
var useTypeNumberFormItem = function (params) {
|
|
27
|
+
return params;
|
|
28
|
+
};
|
|
29
|
+
// select 类型
|
|
30
|
+
var useTypeSelectFormItem = function (params) {
|
|
31
|
+
return params;
|
|
32
|
+
};
|
|
33
|
+
// 时间类型 类型
|
|
34
|
+
var useTypeTimeFormItem = function (params) {
|
|
35
|
+
return params;
|
|
36
|
+
};
|
|
37
|
+
// radio单选框 类型
|
|
38
|
+
var useTypeRadioFormItem = function (params) {
|
|
39
|
+
return params;
|
|
40
|
+
};
|
|
41
|
+
// 单文件上传 类型
|
|
42
|
+
var useTypeSingleUploadFormItem = function (params) {
|
|
43
|
+
return params;
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* pro/plain表格的表头配置
|
|
47
|
+
*/
|
|
48
|
+
var useTableColumnParamsType = function () {
|
|
49
|
+
return {
|
|
50
|
+
/**
|
|
51
|
+
* 页面表格的头部配置
|
|
52
|
+
*/
|
|
53
|
+
useTypeByProTableParams: useTypeByProTableParams,
|
|
54
|
+
/**
|
|
55
|
+
* plain表格的头部配置
|
|
56
|
+
*/
|
|
57
|
+
useTypeByPlainTableParams: useTypeByPlainTableParams
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
exports.useTableColumnParamsType = useTableColumnParamsType;
|
|
61
|
+
/**
|
|
62
|
+
* form表单的各个类型的配置
|
|
63
|
+
*/
|
|
64
|
+
var useFormItemParamsType = function () {
|
|
65
|
+
return {
|
|
66
|
+
//表单类型为input类型
|
|
67
|
+
useTypeByInputFormItem: useTypeByInputFormItem,
|
|
68
|
+
//表单类型为文本域
|
|
69
|
+
useTypeTextareaFormItem: useTypeTextareaFormItem,
|
|
70
|
+
// 数字类型
|
|
71
|
+
useTypeNumberFormItem: useTypeNumberFormItem,
|
|
72
|
+
// 下拉菜单
|
|
73
|
+
useTypeSelectFormItem: useTypeSelectFormItem,
|
|
74
|
+
// 时间类型
|
|
75
|
+
useTypeTimeFormItem: useTypeTimeFormItem,
|
|
76
|
+
// 单选框
|
|
77
|
+
useTypeRadioFormItem: useTypeRadioFormItem,
|
|
78
|
+
// 单文件上传
|
|
79
|
+
useTypeSingleUploadFormItem: useTypeSingleUploadFormItem
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
exports.useFormItemParamsType = useFormItemParamsType;
|
|
83
|
+
var useProScreenParamsItem = function (proScreenItem, auth) {
|
|
84
|
+
if (auth === void 0) { auth = true; }
|
|
85
|
+
if (auth) {
|
|
86
|
+
return proScreenItem;
|
|
87
|
+
}
|
|
88
|
+
return null;
|
|
89
|
+
};
|
|
90
|
+
exports.useProScreenParamsItem = useProScreenParamsItem;
|
package/packages/utils/utils.js
CHANGED
|
@@ -72,7 +72,7 @@ export const formatHtml = (strHtml) => {
|
|
|
72
72
|
strHtml = strHtml.replace(/<st1:chsdate.*?>(.*?)<\/st1:chsdate>/ig, "$1");
|
|
73
73
|
//去掉多余的空格
|
|
74
74
|
strHtml = strHtml.replace(/<(\w+?)\s+?>/ig, "<$1>");
|
|
75
|
-
//去掉<o:lock v:ext="edit" aspectratio="
|
|
75
|
+
//去掉<o:lock v:ext="edit" aspectratio="t"></o:lock>此类代码
|
|
76
76
|
strHtml = strHtml.replace(/<o:.+?<\/o:\w+?>/ig, "");
|
|
77
77
|
//去掉<v:> <\v:>
|
|
78
78
|
strHtml = strHtml.replace(/<v:.+?>/g, "");
|
|
@@ -341,4 +341,17 @@ export const getEndOfDayTimestamp = () => {
|
|
|
341
341
|
const now = new Date();
|
|
342
342
|
const endOfDay = new Date(now.getFullYear(), now.getMonth(), now.getDate(), 23, 59, 59, 999);
|
|
343
343
|
return endOfDay.getTime();
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
export const isIos = () => {
|
|
347
|
+
return [
|
|
348
|
+
'iPad Simulator',
|
|
349
|
+
'iPhone Simulator',
|
|
350
|
+
'iPod Simulator',
|
|
351
|
+
'iPad',
|
|
352
|
+
'iPhone',
|
|
353
|
+
'iPod'
|
|
354
|
+
].includes(navigator.platform)
|
|
355
|
+
// 或者使用 userAgent 检测
|
|
356
|
+
|| (navigator.userAgent.includes("Intel Mac"));
|
|
344
357
|
}
|
package/tsconfig.json
CHANGED
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
|
|
77
77
|
/* Interop Constraints */
|
|
78
78
|
// "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */
|
|
79
|
-
"allowSyntheticDefaultImports": true /* Allow 'import x from y' when a module doesn'
|
|
79
|
+
"allowSyntheticDefaultImports": true /* Allow 'import x from y' when a module doesn't have a default export. */,
|
|
80
80
|
"esModuleInterop": true,
|
|
81
81
|
/* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */
|
|
82
82
|
// "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */
|
|
@@ -95,8 +95,8 @@
|
|
|
95
95
|
// "noImplicitThis": true, /* Enable error reporting when 'this' is given the type 'any'. */
|
|
96
96
|
// "useUnknownInCatchVariables": true, /* Default catch clause variables as 'unknown' instead of 'any'. */
|
|
97
97
|
// "alwaysStrict": true, /* Ensure 'use strict' is always emitted. */
|
|
98
|
-
// "noUnusedLocals": true, /* Enable error reporting when local variables aren'
|
|
99
|
-
// "noUnusedParameters": true, /* Raise an error when a function parameter isn'
|
|
98
|
+
// "noUnusedLocals": true, /* Enable error reporting when local variables aren't read. */
|
|
99
|
+
// "noUnusedParameters": true, /* Raise an error when a function parameter isn't read. */
|
|
100
100
|
// "exactOptionalPropertyTypes": true, /* Interpret optional property types as written, rather than adding 'undefined'. */
|
|
101
101
|
// "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */
|
|
102
102
|
// "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TransferTDComponent.d.ts","sourceRoot":"","sources":["../../packages/config/TransferTDComponent.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB,2CAsB/B,CAAA"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TransferTDComponent = void 0;
|
|
4
|
-
const TransferTDComponent = (vueInstance, TDModule) => {
|
|
5
|
-
console.log(TDModule);
|
|
6
|
-
Object.keys(TDModule).forEach((key) => {
|
|
7
|
-
console.log(key);
|
|
8
|
-
if (TDModule[key]) {
|
|
9
|
-
if (/directive/i.test(key))
|
|
10
|
-
return;
|
|
11
|
-
if (key === 'DateRangePicker') {
|
|
12
|
-
TDModule[key].name = 'DateRangePicker';
|
|
13
|
-
vueInstance.component('DateRangePicker', TDModule[key]);
|
|
14
|
-
}
|
|
15
|
-
else if (key === 'Input') {
|
|
16
|
-
TDModule[key].options.name = 'Input';
|
|
17
|
-
vueInstance.component('Input', TDModule[key]);
|
|
18
|
-
}
|
|
19
|
-
else if (key === 'InputNumber') {
|
|
20
|
-
TDModule[key].name = 'InputNumber';
|
|
21
|
-
vueInstance.component('InputNumber', TDModule[key]);
|
|
22
|
-
}
|
|
23
|
-
else if (key === 'Select') {
|
|
24
|
-
TDModule[key].name = 'Select';
|
|
25
|
-
vueInstance.component('Select', TDModule[key]);
|
|
26
|
-
}
|
|
27
|
-
vueInstance.use(TDModule[key]);
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
};
|
|
31
|
-
exports.TransferTDComponent = TransferTDComponent;
|
|
@@ -1,149 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<Input v-model="module"
|
|
3
|
-
v-bind="$attrs"
|
|
4
|
-
@blur="onBlur"
|
|
5
|
-
@change="onChange"
|
|
6
|
-
@confirm="onConfirm"
|
|
7
|
-
@focus="onFocus"
|
|
8
|
-
@input="onInput"
|
|
9
|
-
@pick="onPick"
|
|
10
|
-
@click="onClick"
|
|
11
|
-
@enter="onEnter"
|
|
12
|
-
@keydown="onKeydown"
|
|
13
|
-
@keypress="onKeypress"
|
|
14
|
-
@keyup="onKeyup"
|
|
15
|
-
@mouseenter="onMouseenter"
|
|
16
|
-
@mouseleave="onMouseleave"
|
|
17
|
-
@paste="onPaste"
|
|
18
|
-
@validate="onValidate"
|
|
19
|
-
@wheel="onWheel"
|
|
20
|
-
:readonly="_readonly"
|
|
21
|
-
:disabled="_disabled"
|
|
22
|
-
>
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
<template #label>
|
|
26
|
-
<slot name="label"></slot>
|
|
27
|
-
</template>
|
|
28
|
-
|
|
29
|
-
<template #prefixIcon>
|
|
30
|
-
<slot name="prefixIcon"></slot>
|
|
31
|
-
</template>
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
<template #suffix>
|
|
35
|
-
<slot name="suffix"></slot>
|
|
36
|
-
</template>
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
<template #suffixIcon>
|
|
40
|
-
<slot name="suffixIcon"></slot>
|
|
41
|
-
</template>
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
<template #tips>
|
|
45
|
-
<slot name="tips"></slot>
|
|
46
|
-
</template>
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
</Input>
|
|
50
|
-
</template>
|
|
51
|
-
<script>
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
export default {
|
|
55
|
-
name: "tInput",
|
|
56
|
-
data() {
|
|
57
|
-
return {}
|
|
58
|
-
},
|
|
59
|
-
props: {
|
|
60
|
-
value: {
|
|
61
|
-
type: String,
|
|
62
|
-
},
|
|
63
|
-
},
|
|
64
|
-
components: {},
|
|
65
|
-
created() {
|
|
66
|
-
},
|
|
67
|
-
computed: {
|
|
68
|
-
module: {
|
|
69
|
-
set(val) {
|
|
70
|
-
this.$emit('input', val);
|
|
71
|
-
},
|
|
72
|
-
get() {
|
|
73
|
-
return this.$props.value;
|
|
74
|
-
}
|
|
75
|
-
},
|
|
76
|
-
_readonly: {
|
|
77
|
-
get() {
|
|
78
|
-
return !!(this.$attrs.disabled || this.$attrs.readonly);
|
|
79
|
-
}
|
|
80
|
-
},
|
|
81
|
-
_disabled: {
|
|
82
|
-
get() {
|
|
83
|
-
return false;
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
},
|
|
88
|
-
methods: {
|
|
89
|
-
onBlur(event) {
|
|
90
|
-
this.$emit('blur', event);
|
|
91
|
-
},
|
|
92
|
-
onChange(event) {
|
|
93
|
-
this.$emit('change', event);
|
|
94
|
-
},
|
|
95
|
-
onConfirm(event) {
|
|
96
|
-
this.$emit('confirm', event);
|
|
97
|
-
},
|
|
98
|
-
onFocus(event) {
|
|
99
|
-
this.$emit('focus', event);
|
|
100
|
-
},
|
|
101
|
-
onInput(event) {
|
|
102
|
-
this.$emit('input', event);
|
|
103
|
-
},
|
|
104
|
-
onPick(event) {
|
|
105
|
-
this.$emit('pick', event);
|
|
106
|
-
},
|
|
107
|
-
onClear(event) {
|
|
108
|
-
this.$emit('clear', event);
|
|
109
|
-
},
|
|
110
|
-
onClick(event) {
|
|
111
|
-
this.$emit('click', event);
|
|
112
|
-
},
|
|
113
|
-
onEnter(event) {
|
|
114
|
-
this.$emit('enter', event);
|
|
115
|
-
},
|
|
116
|
-
onKeydown(event) {
|
|
117
|
-
this.$emit('keydown', event);
|
|
118
|
-
},
|
|
119
|
-
onKeypress(event) {
|
|
120
|
-
this.$emit('keypress', event);
|
|
121
|
-
},
|
|
122
|
-
onKeyup(event) {
|
|
123
|
-
this.$emit('keyup', event);
|
|
124
|
-
},
|
|
125
|
-
onMouseenter(event) {
|
|
126
|
-
this.$emit('mouseenter', event);
|
|
127
|
-
},
|
|
128
|
-
onMouseleave(event) {
|
|
129
|
-
this.$emit('mouseleave', event);
|
|
130
|
-
},
|
|
131
|
-
onPaste(event) {
|
|
132
|
-
this.$emit('paste', event);
|
|
133
|
-
},
|
|
134
|
-
onValidate(event) {
|
|
135
|
-
this.$emit('validate', event);
|
|
136
|
-
},
|
|
137
|
-
onWheel(event) {
|
|
138
|
-
this.$emit('wheel', event);
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
</script>
|
|
143
|
-
|
|
144
|
-
<style scoped lang="less">
|
|
145
|
-
/deep/.t-input.t-is-readonly .t-input__inner{
|
|
146
|
-
cursor: not-allowed !important;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
</style>
|