@donglegeyu/company-ui 1.2.4 → 1.2.5
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.
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
1
2
|
var __defProp = Object.defineProperty;
|
|
2
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
4
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
7
|
var __export = (target, all) => {
|
|
6
8
|
for (var name in all)
|
|
@@ -14,6 +16,14 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
14
16
|
}
|
|
15
17
|
return to;
|
|
16
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
|
+
));
|
|
17
27
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
28
|
|
|
19
29
|
// src/basic-components/CompanyPagination/index.tsx
|
|
@@ -23,10 +33,11 @@ __export(CompanyPagination_exports, {
|
|
|
23
33
|
});
|
|
24
34
|
module.exports = __toCommonJS(CompanyPagination_exports);
|
|
25
35
|
var import_antd = require("antd");
|
|
36
|
+
var import_zh_CN = __toESM(require("antd/locale/zh_CN"));
|
|
26
37
|
var import_theme = require("../../theme");
|
|
27
38
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
28
39
|
var CompanyPagination = (props) => {
|
|
29
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_antd.ConfigProvider, { theme: import_theme.companyTheme, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_antd.Pagination, { ...props }) });
|
|
40
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_antd.ConfigProvider, { theme: import_theme.companyTheme, locale: import_zh_CN.default, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_antd.Pagination, { size: "small", ...props }) });
|
|
30
41
|
};
|
|
31
42
|
// Annotate the CommonJS export names for ESM import in node:
|
|
32
43
|
0 && (module.exports = {
|
|
@@ -215,6 +215,7 @@ function SmartListTemplate({
|
|
|
215
215
|
key: field.key,
|
|
216
216
|
width: field.width || 120,
|
|
217
217
|
fixed: field.fixed,
|
|
218
|
+
ellipsis: true,
|
|
218
219
|
render: bodyCell ? (_, record) => {
|
|
219
220
|
const result = bodyCell({ ...field, key: field.key }, record);
|
|
220
221
|
return result !== null ? result : record[field.key];
|
|
@@ -6,11 +6,15 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
6
6
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
7
|
import React from "react";
|
|
8
8
|
import { Pagination, ConfigProvider } from "antd";
|
|
9
|
+
import zhCN from "antd/locale/zh_CN";
|
|
9
10
|
import { companyTheme } from "../../theme";
|
|
10
11
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
12
|
export var CompanyPagination = function CompanyPagination(props) {
|
|
12
13
|
return /*#__PURE__*/_jsx(ConfigProvider, {
|
|
13
14
|
theme: companyTheme,
|
|
14
|
-
|
|
15
|
+
locale: zhCN,
|
|
16
|
+
children: /*#__PURE__*/_jsx(Pagination, _objectSpread({
|
|
17
|
+
size: "small"
|
|
18
|
+
}, props))
|
|
15
19
|
});
|
|
16
20
|
};
|
|
@@ -287,6 +287,7 @@ export default function SmartListTemplate(_ref) {
|
|
|
287
287
|
key: field.key,
|
|
288
288
|
width: field.width || 120,
|
|
289
289
|
fixed: field.fixed,
|
|
290
|
+
ellipsis: true,
|
|
290
291
|
render: bodyCell ? function (_, record) {
|
|
291
292
|
var result = bodyCell(_objectSpread(_objectSpread({}, field), {}, {
|
|
292
293
|
key: field.key
|