@pisell/materials 3.0.47 → 3.0.49-gray
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 +7 -7
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +11 -11
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +11 -11
- package/es/components/pisellFloatingPanel/index.d.ts +17 -0
- package/es/components/pisellFloatingPanel/index.js +89 -0
- package/es/components/pisellFloatingPanel/index.less +30 -0
- package/es/components/pisellModal/index.d.ts +20 -5
- package/es/components/pisellStatisticList/index.d.ts +18 -0
- package/es/components/pisellStatisticList/index.js +66 -0
- package/es/components/pisellStatisticList/index.less +43 -0
- package/es/components/table/Table/utils.d.ts +1 -1
- package/es/components/table/index.js +8 -1
- package/es/components/table/index.less +6 -0
- package/es/index.d.ts +2 -0
- package/es/index.js +3 -1
- package/lib/components/pisellFloatingPanel/index.d.ts +17 -0
- package/lib/components/pisellFloatingPanel/index.js +113 -0
- package/lib/components/pisellFloatingPanel/index.less +30 -0
- package/lib/components/pisellModal/index.d.ts +20 -5
- package/lib/components/pisellStatisticList/index.d.ts +18 -0
- package/lib/components/pisellStatisticList/index.js +109 -0
- package/lib/components/pisellStatisticList/index.less +43 -0
- package/lib/components/table/Table/utils.d.ts +1 -1
- package/lib/components/table/index.js +41 -23
- package/lib/components/table/index.less +6 -0
- package/lib/index.d.ts +2 -0
- package/lib/index.js +6 -0
- package/lowcode/input/meta.ts +25 -0
- package/lowcode/pisell-floating-panel/meta.ts +232 -0
- package/lowcode/pisell-statistic-list/meta.ts +264 -0
- package/package.json +1 -1
- package/dist/umd/materials.min.css +0 -1
- package/dist/umd/materials.min.js +0 -1
- package/dist/umd/static/DotsSix.57d66266.svg +0 -1
- package/dist/umd/static/arrow-left.e542294f.svg +0 -1
- package/dist/umd/static/arrow-right.763f03e0.svg +0 -1
- package/dist/umd/static/filter-lines.04a54ae9.svg +0 -1
- package/dist/umd/static/help-circle.31c9be40.svg +0 -1
- package/dist/umd/static/switch-vertical-01.7ebe3ba8.svg +0 -1
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/components/pisellStatisticList/index.tsx
|
|
30
|
+
var pisellStatisticList_exports = {};
|
|
31
|
+
__export(pisellStatisticList_exports, {
|
|
32
|
+
default: () => pisellStatisticList_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(pisellStatisticList_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_antd = require("antd");
|
|
37
|
+
var import_pisellTooltip = __toESM(require("../pisellTooltip"));
|
|
38
|
+
var import_iconfont = __toESM(require("../iconfont"));
|
|
39
|
+
var import_index = require("./index.less");
|
|
40
|
+
var defaultColors = [
|
|
41
|
+
"rgba(224, 79, 22, 0.20)",
|
|
42
|
+
"rgba(202, 133, 4, 0.20)",
|
|
43
|
+
"rgba(127, 86, 217, 0.22)",
|
|
44
|
+
"rgba(7, 148, 85, 0.20)",
|
|
45
|
+
"rgba(21, 112, 239, 0.23)"
|
|
46
|
+
];
|
|
47
|
+
var PisellStatisticList = (props) => {
|
|
48
|
+
const {
|
|
49
|
+
backgroundColors = defaultColors,
|
|
50
|
+
labelColor = "#fff",
|
|
51
|
+
valueColor = "#fff",
|
|
52
|
+
data,
|
|
53
|
+
...others
|
|
54
|
+
} = props;
|
|
55
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode-statistic-list-wrap", ...others }, data.map((item, index) => {
|
|
56
|
+
var _a;
|
|
57
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
|
58
|
+
"div",
|
|
59
|
+
{
|
|
60
|
+
className: "pisell-lowcode-statistic-list-item",
|
|
61
|
+
style: {
|
|
62
|
+
background: backgroundColors[index % backgroundColors.length]
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
66
|
+
"div",
|
|
67
|
+
{
|
|
68
|
+
className: "pisell-lowcode-statistic-list-item-label",
|
|
69
|
+
style: { color: labelColor }
|
|
70
|
+
},
|
|
71
|
+
item.label,
|
|
72
|
+
item.tip && /* @__PURE__ */ import_react.default.createElement(import_pisellTooltip.default, { title: item.tip }, /* @__PURE__ */ import_react.default.createElement(
|
|
73
|
+
import_iconfont.default,
|
|
74
|
+
{
|
|
75
|
+
style: { color: labelColor },
|
|
76
|
+
type: "pisell2-help-circle",
|
|
77
|
+
className: "pisell-lowcode-statistic-list-item-label-tip-icon"
|
|
78
|
+
}
|
|
79
|
+
))
|
|
80
|
+
),
|
|
81
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
82
|
+
"div",
|
|
83
|
+
{
|
|
84
|
+
className: "pisell-lowcode-statistic-list-item-value",
|
|
85
|
+
style: { color: valueColor }
|
|
86
|
+
},
|
|
87
|
+
item.value
|
|
88
|
+
),
|
|
89
|
+
!!((_a = item.children) == null ? void 0 : _a.length) && /* @__PURE__ */ import_react.default.createElement(import_antd.Row, { className: "pisell-lowcode-statistic-list-item-children-wrap" }, item.children.map((child) => {
|
|
90
|
+
return /* @__PURE__ */ import_react.default.createElement(import_antd.Col, { span: 12 }, /* @__PURE__ */ import_react.default.createElement(
|
|
91
|
+
"span",
|
|
92
|
+
{
|
|
93
|
+
className: "pisell-lowcode-statistic-list-item-children-label",
|
|
94
|
+
style: { color: labelColor }
|
|
95
|
+
},
|
|
96
|
+
child.label
|
|
97
|
+
), /* @__PURE__ */ import_react.default.createElement(
|
|
98
|
+
"span",
|
|
99
|
+
{
|
|
100
|
+
className: "pisell-lowcode-statistic-list-item-children-value",
|
|
101
|
+
style: { color: valueColor }
|
|
102
|
+
},
|
|
103
|
+
child.value
|
|
104
|
+
));
|
|
105
|
+
}))
|
|
106
|
+
);
|
|
107
|
+
}));
|
|
108
|
+
};
|
|
109
|
+
var pisellStatisticList_default = PisellStatisticList;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
.pisell-lowcode-statistic-list-wrap {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
gap: 16px;
|
|
5
|
+
.pisell-lowcode-statistic-list-item {
|
|
6
|
+
padding: 16px;
|
|
7
|
+
border-radius: 8px;
|
|
8
|
+
border: 1px solid var(--Gray-600, #475467);
|
|
9
|
+
.pisell-lowcode-statistic-list-item-label {
|
|
10
|
+
color: var(--Base-White, #fff);
|
|
11
|
+
font-size: 14px;
|
|
12
|
+
font-weight: 600;
|
|
13
|
+
line-height: 20px; /* 142.857% */
|
|
14
|
+
display: flex;
|
|
15
|
+
gap: 10px;
|
|
16
|
+
align-items: center;
|
|
17
|
+
.pisell-lowcode-statistic-list-item-label-tip-icon {
|
|
18
|
+
font-size: 20px;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
.pisell-lowcode-statistic-list-item-value {
|
|
22
|
+
color: var(--Base-White, #fff);
|
|
23
|
+
font-size: 18px;
|
|
24
|
+
font-weight: 700;
|
|
25
|
+
line-height: 28px; /* 155.556% */
|
|
26
|
+
}
|
|
27
|
+
.pisell-lowcode-statistic-list-item-children-wrap {
|
|
28
|
+
.pisell-lowcode-statistic-list-item-children-label {
|
|
29
|
+
color: var(--Base-White, #fff);
|
|
30
|
+
font-size: 12px;
|
|
31
|
+
font-weight: 400;
|
|
32
|
+
line-height: 18px; /* 150% */
|
|
33
|
+
margin-right: 4px;
|
|
34
|
+
}
|
|
35
|
+
.pisell-lowcode-statistic-list-item-children-value {
|
|
36
|
+
color: var(--Base-White, #fff);
|
|
37
|
+
font-size: 18px;
|
|
38
|
+
font-weight: 700;
|
|
39
|
+
line-height: 28px; /* 155.556% */
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -155,7 +155,7 @@ export declare const getSettingKeyArrByMode: ({ filter, columnSetting, dataSourc
|
|
|
155
155
|
sort?: SortType | undefined;
|
|
156
156
|
mode: "" | "localStorage" | "remote";
|
|
157
157
|
currentViewMode: ModeType;
|
|
158
|
-
}) => ("
|
|
158
|
+
}) => ("view_mode" | "column_setting" | "order_by" | "group_by" | "gallery_setting" | "filter_setting")[];
|
|
159
159
|
export declare const omit: (obj: Record<string, any>, keys: string[]) => Record<string, any>;
|
|
160
160
|
export declare const stringify: (obj: Record<string, any>) => string;
|
|
161
161
|
export {};
|
|
@@ -35,6 +35,7 @@ module.exports = __toCommonJS(table_exports);
|
|
|
35
35
|
var import_ahooks = require("ahooks");
|
|
36
36
|
var import_antd = require("antd");
|
|
37
37
|
var import_react = __toESM(require("react"));
|
|
38
|
+
var import_classNames = __toESM(require("classNames"));
|
|
38
39
|
var import_hooks = require("../../hooks");
|
|
39
40
|
var import_useEngineContext = __toESM(require("../../hooks/useEngineContext"));
|
|
40
41
|
var import_Actions = __toESM(require("./Actions"));
|
|
@@ -91,6 +92,10 @@ var GridView = (0, import_model.Provider)(
|
|
|
91
92
|
const { width } = (0, import_ahooks.useSize)(wrapRef) || {};
|
|
92
93
|
const debouncedWidth = (0, import_ahooks.useDebounce)(width, { wait: 100 });
|
|
93
94
|
const utils = (_a = context == null ? void 0 : context.appHelper) == null ? void 0 : _a.utils;
|
|
95
|
+
const isTerminal = (0, import_react.useMemo)(() => {
|
|
96
|
+
var _a2;
|
|
97
|
+
return (_a2 = utils == null ? void 0 : utils.isTerminal) == null ? void 0 : _a2.call(utils);
|
|
98
|
+
}, [utils]);
|
|
94
99
|
const tableId = (0, import_react.useMemo)(() => {
|
|
95
100
|
if (props.__designMode === "design") {
|
|
96
101
|
return "designMode-mock-table-id";
|
|
@@ -299,30 +304,43 @@ var GridView = (0, import_model.Provider)(
|
|
|
299
304
|
},
|
|
300
305
|
className: "materials-grid-form-wrap"
|
|
301
306
|
},
|
|
302
|
-
/* @__PURE__ */ import_react.default.createElement(
|
|
303
|
-
|
|
304
|
-
{
|
|
305
|
-
view,
|
|
306
|
-
buttons: actionButtons,
|
|
307
|
-
columnSetting,
|
|
308
|
-
dataSourceGroup,
|
|
309
|
-
filter,
|
|
310
|
-
sort,
|
|
311
|
-
tableId,
|
|
312
|
-
localPagination: (_e = other == null ? void 0 : other.pagination) == null ? void 0 : _e.localPagination,
|
|
313
|
-
gallery,
|
|
314
|
-
exportImport
|
|
315
|
-
}
|
|
316
|
-
), /* @__PURE__ */ import_react.default.createElement(import_Summary.default, { summary }), /* @__PURE__ */ import_react.default.createElement(
|
|
317
|
-
import_View.default,
|
|
307
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
308
|
+
"div",
|
|
318
309
|
{
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
}
|
|
325
|
-
|
|
310
|
+
className: (0, import_classNames.default)("materials-grid", {
|
|
311
|
+
"materials-grid-terminal": isTerminal
|
|
312
|
+
}),
|
|
313
|
+
style,
|
|
314
|
+
ref: wrapRef
|
|
315
|
+
},
|
|
316
|
+
/* @__PURE__ */ import_react.default.createElement(import_Header.default, { title, buttons }),
|
|
317
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
318
|
+
import_Actions.default,
|
|
319
|
+
{
|
|
320
|
+
view,
|
|
321
|
+
buttons: actionButtons,
|
|
322
|
+
columnSetting,
|
|
323
|
+
dataSourceGroup,
|
|
324
|
+
filter,
|
|
325
|
+
sort,
|
|
326
|
+
tableId,
|
|
327
|
+
localPagination: (_e = other == null ? void 0 : other.pagination) == null ? void 0 : _e.localPagination,
|
|
328
|
+
gallery,
|
|
329
|
+
exportImport
|
|
330
|
+
}
|
|
331
|
+
),
|
|
332
|
+
/* @__PURE__ */ import_react.default.createElement(import_Summary.default, { summary }),
|
|
333
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
334
|
+
import_View.default,
|
|
335
|
+
{
|
|
336
|
+
...props,
|
|
337
|
+
filter,
|
|
338
|
+
sort,
|
|
339
|
+
setTableSetting,
|
|
340
|
+
dataSourceGroup
|
|
341
|
+
}
|
|
342
|
+
)
|
|
343
|
+
)
|
|
326
344
|
);
|
|
327
345
|
})
|
|
328
346
|
);
|
package/lib/index.d.ts
CHANGED
|
@@ -102,3 +102,5 @@ export { default as PisellCard } from './components/pisellCard';
|
|
|
102
102
|
export { default as PisellInformationEntry } from './components/pisellInformationEntry';
|
|
103
103
|
export { default as usePisellConfig } from './components/pisell-config-provider/hooks/usePisellConfig';
|
|
104
104
|
export { globalConfig, default as PisellContext } from './components/pisell-config-provider/context';
|
|
105
|
+
export { default as PisellStatisticList } from './components/pisellStatisticList';
|
|
106
|
+
export { default as PisellFloatingPanel } from './components/pisellFloatingPanel';
|
package/lib/index.js
CHANGED
|
@@ -83,12 +83,14 @@ __export(src_exports, {
|
|
|
83
83
|
PisellCountdown: () => import_pisellCountdown.default,
|
|
84
84
|
PisellDatePicker: () => import_pisellDatePicker.default,
|
|
85
85
|
PisellEmpty: () => import_pisellEmpty.default,
|
|
86
|
+
PisellFloatingPanel: () => import_pisellFloatingPanel.default,
|
|
86
87
|
PisellInformationEntry: () => import_pisellInformationEntry.default,
|
|
87
88
|
PisellInput: () => import_pisellInput.default,
|
|
88
89
|
PisellLoading: () => import_pisellLoading.default,
|
|
89
90
|
PisellModal: () => import_pisellModal.default,
|
|
90
91
|
PisellRow: () => import_pisellRow.default,
|
|
91
92
|
PisellScan: () => import_pisellScan.default,
|
|
93
|
+
PisellStatisticList: () => import_pisellStatisticList.default,
|
|
92
94
|
PisellText: () => import_pisellText.default,
|
|
93
95
|
PisellToast: () => import_pisellToast.default,
|
|
94
96
|
PisellTooltip: () => import_pisellTooltip.default,
|
|
@@ -240,6 +242,8 @@ var import_pisellCard = __toESM(require("./components/pisellCard"));
|
|
|
240
242
|
var import_pisellInformationEntry = __toESM(require("./components/pisellInformationEntry"));
|
|
241
243
|
var import_usePisellConfig = __toESM(require("./components/pisell-config-provider/hooks/usePisellConfig"));
|
|
242
244
|
var import_context = __toESM(require("./components/pisell-config-provider/context"));
|
|
245
|
+
var import_pisellStatisticList = __toESM(require("./components/pisellStatisticList"));
|
|
246
|
+
var import_pisellFloatingPanel = __toESM(require("./components/pisellFloatingPanel"));
|
|
243
247
|
// Annotate the CommonJS export names for ESM import in node:
|
|
244
248
|
0 && (module.exports = {
|
|
245
249
|
Affix,
|
|
@@ -296,12 +300,14 @@ var import_context = __toESM(require("./components/pisell-config-provider/contex
|
|
|
296
300
|
PisellCountdown,
|
|
297
301
|
PisellDatePicker,
|
|
298
302
|
PisellEmpty,
|
|
303
|
+
PisellFloatingPanel,
|
|
299
304
|
PisellInformationEntry,
|
|
300
305
|
PisellInput,
|
|
301
306
|
PisellLoading,
|
|
302
307
|
PisellModal,
|
|
303
308
|
PisellRow,
|
|
304
309
|
PisellScan,
|
|
310
|
+
PisellStatisticList,
|
|
305
311
|
PisellText,
|
|
306
312
|
PisellToast,
|
|
307
313
|
PisellTooltip,
|
package/lowcode/input/meta.ts
CHANGED
|
@@ -49,6 +49,13 @@ export default {
|
|
|
49
49
|
defaultValue: false,
|
|
50
50
|
setter: 'BoolSetter',
|
|
51
51
|
},
|
|
52
|
+
{
|
|
53
|
+
name: 'readOnly',
|
|
54
|
+
title: { label: '是否只读', tip: '是否为只读状态' },
|
|
55
|
+
propType: 'bool',
|
|
56
|
+
defaultValue: false,
|
|
57
|
+
setter: 'BoolSetter',
|
|
58
|
+
},
|
|
52
59
|
{
|
|
53
60
|
name: 'placeholder',
|
|
54
61
|
title: { label: '占位提示', tip: '占位提示' },
|
|
@@ -151,6 +158,16 @@ export default {
|
|
|
151
158
|
title: { label: '失去焦点回调', tip: '失去焦点回调' },
|
|
152
159
|
propType: 'func',
|
|
153
160
|
},
|
|
161
|
+
{
|
|
162
|
+
name: 'onClick',
|
|
163
|
+
title: { label: '点击回调', tip: '点击回调' },
|
|
164
|
+
propType: 'func',
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
name: 'onClear',
|
|
168
|
+
title: { label: '按下清除按钮的回调', tip: '按下清除按钮的回调' },
|
|
169
|
+
propType: 'func',
|
|
170
|
+
},
|
|
154
171
|
],
|
|
155
172
|
configure: {
|
|
156
173
|
supports: {
|
|
@@ -188,6 +205,14 @@ export default {
|
|
|
188
205
|
name: 'onBlur',
|
|
189
206
|
template: "onBlur(event,${extParams}){\n// 按键释放回调\nconsole.log('onBlur',event);}",
|
|
190
207
|
},
|
|
208
|
+
{
|
|
209
|
+
name: 'onClick',
|
|
210
|
+
template: "onClick(event,${extParams}){\n// 点击回调\nconsole.log('onClick',event);}",
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
name: 'onClear',
|
|
214
|
+
template: "onClear(event,${extParams}){\n// 按下清除按钮的回调\nconsole.log('onClear',event);}",
|
|
215
|
+
},
|
|
191
216
|
],
|
|
192
217
|
},
|
|
193
218
|
},
|
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
import { ComponentMetadata, Snippet } from '@alilc/lowcode-types';
|
|
2
|
+
|
|
3
|
+
const PisellFloatingPanelMeta: ComponentMetadata = {
|
|
4
|
+
componentName: 'PisellFloatingPanel',
|
|
5
|
+
title: 'PisellFloatingPanel',
|
|
6
|
+
docUrl: '',
|
|
7
|
+
screenshot: '',
|
|
8
|
+
devMode: 'proCode',
|
|
9
|
+
npm: {
|
|
10
|
+
package: '@pisell/materials',
|
|
11
|
+
version: '3.0.48',
|
|
12
|
+
exportName: 'PisellFloatingPanel',
|
|
13
|
+
main: 'src/index.tsx',
|
|
14
|
+
destructuring: true,
|
|
15
|
+
subName: '',
|
|
16
|
+
},
|
|
17
|
+
configure: {
|
|
18
|
+
props: [
|
|
19
|
+
{
|
|
20
|
+
title: {
|
|
21
|
+
label: {
|
|
22
|
+
type: 'i18n',
|
|
23
|
+
'en-US': 'fullHeight',
|
|
24
|
+
'zh-CN': 'fullHeight',
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
name: 'fullHeight',
|
|
28
|
+
setter: {
|
|
29
|
+
componentName: 'MixedSetter',
|
|
30
|
+
props: {
|
|
31
|
+
setters: [
|
|
32
|
+
{
|
|
33
|
+
componentName: 'StringSetter',
|
|
34
|
+
isRequired: false,
|
|
35
|
+
initialValue: '',
|
|
36
|
+
},
|
|
37
|
+
],
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
title: {
|
|
43
|
+
label: {
|
|
44
|
+
type: 'i18n',
|
|
45
|
+
'en-US': 'retractHeight',
|
|
46
|
+
'zh-CN': 'retractHeight',
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
name: 'retractHeight',
|
|
50
|
+
setter: {
|
|
51
|
+
componentName: 'MixedSetter',
|
|
52
|
+
props: {
|
|
53
|
+
setters: [
|
|
54
|
+
{
|
|
55
|
+
componentName: 'StringSetter',
|
|
56
|
+
isRequired: false,
|
|
57
|
+
initialValue: '',
|
|
58
|
+
},
|
|
59
|
+
],
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
title: {
|
|
65
|
+
label: {
|
|
66
|
+
type: 'i18n',
|
|
67
|
+
'en-US': 'width',
|
|
68
|
+
'zh-CN': 'width',
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
|
+
name: 'width',
|
|
72
|
+
setter: {
|
|
73
|
+
componentName: 'MixedSetter',
|
|
74
|
+
props: {
|
|
75
|
+
setters: [
|
|
76
|
+
{
|
|
77
|
+
componentName: 'StringSetter',
|
|
78
|
+
isRequired: false,
|
|
79
|
+
initialValue: '',
|
|
80
|
+
},
|
|
81
|
+
],
|
|
82
|
+
},
|
|
83
|
+
},
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
title: {
|
|
87
|
+
label: {
|
|
88
|
+
type: 'i18n',
|
|
89
|
+
'en-US': 'open',
|
|
90
|
+
'zh-CN': 'open',
|
|
91
|
+
},
|
|
92
|
+
},
|
|
93
|
+
name: 'open',
|
|
94
|
+
setter: {
|
|
95
|
+
componentName: 'MixedSetter',
|
|
96
|
+
props: {
|
|
97
|
+
setters: [
|
|
98
|
+
{
|
|
99
|
+
componentName: 'BoolSetter',
|
|
100
|
+
isRequired: false,
|
|
101
|
+
initialValue: false,
|
|
102
|
+
},
|
|
103
|
+
],
|
|
104
|
+
},
|
|
105
|
+
},
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
title: {
|
|
109
|
+
label: {
|
|
110
|
+
type: 'i18n',
|
|
111
|
+
'en-US': 'onOpenChange',
|
|
112
|
+
'zh-CN': 'onOpenChange',
|
|
113
|
+
},
|
|
114
|
+
},
|
|
115
|
+
name: 'onOpenChange',
|
|
116
|
+
setter: {
|
|
117
|
+
componentName: 'MixedSetter',
|
|
118
|
+
props: {
|
|
119
|
+
setters: [
|
|
120
|
+
{
|
|
121
|
+
componentName: 'FunctionSetter',
|
|
122
|
+
},
|
|
123
|
+
],
|
|
124
|
+
},
|
|
125
|
+
},
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
title: {
|
|
129
|
+
label: {
|
|
130
|
+
type: 'i18n',
|
|
131
|
+
'en-US': 'defaultOpen',
|
|
132
|
+
'zh-CN': 'defaultOpen',
|
|
133
|
+
},
|
|
134
|
+
},
|
|
135
|
+
name: 'defaultOpen',
|
|
136
|
+
setter: {
|
|
137
|
+
componentName: 'MixedSetter',
|
|
138
|
+
props: {
|
|
139
|
+
setters: [
|
|
140
|
+
{
|
|
141
|
+
componentName: 'BoolSetter',
|
|
142
|
+
isRequired: false,
|
|
143
|
+
initialValue: false,
|
|
144
|
+
},
|
|
145
|
+
],
|
|
146
|
+
},
|
|
147
|
+
},
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
name: 'retractSlot',
|
|
151
|
+
title: {
|
|
152
|
+
label: '收起插槽',
|
|
153
|
+
},
|
|
154
|
+
propType: { type: 'oneOfType', value: ['node'] },
|
|
155
|
+
setter: [
|
|
156
|
+
{
|
|
157
|
+
componentName: 'SlotSetter',
|
|
158
|
+
initialValue: {
|
|
159
|
+
type: 'JSSlot',
|
|
160
|
+
value: [],
|
|
161
|
+
},
|
|
162
|
+
defaultValue: null,
|
|
163
|
+
},
|
|
164
|
+
],
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
title: {
|
|
168
|
+
label: {
|
|
169
|
+
type: 'i18n',
|
|
170
|
+
'en-US': 'isFloat',
|
|
171
|
+
'zh-CN': 'isFloat',
|
|
172
|
+
},
|
|
173
|
+
},
|
|
174
|
+
name: 'isFloat',
|
|
175
|
+
setter: {
|
|
176
|
+
componentName: 'MixedSetter',
|
|
177
|
+
props: {
|
|
178
|
+
setters: [
|
|
179
|
+
{
|
|
180
|
+
componentName: 'BoolSetter',
|
|
181
|
+
isRequired: false,
|
|
182
|
+
initialValue: false,
|
|
183
|
+
},
|
|
184
|
+
],
|
|
185
|
+
},
|
|
186
|
+
},
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
name: 'retractIconStyle',
|
|
190
|
+
title: 'retractIconStyle',
|
|
191
|
+
type: 'group',
|
|
192
|
+
extraProps: {
|
|
193
|
+
display: 'entry',
|
|
194
|
+
},
|
|
195
|
+
items: [
|
|
196
|
+
{
|
|
197
|
+
name: 'retractIconStyle',
|
|
198
|
+
title: {
|
|
199
|
+
label: '样式设置',
|
|
200
|
+
tip: 'retractIconStyle | 可用于设置收起按钮图标样式',
|
|
201
|
+
},
|
|
202
|
+
setter: 'StyleSetter',
|
|
203
|
+
extraProps: {
|
|
204
|
+
display: 'block',
|
|
205
|
+
},
|
|
206
|
+
},
|
|
207
|
+
],
|
|
208
|
+
},
|
|
209
|
+
],
|
|
210
|
+
supports: {
|
|
211
|
+
style: true,
|
|
212
|
+
},
|
|
213
|
+
component: {
|
|
214
|
+
isContainer: true,
|
|
215
|
+
},
|
|
216
|
+
},
|
|
217
|
+
};
|
|
218
|
+
const snippets: Snippet[] = [
|
|
219
|
+
{
|
|
220
|
+
title: 'PisellFloatingPanel',
|
|
221
|
+
screenshot: '',
|
|
222
|
+
schema: {
|
|
223
|
+
componentName: 'PisellFloatingPanel',
|
|
224
|
+
props: {},
|
|
225
|
+
},
|
|
226
|
+
},
|
|
227
|
+
];
|
|
228
|
+
|
|
229
|
+
export default {
|
|
230
|
+
...PisellFloatingPanelMeta,
|
|
231
|
+
snippets,
|
|
232
|
+
};
|