@pisell/materials 3.0.13 → 3.0.15
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 +142 -142
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +20 -20
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +20 -20
- package/dist/umd/materials.min.css +1 -0
- package/dist/umd/materials.min.js +1 -0
- package/dist/umd/static/DotsSix.57d66266.svg +1 -0
- package/dist/umd/static/arrow-left.e542294f.svg +1 -0
- package/dist/umd/static/arrow-right.763f03e0.svg +1 -0
- package/dist/umd/static/filter-lines.04a54ae9.svg +1 -0
- package/dist/umd/static/help-circle.31c9be40.svg +1 -0
- package/dist/umd/static/switch-vertical-01.7ebe3ba8.svg +1 -0
- package/es/components/batch-editor/fields/Image/index.d.ts +7 -0
- package/es/components/batch-editor/fields/Image/index.js +14 -0
- package/es/components/batch-editor/fields/Image/index.less +6 -0
- package/es/components/batch-editor/fields/Price/index.d.ts +7 -0
- package/es/components/batch-editor/fields/Price/index.js +26 -0
- package/es/components/batch-editor/fields/Text/index.d.ts +6 -0
- package/es/components/batch-editor/fields/Text/index.js +8 -0
- package/es/components/batch-editor/fields/index.d.ts +7 -0
- package/es/components/batch-editor/fields/index.js +8 -0
- package/es/components/batch-editor/index.d.ts +11 -0
- package/es/components/batch-editor/index.js +465 -0
- package/es/components/batch-editor/index.less +50 -0
- package/es/components/page/index.js +12 -9
- package/es/components/select-time/RightPanel/index.d.ts +9 -0
- package/es/components/select-time/RightPanel/index.js +45 -0
- package/es/components/select-time/RightPanel/index.less +22 -0
- package/es/components/select-time/index.d.ts +14 -0
- package/es/components/select-time/index.js +115 -0
- package/es/components/select-time/index.less +16 -0
- package/es/components/select-time/utils.d.ts +9 -0
- package/es/components/select-time/utils.js +42 -0
- package/es/components/table/Table/fields/select/filterUtil/index.js +11 -1
- package/es/components/table/hooks/useTransDataSource.js +1 -0
- package/es/components/table/index.js +11 -3
- package/es/components/table/index.less +47 -2
- package/es/components/virtual-keyboard/Keyboard/index.d.ts +18 -0
- package/es/components/virtual-keyboard/Keyboard/index.js +51 -0
- package/es/components/virtual-keyboard/Keyboard/index.less +32 -0
- package/es/components/virtual-keyboard/Time/index.d.ts +13 -0
- package/es/components/virtual-keyboard/Time/index.js +124 -0
- package/es/components/virtual-keyboard/Time/index.less +0 -0
- package/es/components/virtual-keyboard/Time/utils.d.ts +10 -0
- package/es/components/virtual-keyboard/Time/utils.js +153 -0
- package/es/components/virtual-keyboard/VirtualKeyInput/index.d.ts +9 -0
- package/es/components/virtual-keyboard/VirtualKeyInput/index.js +76 -0
- package/es/components/virtual-keyboard/VirtualKeyInput/index.less +52 -0
- package/es/components/virtual-keyboard/index.d.ts +14 -0
- package/es/components/virtual-keyboard/index.js +85 -0
- package/es/components/virtual-keyboard/index.less +17 -0
- package/es/index.d.ts +4 -0
- package/es/index.js +5 -1
- package/es/locales/en-US.d.ts +14 -0
- package/es/locales/en-US.js +19 -1
- package/es/locales/zh-CN.d.ts +14 -0
- package/es/locales/zh-CN.js +19 -1
- package/es/locales/zh-TW.d.ts +14 -0
- package/es/locales/zh-TW.js +19 -1
- package/lib/components/batch-editor/fields/Image/index.d.ts +7 -0
- package/lib/components/batch-editor/fields/Image/index.js +48 -0
- package/lib/components/batch-editor/fields/Image/index.less +6 -0
- package/lib/components/batch-editor/fields/Price/index.d.ts +7 -0
- package/lib/components/batch-editor/fields/Price/index.js +55 -0
- package/lib/components/batch-editor/fields/Text/index.d.ts +6 -0
- package/lib/components/batch-editor/fields/Text/index.js +40 -0
- package/lib/components/batch-editor/fields/index.d.ts +7 -0
- package/lib/components/batch-editor/fields/index.js +42 -0
- package/lib/components/batch-editor/index.d.ts +11 -0
- package/lib/components/batch-editor/index.js +370 -0
- package/lib/components/batch-editor/index.less +50 -0
- package/lib/components/page/index.js +6 -7
- package/lib/components/select-time/RightPanel/index.d.ts +9 -0
- package/lib/components/select-time/RightPanel/index.js +78 -0
- package/lib/components/select-time/RightPanel/index.less +22 -0
- package/lib/components/select-time/index.d.ts +14 -0
- package/lib/components/select-time/index.js +145 -0
- package/lib/components/select-time/index.less +16 -0
- package/lib/components/select-time/utils.d.ts +9 -0
- package/lib/components/select-time/utils.js +71 -0
- package/lib/components/table/Table/fields/select/filterUtil/index.js +7 -1
- package/lib/components/table/hooks/useTransDataSource.js +1 -0
- package/lib/components/table/index.js +16 -4
- package/lib/components/table/index.less +47 -2
- package/lib/components/virtual-keyboard/Keyboard/index.d.ts +18 -0
- package/lib/components/virtual-keyboard/Keyboard/index.js +81 -0
- package/lib/components/virtual-keyboard/Keyboard/index.less +32 -0
- package/lib/components/virtual-keyboard/Time/index.d.ts +13 -0
- package/lib/components/virtual-keyboard/Time/index.js +166 -0
- package/lib/components/virtual-keyboard/Time/index.less +0 -0
- package/lib/components/virtual-keyboard/Time/utils.d.ts +10 -0
- package/lib/components/virtual-keyboard/Time/utils.js +162 -0
- package/lib/components/virtual-keyboard/VirtualKeyInput/index.d.ts +9 -0
- package/lib/components/virtual-keyboard/VirtualKeyInput/index.js +90 -0
- package/lib/components/virtual-keyboard/VirtualKeyInput/index.less +52 -0
- package/lib/components/virtual-keyboard/index.d.ts +14 -0
- package/lib/components/virtual-keyboard/index.js +131 -0
- package/lib/components/virtual-keyboard/index.less +17 -0
- package/lib/index.d.ts +4 -0
- package/lib/index.js +12 -0
- package/lib/locales/en-US.d.ts +14 -0
- package/lib/locales/en-US.js +15 -1
- package/lib/locales/zh-CN.d.ts +14 -0
- package/lib/locales/zh-CN.js +15 -1
- package/lib/locales/zh-TW.d.ts +14 -0
- package/lib/locales/zh-TW.js +15 -1
- package/lowcode/batch-editor/meta.ts +93 -0
- package/lowcode/select-time/meta.ts +8 -8
- package/package.json +1 -1
|
@@ -0,0 +1,131 @@
|
|
|
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/virtual-keyboard/index.tsx
|
|
30
|
+
var virtual_keyboard_exports = {};
|
|
31
|
+
__export(virtual_keyboard_exports, {
|
|
32
|
+
default: () => virtual_keyboard_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(virtual_keyboard_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_Keyboard = __toESM(require("./Keyboard"));
|
|
37
|
+
var import_VirtualKeyInput = __toESM(require("./VirtualKeyInput"));
|
|
38
|
+
var import_index = require("./index.less");
|
|
39
|
+
var import_classnames = __toESM(require("classnames"));
|
|
40
|
+
var items = [
|
|
41
|
+
{
|
|
42
|
+
value: 1,
|
|
43
|
+
label: "1",
|
|
44
|
+
disabled: false,
|
|
45
|
+
type: "text"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
value: 2,
|
|
49
|
+
label: "2",
|
|
50
|
+
disabled: false,
|
|
51
|
+
type: "text"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
value: 3,
|
|
55
|
+
label: "3",
|
|
56
|
+
disabled: false,
|
|
57
|
+
type: "text"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
value: 4,
|
|
61
|
+
label: "4",
|
|
62
|
+
disabled: false,
|
|
63
|
+
type: "text"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
value: 5,
|
|
67
|
+
label: "5",
|
|
68
|
+
disabled: false,
|
|
69
|
+
type: "text"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
value: 6,
|
|
73
|
+
label: "6",
|
|
74
|
+
disabled: false,
|
|
75
|
+
type: "text"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
value: 7,
|
|
79
|
+
label: "7",
|
|
80
|
+
disabled: false,
|
|
81
|
+
type: "text"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
value: 8,
|
|
85
|
+
label: "8",
|
|
86
|
+
disabled: false,
|
|
87
|
+
type: "text"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
value: 9,
|
|
91
|
+
label: "9",
|
|
92
|
+
disabled: false,
|
|
93
|
+
type: "text"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
value: "0",
|
|
97
|
+
label: "0",
|
|
98
|
+
disabled: false,
|
|
99
|
+
type: "text"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
value: "ok",
|
|
103
|
+
label: "OK",
|
|
104
|
+
disabled: false,
|
|
105
|
+
type: "primary"
|
|
106
|
+
}
|
|
107
|
+
];
|
|
108
|
+
var VirtualKeyboard = (props) => {
|
|
109
|
+
const {
|
|
110
|
+
virtualKeyInputProps,
|
|
111
|
+
style,
|
|
112
|
+
className,
|
|
113
|
+
keyboardProps,
|
|
114
|
+
onChange,
|
|
115
|
+
value,
|
|
116
|
+
rightPanel
|
|
117
|
+
} = props;
|
|
118
|
+
(0, import_react.useEffect)(() => {
|
|
119
|
+
document.body.id = "body";
|
|
120
|
+
}, []);
|
|
121
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
|
122
|
+
"div",
|
|
123
|
+
{
|
|
124
|
+
className: (0, import_classnames.default)("virtual-keyboard-component", className),
|
|
125
|
+
style
|
|
126
|
+
},
|
|
127
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("virtual-keyboard-component-left") }, /* @__PURE__ */ import_react.default.createElement(import_VirtualKeyInput.default, { ...virtualKeyInputProps }), /* @__PURE__ */ import_react.default.createElement(import_Keyboard.default, { items, ...keyboardProps })),
|
|
128
|
+
rightPanel ? /* @__PURE__ */ import_react.default.createElement("div", { className: "virtual-keyboard-component-right" }, rightPanel) : null
|
|
129
|
+
);
|
|
130
|
+
};
|
|
131
|
+
var virtual_keyboard_default = VirtualKeyboard;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
.virtual-keyboard-component {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
gap: 20px;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.virtual-keyboard-component-left {
|
|
8
|
+
padding: 10px;
|
|
9
|
+
width: 380px;
|
|
10
|
+
border-radius: 10px;
|
|
11
|
+
background: var(--Gray-300, #D0D5DD);
|
|
12
|
+
backdrop-filter: blur(50px);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.virtual-keyboard-component-right {
|
|
16
|
+
align-self: stretch;
|
|
17
|
+
}
|
package/lib/index.d.ts
CHANGED
|
@@ -73,4 +73,8 @@ export { default as Sort } from "./components/sort";
|
|
|
73
73
|
export { default as InputNumberRange } from "./components/input-number-range";
|
|
74
74
|
export { default as LowCodePage } from "./components/lowCodePage";
|
|
75
75
|
export { default as Segmented } from "./components/segmented";
|
|
76
|
+
export { default as VirtualKeyboard } from "./components/virtual-keyboard";
|
|
77
|
+
export { default as VirtualKeyboardTime } from "./components/virtual-keyboard/Time";
|
|
78
|
+
export { default as SelectTime } from "./components/select-time";
|
|
76
79
|
export { default as AutoCompleteNumber } from "./components/auto-complete-number";
|
|
80
|
+
export { default as BatchEditor } from "./components/batch-editor";
|
package/lib/index.js
CHANGED
|
@@ -36,6 +36,7 @@ __export(src_exports, {
|
|
|
36
36
|
AutoCompleteNumber: () => import_auto_complete_number.default,
|
|
37
37
|
Avatar: () => import_antd4.Avatar,
|
|
38
38
|
Badge: () => import_antd5.Badge,
|
|
39
|
+
BatchEditor: () => import_batch_editor.default,
|
|
39
40
|
Breadcrumb: () => import_antd6.Breadcrumb,
|
|
40
41
|
Button: () => import_button.default,
|
|
41
42
|
Calendar: () => import_calendar.default,
|
|
@@ -81,6 +82,7 @@ __export(src_exports, {
|
|
|
81
82
|
Row: () => import_antd28.Row,
|
|
82
83
|
Segmented: () => import_segmented.default,
|
|
83
84
|
Select: () => import_select.default,
|
|
85
|
+
SelectTime: () => import_select_time.default,
|
|
84
86
|
Skeleton: () => import_skeleton.default,
|
|
85
87
|
Slider: () => import_slider.default,
|
|
86
88
|
Sort: () => import_sort.default,
|
|
@@ -102,6 +104,8 @@ __export(src_exports, {
|
|
|
102
104
|
TreeSelect: () => import_tree_select.default,
|
|
103
105
|
Typography: () => import_typography.default,
|
|
104
106
|
Upload: () => import_upload.default,
|
|
107
|
+
VirtualKeyboard: () => import_virtual_keyboard.default,
|
|
108
|
+
VirtualKeyboardTime: () => import_Time.default,
|
|
105
109
|
message: () => import_antd17.message,
|
|
106
110
|
notification: () => import_antd21.notification,
|
|
107
111
|
version: () => import_antd38.version
|
|
@@ -182,7 +186,11 @@ var import_sort = __toESM(require("./components/sort"));
|
|
|
182
186
|
var import_input_number_range = __toESM(require("./components/input-number-range"));
|
|
183
187
|
var import_lowCodePage = __toESM(require("./components/lowCodePage"));
|
|
184
188
|
var import_segmented = __toESM(require("./components/segmented"));
|
|
189
|
+
var import_virtual_keyboard = __toESM(require("./components/virtual-keyboard"));
|
|
190
|
+
var import_Time = __toESM(require("./components/virtual-keyboard/Time"));
|
|
191
|
+
var import_select_time = __toESM(require("./components/select-time"));
|
|
185
192
|
var import_auto_complete_number = __toESM(require("./components/auto-complete-number"));
|
|
193
|
+
var import_batch_editor = __toESM(require("./components/batch-editor"));
|
|
186
194
|
// Annotate the CommonJS export names for ESM import in node:
|
|
187
195
|
0 && (module.exports = {
|
|
188
196
|
Affix,
|
|
@@ -192,6 +200,7 @@ var import_auto_complete_number = __toESM(require("./components/auto-complete-nu
|
|
|
192
200
|
AutoCompleteNumber,
|
|
193
201
|
Avatar,
|
|
194
202
|
Badge,
|
|
203
|
+
BatchEditor,
|
|
195
204
|
Breadcrumb,
|
|
196
205
|
Button,
|
|
197
206
|
Calendar,
|
|
@@ -237,6 +246,7 @@ var import_auto_complete_number = __toESM(require("./components/auto-complete-nu
|
|
|
237
246
|
Row,
|
|
238
247
|
Segmented,
|
|
239
248
|
Select,
|
|
249
|
+
SelectTime,
|
|
240
250
|
Skeleton,
|
|
241
251
|
Slider,
|
|
242
252
|
Sort,
|
|
@@ -258,6 +268,8 @@ var import_auto_complete_number = __toESM(require("./components/auto-complete-nu
|
|
|
258
268
|
TreeSelect,
|
|
259
269
|
Typography,
|
|
260
270
|
Upload,
|
|
271
|
+
VirtualKeyboard,
|
|
272
|
+
VirtualKeyboardTime,
|
|
261
273
|
message,
|
|
262
274
|
notification,
|
|
263
275
|
version
|
package/lib/locales/en-US.d.ts
CHANGED
|
@@ -35,5 +35,19 @@ declare const _default: {
|
|
|
35
35
|
"table-action-range-picker-presets-last-14-day": string;
|
|
36
36
|
"table-action-range-picker-presets-last-30-day": string;
|
|
37
37
|
"table-action-range-picker-presets-last-90-day": string;
|
|
38
|
+
"virtual-keyboard-time-now": string;
|
|
39
|
+
"virtual-keyboard-time-ok": string;
|
|
40
|
+
'batch-editor-batch-edit': string;
|
|
41
|
+
'batch-editor-actions': string;
|
|
42
|
+
'batch-editor-remove': string;
|
|
43
|
+
'batch-editor-price': string;
|
|
44
|
+
'batch-editor-cancel': string;
|
|
45
|
+
'batch-editor-search': string;
|
|
46
|
+
'batch-editor-confirm': string;
|
|
47
|
+
'batch-editor-batch-remove': string;
|
|
48
|
+
'batch-editor-quick-edit': string;
|
|
49
|
+
'batch-editor-what-price': string;
|
|
50
|
+
'batch-editor-quick-edit-title': (product: string, num: string) => string;
|
|
51
|
+
'batch-editor-quick-edit-title-2': (product: string) => string;
|
|
38
52
|
};
|
|
39
53
|
export default _default;
|
package/lib/locales/en-US.js
CHANGED
|
@@ -58,5 +58,19 @@ var en_US_default = {
|
|
|
58
58
|
"table-action-range-picker-presets-last-7-day": "Last 7 Days",
|
|
59
59
|
"table-action-range-picker-presets-last-14-day": "Last 14 Days",
|
|
60
60
|
"table-action-range-picker-presets-last-30-day": "Last 30 Days",
|
|
61
|
-
"table-action-range-picker-presets-last-90-day": "Last 90 Days"
|
|
61
|
+
"table-action-range-picker-presets-last-90-day": "Last 90 Days",
|
|
62
|
+
"virtual-keyboard-time-now": "Now",
|
|
63
|
+
"virtual-keyboard-time-ok": "OK",
|
|
64
|
+
"batch-editor-batch-edit": "Batch edit",
|
|
65
|
+
"batch-editor-actions": "Actions",
|
|
66
|
+
"batch-editor-remove": "Remove",
|
|
67
|
+
"batch-editor-price": "Price",
|
|
68
|
+
"batch-editor-cancel": "Cancel",
|
|
69
|
+
"batch-editor-search": "Search",
|
|
70
|
+
"batch-editor-confirm": "Confirm",
|
|
71
|
+
"batch-editor-batch-remove": "Batch remove",
|
|
72
|
+
"batch-editor-quick-edit": "Quick edit",
|
|
73
|
+
"batch-editor-what-price": "What price",
|
|
74
|
+
"batch-editor-quick-edit-title": (product, num) => `You have selected ${num} products including ${product}`,
|
|
75
|
+
"batch-editor-quick-edit-title-2": (product) => `You have selected ${product}`
|
|
62
76
|
};
|
package/lib/locales/zh-CN.d.ts
CHANGED
|
@@ -35,5 +35,19 @@ declare const _default: {
|
|
|
35
35
|
"table-action-range-picker-presets-last-14-day": string;
|
|
36
36
|
"table-action-range-picker-presets-last-30-day": string;
|
|
37
37
|
"table-action-range-picker-presets-last-90-day": string;
|
|
38
|
+
"virtual-keyboard-time-now": string;
|
|
39
|
+
"virtual-keyboard-time-ok": string;
|
|
40
|
+
'batch-editor-batch-edit': string;
|
|
41
|
+
'batch-editor-actions': string;
|
|
42
|
+
'batch-editor-remove': string;
|
|
43
|
+
'batch-editor-price': string;
|
|
44
|
+
'batch-editor-cancel': string;
|
|
45
|
+
'batch-editor-search': string;
|
|
46
|
+
'batch-editor-confirm': string;
|
|
47
|
+
'batch-editor-batch-remove': string;
|
|
48
|
+
'batch-editor-quick-edit': string;
|
|
49
|
+
'batch-editor-what-price': string;
|
|
50
|
+
'batch-editor-quick-edit-title': (product: string, num: string) => string;
|
|
51
|
+
'batch-editor-quick-edit-title-2': (product: string) => string;
|
|
38
52
|
};
|
|
39
53
|
export default _default;
|
package/lib/locales/zh-CN.js
CHANGED
|
@@ -58,5 +58,19 @@ var zh_CN_default = {
|
|
|
58
58
|
"table-action-range-picker-presets-last-7-day": "过去7天",
|
|
59
59
|
"table-action-range-picker-presets-last-14-day": "过去14天",
|
|
60
60
|
"table-action-range-picker-presets-last-30-day": "过去30天",
|
|
61
|
-
"table-action-range-picker-presets-last-90-day": "过去90天"
|
|
61
|
+
"table-action-range-picker-presets-last-90-day": "过去90天",
|
|
62
|
+
"virtual-keyboard-time-now": "此刻",
|
|
63
|
+
"virtual-keyboard-time-ok": "确定",
|
|
64
|
+
"batch-editor-batch-edit": "批量编辑",
|
|
65
|
+
"batch-editor-actions": "操作",
|
|
66
|
+
"batch-editor-remove": "移除",
|
|
67
|
+
"batch-editor-price": "价格",
|
|
68
|
+
"batch-editor-cancel": "取消",
|
|
69
|
+
"batch-editor-search": "搜索",
|
|
70
|
+
"batch-editor-confirm": "确认",
|
|
71
|
+
"batch-editor-batch-remove": "批量移除",
|
|
72
|
+
"batch-editor-quick-edit": "快速编辑",
|
|
73
|
+
"batch-editor-what-price": "什么价格",
|
|
74
|
+
"batch-editor-quick-edit-title": (product, num) => `您已选择 ${product} 等${num}件商品`,
|
|
75
|
+
"batch-editor-quick-edit-title-2": (product) => `您已选择 ${product}`
|
|
62
76
|
};
|
package/lib/locales/zh-TW.d.ts
CHANGED
|
@@ -35,5 +35,19 @@ declare const _default: {
|
|
|
35
35
|
"table-action-range-picker-presets-last-14-day": string;
|
|
36
36
|
"table-action-range-picker-presets-last-30-day": string;
|
|
37
37
|
"table-action-range-picker-presets-last-90-day": string;
|
|
38
|
+
"virtual-keyboard-time-now": string;
|
|
39
|
+
"virtual-keyboard-time-ok": string;
|
|
40
|
+
'batch-editor-batch-edit': string;
|
|
41
|
+
'batch-editor-actions': string;
|
|
42
|
+
'batch-editor-remove': string;
|
|
43
|
+
'batch-editor-price': string;
|
|
44
|
+
'batch-editor-cancel': string;
|
|
45
|
+
'batch-editor-search': string;
|
|
46
|
+
'batch-editor-confirm': string;
|
|
47
|
+
'batch-editor-batch-remove': string;
|
|
48
|
+
'batch-editor-what-price': string;
|
|
49
|
+
'batch-editor-quick-edit': string;
|
|
50
|
+
'batch-editor-quick-edit-title': (product: string, num: string) => string;
|
|
51
|
+
'batch-editor-quick-edit-title-2': (product: string) => string;
|
|
38
52
|
};
|
|
39
53
|
export default _default;
|
package/lib/locales/zh-TW.js
CHANGED
|
@@ -58,5 +58,19 @@ var zh_TW_default = {
|
|
|
58
58
|
"table-action-range-picker-presets-last-7-day": "過去7天",
|
|
59
59
|
"table-action-range-picker-presets-last-14-day": "過去14天",
|
|
60
60
|
"table-action-range-picker-presets-last-30-day": "過去30天",
|
|
61
|
-
"table-action-range-picker-presets-last-90-day": "過去90天"
|
|
61
|
+
"table-action-range-picker-presets-last-90-day": "過去90天",
|
|
62
|
+
"virtual-keyboard-time-now": "此刻",
|
|
63
|
+
"virtual-keyboard-time-ok": "確定",
|
|
64
|
+
"batch-editor-batch-edit": "批量編輯",
|
|
65
|
+
"batch-editor-actions": "操作",
|
|
66
|
+
"batch-editor-remove": "移除",
|
|
67
|
+
"batch-editor-price": "價格",
|
|
68
|
+
"batch-editor-cancel": "取消",
|
|
69
|
+
"batch-editor-search": "搜索",
|
|
70
|
+
"batch-editor-confirm": "確認",
|
|
71
|
+
"batch-editor-batch-remove": "批量移除",
|
|
72
|
+
"batch-editor-what-price": "什麼價格",
|
|
73
|
+
"batch-editor-quick-edit": "快速編輯",
|
|
74
|
+
"batch-editor-quick-edit-title": (product, num) => `您已選擇 ${product} 等${num}件產品`,
|
|
75
|
+
"batch-editor-quick-edit-title-2": (product) => `您已選擇 ${product}`
|
|
62
76
|
};
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
|
|
2
|
+
import { ComponentMetadata, Snippet } from '@alilc/lowcode-types';
|
|
3
|
+
|
|
4
|
+
const BatchEditorMeta: ComponentMetadata = {
|
|
5
|
+
"componentName": "BatchEditor",
|
|
6
|
+
"title": "BatchEditor",
|
|
7
|
+
"docUrl": "",
|
|
8
|
+
"screenshot": "",
|
|
9
|
+
"devMode": "proCode",
|
|
10
|
+
"npm": {
|
|
11
|
+
"package": "@pisell/materials",
|
|
12
|
+
"version": "1.0.1",
|
|
13
|
+
"exportName": "BatchEditor",
|
|
14
|
+
"main": "src/index.ts",
|
|
15
|
+
"destructuring": true,
|
|
16
|
+
"subName": ""
|
|
17
|
+
},
|
|
18
|
+
"configure": {
|
|
19
|
+
"props": [
|
|
20
|
+
{
|
|
21
|
+
"title": {
|
|
22
|
+
"label": {
|
|
23
|
+
"type": "i18n",
|
|
24
|
+
"en-US": "columns",
|
|
25
|
+
"zh-CN": "columns"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"name": "columns",
|
|
29
|
+
"setter": ["JsonSetter", "VariableSetter"],
|
|
30
|
+
},
|
|
31
|
+
|
|
32
|
+
{
|
|
33
|
+
"title": {
|
|
34
|
+
"label": {
|
|
35
|
+
"type": "i18n",
|
|
36
|
+
"en-US": "dataSource",
|
|
37
|
+
"zh-CN": "dataSource"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"name": "dataSource",
|
|
41
|
+
"setter": ["JsonSetter", "VariableSetter"],
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"title": {
|
|
45
|
+
"label": {
|
|
46
|
+
"type": "i18n",
|
|
47
|
+
"en-US": "rowKey",
|
|
48
|
+
"zh-CN": "rowKey"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"name": "rowKey",
|
|
52
|
+
"setter": {
|
|
53
|
+
"componentName": "StringSetter",
|
|
54
|
+
"initialValue": "id"
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
|
|
58
|
+
{
|
|
59
|
+
"title": {
|
|
60
|
+
"label": {
|
|
61
|
+
"type": "i18n",
|
|
62
|
+
"en-US": "otherTableProps",
|
|
63
|
+
"zh-CN": "otherTableProps"
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
"name": "otherTableProps",
|
|
67
|
+
"setter": ["JsonSetter", "VariableSetter"],
|
|
68
|
+
},
|
|
69
|
+
],
|
|
70
|
+
"supports": {
|
|
71
|
+
"style": true,
|
|
72
|
+
"events": [{
|
|
73
|
+
"name": "onChange"
|
|
74
|
+
}]
|
|
75
|
+
},
|
|
76
|
+
"component": {}
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
const snippets: Snippet[] = [
|
|
80
|
+
{
|
|
81
|
+
"title": "BatchEditor",
|
|
82
|
+
"screenshot": "",
|
|
83
|
+
"schema": {
|
|
84
|
+
"componentName": "BatchEditor",
|
|
85
|
+
"props": {}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
];
|
|
89
|
+
|
|
90
|
+
export default {
|
|
91
|
+
...BatchEditorMeta,
|
|
92
|
+
snippets
|
|
93
|
+
};
|
|
@@ -22,23 +22,23 @@ const SelectTimeMeta: ComponentMetadata = {
|
|
|
22
22
|
setter: ["JsonSetter", "VariableSetter"],
|
|
23
23
|
},
|
|
24
24
|
{
|
|
25
|
-
title: "
|
|
26
|
-
name: "
|
|
25
|
+
title: "弹层的配置项",
|
|
26
|
+
name: "popoverProps",
|
|
27
27
|
setter: ["JsonSetter", "VariableSetter"],
|
|
28
28
|
},
|
|
29
29
|
{
|
|
30
|
-
title: "
|
|
31
|
-
name: "
|
|
30
|
+
title: "虚拟键盘的配置项",
|
|
31
|
+
name: "timePickerProps",
|
|
32
32
|
setter: ["JsonSetter", "VariableSetter"],
|
|
33
33
|
},
|
|
34
34
|
{
|
|
35
|
-
title: "
|
|
36
|
-
name: "
|
|
35
|
+
title: "时间input框的配置项",
|
|
36
|
+
name: "timeProps",
|
|
37
37
|
setter: ["JsonSetter", "VariableSetter"],
|
|
38
38
|
},
|
|
39
39
|
{
|
|
40
|
-
title: "
|
|
41
|
-
name: "
|
|
40
|
+
title: "时间切片",
|
|
41
|
+
name: "slice",
|
|
42
42
|
setter: ["JsonSetter", "VariableSetter"],
|
|
43
43
|
},
|
|
44
44
|
],
|