@pisell/materials 2.2.35 → 2.2.37
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 +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +2 -2
- package/build/lowcode/preview.js +8 -8
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +30 -30
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +23 -23
- package/es/components/cardPro/index.d.ts +4 -0
- package/es/components/cardPro/index.js +69 -0
- package/es/components/cardPro/index.less +55 -0
- package/es/components/collapse/index.d.ts +15 -0
- package/es/components/collapse/index.js +80 -0
- package/es/components/collapse/index.less +0 -0
- package/es/components/productCard/components/Action/index.d.ts +4 -0
- package/es/components/productCard/components/Action/index.js +21 -0
- package/es/components/productCard/components/Action/index.less +14 -0
- package/es/components/productCard/components/AmountFooter/index.d.ts +4 -0
- package/es/components/productCard/components/AmountFooter/index.js +38 -0
- package/es/components/productCard/components/AmountFooter/index.less +39 -0
- package/es/components/productCard/components/Divider/index.d.ts +4 -0
- package/es/components/productCard/components/Divider/index.js +11 -0
- package/es/components/productCard/components/Divider/index.less +13 -0
- package/es/components/productCard/components/Header/index.d.ts +4 -0
- package/es/components/productCard/components/Header/index.js +70 -0
- package/es/components/productCard/components/Header/index.less +63 -0
- package/es/components/productCard/components/Note/index.d.ts +4 -0
- package/es/components/productCard/components/Note/index.js +25 -0
- package/es/components/productCard/components/Note/index.less +20 -0
- package/es/components/productCard/components/Packages/components/collapsibleList/index.d.ts +10 -0
- package/es/components/productCard/components/Packages/components/collapsibleList/index.js +96 -0
- package/es/components/productCard/components/Packages/components/collapsibleList/index.less +53 -0
- package/es/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +2 -0
- package/es/components/productCard/components/Packages/components/collapsibleList/utils.js +33 -0
- package/es/components/productCard/components/Packages/components/options/index.d.ts +4 -0
- package/es/components/productCard/components/Packages/components/options/index.js +23 -0
- package/es/components/productCard/components/Packages/components/options/index.less +29 -0
- package/es/components/productCard/components/Packages/index.d.ts +4 -0
- package/es/components/productCard/components/Packages/index.js +32 -0
- package/es/components/productCard/components/Packages/index.less +17 -0
- package/es/components/productCard/components/Packages/utils.d.ts +20 -0
- package/es/components/productCard/components/Packages/utils.js +40 -0
- package/es/components/productCard/components/Sales/index.d.ts +4 -0
- package/es/components/productCard/components/Sales/index.js +39 -0
- package/es/components/productCard/components/Sales/index.less +18 -0
- package/es/components/productCard/components/Time/components/Like/index.d.ts +9 -0
- package/es/components/productCard/components/Time/components/Like/index.js +26 -0
- package/es/components/productCard/components/Time/components/Like/index.less +6 -0
- package/es/components/productCard/components/Time/components/Like/like-heart.png +0 -0
- package/es/components/productCard/components/Time/components/Like/like-hide-heart.png +0 -0
- package/es/components/productCard/components/Time/index.d.ts +4 -0
- package/es/components/productCard/components/Time/index.js +44 -0
- package/es/components/productCard/components/Time/index.less +35 -0
- package/es/components/productCard/hooks/useOpenNote.d.ts +3 -0
- package/es/components/productCard/hooks/useOpenNote.js +66 -0
- package/es/components/productCard/index.d.ts +5 -0
- package/es/components/productCard/index.js +131 -0
- package/es/components/productCard/index.less +53 -0
- package/es/components/productCard/locales.d.ts +42 -0
- package/es/components/productCard/locales.js +47 -0
- package/es/components/productCard/status.d.ts +9 -0
- package/es/components/productCard/status.js +15 -0
- package/es/components/productCard/types.d.ts +17 -0
- package/es/components/productCard/types.js +1 -0
- package/es/components/productCard/utils.d.ts +162 -0
- package/es/components/productCard/utils.js +700 -0
- package/es/components/table/Table/utils.d.ts +1 -1
- package/es/index.d.ts +4 -2
- package/es/index.js +7 -2
- package/lib/components/cardPro/index.d.ts +4 -0
- package/lib/components/cardPro/index.js +101 -0
- package/lib/components/cardPro/index.less +55 -0
- package/lib/components/collapse/index.d.ts +15 -0
- package/lib/components/collapse/index.js +83 -0
- package/lib/components/collapse/index.less +0 -0
- package/lib/components/productCard/components/Action/index.d.ts +4 -0
- package/lib/components/productCard/components/Action/index.js +55 -0
- package/lib/components/productCard/components/Action/index.less +14 -0
- package/lib/components/productCard/components/AmountFooter/index.d.ts +4 -0
- package/lib/components/productCard/components/AmountFooter/index.js +61 -0
- package/lib/components/productCard/components/AmountFooter/index.less +39 -0
- package/lib/components/productCard/components/Divider/index.d.ts +4 -0
- package/lib/components/productCard/components/Divider/index.js +50 -0
- package/lib/components/productCard/components/Divider/index.less +13 -0
- package/lib/components/productCard/components/Header/index.d.ts +4 -0
- package/lib/components/productCard/components/Header/index.js +82 -0
- package/lib/components/productCard/components/Header/index.less +63 -0
- package/lib/components/productCard/components/Note/index.d.ts +4 -0
- package/lib/components/productCard/components/Note/index.js +56 -0
- package/lib/components/productCard/components/Note/index.less +20 -0
- package/lib/components/productCard/components/Packages/components/collapsibleList/index.d.ts +10 -0
- package/lib/components/productCard/components/Packages/components/collapsibleList/index.js +93 -0
- package/lib/components/productCard/components/Packages/components/collapsibleList/index.less +53 -0
- package/lib/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +2 -0
- package/lib/components/productCard/components/Packages/components/collapsibleList/utils.js +52 -0
- package/lib/components/productCard/components/Packages/components/options/index.d.ts +4 -0
- package/lib/components/productCard/components/Packages/components/options/index.js +73 -0
- package/lib/components/productCard/components/Packages/components/options/index.less +29 -0
- package/lib/components/productCard/components/Packages/index.d.ts +4 -0
- package/lib/components/productCard/components/Packages/index.js +56 -0
- package/lib/components/productCard/components/Packages/index.less +17 -0
- package/lib/components/productCard/components/Packages/utils.d.ts +20 -0
- package/lib/components/productCard/components/Packages/utils.js +44 -0
- package/lib/components/productCard/components/Sales/index.d.ts +4 -0
- package/lib/components/productCard/components/Sales/index.js +61 -0
- package/lib/components/productCard/components/Sales/index.less +18 -0
- package/lib/components/productCard/components/Time/components/Like/index.d.ts +9 -0
- package/lib/components/productCard/components/Time/components/Like/index.js +64 -0
- package/lib/components/productCard/components/Time/components/Like/index.less +6 -0
- package/lib/components/productCard/components/Time/components/Like/like-heart.png +0 -0
- package/lib/components/productCard/components/Time/components/Like/like-hide-heart.png +0 -0
- package/lib/components/productCard/components/Time/index.d.ts +4 -0
- package/lib/components/productCard/components/Time/index.js +64 -0
- package/lib/components/productCard/components/Time/index.less +35 -0
- package/lib/components/productCard/hooks/useOpenNote.d.ts +3 -0
- package/lib/components/productCard/hooks/useOpenNote.js +84 -0
- package/lib/components/productCard/index.d.ts +5 -0
- package/lib/components/productCard/index.js +160 -0
- package/lib/components/productCard/index.less +53 -0
- package/lib/components/productCard/locales.d.ts +42 -0
- package/lib/components/productCard/locales.js +65 -0
- package/lib/components/productCard/status.d.ts +9 -0
- package/lib/components/productCard/status.js +36 -0
- package/lib/components/productCard/types.d.ts +17 -0
- package/lib/components/productCard/types.js +17 -0
- package/lib/components/productCard/utils.d.ts +162 -0
- package/lib/components/productCard/utils.js +613 -0
- package/lib/components/table/Table/utils.d.ts +1 -1
- package/lib/index.d.ts +4 -2
- package/lib/index.js +38 -32
- package/lowcode/card-pro/meta.ts +338 -0
- package/lowcode/card-pro/snippe.ts +39 -0
- package/lowcode/collapse/meta.ts +85 -1
- package/lowcode/date-picker.range-picker/meta.ts +20 -0
- package/lowcode/product-card/meta.ts +92 -0
- package/lowcode/product-card/snippets.ts +23 -0
- package/package.json +2 -2
package/lib/index.js
CHANGED
|
@@ -41,38 +41,39 @@ __export(src_exports, {
|
|
|
41
41
|
Button: () => import_button.default,
|
|
42
42
|
Calendar: () => import_calendar.default,
|
|
43
43
|
Card: () => import_antd7.Card,
|
|
44
|
-
|
|
44
|
+
CardPro: () => import_cardPro.default,
|
|
45
|
+
Carousel: () => import_antd8.Carousel,
|
|
45
46
|
Cascader: () => import_cascader.default,
|
|
46
47
|
Checkbox: () => import_checkbox.default,
|
|
47
48
|
ClassicLayout: () => import_classicLayout.default,
|
|
48
|
-
Col: () =>
|
|
49
|
-
Collapse: () =>
|
|
49
|
+
Col: () => import_antd9.Col,
|
|
50
|
+
Collapse: () => import_collapse.default,
|
|
50
51
|
Component: () => import_component.default,
|
|
51
52
|
ConfigProvider: () => import_config_provider.default,
|
|
52
53
|
DatePicker: () => import_date_picker.default,
|
|
53
|
-
Descriptions: () =>
|
|
54
|
+
Descriptions: () => import_antd10.Descriptions,
|
|
54
55
|
Div: () => import_div.default,
|
|
55
|
-
Divider: () =>
|
|
56
|
+
Divider: () => import_antd11.Divider,
|
|
56
57
|
DragSortTree: () => import_drag_sort_tree.default,
|
|
57
58
|
Drawer: () => import_drawer.default,
|
|
58
59
|
Dropdown: () => import_dropdown.default,
|
|
59
|
-
Empty: () =>
|
|
60
|
+
Empty: () => import_antd12.Empty,
|
|
60
61
|
Filter: () => import_filter.default,
|
|
61
62
|
Form: () => import_form.default,
|
|
62
|
-
Grid: () =>
|
|
63
|
+
Grid: () => import_antd13.Grid,
|
|
63
64
|
Icon: () => import_icon.default,
|
|
64
65
|
Iconfont: () => import_iconfont.default,
|
|
65
|
-
Image: () =>
|
|
66
|
+
Image: () => import_antd14.Image,
|
|
66
67
|
Input: () => import_input.default,
|
|
67
|
-
InputNumber: () =>
|
|
68
|
+
InputNumber: () => import_antd15.InputNumber,
|
|
68
69
|
InputNumberRange: () => import_input_number_range.default,
|
|
69
70
|
List: () => import_list.default,
|
|
70
71
|
LowCodePage: () => import_lowCodePage.default,
|
|
71
|
-
Mentions: () =>
|
|
72
|
-
Menu: () =>
|
|
72
|
+
Mentions: () => import_antd18.Mentions,
|
|
73
|
+
Menu: () => import_antd17.Menu,
|
|
73
74
|
Modal: () => import_modal.default,
|
|
74
75
|
Page: () => import_page.default,
|
|
75
|
-
Pagination: () =>
|
|
76
|
+
Pagination: () => import_antd21.Pagination,
|
|
76
77
|
PisellAdjustPrice: () => import_pisellAdjustPrice.default,
|
|
77
78
|
PisellAdjustPriceInputNumber: () => import_PisellAdjustPriceInputNumber.default,
|
|
78
79
|
PisellAlert: () => import_pisellAlert.default,
|
|
@@ -99,15 +100,16 @@ __export(src_exports, {
|
|
|
99
100
|
PisellToast: () => import_pisellToast.default,
|
|
100
101
|
PisellTooltip: () => import_pisellTooltip.default,
|
|
101
102
|
PisellWalletPassCard: () => import_pisellWalletPassCard.default,
|
|
102
|
-
Popconfirm: () =>
|
|
103
|
-
Popover: () =>
|
|
104
|
-
|
|
103
|
+
Popconfirm: () => import_antd22.Popconfirm,
|
|
104
|
+
Popover: () => import_antd23.Popover,
|
|
105
|
+
ProductCard: () => import_productCard.default,
|
|
106
|
+
Progress: () => import_antd24.Progress,
|
|
105
107
|
QRCode: () => import_qrcode.default,
|
|
106
108
|
Radio: () => import_radio.default,
|
|
107
|
-
Rate: () =>
|
|
109
|
+
Rate: () => import_antd25.Rate,
|
|
108
110
|
RecordView: () => import_record_view.default,
|
|
109
|
-
Result: () =>
|
|
110
|
-
Row: () =>
|
|
111
|
+
Result: () => import_antd26.Result,
|
|
112
|
+
Row: () => import_antd27.Row,
|
|
111
113
|
Segmented: () => import_segmented.default,
|
|
112
114
|
Select: () => import_select.default,
|
|
113
115
|
SelectTime: () => import_select_time.default,
|
|
@@ -115,20 +117,20 @@ __export(src_exports, {
|
|
|
115
117
|
Slider: () => import_slider.default,
|
|
116
118
|
Sort: () => import_sort.default,
|
|
117
119
|
SortableList: () => import_sortableList.default,
|
|
118
|
-
Space: () =>
|
|
119
|
-
Spin: () =>
|
|
120
|
-
Statistic: () =>
|
|
121
|
-
Steps: () =>
|
|
122
|
-
Switch: () =>
|
|
120
|
+
Space: () => import_antd28.Space,
|
|
121
|
+
Spin: () => import_antd29.Spin,
|
|
122
|
+
Statistic: () => import_antd19.Statistic,
|
|
123
|
+
Steps: () => import_antd30.Steps,
|
|
124
|
+
Switch: () => import_antd31.Switch,
|
|
123
125
|
Table: () => import_table.default,
|
|
124
126
|
Tabs: () => import_tabs.default,
|
|
125
|
-
Tag: () =>
|
|
127
|
+
Tag: () => import_antd34.Tag,
|
|
126
128
|
TimePicker: () => import_time_picker.default,
|
|
127
|
-
Timeline: () =>
|
|
128
|
-
Tooltip: () =>
|
|
129
|
-
Transfer: () =>
|
|
129
|
+
Timeline: () => import_antd35.Timeline,
|
|
130
|
+
Tooltip: () => import_antd36.Tooltip,
|
|
131
|
+
Transfer: () => import_antd32.Transfer,
|
|
130
132
|
Translation: () => import_translation.default,
|
|
131
|
-
Tree: () =>
|
|
133
|
+
Tree: () => import_antd33.Tree,
|
|
132
134
|
TreeSelect: () => import_tree_select.default,
|
|
133
135
|
Typography: () => import_typography.default,
|
|
134
136
|
Upload: () => import_upload.default,
|
|
@@ -136,10 +138,10 @@ __export(src_exports, {
|
|
|
136
138
|
VirtualKeyboardTime: () => import_Time.default,
|
|
137
139
|
getBankCardTypeImg: () => import_utils.getBankCardTypeImg,
|
|
138
140
|
globalConfig: () => import_context.globalConfig,
|
|
139
|
-
message: () =>
|
|
140
|
-
notification: () =>
|
|
141
|
+
message: () => import_antd16.message,
|
|
142
|
+
notification: () => import_antd20.notification,
|
|
141
143
|
usePisellConfig: () => import_usePisellConfig.default,
|
|
142
|
-
version: () =>
|
|
144
|
+
version: () => import_antd37.version
|
|
143
145
|
});
|
|
144
146
|
module.exports = __toCommonJS(src_exports);
|
|
145
147
|
var import_antd = require("antd");
|
|
@@ -179,7 +181,6 @@ var import_antd34 = require("antd");
|
|
|
179
181
|
var import_antd35 = require("antd");
|
|
180
182
|
var import_antd36 = require("antd");
|
|
181
183
|
var import_antd37 = require("antd");
|
|
182
|
-
var import_antd38 = require("antd");
|
|
183
184
|
var import_typography = __toESM(require("./components/typography"));
|
|
184
185
|
var import_skeleton = __toESM(require("./components/skeleton"));
|
|
185
186
|
var import_checkbox = __toESM(require("./components/checkbox"));
|
|
@@ -214,6 +215,7 @@ var import_qrcode = __toESM(require("./components/qrcode"));
|
|
|
214
215
|
var import_classicLayout = __toESM(require("./components/classicLayout"));
|
|
215
216
|
var import_list = __toESM(require("./components/list"));
|
|
216
217
|
var import_sort = __toESM(require("./components/sort"));
|
|
218
|
+
var import_cardPro = __toESM(require("./components/cardPro"));
|
|
217
219
|
var import_input_number_range = __toESM(require("./components/input-number-range"));
|
|
218
220
|
var import_lowCodePage = __toESM(require("./components/lowCodePage"));
|
|
219
221
|
var import_segmented = __toESM(require("./components/segmented"));
|
|
@@ -252,6 +254,8 @@ var import_pisellAdjustPrice = __toESM(require("./components/pisellAdjustPrice")
|
|
|
252
254
|
var import_PisellAdjustPriceInputNumber = __toESM(require("./components/pisellAdjustPrice/PisellAdjustPriceInputNumber"));
|
|
253
255
|
var import_pisellStatisticList = __toESM(require("./components/pisellStatisticList"));
|
|
254
256
|
var import_pisellFloatingPanel = __toESM(require("./components/pisellFloatingPanel"));
|
|
257
|
+
var import_productCard = __toESM(require("./components/productCard"));
|
|
258
|
+
var import_collapse = __toESM(require("./components/collapse"));
|
|
255
259
|
// Annotate the CommonJS export names for ESM import in node:
|
|
256
260
|
0 && (module.exports = {
|
|
257
261
|
Affix,
|
|
@@ -266,6 +270,7 @@ var import_pisellFloatingPanel = __toESM(require("./components/pisellFloatingPan
|
|
|
266
270
|
Button,
|
|
267
271
|
Calendar,
|
|
268
272
|
Card,
|
|
273
|
+
CardPro,
|
|
269
274
|
Carousel,
|
|
270
275
|
Cascader,
|
|
271
276
|
Checkbox,
|
|
@@ -326,6 +331,7 @@ var import_pisellFloatingPanel = __toESM(require("./components/pisellFloatingPan
|
|
|
326
331
|
PisellWalletPassCard,
|
|
327
332
|
Popconfirm,
|
|
328
333
|
Popover,
|
|
334
|
+
ProductCard,
|
|
329
335
|
Progress,
|
|
330
336
|
QRCode,
|
|
331
337
|
Radio,
|
|
@@ -0,0 +1,338 @@
|
|
|
1
|
+
import { uuid } from "../_utils/utils";
|
|
2
|
+
import snippets from "./snippe";
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
snippets,
|
|
6
|
+
componentName: "CardPro",
|
|
7
|
+
title: "卡片",
|
|
8
|
+
category: "通用",
|
|
9
|
+
docUrl: "",
|
|
10
|
+
screenshot: "",
|
|
11
|
+
devMode: "proCode",
|
|
12
|
+
npm: {
|
|
13
|
+
package: "@pisell/materials",
|
|
14
|
+
version: "1.0.1",
|
|
15
|
+
exportName: "CardPro",
|
|
16
|
+
main: "src/index.tsx",
|
|
17
|
+
destructuring: true,
|
|
18
|
+
subName: "",
|
|
19
|
+
},
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
props: [
|
|
23
|
+
{
|
|
24
|
+
name: "badge",
|
|
25
|
+
title: {
|
|
26
|
+
label: "启用徽标区域",
|
|
27
|
+
tip: "启用徽标区域"
|
|
28
|
+
},
|
|
29
|
+
propType: "node",
|
|
30
|
+
setter: {
|
|
31
|
+
componentName: "SlotSetter",
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
name: "objectFit",
|
|
36
|
+
title: {
|
|
37
|
+
label: "填充类型",
|
|
38
|
+
tip: "媒体区域填充类型",
|
|
39
|
+
},
|
|
40
|
+
propType: { type: "oneOf", value: ["large", "middle", "small"] },
|
|
41
|
+
setter: [
|
|
42
|
+
{
|
|
43
|
+
componentName: "RadioGroupSetter",
|
|
44
|
+
props: {
|
|
45
|
+
options: [
|
|
46
|
+
{
|
|
47
|
+
title: "fill",
|
|
48
|
+
value: "fill",
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
title: "contain",
|
|
52
|
+
value: "contain",
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
title: "cover",
|
|
56
|
+
value: "cover",
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
title: "none",
|
|
60
|
+
value: "none",
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
title: "scale-down",
|
|
64
|
+
value: "scale-down",
|
|
65
|
+
},
|
|
66
|
+
],
|
|
67
|
+
},
|
|
68
|
+
},
|
|
69
|
+
"VariableSetter",
|
|
70
|
+
],
|
|
71
|
+
setValue: (target, value) => {
|
|
72
|
+
// 当属性值更新时,手动触发逻辑
|
|
73
|
+
let coverValue = target.getProps().getPropValue("cover") || {};
|
|
74
|
+
coverValue.value[0].props.style.objectFit = value
|
|
75
|
+
target.getProps().setPropValue("cover", coverValue);
|
|
76
|
+
},
|
|
77
|
+
defaultValue: "fill",
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
name: "contentHeight",
|
|
81
|
+
title: { label: "内容区域高度", tip: "输入内容区域高度 超出高度出现滚动条" },
|
|
82
|
+
propType: "number",
|
|
83
|
+
setter: "NumberSetter",
|
|
84
|
+
defaultValue: 40,
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
name: "coverHeight",
|
|
88
|
+
title: { label: "媒体区域高度", tip: "输入媒体区域高度" },
|
|
89
|
+
propType: "number",
|
|
90
|
+
setter: "NumberSetter",
|
|
91
|
+
defaultValue: 100,
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
name: "cover",
|
|
95
|
+
title: {
|
|
96
|
+
label: "启用媒体区域"
|
|
97
|
+
},
|
|
98
|
+
propType: "node",
|
|
99
|
+
setter: {
|
|
100
|
+
componentName: "SlotSetter",
|
|
101
|
+
initialValue: {
|
|
102
|
+
type: "JSSlot",
|
|
103
|
+
value: [
|
|
104
|
+
{
|
|
105
|
+
componentName: "Image",
|
|
106
|
+
props: {
|
|
107
|
+
src: "https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png",
|
|
108
|
+
width: '100%',
|
|
109
|
+
height: '100%',
|
|
110
|
+
style: {
|
|
111
|
+
objectFit: 'fill'
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
},
|
|
115
|
+
],
|
|
116
|
+
},
|
|
117
|
+
},
|
|
118
|
+
},
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
{
|
|
122
|
+
name: "isShowHead",
|
|
123
|
+
title: { label: "显示头部区域", tip: "是否显示头部区域" },
|
|
124
|
+
propType: "bool",
|
|
125
|
+
setter: "BoolSetter",
|
|
126
|
+
defaultValue: true,
|
|
127
|
+
},
|
|
128
|
+
|
|
129
|
+
{
|
|
130
|
+
name: "isShowFooter",
|
|
131
|
+
title: { label: "显示底部区域", tip: "是否显示底部区域" },
|
|
132
|
+
propType: "bool",
|
|
133
|
+
setter: "BoolSetter",
|
|
134
|
+
defaultValue: true,
|
|
135
|
+
},
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
{
|
|
139
|
+
name: "head",
|
|
140
|
+
title: {
|
|
141
|
+
label: "头部区域",
|
|
142
|
+
},
|
|
143
|
+
condition: (target) => {
|
|
144
|
+
return target.getProps().getPropValue('isShowHead')
|
|
145
|
+
},
|
|
146
|
+
display: 'accordion',
|
|
147
|
+
type: "group",
|
|
148
|
+
items: [{
|
|
149
|
+
name: "headTitle",
|
|
150
|
+
title: {
|
|
151
|
+
label: {
|
|
152
|
+
type: "i18n",
|
|
153
|
+
zh_CN: "主标题",
|
|
154
|
+
en_US: "Main Title",
|
|
155
|
+
},
|
|
156
|
+
tip: {
|
|
157
|
+
type: 'i18n',
|
|
158
|
+
zh_CN: '主标题',
|
|
159
|
+
en_US: 'Please enter the main title'
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
propType: "string",
|
|
163
|
+
setter: "StringSetter",
|
|
164
|
+
defaultValue: "这是主标题"
|
|
165
|
+
}, {
|
|
166
|
+
name: "headSubTitle",
|
|
167
|
+
title: {
|
|
168
|
+
label: "副标题",
|
|
169
|
+
placeholder: "请输入副标题"
|
|
170
|
+
},
|
|
171
|
+
propType: "string",
|
|
172
|
+
setter: "StringSetter",
|
|
173
|
+
defaultValue: "这是副标题"
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
name: "extra",
|
|
177
|
+
title: { label: "头部操作", tip: "头部操作" },
|
|
178
|
+
propType: { type: "oneOfType", value: ["string", "node"] },
|
|
179
|
+
setter: [
|
|
180
|
+
{
|
|
181
|
+
componentName: "SlotSetter",
|
|
182
|
+
initialValue: {
|
|
183
|
+
type: "JSSlot",
|
|
184
|
+
value: [],
|
|
185
|
+
},
|
|
186
|
+
},
|
|
187
|
+
"VariableSetter",
|
|
188
|
+
],
|
|
189
|
+
},
|
|
190
|
+
|
|
191
|
+
]
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
name: "footer",
|
|
195
|
+
title: {
|
|
196
|
+
label: "底部区域",
|
|
197
|
+
},
|
|
198
|
+
condition: (target) => {
|
|
199
|
+
return target.getProps().getPropValue('isShowFooter')
|
|
200
|
+
},
|
|
201
|
+
display: 'accordion',
|
|
202
|
+
type: "group",
|
|
203
|
+
items: [
|
|
204
|
+
{
|
|
205
|
+
name: "actionButtons",
|
|
206
|
+
title: {
|
|
207
|
+
label: "底部按钮",
|
|
208
|
+
},
|
|
209
|
+
setter: {
|
|
210
|
+
componentName: "ArraySetter",
|
|
211
|
+
props: {
|
|
212
|
+
itemSetter: {
|
|
213
|
+
componentName: "ObjectSetter",
|
|
214
|
+
props: {
|
|
215
|
+
config: {
|
|
216
|
+
items: [
|
|
217
|
+
{
|
|
218
|
+
name: "key",
|
|
219
|
+
title: "key",
|
|
220
|
+
setter: "StringSetter",
|
|
221
|
+
initialValue: (val) => val || uuid(),
|
|
222
|
+
supportVariable: true,
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
name: "button",
|
|
226
|
+
title: {
|
|
227
|
+
label: {
|
|
228
|
+
type: "i18n",
|
|
229
|
+
"en-US": "button",
|
|
230
|
+
"zh-CN": "按钮",
|
|
231
|
+
},
|
|
232
|
+
},
|
|
233
|
+
propType: "node",
|
|
234
|
+
setter: {
|
|
235
|
+
componentName: "SlotSetter",
|
|
236
|
+
initialValue: {
|
|
237
|
+
type: "JSSlot",
|
|
238
|
+
value: [
|
|
239
|
+
{
|
|
240
|
+
componentName: "Button",
|
|
241
|
+
props: {
|
|
242
|
+
type: "primary",
|
|
243
|
+
children: "kik",
|
|
244
|
+
},
|
|
245
|
+
},
|
|
246
|
+
],
|
|
247
|
+
},
|
|
248
|
+
},
|
|
249
|
+
},
|
|
250
|
+
],
|
|
251
|
+
},
|
|
252
|
+
},
|
|
253
|
+
initialValue: () => {
|
|
254
|
+
return {
|
|
255
|
+
key: uuid(),
|
|
256
|
+
button: {
|
|
257
|
+
type: "JSSlot",
|
|
258
|
+
value: [
|
|
259
|
+
{
|
|
260
|
+
componentName: "Button",
|
|
261
|
+
props: {
|
|
262
|
+
type: "primary",
|
|
263
|
+
children: "按钮"
|
|
264
|
+
}
|
|
265
|
+
},
|
|
266
|
+
],
|
|
267
|
+
},
|
|
268
|
+
};
|
|
269
|
+
},
|
|
270
|
+
},
|
|
271
|
+
},
|
|
272
|
+
},
|
|
273
|
+
},
|
|
274
|
+
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
{
|
|
278
|
+
name: "fixedFooter",
|
|
279
|
+
title: {
|
|
280
|
+
label: "底部固定"
|
|
281
|
+
},
|
|
282
|
+
propType: "bool",
|
|
283
|
+
setter: "BoolSetter",
|
|
284
|
+
defaultValue: true,
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
name: "buttonPosition",
|
|
288
|
+
title: {
|
|
289
|
+
label: "按钮位置",
|
|
290
|
+
tip: "选择按钮排列位置",
|
|
291
|
+
},
|
|
292
|
+
propType: { type: "oneOf", value: ["large", "middle", "small"] },
|
|
293
|
+
setter: [
|
|
294
|
+
{
|
|
295
|
+
componentName: "RadioGroupSetter",
|
|
296
|
+
props: {
|
|
297
|
+
options: [
|
|
298
|
+
{
|
|
299
|
+
title: "居左",
|
|
300
|
+
value: "start",
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
title: "居中",
|
|
304
|
+
value: "center",
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
title: "居右",
|
|
308
|
+
value: "end",
|
|
309
|
+
},
|
|
310
|
+
],
|
|
311
|
+
},
|
|
312
|
+
},
|
|
313
|
+
"VariableSetter",
|
|
314
|
+
],
|
|
315
|
+
defaultValue: "center",
|
|
316
|
+
},
|
|
317
|
+
|
|
318
|
+
]
|
|
319
|
+
}
|
|
320
|
+
],
|
|
321
|
+
|
|
322
|
+
configure: {
|
|
323
|
+
component: {
|
|
324
|
+
isContainer: true
|
|
325
|
+
},
|
|
326
|
+
isExeng: true,
|
|
327
|
+
supports: {
|
|
328
|
+
style: true,
|
|
329
|
+
events: [
|
|
330
|
+
{
|
|
331
|
+
name: "onClick",
|
|
332
|
+
template:
|
|
333
|
+
"onClick(event,${extParams}){\n// 点击按钮时的回调\nconsole.log('onClick', event);}",
|
|
334
|
+
},
|
|
335
|
+
],
|
|
336
|
+
},
|
|
337
|
+
}
|
|
338
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { uuid } from "../_utils/utils";
|
|
2
|
+
|
|
3
|
+
export default [{
|
|
4
|
+
componentName: 'CardPro',
|
|
5
|
+
title: 'CardPro',
|
|
6
|
+
schema: {
|
|
7
|
+
componentName: 'CardPro',
|
|
8
|
+
props: {
|
|
9
|
+
|
|
10
|
+
actionButtons: [
|
|
11
|
+
{
|
|
12
|
+
key: uuid(),
|
|
13
|
+
button: {
|
|
14
|
+
type: "JSSlot",
|
|
15
|
+
value: {
|
|
16
|
+
componentName: "Button",
|
|
17
|
+
props: {
|
|
18
|
+
children: "主按钮",
|
|
19
|
+
type: "primary"
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
}
|
|
23
|
+
}, {
|
|
24
|
+
key: uuid(),
|
|
25
|
+
button: {
|
|
26
|
+
type: "JSSlot",
|
|
27
|
+
value: {
|
|
28
|
+
componentName: "Button",
|
|
29
|
+
props: {
|
|
30
|
+
children: "副按钮",
|
|
31
|
+
type: "default"
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
]
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}]
|
package/lowcode/collapse/meta.ts
CHANGED
|
@@ -63,12 +63,52 @@ export default {
|
|
|
63
63
|
},
|
|
64
64
|
{
|
|
65
65
|
name: 'ghost',
|
|
66
|
-
title: { label: '
|
|
66
|
+
title: { label: '幽灵折叠面板', tip: '将折叠面板的背景变成透明' },
|
|
67
67
|
propType: 'bool',
|
|
68
68
|
defaultValue: false,
|
|
69
69
|
setter: 'BoolSetter',
|
|
70
70
|
supportVariable: true
|
|
71
71
|
},
|
|
72
|
+
{
|
|
73
|
+
title: "标题",
|
|
74
|
+
display: "block",
|
|
75
|
+
type: "group",
|
|
76
|
+
items: [
|
|
77
|
+
{
|
|
78
|
+
name: "showHeader",
|
|
79
|
+
title: { label: "标题显隐", tip: "header | 标题显示于隐藏" },
|
|
80
|
+
propType: "bool",
|
|
81
|
+
setter: "BoolSetter",
|
|
82
|
+
defaultValue: true,
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
name: "headerFontSize",
|
|
86
|
+
title: {
|
|
87
|
+
label: "字号",
|
|
88
|
+
tip: "headerFontSize | 标题字体大小",
|
|
89
|
+
},
|
|
90
|
+
propType: "string",
|
|
91
|
+
setter: "NumberSetter",
|
|
92
|
+
defaultValue: 14,
|
|
93
|
+
condition(target) {
|
|
94
|
+
return !!target.getProps().getPropValue("showHeader");
|
|
95
|
+
},
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
name: "headerColor",
|
|
99
|
+
title: {
|
|
100
|
+
label: "颜色",
|
|
101
|
+
tip: "headerColor | 标题字体颜色",
|
|
102
|
+
},
|
|
103
|
+
propType: "string",
|
|
104
|
+
setter: "ColorSetter",
|
|
105
|
+
defaultValue: "#101828",
|
|
106
|
+
condition(target) {
|
|
107
|
+
return !!target.getProps().getPropValue("showHeader");
|
|
108
|
+
},
|
|
109
|
+
}
|
|
110
|
+
],
|
|
111
|
+
},
|
|
72
112
|
{
|
|
73
113
|
name: 'collapses',
|
|
74
114
|
title: '折叠项',
|
|
@@ -203,6 +243,50 @@ export default {
|
|
|
203
243
|
],
|
|
204
244
|
},
|
|
205
245
|
},
|
|
246
|
+
{
|
|
247
|
+
title: "自定义面板",
|
|
248
|
+
display: "block",
|
|
249
|
+
type: "group",
|
|
250
|
+
items: [
|
|
251
|
+
{
|
|
252
|
+
name: "panelBackground",
|
|
253
|
+
title: {
|
|
254
|
+
label: "背景色",
|
|
255
|
+
tip: "panelBackground | 面板背景颜色",
|
|
256
|
+
},
|
|
257
|
+
propType: "string",
|
|
258
|
+
setter: 'ColorSetter',
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
name: "panelBorderRadius",
|
|
262
|
+
title: {
|
|
263
|
+
label: "圆角",
|
|
264
|
+
tip: "panelBorderRadius | 面板圆角大小",
|
|
265
|
+
},
|
|
266
|
+
propType: "string",
|
|
267
|
+
setter: "NumberSetter",
|
|
268
|
+
defaultValue: 0,
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
name: "panelMarginBottom",
|
|
272
|
+
title: {
|
|
273
|
+
label: "边距",
|
|
274
|
+
tip: "panelMarginBottom | 每个面板之间的间距",
|
|
275
|
+
},
|
|
276
|
+
propType: "string",
|
|
277
|
+
setter: "NumberSetter",
|
|
278
|
+
defaultValue: 0,
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
name: "expandIcon",
|
|
282
|
+
title: {
|
|
283
|
+
label: "图标",
|
|
284
|
+
tip: "expandIcon | 切换面板图标",
|
|
285
|
+
},
|
|
286
|
+
setter: ['SlotSetter'],
|
|
287
|
+
},
|
|
288
|
+
],
|
|
289
|
+
},
|
|
206
290
|
],
|
|
207
291
|
configure: {
|
|
208
292
|
supports: {
|
|
@@ -171,6 +171,26 @@ export default {
|
|
|
171
171
|
},
|
|
172
172
|
},
|
|
173
173
|
},
|
|
174
|
+
{
|
|
175
|
+
name: "isHideCustomSelect",
|
|
176
|
+
title: {
|
|
177
|
+
label: "是否隐藏自定义范围",
|
|
178
|
+
tip: "isHideCustomSelect | 是否隐藏自定义范围",
|
|
179
|
+
},
|
|
180
|
+
propType: "bool",
|
|
181
|
+
defaultValue: false,
|
|
182
|
+
setter: "BoolSetter",
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
name: "endDateDays",
|
|
186
|
+
title: {
|
|
187
|
+
label: "结束时间在开始时间的几天之后",
|
|
188
|
+
tip: "endDateDays | 结束时间在开始时间的几天之后",
|
|
189
|
+
},
|
|
190
|
+
defaultValue: 0,
|
|
191
|
+
propType: "number",
|
|
192
|
+
setter: "NumberSetter",
|
|
193
|
+
},
|
|
174
194
|
],
|
|
175
195
|
},
|
|
176
196
|
{
|