ydb-components-material 0.1.80 → 0.1.82
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/build/docs/404.html +3 -3
- package/build/docs/_demos/:uuid +3 -3
- package/build/docs/colorful-button.html +3 -3
- package/build/docs/colorful-input.html +3 -3
- package/build/docs/index.html +3 -3
- package/build/docs/umi.41f52bba.js +1 -0
- package/build/docs/{umi.111d5bd3.css → umi.fb5ec9e5.css} +1 -1
- package/build/docs/~demos/:uuid.html +3 -3
- package/build/docs/~demos/colorful-button-demo.html +3 -3
- package/build/docs/~demos/colorful-input-demo.html +3 -3
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/preview.js +9 -9
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +1 -1
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +1 -1
- package/dist/BizComps.css +1 -1
- package/dist/BizComps.js +2 -2
- package/dist/BizComps.js.map +1 -1
- package/es/api.js +6 -0
- package/es/components/file-item/checkPoint.scss +1 -1
- package/es/components/file-item/index.js +59 -26
- package/es/components/print/index.d.ts +18 -0
- package/es/components/print/index.js +100 -0
- package/es/components/print/index.scss +63 -0
- package/es/index.d.ts +2 -0
- package/es/index.js +1 -0
- package/lib/api.js +7 -1
- package/lib/components/file-item/checkPoint.scss +1 -1
- package/lib/components/file-item/index.js +59 -26
- package/lib/components/print/index.d.ts +18 -0
- package/lib/components/print/index.js +105 -0
- package/lib/components/print/index.scss +63 -0
- package/lib/index.d.ts +2 -0
- package/lib/index.js +3 -1
- package/lowcode/print-button/meta.ts +149 -0
- package/lowcode_es/meta.js +3 -2
- package/lowcode_es/print-button/meta.d.ts +22 -0
- package/lowcode_es/print-button/meta.js +127 -0
- package/lowcode_lib/meta.js +8 -7
- package/lowcode_lib/print-button/meta.d.ts +22 -0
- package/lowcode_lib/print-button/meta.js +132 -0
- package/package.json +3 -3
- package/build/docs/umi.1c99ba62.js +0 -1
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/* index.css */
|
|
2
|
+
.print-button-wrapper {
|
|
3
|
+
display: inline-block;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.print-btn {
|
|
7
|
+
display: inline-flex;
|
|
8
|
+
align-items: center;
|
|
9
|
+
justify-content: center;
|
|
10
|
+
gap: 8px;
|
|
11
|
+
padding: 8px 16px;
|
|
12
|
+
border: none;
|
|
13
|
+
border-radius: 4px;
|
|
14
|
+
cursor: pointer;
|
|
15
|
+
font-size: 14px;
|
|
16
|
+
transition: all 0.3s ease;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.print-btn:disabled {
|
|
20
|
+
opacity: 0.6;
|
|
21
|
+
cursor: not-allowed;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.print-icon {
|
|
25
|
+
width: 16px;
|
|
26
|
+
height: 16px;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.print-btn-primary {
|
|
30
|
+
background-color: #1890ff;
|
|
31
|
+
color: #fff;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.print-btn-primary:hover:not(:disabled) {
|
|
35
|
+
background-color: #40a9ff;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.print-btn-default {
|
|
39
|
+
background-color: #fff;
|
|
40
|
+
color: #333;
|
|
41
|
+
border: 1px solid #d9d9d9;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.print-btn-default:hover:not(:disabled) {
|
|
45
|
+
border-color: #1890ff;
|
|
46
|
+
color: #1890ff;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.print-btn-text {
|
|
50
|
+
background-color: transparent;
|
|
51
|
+
color: #1890ff;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.print-btn-text:hover:not(:disabled) {
|
|
55
|
+
background-color: rgba(24, 144, 255, 0.1);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/* 打印时隐藏的元素 */
|
|
59
|
+
@media print {
|
|
60
|
+
.no-print {
|
|
61
|
+
display: none !important;
|
|
62
|
+
}
|
|
63
|
+
}
|
package/lib/index.d.ts
CHANGED
|
@@ -37,5 +37,7 @@ export type { AddressCascaderProps } from './components/address-cascade';
|
|
|
37
37
|
export { default as AddressCascader } from './components/address-cascade';
|
|
38
38
|
export type { PreviewMaterialProps } from './components/preview-material';
|
|
39
39
|
export { default as PreviewMaterial } from './components/preview-material';
|
|
40
|
+
export type { PrintButtonProps } from './components/print';
|
|
41
|
+
export { default as PrintButton } from './components/print';
|
|
40
42
|
declare const bizCssPrefix = "bizpack";
|
|
41
43
|
export { bizCssPrefix };
|
package/lib/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
4
|
exports.__esModule = true;
|
|
5
|
-
exports.bizCssPrefix = exports.Tips = exports.SuccessPrompt = exports.Statstic = exports.SceneTree = exports.QRCodeImg = exports.PreviewMaterial = exports.PreCheckResPC = exports.Message = exports.MaterialCheckRes = exports.IconCustom = exports.FilePC = exports.FileItem = exports.CustomFrom = exports.CheckRes = exports.CheckLoading = exports.CheckDetailPc = exports.CheckDetail = exports.CardTitle = exports.AddressSelect = exports.AddressCascader = void 0;
|
|
5
|
+
exports.bizCssPrefix = exports.Tips = exports.SuccessPrompt = exports.Statstic = exports.SceneTree = exports.QRCodeImg = exports.PrintButton = exports.PreviewMaterial = exports.PreCheckResPC = exports.Message = exports.MaterialCheckRes = exports.IconCustom = exports.FilePC = exports.FileItem = exports.CustomFrom = exports.CheckRes = exports.CheckLoading = exports.CheckDetailPc = exports.CheckDetail = exports.CardTitle = exports.AddressSelect = exports.AddressCascader = void 0;
|
|
6
6
|
var _checkLoading = _interopRequireDefault(require("./components/check-loading"));
|
|
7
7
|
exports.CheckLoading = _checkLoading["default"];
|
|
8
8
|
var _cardTitle = _interopRequireDefault(require("./components/card-title"));
|
|
@@ -43,6 +43,8 @@ var _addressCascade = _interopRequireDefault(require("./components/address-casca
|
|
|
43
43
|
exports.AddressCascader = _addressCascade["default"];
|
|
44
44
|
var _previewMaterial = _interopRequireDefault(require("./components/preview-material"));
|
|
45
45
|
exports.PreviewMaterial = _previewMaterial["default"];
|
|
46
|
+
var _print = _interopRequireDefault(require("./components/print"));
|
|
47
|
+
exports.PrintButton = _print["default"];
|
|
46
48
|
// export type { ColorfulButtonProps } from './components/colorful-button';
|
|
47
49
|
// export { default as ColorfulButton } from './components/colorful-button';
|
|
48
50
|
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
|
|
2
|
+
import { IPublicTypeComponentMetadata, IPublicTypeSnippet } from '@alilc/lowcode-types';
|
|
3
|
+
|
|
4
|
+
const PrintButtonMeta: IPublicTypeComponentMetadata = {
|
|
5
|
+
"componentName": "PrintButton",
|
|
6
|
+
"title": "PrintButton",
|
|
7
|
+
"docUrl": "",
|
|
8
|
+
"screenshot": "",
|
|
9
|
+
"devMode": "proCode",
|
|
10
|
+
"npm": {
|
|
11
|
+
"package": "ydb-components-material",
|
|
12
|
+
"version": "0.1.80",
|
|
13
|
+
"exportName": "PrintButton",
|
|
14
|
+
"main": "src/index.tsx",
|
|
15
|
+
"destructuring": true,
|
|
16
|
+
"subName": ""
|
|
17
|
+
},
|
|
18
|
+
"configure": {
|
|
19
|
+
"props": [
|
|
20
|
+
{
|
|
21
|
+
"title": {
|
|
22
|
+
"label": {
|
|
23
|
+
"type": "i18n",
|
|
24
|
+
"en-US": "text",
|
|
25
|
+
"zh-CN": "按钮文本"
|
|
26
|
+
},
|
|
27
|
+
"tip": "text | 按钮文本"
|
|
28
|
+
},
|
|
29
|
+
"name": "text",
|
|
30
|
+
"description": "按钮文本",
|
|
31
|
+
"setter": {
|
|
32
|
+
"componentName": "StringSetter",
|
|
33
|
+
"isRequired": false,
|
|
34
|
+
"initialValue": ""
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"title": {
|
|
39
|
+
"label": {
|
|
40
|
+
"type": "i18n",
|
|
41
|
+
"en-US": "printSelector",
|
|
42
|
+
"zh-CN": "打印内容选择器,默认"
|
|
43
|
+
},
|
|
44
|
+
"tip": "printSelector | 打印内容选择器,默认为当前页面"
|
|
45
|
+
},
|
|
46
|
+
"name": "printSelector",
|
|
47
|
+
"description": "打印内容选择器,默认为当前页面",
|
|
48
|
+
"setter": {
|
|
49
|
+
"componentName": "StringSetter",
|
|
50
|
+
"isRequired": false,
|
|
51
|
+
"initialValue": ""
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"title": {
|
|
56
|
+
"label": {
|
|
57
|
+
"type": "i18n",
|
|
58
|
+
"en-US": "disabled",
|
|
59
|
+
"zh-CN": "是否禁用"
|
|
60
|
+
},
|
|
61
|
+
"tip": "disabled | 是否禁用"
|
|
62
|
+
},
|
|
63
|
+
"name": "disabled",
|
|
64
|
+
"description": "是否禁用",
|
|
65
|
+
"setter": {
|
|
66
|
+
"componentName": "BoolSetter",
|
|
67
|
+
"isRequired": false,
|
|
68
|
+
"initialValue": false
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"title": {
|
|
73
|
+
"label": {
|
|
74
|
+
"type": "i18n",
|
|
75
|
+
"en-US": "type",
|
|
76
|
+
"zh-CN": "按钮类型"
|
|
77
|
+
},
|
|
78
|
+
"tip": "type | 按钮类型"
|
|
79
|
+
},
|
|
80
|
+
"name": "type",
|
|
81
|
+
"description": "按钮类型",
|
|
82
|
+
"setter": {
|
|
83
|
+
"componentName": "RadioGroupSetter",
|
|
84
|
+
"props": {
|
|
85
|
+
"dataSource": [
|
|
86
|
+
{
|
|
87
|
+
"label": "text",
|
|
88
|
+
"value": "text"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"label": "primary",
|
|
92
|
+
"value": "primary"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"label": "default",
|
|
96
|
+
"value": "default"
|
|
97
|
+
}
|
|
98
|
+
],
|
|
99
|
+
"options": [
|
|
100
|
+
{
|
|
101
|
+
"label": "text",
|
|
102
|
+
"value": "text"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"label": "primary",
|
|
106
|
+
"value": "primary"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"label": "default",
|
|
110
|
+
"value": "default"
|
|
111
|
+
}
|
|
112
|
+
]
|
|
113
|
+
},
|
|
114
|
+
"initialValue": "text"
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
],
|
|
118
|
+
"supports": {
|
|
119
|
+
"events": [
|
|
120
|
+
{
|
|
121
|
+
"name": "onBeforePrint",
|
|
122
|
+
"description": "打印前回调"
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"name": "onAfterPrint",
|
|
126
|
+
"description": "打印后回调"
|
|
127
|
+
}
|
|
128
|
+
],
|
|
129
|
+
"className": true,
|
|
130
|
+
"style": true
|
|
131
|
+
},
|
|
132
|
+
"component": {}
|
|
133
|
+
}
|
|
134
|
+
};
|
|
135
|
+
const snippets: IPublicTypeSnippet[] = [
|
|
136
|
+
{
|
|
137
|
+
"title": "PrintButton",
|
|
138
|
+
"screenshot": "",
|
|
139
|
+
"schema": {
|
|
140
|
+
"componentName": "PrintButton",
|
|
141
|
+
"props": {}
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
];
|
|
145
|
+
|
|
146
|
+
export default {
|
|
147
|
+
...PrintButtonMeta,
|
|
148
|
+
snippets
|
|
149
|
+
};
|
package/lowcode_es/meta.js
CHANGED
|
@@ -13,6 +13,7 @@ import MaterialCheckResMeta from "./material-check-res/meta";
|
|
|
13
13
|
import MessageMeta from "./message/meta";
|
|
14
14
|
import PreCheckResPCMeta from "./pre-check-res-p-c/meta";
|
|
15
15
|
import PreviewMaterialMeta from "./preview-material/meta";
|
|
16
|
+
import PrintButtonMeta from "./print-button/meta";
|
|
16
17
|
import QRCodeImgMeta from "./q-r-code-img/meta";
|
|
17
18
|
import SceneTreeMeta from "./scene-tree/meta";
|
|
18
19
|
import StatsticMeta from "./statstic/meta";
|
|
@@ -89,7 +90,7 @@ function fillRealVersion(meta, packageName, version, basicLibraryVersion) {
|
|
|
89
90
|
packageName = 'ydb-components-material';
|
|
90
91
|
}
|
|
91
92
|
if (version === void 0) {
|
|
92
|
-
version = '0.1.
|
|
93
|
+
version = '0.1.82';
|
|
93
94
|
}
|
|
94
95
|
if (basicLibraryVersion === void 0) {
|
|
95
96
|
basicLibraryVersion = {
|
|
@@ -116,7 +117,7 @@ function fillRealVersion(meta, packageName, version, basicLibraryVersion) {
|
|
|
116
117
|
}
|
|
117
118
|
return meta;
|
|
118
119
|
}
|
|
119
|
-
var componentMetas = [AddressCascaderMeta, AddressSelectMeta, CardTitleMeta, CheckDetailPcMeta, CheckDetailMeta, CheckLoadingMeta, CheckResMeta, CustomFromMeta, FileItemMeta, IconCustomMeta, MaterialCheckResMeta, MessageMeta, PreCheckResPCMeta, PreviewMaterialMeta, QRCodeImgMeta, SceneTreeMeta, StatsticMeta, SuccessPromptMeta, TipsMeta];
|
|
120
|
+
var componentMetas = [AddressCascaderMeta, AddressSelectMeta, CardTitleMeta, CheckDetailPcMeta, CheckDetailMeta, CheckLoadingMeta, CheckResMeta, CustomFromMeta, FileItemMeta, IconCustomMeta, MaterialCheckResMeta, MessageMeta, PreCheckResPCMeta, PreviewMaterialMeta, PrintButtonMeta, QRCodeImgMeta, SceneTreeMeta, StatsticMeta, SuccessPromptMeta, TipsMeta];
|
|
120
121
|
var components = [];
|
|
121
122
|
var npmInfo = {};
|
|
122
123
|
componentMetas.forEach(function (meta) {
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { IPublicTypeSnippet } from '@alilc/lowcode-types';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
snippets: IPublicTypeSnippet[];
|
|
4
|
+
componentName: string;
|
|
5
|
+
uri?: string;
|
|
6
|
+
title?: import("@alilc/lowcode-types").IPublicTypeTitleContent;
|
|
7
|
+
icon?: import("@alilc/lowcode-types").IPublicTypeIconType;
|
|
8
|
+
tags?: string[];
|
|
9
|
+
description?: string;
|
|
10
|
+
docUrl?: string;
|
|
11
|
+
screenshot?: string;
|
|
12
|
+
devMode?: "proCode" | "lowCode";
|
|
13
|
+
npm?: import("@alilc/lowcode-types").IPublicTypeNpmInfo;
|
|
14
|
+
props?: import("@alilc/lowcode-types").IPublicTypePropConfig[];
|
|
15
|
+
configure?: import("@alilc/lowcode-types").IPublicTypeFieldConfig[] | import("@alilc/lowcode-types").IPublicTypeConfigure;
|
|
16
|
+
experimental?: import("@alilc/lowcode-types").IPublicTypeAdvanced;
|
|
17
|
+
schema?: import("@alilc/lowcode-types").IPublicTypeComponentSchema;
|
|
18
|
+
group?: string | import("@alilc/lowcode-types").IPublicTypeI18nData;
|
|
19
|
+
category?: string | import("@alilc/lowcode-types").IPublicTypeI18nData;
|
|
20
|
+
priority?: number;
|
|
21
|
+
};
|
|
22
|
+
export default _default;
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
var PrintButtonMeta = {
|
|
3
|
+
"componentName": "PrintButton",
|
|
4
|
+
"title": "PrintButton",
|
|
5
|
+
"docUrl": "",
|
|
6
|
+
"screenshot": "",
|
|
7
|
+
"devMode": "proCode",
|
|
8
|
+
"npm": {
|
|
9
|
+
"package": "ydb-components-material",
|
|
10
|
+
"version": "0.1.80",
|
|
11
|
+
"exportName": "PrintButton",
|
|
12
|
+
"main": "src/index.tsx",
|
|
13
|
+
"destructuring": true,
|
|
14
|
+
"subName": ""
|
|
15
|
+
},
|
|
16
|
+
"configure": {
|
|
17
|
+
"props": [{
|
|
18
|
+
"title": {
|
|
19
|
+
"label": {
|
|
20
|
+
"type": "i18n",
|
|
21
|
+
"en-US": "text",
|
|
22
|
+
"zh-CN": "按钮文本"
|
|
23
|
+
},
|
|
24
|
+
"tip": "text | 按钮文本"
|
|
25
|
+
},
|
|
26
|
+
"name": "text",
|
|
27
|
+
"description": "按钮文本",
|
|
28
|
+
"setter": {
|
|
29
|
+
"componentName": "StringSetter",
|
|
30
|
+
"isRequired": false,
|
|
31
|
+
"initialValue": ""
|
|
32
|
+
}
|
|
33
|
+
}, {
|
|
34
|
+
"title": {
|
|
35
|
+
"label": {
|
|
36
|
+
"type": "i18n",
|
|
37
|
+
"en-US": "printSelector",
|
|
38
|
+
"zh-CN": "打印内容选择器,默认"
|
|
39
|
+
},
|
|
40
|
+
"tip": "printSelector | 打印内容选择器,默认为当前页面"
|
|
41
|
+
},
|
|
42
|
+
"name": "printSelector",
|
|
43
|
+
"description": "打印内容选择器,默认为当前页面",
|
|
44
|
+
"setter": {
|
|
45
|
+
"componentName": "StringSetter",
|
|
46
|
+
"isRequired": false,
|
|
47
|
+
"initialValue": ""
|
|
48
|
+
}
|
|
49
|
+
}, {
|
|
50
|
+
"title": {
|
|
51
|
+
"label": {
|
|
52
|
+
"type": "i18n",
|
|
53
|
+
"en-US": "disabled",
|
|
54
|
+
"zh-CN": "是否禁用"
|
|
55
|
+
},
|
|
56
|
+
"tip": "disabled | 是否禁用"
|
|
57
|
+
},
|
|
58
|
+
"name": "disabled",
|
|
59
|
+
"description": "是否禁用",
|
|
60
|
+
"setter": {
|
|
61
|
+
"componentName": "BoolSetter",
|
|
62
|
+
"isRequired": false,
|
|
63
|
+
"initialValue": false
|
|
64
|
+
}
|
|
65
|
+
}, {
|
|
66
|
+
"title": {
|
|
67
|
+
"label": {
|
|
68
|
+
"type": "i18n",
|
|
69
|
+
"en-US": "type",
|
|
70
|
+
"zh-CN": "按钮类型"
|
|
71
|
+
},
|
|
72
|
+
"tip": "type | 按钮类型"
|
|
73
|
+
},
|
|
74
|
+
"name": "type",
|
|
75
|
+
"description": "按钮类型",
|
|
76
|
+
"setter": {
|
|
77
|
+
"componentName": "RadioGroupSetter",
|
|
78
|
+
"props": {
|
|
79
|
+
"dataSource": [{
|
|
80
|
+
"label": "text",
|
|
81
|
+
"value": "text"
|
|
82
|
+
}, {
|
|
83
|
+
"label": "primary",
|
|
84
|
+
"value": "primary"
|
|
85
|
+
}, {
|
|
86
|
+
"label": "default",
|
|
87
|
+
"value": "default"
|
|
88
|
+
}],
|
|
89
|
+
"options": [{
|
|
90
|
+
"label": "text",
|
|
91
|
+
"value": "text"
|
|
92
|
+
}, {
|
|
93
|
+
"label": "primary",
|
|
94
|
+
"value": "primary"
|
|
95
|
+
}, {
|
|
96
|
+
"label": "default",
|
|
97
|
+
"value": "default"
|
|
98
|
+
}]
|
|
99
|
+
},
|
|
100
|
+
"initialValue": "text"
|
|
101
|
+
}
|
|
102
|
+
}],
|
|
103
|
+
"supports": {
|
|
104
|
+
"events": [{
|
|
105
|
+
"name": "onBeforePrint",
|
|
106
|
+
"description": "打印前回调"
|
|
107
|
+
}, {
|
|
108
|
+
"name": "onAfterPrint",
|
|
109
|
+
"description": "打印后回调"
|
|
110
|
+
}],
|
|
111
|
+
"className": true,
|
|
112
|
+
"style": true
|
|
113
|
+
},
|
|
114
|
+
"component": {}
|
|
115
|
+
}
|
|
116
|
+
};
|
|
117
|
+
var snippets = [{
|
|
118
|
+
"title": "PrintButton",
|
|
119
|
+
"screenshot": "",
|
|
120
|
+
"schema": {
|
|
121
|
+
"componentName": "PrintButton",
|
|
122
|
+
"props": {}
|
|
123
|
+
}
|
|
124
|
+
}];
|
|
125
|
+
export default _extends({}, PrintButtonMeta, {
|
|
126
|
+
snippets: snippets
|
|
127
|
+
});
|
package/lowcode_lib/meta.js
CHANGED
|
@@ -18,11 +18,12 @@ var _meta1 = _interopRequireDefault(require("./material-check-res/meta"));
|
|
|
18
18
|
var _meta10 = _interopRequireDefault(require("./message/meta"));
|
|
19
19
|
var _meta11 = _interopRequireDefault(require("./pre-check-res-p-c/meta"));
|
|
20
20
|
var _meta12 = _interopRequireDefault(require("./preview-material/meta"));
|
|
21
|
-
var _meta13 = _interopRequireDefault(require("./
|
|
22
|
-
var _meta14 = _interopRequireDefault(require("./
|
|
23
|
-
var _meta15 = _interopRequireDefault(require("./
|
|
24
|
-
var _meta16 = _interopRequireDefault(require("./
|
|
25
|
-
var _meta17 = _interopRequireDefault(require("./
|
|
21
|
+
var _meta13 = _interopRequireDefault(require("./print-button/meta"));
|
|
22
|
+
var _meta14 = _interopRequireDefault(require("./q-r-code-img/meta"));
|
|
23
|
+
var _meta15 = _interopRequireDefault(require("./scene-tree/meta"));
|
|
24
|
+
var _meta16 = _interopRequireDefault(require("./statstic/meta"));
|
|
25
|
+
var _meta17 = _interopRequireDefault(require("./success-prompt/meta"));
|
|
26
|
+
var _meta18 = _interopRequireDefault(require("./tips/meta"));
|
|
26
27
|
var componentCategorySort = {};
|
|
27
28
|
["基础元素", "布局容器类", "表格类", "表单详情类", "帮助类", "对话框类", "业务类", "通用", "引导", "信息输入", "信息展示", "信息反馈"].reverse().forEach(function (item, index) {
|
|
28
29
|
componentCategorySort[item] = ++index;
|
|
@@ -94,7 +95,7 @@ function fillRealVersion(meta, packageName, version, basicLibraryVersion) {
|
|
|
94
95
|
packageName = 'ydb-components-material';
|
|
95
96
|
}
|
|
96
97
|
if (version === void 0) {
|
|
97
|
-
version = '0.1.
|
|
98
|
+
version = '0.1.82';
|
|
98
99
|
}
|
|
99
100
|
if (basicLibraryVersion === void 0) {
|
|
100
101
|
basicLibraryVersion = {
|
|
@@ -121,7 +122,7 @@ function fillRealVersion(meta, packageName, version, basicLibraryVersion) {
|
|
|
121
122
|
}
|
|
122
123
|
return meta;
|
|
123
124
|
}
|
|
124
|
-
var componentMetas = [_meta["default"], _meta2["default"], _meta3["default"], _meta4["default"], _meta5["default"], _meta6["default"], _meta7["default"], _meta8["default"], _meta9["default"], _meta0["default"], _meta1["default"], _meta10["default"], _meta11["default"], _meta12["default"], _meta13["default"], _meta14["default"], _meta15["default"], _meta16["default"], _meta17["default"]];
|
|
125
|
+
var componentMetas = [_meta["default"], _meta2["default"], _meta3["default"], _meta4["default"], _meta5["default"], _meta6["default"], _meta7["default"], _meta8["default"], _meta9["default"], _meta0["default"], _meta1["default"], _meta10["default"], _meta11["default"], _meta12["default"], _meta13["default"], _meta14["default"], _meta15["default"], _meta16["default"], _meta17["default"], _meta18["default"]];
|
|
125
126
|
var components = exports.components = [];
|
|
126
127
|
var npmInfo = {};
|
|
127
128
|
componentMetas.forEach(function (meta) {
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { IPublicTypeSnippet } from '@alilc/lowcode-types';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
snippets: IPublicTypeSnippet[];
|
|
4
|
+
componentName: string;
|
|
5
|
+
uri?: string;
|
|
6
|
+
title?: import("@alilc/lowcode-types").IPublicTypeTitleContent;
|
|
7
|
+
icon?: import("@alilc/lowcode-types").IPublicTypeIconType;
|
|
8
|
+
tags?: string[];
|
|
9
|
+
description?: string;
|
|
10
|
+
docUrl?: string;
|
|
11
|
+
screenshot?: string;
|
|
12
|
+
devMode?: "proCode" | "lowCode";
|
|
13
|
+
npm?: import("@alilc/lowcode-types").IPublicTypeNpmInfo;
|
|
14
|
+
props?: import("@alilc/lowcode-types").IPublicTypePropConfig[];
|
|
15
|
+
configure?: import("@alilc/lowcode-types").IPublicTypeFieldConfig[] | import("@alilc/lowcode-types").IPublicTypeConfigure;
|
|
16
|
+
experimental?: import("@alilc/lowcode-types").IPublicTypeAdvanced;
|
|
17
|
+
schema?: import("@alilc/lowcode-types").IPublicTypeComponentSchema;
|
|
18
|
+
group?: string | import("@alilc/lowcode-types").IPublicTypeI18nData;
|
|
19
|
+
category?: string | import("@alilc/lowcode-types").IPublicTypeI18nData;
|
|
20
|
+
priority?: number;
|
|
21
|
+
};
|
|
22
|
+
export default _default;
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
exports.__esModule = true;
|
|
5
|
+
exports["default"] = void 0;
|
|
6
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
7
|
+
var PrintButtonMeta = {
|
|
8
|
+
"componentName": "PrintButton",
|
|
9
|
+
"title": "PrintButton",
|
|
10
|
+
"docUrl": "",
|
|
11
|
+
"screenshot": "",
|
|
12
|
+
"devMode": "proCode",
|
|
13
|
+
"npm": {
|
|
14
|
+
"package": "ydb-components-material",
|
|
15
|
+
"version": "0.1.80",
|
|
16
|
+
"exportName": "PrintButton",
|
|
17
|
+
"main": "src/index.tsx",
|
|
18
|
+
"destructuring": true,
|
|
19
|
+
"subName": ""
|
|
20
|
+
},
|
|
21
|
+
"configure": {
|
|
22
|
+
"props": [{
|
|
23
|
+
"title": {
|
|
24
|
+
"label": {
|
|
25
|
+
"type": "i18n",
|
|
26
|
+
"en-US": "text",
|
|
27
|
+
"zh-CN": "按钮文本"
|
|
28
|
+
},
|
|
29
|
+
"tip": "text | 按钮文本"
|
|
30
|
+
},
|
|
31
|
+
"name": "text",
|
|
32
|
+
"description": "按钮文本",
|
|
33
|
+
"setter": {
|
|
34
|
+
"componentName": "StringSetter",
|
|
35
|
+
"isRequired": false,
|
|
36
|
+
"initialValue": ""
|
|
37
|
+
}
|
|
38
|
+
}, {
|
|
39
|
+
"title": {
|
|
40
|
+
"label": {
|
|
41
|
+
"type": "i18n",
|
|
42
|
+
"en-US": "printSelector",
|
|
43
|
+
"zh-CN": "打印内容选择器,默认"
|
|
44
|
+
},
|
|
45
|
+
"tip": "printSelector | 打印内容选择器,默认为当前页面"
|
|
46
|
+
},
|
|
47
|
+
"name": "printSelector",
|
|
48
|
+
"description": "打印内容选择器,默认为当前页面",
|
|
49
|
+
"setter": {
|
|
50
|
+
"componentName": "StringSetter",
|
|
51
|
+
"isRequired": false,
|
|
52
|
+
"initialValue": ""
|
|
53
|
+
}
|
|
54
|
+
}, {
|
|
55
|
+
"title": {
|
|
56
|
+
"label": {
|
|
57
|
+
"type": "i18n",
|
|
58
|
+
"en-US": "disabled",
|
|
59
|
+
"zh-CN": "是否禁用"
|
|
60
|
+
},
|
|
61
|
+
"tip": "disabled | 是否禁用"
|
|
62
|
+
},
|
|
63
|
+
"name": "disabled",
|
|
64
|
+
"description": "是否禁用",
|
|
65
|
+
"setter": {
|
|
66
|
+
"componentName": "BoolSetter",
|
|
67
|
+
"isRequired": false,
|
|
68
|
+
"initialValue": false
|
|
69
|
+
}
|
|
70
|
+
}, {
|
|
71
|
+
"title": {
|
|
72
|
+
"label": {
|
|
73
|
+
"type": "i18n",
|
|
74
|
+
"en-US": "type",
|
|
75
|
+
"zh-CN": "按钮类型"
|
|
76
|
+
},
|
|
77
|
+
"tip": "type | 按钮类型"
|
|
78
|
+
},
|
|
79
|
+
"name": "type",
|
|
80
|
+
"description": "按钮类型",
|
|
81
|
+
"setter": {
|
|
82
|
+
"componentName": "RadioGroupSetter",
|
|
83
|
+
"props": {
|
|
84
|
+
"dataSource": [{
|
|
85
|
+
"label": "text",
|
|
86
|
+
"value": "text"
|
|
87
|
+
}, {
|
|
88
|
+
"label": "primary",
|
|
89
|
+
"value": "primary"
|
|
90
|
+
}, {
|
|
91
|
+
"label": "default",
|
|
92
|
+
"value": "default"
|
|
93
|
+
}],
|
|
94
|
+
"options": [{
|
|
95
|
+
"label": "text",
|
|
96
|
+
"value": "text"
|
|
97
|
+
}, {
|
|
98
|
+
"label": "primary",
|
|
99
|
+
"value": "primary"
|
|
100
|
+
}, {
|
|
101
|
+
"label": "default",
|
|
102
|
+
"value": "default"
|
|
103
|
+
}]
|
|
104
|
+
},
|
|
105
|
+
"initialValue": "text"
|
|
106
|
+
}
|
|
107
|
+
}],
|
|
108
|
+
"supports": {
|
|
109
|
+
"events": [{
|
|
110
|
+
"name": "onBeforePrint",
|
|
111
|
+
"description": "打印前回调"
|
|
112
|
+
}, {
|
|
113
|
+
"name": "onAfterPrint",
|
|
114
|
+
"description": "打印后回调"
|
|
115
|
+
}],
|
|
116
|
+
"className": true,
|
|
117
|
+
"style": true
|
|
118
|
+
},
|
|
119
|
+
"component": {}
|
|
120
|
+
}
|
|
121
|
+
};
|
|
122
|
+
var snippets = [{
|
|
123
|
+
"title": "PrintButton",
|
|
124
|
+
"screenshot": "",
|
|
125
|
+
"schema": {
|
|
126
|
+
"componentName": "PrintButton",
|
|
127
|
+
"props": {}
|
|
128
|
+
}
|
|
129
|
+
}];
|
|
130
|
+
var _default = exports["default"] = (0, _extends2["default"])({}, PrintButtonMeta, {
|
|
131
|
+
snippets: snippets
|
|
132
|
+
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ydb-components-material",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.82",
|
|
4
4
|
"description": "ydb-components-material",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -97,10 +97,10 @@
|
|
|
97
97
|
},
|
|
98
98
|
"componentConfig": {
|
|
99
99
|
"isComponentLibrary": true,
|
|
100
|
-
"materialSchema": "https://unpkg.com/ydb-components-material@0.1.
|
|
100
|
+
"materialSchema": "https://unpkg.com/ydb-components-material@0.1.82/build/lowcode/assets-prod.json"
|
|
101
101
|
},
|
|
102
102
|
"lcMeta": {
|
|
103
103
|
"type": "component"
|
|
104
104
|
},
|
|
105
|
-
"homepage": "https://unpkg.com/ydb-components-material@0.1.
|
|
105
|
+
"homepage": "https://unpkg.com/ydb-components-material@0.1.82/build/index.html"
|
|
106
106
|
}
|