@pisell/materials 1.0.295 → 1.0.296
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 +10 -10
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +8 -8
- 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 +6 -0
- package/es/components/batch-editor/fields/Price/index.js +19 -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 +446 -0
- package/es/components/batch-editor/index.less +48 -0
- package/es/components/table/hooks/useTransDataSource.js +1 -0
- package/es/components/table/index.js +11 -15
- package/es/index.d.ts +1 -0
- package/es/index.js +2 -1
- package/es/locales/en-US.d.ts +11 -0
- package/es/locales/en-US.js +16 -1
- package/es/locales/zh-CN.d.ts +11 -0
- package/es/locales/zh-CN.js +16 -1
- package/es/locales/zh-TW.d.ts +11 -0
- package/es/locales/zh-TW.js +16 -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 +6 -0
- package/lib/components/batch-editor/fields/Price/index.js +54 -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 +357 -0
- package/lib/components/batch-editor/index.less +48 -0
- package/lib/components/table/hooks/useTransDataSource.js +1 -0
- package/lib/components/table/index.js +16 -4
- package/lib/index.d.ts +1 -0
- package/lib/index.js +3 -0
- package/lib/locales/en-US.d.ts +11 -0
- package/lib/locales/en-US.js +12 -1
- package/lib/locales/zh-CN.d.ts +11 -0
- package/lib/locales/zh-CN.js +12 -1
- package/lib/locales/zh-TW.d.ts +11 -0
- package/lib/locales/zh-TW.js +12 -1
- package/lowcode/batch-editor/meta.ts +93 -0
- package/package.json +3 -3
|
@@ -110,25 +110,21 @@ var GridView = Provider( /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
110
110
|
}
|
|
111
111
|
return viewMode || defaultViewMode;
|
|
112
112
|
}, [viewMode, defaultViewMode, multiple]);
|
|
113
|
+
var removeTitleColumns = useMemo(function () {
|
|
114
|
+
var _columns = columns.map(function (item) {
|
|
115
|
+
return _objectSpread(_objectSpread({}, item), {}, {
|
|
116
|
+
title: undefined
|
|
117
|
+
});
|
|
118
|
+
});
|
|
119
|
+
return _columns;
|
|
120
|
+
}, [columns]);
|
|
113
121
|
var currentSettingHash = useMemo(function () {
|
|
114
|
-
return currentSettingKey || getHash(
|
|
115
|
-
}, [currentSettingKey, JSON.stringify(
|
|
122
|
+
return currentSettingKey || getHash(removeTitleColumns) || "";
|
|
123
|
+
}, [currentSettingKey, JSON.stringify(removeTitleColumns)]);
|
|
116
124
|
useEffect(function () {
|
|
117
125
|
var setting = getTableSettingFromLocalStorage(tableId);
|
|
118
126
|
if (setting.currentSettingHash !== currentSettingHash) {
|
|
119
127
|
clearTableSettingToLocalStorage(tableId);
|
|
120
|
-
/*
|
|
121
|
-
if (utils?.isTerminal?.() && tableId) {
|
|
122
|
-
utils?.interaction?.utils?.postMessageToApp?.({
|
|
123
|
-
module: "global",
|
|
124
|
-
key: "local_storage",
|
|
125
|
-
data: {
|
|
126
|
-
type: "remove",
|
|
127
|
-
key: getTableKey(tableId),
|
|
128
|
-
},
|
|
129
|
-
})
|
|
130
|
-
}
|
|
131
|
-
*/
|
|
132
128
|
}
|
|
133
129
|
}, [currentSettingHash, tableId]);
|
|
134
130
|
useEffect(function () {
|
|
@@ -244,7 +240,7 @@ var GridView = Provider( /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
244
240
|
form.setFieldValue("column_setting", {});
|
|
245
241
|
form.setFieldValue("column_setting", tableSettingRef.current.column_setting);
|
|
246
242
|
// JSON.stringify会丢失 render函数变更的监听 使用自定义stringify处理
|
|
247
|
-
}, [stringify(
|
|
243
|
+
}, [stringify(removeTitleColumns)]);
|
|
248
244
|
useEffect(function () {
|
|
249
245
|
form.setFieldsValue(initialValuesRef.current);
|
|
250
246
|
// ArraySetter在面板state变更时指针改变
|
package/es/index.d.ts
CHANGED
|
@@ -78,3 +78,4 @@ export { default as VirtualKeyboard } from "./components/virtual-keyboard";
|
|
|
78
78
|
export { default as VirtualKeyboardTime } from "./components/virtual-keyboard/Time";
|
|
79
79
|
export { default as SelectTime } from "./components/select-time";
|
|
80
80
|
export { default as AutoCompleteNumber } from "./components/auto-complete-number";
|
|
81
|
+
export { default as BatchEditor } from "./components/batch-editor";
|
package/es/index.js
CHANGED
|
@@ -97,4 +97,5 @@ export { default as Segmented } from "./components/segmented";
|
|
|
97
97
|
export { default as VirtualKeyboard } from "./components/virtual-keyboard";
|
|
98
98
|
export { default as VirtualKeyboardTime } from "./components/virtual-keyboard/Time";
|
|
99
99
|
export { default as SelectTime } from "./components/select-time";
|
|
100
|
-
export { default as AutoCompleteNumber } from "./components/auto-complete-number";
|
|
100
|
+
export { default as AutoCompleteNumber } from "./components/auto-complete-number";
|
|
101
|
+
export { default as BatchEditor } from "./components/batch-editor";
|
package/es/locales/en-US.d.ts
CHANGED
|
@@ -37,5 +37,16 @@ declare const _default: {
|
|
|
37
37
|
"table-action-range-picker-presets-last-90-day": string;
|
|
38
38
|
"virtual-keyboard-time-now": string;
|
|
39
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-confirm': string;
|
|
46
|
+
'batch-editor-batch-remove': string;
|
|
47
|
+
'batch-editor-quick-edit': string;
|
|
48
|
+
'batch-editor-what-price': string;
|
|
49
|
+
'batch-editor-quick-edit-title': (product: string, num: string) => string;
|
|
50
|
+
'batch-editor-quick-edit-title-2': (product: string) => string;
|
|
40
51
|
};
|
|
41
52
|
export default _default;
|
package/es/locales/en-US.js
CHANGED
|
@@ -42,5 +42,20 @@ export default {
|
|
|
42
42
|
"table-action-range-picker-presets-last-30-day": "Last 30 Days",
|
|
43
43
|
"table-action-range-picker-presets-last-90-day": "Last 90 Days",
|
|
44
44
|
"virtual-keyboard-time-now": "Now",
|
|
45
|
-
"virtual-keyboard-time-ok": "OK"
|
|
45
|
+
"virtual-keyboard-time-ok": "OK",
|
|
46
|
+
'batch-editor-batch-edit': 'Batch edit',
|
|
47
|
+
'batch-editor-actions': 'Actions',
|
|
48
|
+
'batch-editor-remove': 'Remove',
|
|
49
|
+
'batch-editor-price': 'Price',
|
|
50
|
+
'batch-editor-cancel': 'Cancel',
|
|
51
|
+
'batch-editor-confirm': 'Confirm',
|
|
52
|
+
'batch-editor-batch-remove': 'Batch remove',
|
|
53
|
+
'batch-editor-quick-edit': 'Quick edit',
|
|
54
|
+
'batch-editor-what-price': "What price",
|
|
55
|
+
'batch-editor-quick-edit-title': function batchEditorQuickEditTitle(product, num) {
|
|
56
|
+
return "You have selected ".concat(num, " products including ").concat(product);
|
|
57
|
+
},
|
|
58
|
+
'batch-editor-quick-edit-title-2': function batchEditorQuickEditTitle2(product) {
|
|
59
|
+
return "You have selected ".concat(product);
|
|
60
|
+
}
|
|
46
61
|
};
|
package/es/locales/zh-CN.d.ts
CHANGED
|
@@ -37,5 +37,16 @@ declare const _default: {
|
|
|
37
37
|
"table-action-range-picker-presets-last-90-day": string;
|
|
38
38
|
"virtual-keyboard-time-now": string;
|
|
39
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-confirm': string;
|
|
46
|
+
'batch-editor-batch-remove': string;
|
|
47
|
+
'batch-editor-quick-edit': string;
|
|
48
|
+
'batch-editor-what-price': string;
|
|
49
|
+
'batch-editor-quick-edit-title': (product: string, num: string) => string;
|
|
50
|
+
'batch-editor-quick-edit-title-2': (product: string) => string;
|
|
40
51
|
};
|
|
41
52
|
export default _default;
|
package/es/locales/zh-CN.js
CHANGED
|
@@ -42,5 +42,20 @@ export default {
|
|
|
42
42
|
"table-action-range-picker-presets-last-30-day": "过去30天",
|
|
43
43
|
"table-action-range-picker-presets-last-90-day": "过去90天",
|
|
44
44
|
"virtual-keyboard-time-now": "此刻",
|
|
45
|
-
"virtual-keyboard-time-ok": "确定"
|
|
45
|
+
"virtual-keyboard-time-ok": "确定",
|
|
46
|
+
'batch-editor-batch-edit': '批量编辑',
|
|
47
|
+
'batch-editor-actions': '操作',
|
|
48
|
+
'batch-editor-remove': '删除',
|
|
49
|
+
'batch-editor-price': '价格',
|
|
50
|
+
'batch-editor-cancel': '取消',
|
|
51
|
+
'batch-editor-confirm': '确认',
|
|
52
|
+
'batch-editor-batch-remove': '批量移除',
|
|
53
|
+
'batch-editor-quick-edit': '快速编辑',
|
|
54
|
+
'batch-editor-what-price': "什么价格",
|
|
55
|
+
'batch-editor-quick-edit-title': function batchEditorQuickEditTitle(product, num) {
|
|
56
|
+
return "\u60A8\u5DF2\u9009\u62E9 ".concat(product, " \u7B49").concat(num, "\u4EF6\u5546\u54C1");
|
|
57
|
+
},
|
|
58
|
+
'batch-editor-quick-edit-title-2': function batchEditorQuickEditTitle2(product) {
|
|
59
|
+
return "\u60A8\u5DF2\u9009\u62E9 ".concat(product);
|
|
60
|
+
}
|
|
46
61
|
};
|
package/es/locales/zh-TW.d.ts
CHANGED
|
@@ -37,5 +37,16 @@ declare const _default: {
|
|
|
37
37
|
"table-action-range-picker-presets-last-90-day": string;
|
|
38
38
|
"virtual-keyboard-time-now": string;
|
|
39
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-confirm': string;
|
|
46
|
+
'batch-editor-batch-remove': string;
|
|
47
|
+
'batch-editor-what-price': string;
|
|
48
|
+
'batch-editor-quick-edit': string;
|
|
49
|
+
'batch-editor-quick-edit-title': (product: string, num: string) => string;
|
|
50
|
+
'batch-editor-quick-edit-title-2': (product: string) => string;
|
|
40
51
|
};
|
|
41
52
|
export default _default;
|
package/es/locales/zh-TW.js
CHANGED
|
@@ -42,5 +42,20 @@ export default {
|
|
|
42
42
|
"table-action-range-picker-presets-last-30-day": "過去30天",
|
|
43
43
|
"table-action-range-picker-presets-last-90-day": "過去90天",
|
|
44
44
|
"virtual-keyboard-time-now": "此刻",
|
|
45
|
-
"virtual-keyboard-time-ok": "確定"
|
|
45
|
+
"virtual-keyboard-time-ok": "確定",
|
|
46
|
+
'batch-editor-batch-edit': '批量編輯',
|
|
47
|
+
'batch-editor-actions': '操作',
|
|
48
|
+
'batch-editor-remove': '刪除',
|
|
49
|
+
'batch-editor-price': '價格',
|
|
50
|
+
'batch-editor-cancel': '取消',
|
|
51
|
+
'batch-editor-confirm': '確認',
|
|
52
|
+
'batch-editor-batch-remove': '批量移除',
|
|
53
|
+
'batch-editor-what-price': "什麼價格",
|
|
54
|
+
'batch-editor-quick-edit': '快速編輯',
|
|
55
|
+
'batch-editor-quick-edit-title': function batchEditorQuickEditTitle(product, num) {
|
|
56
|
+
return "\u60A8\u5DF2\u9078\u64C7 ".concat(product, " \u7B49").concat(num, "\u4EF6\u7522\u54C1");
|
|
57
|
+
},
|
|
58
|
+
'batch-editor-quick-edit-title-2': function batchEditorQuickEditTitle2(product) {
|
|
59
|
+
return "\u60A8\u5DF2\u9078\u64C7 ".concat(product);
|
|
60
|
+
}
|
|
46
61
|
};
|
|
@@ -0,0 +1,48 @@
|
|
|
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/batch-editor/fields/Image/index.tsx
|
|
30
|
+
var Image_exports = {};
|
|
31
|
+
__export(Image_exports, {
|
|
32
|
+
default: () => Image_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(Image_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_index = require("./index.less");
|
|
37
|
+
var Image = (props) => {
|
|
38
|
+
return props.value ? /* @__PURE__ */ import_react.default.createElement(
|
|
39
|
+
"img",
|
|
40
|
+
{
|
|
41
|
+
...props,
|
|
42
|
+
className: "batch-editor-fields-image",
|
|
43
|
+
src: props.value,
|
|
44
|
+
style: { width: "50px", height: "50px" }
|
|
45
|
+
}
|
|
46
|
+
) : null;
|
|
47
|
+
};
|
|
48
|
+
var Image_default = Image;
|
|
@@ -0,0 +1,54 @@
|
|
|
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/batch-editor/fields/Price/index.tsx
|
|
30
|
+
var Price_exports = {};
|
|
31
|
+
__export(Price_exports, {
|
|
32
|
+
default: () => Price_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(Price_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_antd = require("antd");
|
|
37
|
+
var Price = (props) => {
|
|
38
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
|
39
|
+
import_antd.InputNumber,
|
|
40
|
+
{
|
|
41
|
+
keyboard: false,
|
|
42
|
+
style: { width: "100%" },
|
|
43
|
+
placeholder: "0.00",
|
|
44
|
+
min: 0,
|
|
45
|
+
prefix: "$",
|
|
46
|
+
max: 999999,
|
|
47
|
+
precision: 2,
|
|
48
|
+
size: "large",
|
|
49
|
+
controls: false,
|
|
50
|
+
...props
|
|
51
|
+
}
|
|
52
|
+
);
|
|
53
|
+
};
|
|
54
|
+
var Price_default = Price;
|
|
@@ -0,0 +1,40 @@
|
|
|
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/batch-editor/fields/Text/index.tsx
|
|
30
|
+
var Text_exports = {};
|
|
31
|
+
__export(Text_exports, {
|
|
32
|
+
default: () => Text_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(Text_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_antd = require("antd");
|
|
37
|
+
var Text = (props) => {
|
|
38
|
+
return /* @__PURE__ */ import_react.default.createElement(import_antd.Tooltip, { overlay: props.children }, /* @__PURE__ */ import_react.default.createElement("div", { ...props }, props.children));
|
|
39
|
+
};
|
|
40
|
+
var Text_default = Text;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const _default: {
|
|
3
|
+
price: import("react").FC<import("./Price").PriceProps>;
|
|
4
|
+
image: (props: import("./Image").ImageProps) => import("react").JSX.Element | null;
|
|
5
|
+
text: (props: import("./Text").TextProps) => import("react").JSX.Element;
|
|
6
|
+
};
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,42 @@
|
|
|
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/batch-editor/fields/index.ts
|
|
30
|
+
var fields_exports = {};
|
|
31
|
+
__export(fields_exports, {
|
|
32
|
+
default: () => fields_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(fields_exports);
|
|
35
|
+
var import_Price = __toESM(require("./Price"));
|
|
36
|
+
var import_Image = __toESM(require("./Image"));
|
|
37
|
+
var import_Text = __toESM(require("./Text"));
|
|
38
|
+
var fields_default = {
|
|
39
|
+
price: import_Price.default,
|
|
40
|
+
image: import_Image.default,
|
|
41
|
+
text: import_Text.default
|
|
42
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./index.less";
|
|
3
|
+
interface BatchEditorProps {
|
|
4
|
+
columns: any[];
|
|
5
|
+
dataSource: any[];
|
|
6
|
+
onChange: (value: any) => void;
|
|
7
|
+
rowKey: string;
|
|
8
|
+
otherTableProps: any;
|
|
9
|
+
}
|
|
10
|
+
declare const BatchEditor: (props: BatchEditorProps) => React.JSX.Element;
|
|
11
|
+
export default BatchEditor;
|