@pisell/materials 1.0.206 → 1.0.207
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 +1 -1
- 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/es/components/DragSortList/index.d.ts +1 -1
- package/es/components/MultipleContainersSortList/index.d.ts +1 -1
- package/es/components/Pagination/index.d.ts +2 -2
- package/es/components/Pagination/index.js +14 -9
- package/es/components/auto-complete/index.d.ts +5 -1
- package/es/components/calendar/index.d.ts +1 -1
- package/es/components/checkbox/index.d.ts +1 -1
- package/es/components/config-provider/index.d.ts +2 -2
- package/es/components/date-picker/index.d.ts +1 -1
- package/es/components/div/index.d.ts +1 -1
- package/es/components/div/index.js +2 -6
- package/es/components/drawer/index.d.ts +0 -1
- package/es/components/drawer/index.js +4 -42
- package/es/components/dropdown/index.d.ts +2 -2
- package/es/components/filter/components/QuickFilter/index.d.ts +2 -2
- package/es/components/filter/components/items/index.d.ts +6 -6
- package/es/components/filter/components/items/text/Editor/index.d.ts +1 -1
- package/es/components/filter/components/items/text/Preview/index.d.ts +1 -1
- package/es/components/filter/components/items/text/index.d.ts +2 -2
- package/es/components/filter/index.d.ts +2 -2
- package/es/components/form/index.d.ts +1 -1
- package/es/components/page/index.d.ts +2 -2
- package/es/components/page/index.js +1 -14
- package/es/components/qrcode/index.d.ts +2 -2
- package/es/components/radio/index.d.ts +1 -1
- package/es/components/record-view/index.less +0 -2
- package/es/components/select/index.d.ts +5 -2
- package/es/components/select/index.js +2 -60
- package/es/components/skeleton/index.d.ts +1 -1
- package/es/components/slider/index.d.ts +2 -2
- package/es/components/table/Actions/Sort/index.d.ts +12 -0
- package/es/components/table/Actions/Sort/index.js +59 -0
- package/es/components/table/Actions/Sort/index.less +0 -0
- package/es/components/table/Actions/index.d.ts +2 -2
- package/es/components/table/Actions/index.js +1 -1
- package/es/components/table/BasicTable/index.d.ts +2 -2
- package/es/components/table/Header/index.d.ts +2 -2
- package/es/components/table/Summary/index.d.ts +2 -2
- package/es/components/table/Table/SelectField/index.d.ts +2 -2
- package/es/components/table/Table/fields/date/Config/index.d.ts +1 -1
- package/es/components/table/Table/fields/date/Show/index.d.ts +2 -2
- package/es/components/table/Table/fields/date/Show/index.js +1 -2
- package/es/components/table/Table/fields/date/Sort/index.d.ts +1 -1
- package/es/components/table/Table/fields/date/index.d.ts +3 -3
- package/es/components/table/Table/fields/image/Config/index.d.ts +1 -1
- package/es/components/table/Table/fields/image/Show/index.d.ts +1 -1
- package/es/components/table/Table/fields/image/Show/index.js +1 -2
- package/es/components/table/Table/fields/image/Sort/index.d.ts +1 -1
- package/es/components/table/Table/fields/image/index.d.ts +3 -3
- package/es/components/table/Table/fields/index.d.ts +57 -57
- package/es/components/table/Table/fields/link/Config/index.d.ts +1 -1
- package/es/components/table/Table/fields/link/Show/index.d.ts +1 -1
- package/es/components/table/Table/fields/link/Show/index.js +5 -7
- package/es/components/table/Table/fields/link/Sort/index.d.ts +1 -1
- package/es/components/table/Table/fields/link/index.d.ts +3 -3
- package/es/components/table/Table/fields/number/Config/index.d.ts +1 -1
- package/es/components/table/Table/fields/number/Show/index.d.ts +1 -1
- package/es/components/table/Table/fields/number/Show/index.js +1 -2
- package/es/components/table/Table/fields/number/Sort/index.d.ts +1 -1
- package/es/components/table/Table/fields/number/index.d.ts +3 -3
- package/es/components/table/Table/fields/pSwitch/Config/index.d.ts +1 -1
- package/es/components/table/Table/fields/pSwitch/Show/index.d.ts +2 -2
- package/es/components/table/Table/fields/pSwitch/Show/index.js +1 -2
- package/es/components/table/Table/fields/pSwitch/Sort/index.d.ts +1 -1
- package/es/components/table/Table/fields/pSwitch/index.d.ts +3 -3
- package/es/components/table/Table/fields/rangePicker/Config/index.d.ts +1 -1
- package/es/components/table/Table/fields/rangePicker/Show/index.d.ts +1 -1
- package/es/components/table/Table/fields/rangePicker/Sort/index.d.ts +1 -1
- package/es/components/table/Table/fields/rangePicker/index.d.ts +3 -3
- package/es/components/table/Table/fields/search/Config/index.d.ts +1 -1
- package/es/components/table/Table/fields/search/Show/index.d.ts +1 -1
- package/es/components/table/Table/fields/search/Show/index.js +1 -2
- package/es/components/table/Table/fields/search/Sort/index.d.ts +1 -1
- package/es/components/table/Table/fields/search/index.d.ts +3 -3
- package/es/components/table/Table/fields/select/Config/index.d.ts +1 -1
- package/es/components/table/Table/fields/select/Show/index.d.ts +1 -1
- package/es/components/table/Table/fields/select/Sort/index.d.ts +1 -1
- package/es/components/table/Table/fields/select/index.d.ts +3 -3
- package/es/components/table/Table/fields/text/Config/index.d.ts +1 -1
- package/es/components/table/Table/fields/text/Edit/index.js +3 -8
- package/es/components/table/Table/fields/text/Show/index.d.ts +1 -1
- package/es/components/table/Table/fields/text/Show/index.js +1 -2
- package/es/components/table/Table/fields/text/Sort/index.d.ts +1 -1
- package/es/components/table/Table/fields/text/index.d.ts +3 -3
- package/es/components/table/Table/index.js +4 -5
- package/es/components/table/Table/tableConfig/SortRow/index.d.ts +2 -2
- package/es/components/table/Table/tableConfig/summary/index.d.ts +2 -2
- package/es/components/table/TableFilter/SortIcon.d.ts +2 -2
- package/es/components/table/TableFilter/numberFilter.js +4 -5
- package/es/components/table/TableFilter/selectFilter.js +2 -3
- package/es/components/table/TableFilter/stringFilter.js +3 -4
- package/es/components/table/model.d.ts +1 -1
- package/es/components/table/model.js +29 -1
- package/es/components/tabs/index.d.ts +2 -5
- package/es/components/tabs/index.js +8 -51
- package/es/components/time-picker/index.d.ts +1 -1
- package/es/components/upload/index.d.ts +1 -1
- package/es/index.d.ts +1 -5
- package/es/index.js +5 -6
- package/es/utils/hoc.d.ts +4 -4
- package/es/utils/hoc.js +8 -9
- package/es/utils/miniRedux.d.ts +1 -1
- package/lib/components/DragSortList/index.d.ts +1 -1
- package/lib/components/MultipleContainersSortList/index.d.ts +1 -1
- package/lib/components/Pagination/index.d.ts +2 -2
- package/lib/components/Pagination/index.js +8 -9
- package/lib/components/auto-complete/index.d.ts +5 -1
- package/lib/components/calendar/index.d.ts +1 -1
- package/lib/components/checkbox/index.d.ts +1 -1
- package/lib/components/config-provider/index.d.ts +2 -2
- package/lib/components/date-picker/index.d.ts +1 -1
- package/lib/components/div/index.d.ts +1 -1
- package/lib/components/div/index.js +2 -2
- package/lib/components/drawer/index.d.ts +0 -1
- package/lib/components/drawer/index.js +1 -37
- package/lib/components/dropdown/index.d.ts +2 -2
- package/lib/components/filter/components/QuickFilter/index.d.ts +2 -2
- package/lib/components/filter/components/items/index.d.ts +6 -6
- package/lib/components/filter/components/items/text/Editor/index.d.ts +1 -1
- package/lib/components/filter/components/items/text/Preview/index.d.ts +1 -1
- package/lib/components/filter/components/items/text/index.d.ts +2 -2
- package/lib/components/filter/index.d.ts +2 -2
- package/lib/components/form/index.d.ts +1 -1
- package/lib/components/page/index.d.ts +2 -2
- package/lib/components/page/index.js +1 -13
- package/lib/components/qrcode/index.d.ts +2 -2
- package/lib/components/radio/index.d.ts +1 -1
- package/lib/components/record-view/index.less +0 -2
- package/lib/components/select/index.d.ts +5 -2
- package/lib/components/select/index.js +1 -67
- package/lib/components/skeleton/index.d.ts +1 -1
- package/lib/components/slider/index.d.ts +2 -2
- package/lib/components/table/Actions/Sort/index.d.ts +12 -0
- package/lib/components/table/Actions/Sort/index.js +86 -0
- package/lib/components/table/Actions/Sort/index.less +0 -0
- package/lib/components/table/Actions/index.d.ts +2 -2
- package/lib/components/table/Actions/index.js +2 -2
- package/lib/components/table/BasicTable/index.d.ts +2 -2
- package/lib/components/table/Header/index.d.ts +2 -2
- package/lib/components/table/Summary/index.d.ts +2 -2
- package/lib/components/table/Table/SelectField/index.d.ts +2 -2
- package/lib/components/table/Table/fields/date/Config/index.d.ts +1 -1
- package/lib/components/table/Table/fields/date/Show/index.d.ts +2 -2
- package/lib/components/table/Table/fields/date/Show/index.js +1 -2
- package/lib/components/table/Table/fields/date/Sort/index.d.ts +1 -1
- package/lib/components/table/Table/fields/date/index.d.ts +3 -3
- package/lib/components/table/Table/fields/image/Config/index.d.ts +1 -1
- package/lib/components/table/Table/fields/image/Show/index.d.ts +1 -1
- package/lib/components/table/Table/fields/image/Show/index.js +1 -2
- package/lib/components/table/Table/fields/image/Sort/index.d.ts +1 -1
- package/lib/components/table/Table/fields/image/index.d.ts +3 -3
- package/lib/components/table/Table/fields/index.d.ts +57 -57
- package/lib/components/table/Table/fields/link/Config/index.d.ts +1 -1
- package/lib/components/table/Table/fields/link/Show/index.d.ts +1 -1
- package/lib/components/table/Table/fields/link/Show/index.js +5 -7
- package/lib/components/table/Table/fields/link/Sort/index.d.ts +1 -1
- package/lib/components/table/Table/fields/link/index.d.ts +3 -3
- package/lib/components/table/Table/fields/number/Config/index.d.ts +1 -1
- package/lib/components/table/Table/fields/number/Show/index.d.ts +1 -1
- package/lib/components/table/Table/fields/number/Show/index.js +1 -2
- package/lib/components/table/Table/fields/number/Sort/index.d.ts +1 -1
- package/lib/components/table/Table/fields/number/index.d.ts +3 -3
- package/lib/components/table/Table/fields/pSwitch/Config/index.d.ts +1 -1
- package/lib/components/table/Table/fields/pSwitch/Show/index.d.ts +2 -2
- package/lib/components/table/Table/fields/pSwitch/Show/index.js +1 -2
- package/lib/components/table/Table/fields/pSwitch/Sort/index.d.ts +1 -1
- package/lib/components/table/Table/fields/pSwitch/index.d.ts +3 -3
- package/lib/components/table/Table/fields/rangePicker/Config/index.d.ts +1 -1
- package/lib/components/table/Table/fields/rangePicker/Show/index.d.ts +1 -1
- package/lib/components/table/Table/fields/rangePicker/Sort/index.d.ts +1 -1
- package/lib/components/table/Table/fields/rangePicker/index.d.ts +3 -3
- package/lib/components/table/Table/fields/search/Config/index.d.ts +1 -1
- package/lib/components/table/Table/fields/search/Show/index.d.ts +1 -1
- package/lib/components/table/Table/fields/search/Show/index.js +1 -2
- package/lib/components/table/Table/fields/search/Sort/index.d.ts +1 -1
- package/lib/components/table/Table/fields/search/index.d.ts +3 -3
- package/lib/components/table/Table/fields/select/Config/index.d.ts +1 -1
- package/lib/components/table/Table/fields/select/Show/index.d.ts +1 -1
- package/lib/components/table/Table/fields/select/Sort/index.d.ts +1 -1
- package/lib/components/table/Table/fields/select/index.d.ts +3 -3
- package/lib/components/table/Table/fields/text/Config/index.d.ts +1 -1
- package/lib/components/table/Table/fields/text/Edit/index.js +1 -2
- package/lib/components/table/Table/fields/text/Show/index.d.ts +1 -1
- package/lib/components/table/Table/fields/text/Show/index.js +1 -2
- package/lib/components/table/Table/fields/text/Sort/index.d.ts +1 -1
- package/lib/components/table/Table/fields/text/index.d.ts +3 -3
- package/lib/components/table/Table/index.js +2 -3
- package/lib/components/table/Table/tableConfig/SortRow/index.d.ts +2 -2
- package/lib/components/table/Table/tableConfig/summary/index.d.ts +2 -2
- package/lib/components/table/TableFilter/SortIcon.d.ts +2 -2
- package/lib/components/table/TableFilter/numberFilter.js +4 -5
- package/lib/components/table/TableFilter/selectFilter.js +2 -3
- package/lib/components/table/TableFilter/stringFilter.js +3 -4
- package/lib/components/table/model.d.ts +1 -1
- package/lib/components/table/model.js +34 -1
- package/lib/components/tabs/index.d.ts +2 -5
- package/lib/components/tabs/index.js +1 -50
- package/lib/components/time-picker/index.d.ts +1 -1
- package/lib/components/upload/index.d.ts +1 -1
- package/lib/index.d.ts +1 -5
- package/lib/index.js +2 -14
- package/lib/utils/hoc.d.ts +4 -4
- package/lib/utils/hoc.js +3 -3
- package/lib/utils/miniRedux.d.ts +1 -1
- package/package.json +3 -3
- 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
- package/es/components/classicLayout/index.d.ts +0 -4
- package/es/components/classicLayout/index.js +0 -25
- package/es/components/classicLayout/index.less +0 -22
- package/es/components/component/index.d.ts +0 -11
- package/es/components/component/index.js +0 -10
- package/es/components/drawer/index.less +0 -34
- package/es/components/list/index.d.ts +0 -7
- package/es/components/list/index.js +0 -104
- package/es/components/list/index.less +0 -38
- package/es/components/select/index.less +0 -11
- package/es/components/sort/components/InlineMenu/index.d.ts +0 -15
- package/es/components/sort/components/InlineMenu/index.js +0 -87
- package/es/components/sort/components/InlineMenu/index.less +0 -20
- package/es/components/sort/index.d.ts +0 -18
- package/es/components/sort/index.js +0 -113
- package/es/components/sort/index.less +0 -10
- package/es/components/table/Table/fields/utils/index.d.ts +0 -1
- package/es/components/table/Table/fields/utils/index.js +0 -29
- package/es/components/tabs/index.less +0 -60
- package/es/locales/en-US.d.ts +0 -21
- package/es/locales/en-US.js +0 -22
- package/es/locales/index.d.ts +0 -1
- package/es/locales/index.js +0 -21
- package/es/locales/zh-CN.d.ts +0 -21
- package/es/locales/zh-CN.js +0 -22
- package/es/locales/zh-TW.d.ts +0 -21
- package/es/locales/zh-TW.js +0 -22
- package/es/utils/locale.d.ts +0 -1
- package/es/utils/locale.js +0 -5
- package/es/utils/platform.d.ts +0 -1
- package/es/utils/platform.js +0 -8
- package/lib/components/classicLayout/index.d.ts +0 -4
- package/lib/components/classicLayout/index.js +0 -59
- package/lib/components/classicLayout/index.less +0 -22
- package/lib/components/component/index.d.ts +0 -11
- package/lib/components/component/index.js +0 -29
- package/lib/components/drawer/index.less +0 -34
- package/lib/components/list/index.d.ts +0 -7
- package/lib/components/list/index.js +0 -134
- package/lib/components/list/index.less +0 -38
- package/lib/components/select/index.less +0 -11
- package/lib/components/sort/components/InlineMenu/index.d.ts +0 -15
- package/lib/components/sort/components/InlineMenu/index.js +0 -89
- package/lib/components/sort/components/InlineMenu/index.less +0 -20
- package/lib/components/sort/index.d.ts +0 -18
- package/lib/components/sort/index.js +0 -147
- package/lib/components/sort/index.less +0 -10
- package/lib/components/table/Table/fields/utils/index.d.ts +0 -1
- package/lib/components/table/Table/fields/utils/index.js +0 -46
- package/lib/components/tabs/index.less +0 -60
- package/lib/locales/en-US.d.ts +0 -21
- package/lib/locales/en-US.js +0 -44
- package/lib/locales/index.d.ts +0 -1
- package/lib/locales/index.js +0 -58
- package/lib/locales/zh-CN.d.ts +0 -21
- package/lib/locales/zh-CN.js +0 -44
- package/lib/locales/zh-TW.d.ts +0 -21
- package/lib/locales/zh-TW.js +0 -44
- package/lib/utils/locale.d.ts +0 -1
- package/lib/utils/locale.js +0 -32
- package/lib/utils/platform.d.ts +0 -1
- package/lib/utils/platform.js +0 -36
|
@@ -41,13 +41,12 @@ var import_antd = require("antd");
|
|
|
41
41
|
var import_classnames = __toESM(require("classnames"));
|
|
42
42
|
var import_hooks = require("../../hooks");
|
|
43
43
|
var import_index = require("./index.less");
|
|
44
|
-
var import_locales = require("../../locales");
|
|
45
44
|
var itemRender = (_, type, originalElement) => {
|
|
46
45
|
if (type === "prev") {
|
|
47
|
-
return /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("paginator-page-btn", "left") }, /* @__PURE__ */ import_react.default.createElement(import_ArrowLeft.default, { className: "paginator-page-btn-left-icon" }), /* @__PURE__ */ import_react.default.createElement("span", { className: "paginator-page-btn-text" },
|
|
46
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("paginator-page-btn", "left") }, /* @__PURE__ */ import_react.default.createElement(import_ArrowLeft.default, { className: "paginator-page-btn-left-icon" }), /* @__PURE__ */ import_react.default.createElement("span", { className: "paginator-page-btn-text" }, "Previous"));
|
|
48
47
|
}
|
|
49
48
|
if (type === "next") {
|
|
50
|
-
return /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("paginator-page-btn", "right") }, /* @__PURE__ */ import_react.default.createElement("span", { className: "paginator-page-btn-text" },
|
|
49
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("paginator-page-btn", "right") }, /* @__PURE__ */ import_react.default.createElement("span", { className: "paginator-page-btn-text" }, "Next"), /* @__PURE__ */ import_react.default.createElement(import_ArrowRight.default, { className: "paginator-page-btn-right-icon" }));
|
|
51
50
|
}
|
|
52
51
|
return originalElement;
|
|
53
52
|
};
|
|
@@ -107,7 +106,7 @@ var MiniPagination = (props) => {
|
|
|
107
106
|
}
|
|
108
107
|
},
|
|
109
108
|
/* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("paginator-page-btn", "left") }, /* @__PURE__ */ import_react.default.createElement(import_ArrowLeft.default, { className: "paginator-page-btn-left-icon" }))
|
|
110
|
-
), /* @__PURE__ */ import_react.default.createElement("div", { className: "materials-grid-paginator-center" }, /* @__PURE__ */ import_react.default.createElement("span", { className: "materials-grid-paginator-center-text" }, (
|
|
109
|
+
), /* @__PURE__ */ import_react.default.createElement("div", { className: "materials-grid-paginator-center" }, /* @__PURE__ */ import_react.default.createElement("span", { className: "materials-grid-paginator-center-text" }, "Page"), /* @__PURE__ */ import_react.default.createElement("span", { className: "materials-grid-paginator-center-value" }, current), /* @__PURE__ */ import_react.default.createElement("span", { className: "materials-grid-paginator-center-text" }, "of"), /* @__PURE__ */ import_react.default.createElement("span", { className: "materials-grid-paginator-center-value" }, MAX)), /* @__PURE__ */ import_react.default.createElement(
|
|
111
110
|
"div",
|
|
112
111
|
{
|
|
113
112
|
className: "pisell-lowcode-pagination-next",
|
|
@@ -128,8 +127,8 @@ var FormPagination = ({
|
|
|
128
127
|
pageSize,
|
|
129
128
|
...other
|
|
130
129
|
}) => {
|
|
131
|
-
const [_p, _setP] = (0, import_react.useState)(
|
|
132
|
-
const [_ps, _setPs] = (0, import_react.useState)(
|
|
130
|
+
const [_p, _setP] = (0, import_react.useState)(1);
|
|
131
|
+
const [_ps, _setPs] = (0, import_react.useState)(10);
|
|
133
132
|
const _onChange = (p, ps) => {
|
|
134
133
|
onChange && onChange({
|
|
135
134
|
page: ps === _ps ? p : 1,
|
|
@@ -137,11 +136,11 @@ var FormPagination = ({
|
|
|
137
136
|
});
|
|
138
137
|
};
|
|
139
138
|
(0, import_react.useEffect)(() => {
|
|
140
|
-
const _page = (value == null ? void 0 : value.page) ||
|
|
141
|
-
const _size = (value == null ? void 0 : value.size) ||
|
|
139
|
+
const _page = (value == null ? void 0 : value.page) || 1;
|
|
140
|
+
const _size = (value == null ? void 0 : value.size) || 10;
|
|
142
141
|
_setP(_page);
|
|
143
142
|
_setPs(_size);
|
|
144
|
-
}, [value
|
|
143
|
+
}, [value]);
|
|
145
144
|
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(
|
|
146
145
|
Pagination,
|
|
147
146
|
{
|
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
declare const AutoComplete: (
|
|
2
|
+
declare const AutoComplete: import("react").ForwardRefExoticComponent<Omit<import("antd").AutoCompleteProps<unknown, import("antd/es/select").DefaultOptionType | import("antd/es/select").BaseOptionType> & {
|
|
3
|
+
children?: import("react").ReactNode;
|
|
4
|
+
} & {
|
|
5
|
+
ref?: import("react").Ref<import("antd").RefSelectProps> | undefined;
|
|
6
|
+
}, "ref"> & import("react").RefAttributes<any>>;
|
|
3
7
|
export default AutoComplete;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
declare const Checkbox: (
|
|
2
|
+
declare const Checkbox: import("react").ForwardRefExoticComponent<Omit<import("antd").CheckboxProps & import("react").RefAttributes<HTMLInputElement>, "ref"> & import("react").RefAttributes<any>>;
|
|
3
3
|
export default Checkbox;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { ConfigProviderProps as OriginalConfigProviderProps } from "antd/es/config-provider";
|
|
3
3
|
import "dayjs/locale/zh-cn";
|
|
4
4
|
export interface ConfigProviderProps extends OriginalConfigProviderProps {
|
|
5
5
|
[key: string]: any;
|
|
6
6
|
}
|
|
7
|
-
declare const ConfigProvider: (props: ConfigProviderProps) =>
|
|
7
|
+
declare const ConfigProvider: (props: ConfigProviderProps) => JSX.Element;
|
|
8
8
|
export default ConfigProvider;
|
|
@@ -34,7 +34,7 @@ __export(div_exports, {
|
|
|
34
34
|
module.exports = __toCommonJS(div_exports);
|
|
35
35
|
var import_react = __toESM(require("react"));
|
|
36
36
|
var Div = (props) => {
|
|
37
|
-
const { children, style = {}, others = {}
|
|
38
|
-
return /* @__PURE__ */ import_react.default.createElement("div", { style, ...others
|
|
37
|
+
const { children, style = {}, others = {} } = props;
|
|
38
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { style, ...others }, children);
|
|
39
39
|
};
|
|
40
40
|
var div_default = Div;
|
|
@@ -34,47 +34,11 @@ __export(drawer_exports, {
|
|
|
34
34
|
module.exports = __toCommonJS(drawer_exports);
|
|
35
35
|
var import_react = __toESM(require("react"));
|
|
36
36
|
var import_antd = require("antd");
|
|
37
|
-
var import_icons = require("@ant-design/icons");
|
|
38
|
-
var import_index = require("./index.less");
|
|
39
|
-
var prefix = "pisell-lowcode-";
|
|
40
|
-
var Title = (props) => {
|
|
41
|
-
const { placement, onClose } = props;
|
|
42
|
-
return /* @__PURE__ */ import_react.default.createElement(
|
|
43
|
-
"div",
|
|
44
|
-
{
|
|
45
|
-
className: `${prefix}drawer-outside-wrap ${prefix}drawer-outside-wrap-${placement}`
|
|
46
|
-
},
|
|
47
|
-
/* @__PURE__ */ import_react.default.createElement("div", { className: `${prefix}drawer-outside-action-wrap`, onClick: onClose }, /* @__PURE__ */ import_react.default.createElement(import_icons.CloseOutlined, null))
|
|
48
|
-
);
|
|
49
|
-
};
|
|
50
37
|
var Drawer = (props) => {
|
|
51
|
-
const { others, ...resetProps } = props;
|
|
52
|
-
const { operateMode, headerStyle, placement, onClose } = props;
|
|
53
38
|
const innerProps = {};
|
|
54
39
|
if (props.__designMode === "design") {
|
|
55
40
|
innerProps.open = true;
|
|
56
41
|
}
|
|
57
|
-
|
|
58
|
-
if (operateMode === "outside") {
|
|
59
|
-
return {
|
|
60
|
-
headerStyle: {
|
|
61
|
-
border: "none",
|
|
62
|
-
height: 0,
|
|
63
|
-
padding: 0
|
|
64
|
-
},
|
|
65
|
-
title: /* @__PURE__ */ import_react.default.createElement(Title, { placement, onClose })
|
|
66
|
-
};
|
|
67
|
-
}
|
|
68
|
-
return headerStyle;
|
|
69
|
-
}, [operateMode, placement, onClose]);
|
|
70
|
-
return /* @__PURE__ */ import_react.default.createElement(
|
|
71
|
-
import_antd.Drawer,
|
|
72
|
-
{
|
|
73
|
-
...resetProps,
|
|
74
|
-
...innerProps,
|
|
75
|
-
...otherProps,
|
|
76
|
-
...others
|
|
77
|
-
}
|
|
78
|
-
);
|
|
42
|
+
return /* @__PURE__ */ import_react.default.createElement(import_antd.Drawer, { ...props, ...innerProps });
|
|
79
43
|
};
|
|
80
44
|
var drawer_default = Drawer;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const _default: (props: any) =>
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const _default: (props: any) => JSX.Element;
|
|
3
3
|
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { FilterItemProps } from "../Dropdown";
|
|
3
3
|
interface QuickFilterProps {
|
|
4
4
|
quickFilter: FilterItemProps[];
|
|
5
5
|
}
|
|
6
|
-
declare const QuickFilter: (props: QuickFilterProps) =>
|
|
6
|
+
declare const QuickFilter: (props: QuickFilterProps) => JSX.Element;
|
|
7
7
|
export default QuickFilter;
|
|
@@ -7,8 +7,8 @@ export declare const fieldMaps: {
|
|
|
7
7
|
field_type: string;
|
|
8
8
|
default_value: string;
|
|
9
9
|
};
|
|
10
|
-
Preview: (props: any) =>
|
|
11
|
-
Editor: () =>
|
|
10
|
+
Preview: (props: any) => JSX.Element;
|
|
11
|
+
Editor: () => JSX.Element;
|
|
12
12
|
};
|
|
13
13
|
};
|
|
14
14
|
export declare const fieldList: {
|
|
@@ -24,8 +24,8 @@ export declare const getFieldByType: (type: string) => {
|
|
|
24
24
|
field_type: string;
|
|
25
25
|
default_value: string;
|
|
26
26
|
};
|
|
27
|
-
Preview: (props: any) =>
|
|
28
|
-
Editor: () =>
|
|
27
|
+
Preview: (props: any) => JSX.Element;
|
|
28
|
+
Editor: () => JSX.Element;
|
|
29
29
|
};
|
|
30
30
|
declare const _default: {
|
|
31
31
|
text: {
|
|
@@ -35,8 +35,8 @@ declare const _default: {
|
|
|
35
35
|
field_type: string;
|
|
36
36
|
default_value: string;
|
|
37
37
|
};
|
|
38
|
-
Preview: (props: any) =>
|
|
39
|
-
Editor: () =>
|
|
38
|
+
Preview: (props: any) => JSX.Element;
|
|
39
|
+
Editor: () => JSX.Element;
|
|
40
40
|
};
|
|
41
41
|
};
|
|
42
42
|
export default _default;
|
|
@@ -6,7 +6,7 @@ declare const _default: {
|
|
|
6
6
|
field_type: string;
|
|
7
7
|
default_value: string;
|
|
8
8
|
};
|
|
9
|
-
Preview: (props: any) =>
|
|
10
|
-
Editor: () =>
|
|
9
|
+
Preview: (props: any) => JSX.Element;
|
|
10
|
+
Editor: () => JSX.Element;
|
|
11
11
|
};
|
|
12
12
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { FilterItemProps } from "./components/Dropdown";
|
|
3
3
|
export interface FilterProps {
|
|
4
4
|
filter: {
|
|
@@ -8,5 +8,5 @@ export interface FilterProps {
|
|
|
8
8
|
isRenderFormContent: boolean;
|
|
9
9
|
onValuesChange: () => void;
|
|
10
10
|
}
|
|
11
|
-
declare const Filter: (props: FilterProps) =>
|
|
11
|
+
declare const Filter: (props: FilterProps) => JSX.Element | null;
|
|
12
12
|
export default Filter;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { ConfigProviderProps } from "../config-provider";
|
|
3
3
|
interface PageProps extends ConfigProviderProps {
|
|
4
4
|
}
|
|
5
|
-
declare const Page: (props: PageProps) =>
|
|
5
|
+
declare const Page: (props: PageProps) => JSX.Element;
|
|
6
6
|
export default Page;
|
|
@@ -36,17 +36,6 @@ var import_react = __toESM(require("react"));
|
|
|
36
36
|
var import_config_provider = __toESM(require("../config-provider"));
|
|
37
37
|
var import_AdapterDayjs = require("@pisell/date-picker/es/AdapterDayjs");
|
|
38
38
|
var import_date_picker = require("@pisell/date-picker");
|
|
39
|
-
var import_en_US = __toESM(require("antd/locale/en_US"));
|
|
40
|
-
var import_zh_CN = __toESM(require("antd/locale/zh_CN"));
|
|
41
|
-
var import_zh_TW = __toESM(require("antd/locale/zh_TW"));
|
|
42
|
-
var import_zh_HK = __toESM(require("antd/locale/zh_HK"));
|
|
43
|
-
var localMap = {
|
|
44
|
-
"zh-TW": import_zh_TW.default,
|
|
45
|
-
"zh-CN": import_zh_CN.default,
|
|
46
|
-
"zh-HK": import_zh_HK.default,
|
|
47
|
-
"en-US": import_en_US.default,
|
|
48
|
-
"en": import_en_US.default
|
|
49
|
-
};
|
|
50
39
|
var theme = {
|
|
51
40
|
components: {
|
|
52
41
|
Table: {
|
|
@@ -194,12 +183,11 @@ var datePickerTheme = (0, import_date_picker.createTheme)({
|
|
|
194
183
|
}
|
|
195
184
|
});
|
|
196
185
|
var Page = (props) => {
|
|
197
|
-
const { children, style,
|
|
186
|
+
const { children, style, ...others } = props;
|
|
198
187
|
return /* @__PURE__ */ import_react.default.createElement(
|
|
199
188
|
import_config_provider.default,
|
|
200
189
|
{
|
|
201
190
|
...others,
|
|
202
|
-
locale: localMap[locale],
|
|
203
191
|
prefixCls: props.prefixCls || "pisell-lowcode",
|
|
204
192
|
theme: props.theme || theme
|
|
205
193
|
},
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const QRCode: (props: any) =>
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const QRCode: (props: any) => JSX.Element;
|
|
3
3
|
export default QRCode;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
declare const Radio: (
|
|
2
|
+
declare const Radio: import("react").ForwardRefExoticComponent<Omit<import("antd").RadioProps & import("react").RefAttributes<HTMLElement>, "ref"> & import("react").RefAttributes<any>>;
|
|
3
3
|
export default Radio;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import "
|
|
3
|
-
|
|
2
|
+
declare const Select: import("react").ForwardRefExoticComponent<Omit<import("antd").SelectProps<unknown, import("antd/es/select").DefaultOptionType | import("antd/es/select").BaseOptionType> & {
|
|
3
|
+
children?: import("react").ReactNode;
|
|
4
|
+
} & {
|
|
5
|
+
ref?: import("react").Ref<import("antd").RefSelectProps> | undefined;
|
|
6
|
+
}, "ref"> & import("react").RefAttributes<any>>;
|
|
4
7
|
export default Select;
|
|
@@ -23,72 +23,6 @@ __export(select_exports, {
|
|
|
23
23
|
});
|
|
24
24
|
module.exports = __toCommonJS(select_exports);
|
|
25
25
|
var import_antd = require("antd");
|
|
26
|
-
var import_react = require("react");
|
|
27
|
-
var import_locales = require("../../locales");
|
|
28
26
|
var import_hoc = require("../../utils/hoc");
|
|
29
|
-
var
|
|
30
|
-
var import_index = require("./index.less");
|
|
31
|
-
var prefix = "pisell-lowcode-";
|
|
32
|
-
var SelectBase = (props) => {
|
|
33
|
-
const {
|
|
34
|
-
isShowDropdown,
|
|
35
|
-
selectAll,
|
|
36
|
-
mode,
|
|
37
|
-
options,
|
|
38
|
-
dropdownRender: propsDropdownRender
|
|
39
|
-
} = props;
|
|
40
|
-
const [state, setState] = (0, import_ahooks.useControllableValue)(props);
|
|
41
|
-
const onSelectAllChange = (e) => {
|
|
42
|
-
if (e.target.checked) {
|
|
43
|
-
setState(
|
|
44
|
-
options.map((item) => item.value),
|
|
45
|
-
options
|
|
46
|
-
);
|
|
47
|
-
} else {
|
|
48
|
-
setState([], []);
|
|
49
|
-
}
|
|
50
|
-
};
|
|
51
|
-
const isShowSelectAll = (0, import_react.useMemo)(() => {
|
|
52
|
-
return mode === "multiple" && isShowDropdown && selectAll;
|
|
53
|
-
}, [mode, selectAll, isShowDropdown]);
|
|
54
|
-
const checkboxChecked = (0, import_react.useMemo)(() => {
|
|
55
|
-
if (mode !== "multiple")
|
|
56
|
-
return false;
|
|
57
|
-
return (state == null ? void 0 : state.length) === (options == null ? void 0 : options.length) && state.sort().join("") === options.map((item) => item.value).sort().join("");
|
|
58
|
-
}, [state, options]);
|
|
59
|
-
const dropdownRender = (0, import_react.useCallback)(
|
|
60
|
-
propsDropdownRender ? propsDropdownRender : (originNode) => {
|
|
61
|
-
return /* @__PURE__ */ React.createElement(React.Fragment, null, originNode, isShowDropdown && /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
|
|
62
|
-
import_antd.Divider,
|
|
63
|
-
{
|
|
64
|
-
className: `${prefix}select-dropdown-render-divider`
|
|
65
|
-
}
|
|
66
|
-
), /* @__PURE__ */ React.createElement(
|
|
67
|
-
"div",
|
|
68
|
-
{
|
|
69
|
-
className: `${prefix}select-dropdown-render-options-wrap`
|
|
70
|
-
},
|
|
71
|
-
isShowSelectAll && /* @__PURE__ */ React.createElement(
|
|
72
|
-
import_antd.Checkbox,
|
|
73
|
-
{
|
|
74
|
-
onChange: onSelectAllChange,
|
|
75
|
-
checked: checkboxChecked
|
|
76
|
-
},
|
|
77
|
-
(0, import_locales.getText)("select-dropdown-render-select-all")
|
|
78
|
-
)
|
|
79
|
-
)));
|
|
80
|
-
},
|
|
81
|
-
[isShowDropdown, isShowSelectAll, checkboxChecked, propsDropdownRender]
|
|
82
|
-
);
|
|
83
|
-
return /* @__PURE__ */ React.createElement(
|
|
84
|
-
import_antd.Select,
|
|
85
|
-
{
|
|
86
|
-
...props,
|
|
87
|
-
value: state,
|
|
88
|
-
onChange: (value, option) => setState(value, option),
|
|
89
|
-
dropdownRender
|
|
90
|
-
}
|
|
91
|
-
);
|
|
92
|
-
};
|
|
93
|
-
var Select = (0, import_hoc.withWrap)(SelectBase);
|
|
27
|
+
var Select = (0, import_hoc.withWrap)(import_antd.Select);
|
|
94
28
|
var select_default = Select;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const SliderOuter: (props: any) =>
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const SliderOuter: (props: any) => JSX.Element;
|
|
3
3
|
export default SliderOuter;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export declare type SortItemProps = {
|
|
3
|
+
type: "date" | "string" | "number";
|
|
4
|
+
label: string;
|
|
5
|
+
name: string;
|
|
6
|
+
};
|
|
7
|
+
declare type SortListProps = {
|
|
8
|
+
list: SortItemProps[];
|
|
9
|
+
onChange?: (val: string) => void;
|
|
10
|
+
};
|
|
11
|
+
declare const Sort: React.FC<SortListProps>;
|
|
12
|
+
export default Sort;
|
|
@@ -0,0 +1,86 @@
|
|
|
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/table/Actions/Sort/index.tsx
|
|
30
|
+
var Sort_exports = {};
|
|
31
|
+
__export(Sort_exports, {
|
|
32
|
+
default: () => Sort_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(Sort_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_antd = require("antd");
|
|
37
|
+
var import_SwitchVertical01 = __toESM(require("@pisell/icon/es/SwitchVertical01"));
|
|
38
|
+
var sortChildrenMap = {
|
|
39
|
+
date: (key) => [
|
|
40
|
+
{
|
|
41
|
+
key: `${key}:desc`,
|
|
42
|
+
label: "Oldest to newest"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
key: `${key}:asc`,
|
|
46
|
+
label: "Newest to oldest"
|
|
47
|
+
}
|
|
48
|
+
],
|
|
49
|
+
string: (key) => [
|
|
50
|
+
{
|
|
51
|
+
key: `${key}:asc`,
|
|
52
|
+
label: "A to Z"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
key: `${key}:desc`,
|
|
56
|
+
label: "Z to A"
|
|
57
|
+
}
|
|
58
|
+
],
|
|
59
|
+
number: (key) => [
|
|
60
|
+
{
|
|
61
|
+
key: `${key}:asc`,
|
|
62
|
+
label: "Lowest to highest"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
key: `${key}:desc`,
|
|
66
|
+
label: "Highest to lowest"
|
|
67
|
+
}
|
|
68
|
+
]
|
|
69
|
+
};
|
|
70
|
+
var Sort = ({ list = [], onChange }) => {
|
|
71
|
+
const sortItems = (0, import_react.useMemo)(() => {
|
|
72
|
+
return list.map((d) => {
|
|
73
|
+
return {
|
|
74
|
+
key: d.name,
|
|
75
|
+
label: d.label,
|
|
76
|
+
children: sortChildrenMap[d.type](d.name)
|
|
77
|
+
};
|
|
78
|
+
});
|
|
79
|
+
}, [list]);
|
|
80
|
+
const onClick = (detail) => {
|
|
81
|
+
var _a;
|
|
82
|
+
onChange == null ? void 0 : onChange((_a = detail == null ? void 0 : detail.keyPath) == null ? void 0 : _a[0]);
|
|
83
|
+
};
|
|
84
|
+
return /* @__PURE__ */ import_react.default.createElement(import_antd.Dropdown, { menu: { items: sortItems, onClick } }, /* @__PURE__ */ import_react.default.createElement(import_antd.Button, { icon: /* @__PURE__ */ import_react.default.createElement(import_SwitchVertical01.default, null) }, "Sort"));
|
|
85
|
+
};
|
|
86
|
+
var Sort_default = Sort;
|
|
File without changes
|
|
@@ -34,13 +34,13 @@ __export(Actions_exports, {
|
|
|
34
34
|
module.exports = __toCommonJS(Actions_exports);
|
|
35
35
|
var import_react = __toESM(require("react"));
|
|
36
36
|
var import_filter = __toESM(require("../../filter"));
|
|
37
|
-
var import_sort = __toESM(require("../../sort"));
|
|
38
37
|
var import_antd = require("antd");
|
|
38
|
+
var import_Sort = __toESM(require("./Sort"));
|
|
39
39
|
var import_index = require("./index.less");
|
|
40
40
|
var Actions = ({ filter, sort }) => {
|
|
41
41
|
const showActions = (0, import_react.useMemo)(() => {
|
|
42
42
|
return (filter == null ? void 0 : filter.show) || (sort == null ? void 0 : sort.show);
|
|
43
43
|
}, [filter == null ? void 0 : filter.show, sort == null ? void 0 : sort.show]);
|
|
44
|
-
return showActions ? /* @__PURE__ */ import_react.default.createElement("div", { className: "materials-grid-actions" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "left-wrap" }, /* @__PURE__ */ import_react.default.createElement(import_filter.default, { filter, isRenderFormContent: false })), /* @__PURE__ */ import_react.default.createElement("div", { className: "right-wrap" }, (sort == null ? void 0 : sort.show) ? /* @__PURE__ */ import_react.default.createElement(import_antd.Form.Item, { name: "order_by", noStyle: true }, /* @__PURE__ */ import_react.default.createElement(
|
|
44
|
+
return showActions ? /* @__PURE__ */ import_react.default.createElement("div", { className: "materials-grid-actions" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "left-wrap" }, /* @__PURE__ */ import_react.default.createElement(import_filter.default, { filter, isRenderFormContent: false })), /* @__PURE__ */ import_react.default.createElement("div", { className: "right-wrap" }, (sort == null ? void 0 : sort.show) ? /* @__PURE__ */ import_react.default.createElement(import_antd.Form.Item, { name: "order_by", noStyle: true }, /* @__PURE__ */ import_react.default.createElement(import_Sort.default, { list: (sort == null ? void 0 : sort.list) || [] })) : null)) : null;
|
|
45
45
|
};
|
|
46
46
|
var Actions_default = Actions;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { TableProps } from "antd";
|
|
2
|
-
|
|
3
|
-
declare const BasicTable: (props: TableProps<any>) => React.JSX.Element;
|
|
3
|
+
declare const BasicTable: (props: TableProps<any>) => JSX.Element;
|
|
4
4
|
export default BasicTable;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const SelectField: () =>
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const SelectField: () => JSX.Element;
|
|
3
3
|
export default SelectField;
|
|
@@ -34,7 +34,6 @@ __export(Show_exports, {
|
|
|
34
34
|
module.exports = __toCommonJS(Show_exports);
|
|
35
35
|
var import_react = __toESM(require("react"));
|
|
36
36
|
var import_utils = require("@pisell/utils");
|
|
37
|
-
var import_utils2 = require("../../utils");
|
|
38
37
|
var Show = (props) => {
|
|
39
38
|
const {
|
|
40
39
|
title,
|
|
@@ -45,6 +44,6 @@ var Show = (props) => {
|
|
|
45
44
|
handleSave,
|
|
46
45
|
...restProps
|
|
47
46
|
} = props;
|
|
48
|
-
return /* @__PURE__ */ import_react.default.createElement("div", { className: "" }, (0, import_utils.formatDate)(
|
|
47
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: "" }, (0, import_utils.formatDate)(record[dataIndex]));
|
|
49
48
|
};
|
|
50
49
|
var Show_default = Show;
|