@ztocwst/rc-pro-materials 0.1.12 → 0.1.14
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/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +4 -4
- 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 +5 -290
- package/build/lowcode/render/default/view.js +16 -1124
- package/build/lowcode/view.js +16 -1124
- package/dist/SCM_Comps.js +1 -1
- package/dist/SCM_Comps.js.map +1 -1
- package/es/utils/props/button.d.ts +4 -2
- package/es/utils/props/button.js +5 -2
- package/es/utils/props/listTpl.d.ts +1 -1
- package/es/utils/props/tpl.d.ts +1 -1
- package/lib/utils/props/button.d.ts +4 -2
- package/lib/utils/props/button.js +5 -2
- package/lib/utils/props/listTpl.d.ts +1 -1
- package/lib/utils/props/tpl.d.ts +1 -1
- package/package.json +3 -3
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { ProButtonItemsProps, ProButtonProps } from '@ztocwst/rc-pro';
|
|
2
|
-
export declare const processButtonProps: (props: ProButtonProps
|
|
2
|
+
export declare const processButtonProps: (props: ProButtonProps & {
|
|
3
|
+
linkButton?: boolean;
|
|
4
|
+
}, extra?: {
|
|
3
5
|
tableRef?: any;
|
|
4
6
|
}) => {
|
|
5
7
|
items: any[];
|
|
8
|
+
type?: string;
|
|
6
9
|
spaceSize?: [import("antd/lib/space").SpaceSize, import("antd/lib/space").SpaceSize];
|
|
7
10
|
size?: import("antd/lib/button").ButtonSize;
|
|
8
11
|
onClick?: (item: ProButtonItemsProps) => void | Promise<any>;
|
|
9
12
|
onSuccess?: (item: ProButtonItemsProps, data?: any) => void;
|
|
10
|
-
type?: "link";
|
|
11
13
|
};
|
package/es/utils/props/button.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
3
3
|
var _excluded = ["printer", "tpl", "print"],
|
|
4
|
-
_excluded2 = ["items"],
|
|
4
|
+
_excluded2 = ["items", "linkButton"],
|
|
5
5
|
_excluded3 = ["advancedConfig", "fileConfig", "microModal", "menu", "confirm", "popconfirm", "modal", "print", "requestConfig"],
|
|
6
6
|
_excluded4 = ["request"];
|
|
7
7
|
import { processMicroModalProps } from "./microModal";
|
|
@@ -22,6 +22,7 @@ var processPrintProps = function processPrintProps(print) {
|
|
|
22
22
|
export var processButtonProps = function processButtonProps(props, extra) {
|
|
23
23
|
var _ref;
|
|
24
24
|
var items = props.items,
|
|
25
|
+
linkButton = props.linkButton,
|
|
25
26
|
rest = _objectWithoutPropertiesLoose(props, _excluded2);
|
|
26
27
|
// const { tableRef = null } = extra;
|
|
27
28
|
|
|
@@ -102,7 +103,9 @@ export var processButtonProps = function processButtonProps(props, extra) {
|
|
|
102
103
|
}
|
|
103
104
|
return e;
|
|
104
105
|
});
|
|
105
|
-
return _extends({}, rest, {
|
|
106
|
+
return _extends({}, rest, linkButton ? {
|
|
107
|
+
type: 'link'
|
|
108
|
+
} : {}, {
|
|
106
109
|
items: _items_ === null || _items_ === void 0 ? void 0 : _items_.filter(function (e) {
|
|
107
110
|
return !!e;
|
|
108
111
|
})
|
|
@@ -16,11 +16,11 @@ export declare const processListTplProps: (props: RcListItem, extra?: {
|
|
|
16
16
|
form: any;
|
|
17
17
|
actions: {
|
|
18
18
|
items: any[];
|
|
19
|
+
type?: string;
|
|
19
20
|
spaceSize?: [import("antd/lib/space").SpaceSize, import("antd/lib/space").SpaceSize];
|
|
20
21
|
size?: import("antd/lib/button").ButtonSize;
|
|
21
22
|
onClick?: (item: import("@ztocwst/rc-pro").ProButtonItemsProps) => void | Promise<any>;
|
|
22
23
|
onSuccess?: (item: import("@ztocwst/rc-pro").ProButtonItemsProps, data?: any) => void;
|
|
23
|
-
type?: "link";
|
|
24
24
|
};
|
|
25
25
|
grid: {
|
|
26
26
|
config: any;
|
package/es/utils/props/tpl.d.ts
CHANGED
|
@@ -135,11 +135,11 @@ export declare const processTplProps: (props: RcPageProps, extra?: {
|
|
|
135
135
|
form: any;
|
|
136
136
|
actions: {
|
|
137
137
|
items: any[];
|
|
138
|
+
type?: string;
|
|
138
139
|
spaceSize?: [import("antd/lib/space").SpaceSize, import("antd/lib/space").SpaceSize];
|
|
139
140
|
size?: import("antd/lib/button").ButtonSize;
|
|
140
141
|
onClick?: (item: import("@ztocwst/rc-pro").ProButtonItemsProps) => void | Promise<any>;
|
|
141
142
|
onSuccess?: (item: import("@ztocwst/rc-pro").ProButtonItemsProps, data?: any) => void;
|
|
142
|
-
type?: "link";
|
|
143
143
|
};
|
|
144
144
|
grid: {
|
|
145
145
|
config: any;
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { ProButtonItemsProps, ProButtonProps } from '@ztocwst/rc-pro';
|
|
2
|
-
export declare const processButtonProps: (props: ProButtonProps
|
|
2
|
+
export declare const processButtonProps: (props: ProButtonProps & {
|
|
3
|
+
linkButton?: boolean;
|
|
4
|
+
}, extra?: {
|
|
3
5
|
tableRef?: any;
|
|
4
6
|
}) => {
|
|
5
7
|
items: any[];
|
|
8
|
+
type?: string;
|
|
6
9
|
spaceSize?: [import("antd/lib/space").SpaceSize, import("antd/lib/space").SpaceSize];
|
|
7
10
|
size?: import("antd/lib/button").ButtonSize;
|
|
8
11
|
onClick?: (item: ProButtonItemsProps) => void | Promise<any>;
|
|
9
12
|
onSuccess?: (item: ProButtonItemsProps, data?: any) => void;
|
|
10
|
-
type?: "link";
|
|
11
13
|
};
|
|
@@ -8,7 +8,7 @@ var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runt
|
|
|
8
8
|
var _microModal = require("./microModal");
|
|
9
9
|
var _common = require("./common");
|
|
10
10
|
var _excluded = ["printer", "tpl", "print"],
|
|
11
|
-
_excluded2 = ["items"],
|
|
11
|
+
_excluded2 = ["items", "linkButton"],
|
|
12
12
|
_excluded3 = ["advancedConfig", "fileConfig", "microModal", "menu", "confirm", "popconfirm", "modal", "print", "requestConfig"],
|
|
13
13
|
_excluded4 = ["request"];
|
|
14
14
|
var processPrintProps = function processPrintProps(print) {
|
|
@@ -27,6 +27,7 @@ var processPrintProps = function processPrintProps(print) {
|
|
|
27
27
|
var processButtonProps = function processButtonProps(props, extra) {
|
|
28
28
|
var _ref;
|
|
29
29
|
var items = props.items,
|
|
30
|
+
linkButton = props.linkButton,
|
|
30
31
|
rest = (0, _objectWithoutPropertiesLoose2["default"])(props, _excluded2);
|
|
31
32
|
// const { tableRef = null } = extra;
|
|
32
33
|
|
|
@@ -107,7 +108,9 @@ var processButtonProps = function processButtonProps(props, extra) {
|
|
|
107
108
|
}
|
|
108
109
|
return e;
|
|
109
110
|
});
|
|
110
|
-
return (0, _extends2["default"])({}, rest, {
|
|
111
|
+
return (0, _extends2["default"])({}, rest, linkButton ? {
|
|
112
|
+
type: 'link'
|
|
113
|
+
} : {}, {
|
|
111
114
|
items: _items_ === null || _items_ === void 0 ? void 0 : _items_.filter(function (e) {
|
|
112
115
|
return !!e;
|
|
113
116
|
})
|
|
@@ -16,11 +16,11 @@ export declare const processListTplProps: (props: RcListItem, extra?: {
|
|
|
16
16
|
form: any;
|
|
17
17
|
actions: {
|
|
18
18
|
items: any[];
|
|
19
|
+
type?: string;
|
|
19
20
|
spaceSize?: [import("antd/lib/space").SpaceSize, import("antd/lib/space").SpaceSize];
|
|
20
21
|
size?: import("antd/lib/button").ButtonSize;
|
|
21
22
|
onClick?: (item: import("@ztocwst/rc-pro").ProButtonItemsProps) => void | Promise<any>;
|
|
22
23
|
onSuccess?: (item: import("@ztocwst/rc-pro").ProButtonItemsProps, data?: any) => void;
|
|
23
|
-
type?: "link";
|
|
24
24
|
};
|
|
25
25
|
grid: {
|
|
26
26
|
config: any;
|
package/lib/utils/props/tpl.d.ts
CHANGED
|
@@ -135,11 +135,11 @@ export declare const processTplProps: (props: RcPageProps, extra?: {
|
|
|
135
135
|
form: any;
|
|
136
136
|
actions: {
|
|
137
137
|
items: any[];
|
|
138
|
+
type?: string;
|
|
138
139
|
spaceSize?: [import("antd/lib/space").SpaceSize, import("antd/lib/space").SpaceSize];
|
|
139
140
|
size?: import("antd/lib/button").ButtonSize;
|
|
140
141
|
onClick?: (item: import("@ztocwst/rc-pro").ProButtonItemsProps) => void | Promise<any>;
|
|
141
142
|
onSuccess?: (item: import("@ztocwst/rc-pro").ProButtonItemsProps, data?: any) => void;
|
|
142
|
-
type?: "link";
|
|
143
143
|
};
|
|
144
144
|
grid: {
|
|
145
145
|
config: any;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ztocwst/rc-pro-materials",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.14",
|
|
4
4
|
"description": "@ztocwst/rc-pro-materials",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -84,9 +84,9 @@
|
|
|
84
84
|
},
|
|
85
85
|
"componentConfig": {
|
|
86
86
|
"isComponentLibrary": true,
|
|
87
|
-
"materialSchema": "https://unpkg.com/@ztocwst/rc-pro-materials@0.1.
|
|
87
|
+
"materialSchema": "https://unpkg.com/@ztocwst/rc-pro-materials@0.1.14/build/lowcode/assets-prod.json"
|
|
88
88
|
},
|
|
89
|
-
"homepage": "https://unpkg.com/@ztocwst/rc-pro-materials@0.1.
|
|
89
|
+
"homepage": "https://unpkg.com/@ztocwst/rc-pro-materials@0.1.14/build/index.html",
|
|
90
90
|
"publishConfig": {
|
|
91
91
|
"registry": "https://registry.npmjs.org/",
|
|
92
92
|
"access": "public"
|