@pisell/materials 1.0.14 → 1.0.16

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.
@@ -34,19 +34,19 @@ var Edit = function Edit(props, ref) {
34
34
  }, [value]);
35
35
  var rangePresets = [{
36
36
  label: "Last 3 Days",
37
- value: [dayjs().add(-3, "d"), dayjs()]
37
+ value: [dayjs().add(-3, "d").startOf('day'), dayjs().endOf('day')]
38
38
  }, {
39
39
  label: "Last 7 Days",
40
- value: [dayjs().add(-7, "d"), dayjs()]
40
+ value: [dayjs().add(-7, "d").startOf('day'), dayjs().endOf('day')]
41
41
  }, {
42
42
  label: "Last 14 Days",
43
- value: [dayjs().add(-14, "d"), dayjs()]
43
+ value: [dayjs().add(-14, "d").startOf('day'), dayjs().endOf('day')]
44
44
  }, {
45
45
  label: "Last 30 Days",
46
- value: [dayjs().add(-30, "d"), dayjs()]
46
+ value: [dayjs().add(-30, "d").startOf('day'), dayjs().endOf('day')]
47
47
  }, {
48
48
  label: "Last 90 Days",
49
- value: [dayjs().add(-90, "d"), dayjs()]
49
+ value: [dayjs().add(-90, "d").startOf('day'), dayjs().endOf('day')]
50
50
  }];
51
51
  var _showTime = useMemo(function () {
52
52
  if (isBoolean(showTime)) {
@@ -5,7 +5,7 @@ export declare const paginationConfig: {
5
5
  className: string;
6
6
  defaultCurrent: number;
7
7
  showTotal: (total: number, range: [number, number]) => string;
8
- itemRender: (page: number, type: "page" | "next" | "prev" | "jump-prev" | "jump-next", element: React.ReactNode) => React.ReactNode;
8
+ itemRender: (page: number, type: "page" | "prev" | "next" | "jump-prev" | "jump-next", element: React.ReactNode) => React.ReactNode;
9
9
  responsive: boolean;
10
10
  size: string;
11
11
  };
@@ -2,7 +2,7 @@
2
2
  display: flex;
3
3
  justify-content: center;
4
4
  align-items: center;
5
- overflow: hidden;
5
+ // overflow: hidden;
6
6
  height: 50px;
7
7
  width: 100%;
8
8
  background-color: #fff;
@@ -61,11 +61,11 @@ var Edit = (props, ref) => {
61
61
  return value;
62
62
  }, [value]);
63
63
  const rangePresets = [
64
- { label: "Last 3 Days", value: [(0, import_dayjs.default)().add(-3, "d"), (0, import_dayjs.default)()] },
65
- { label: "Last 7 Days", value: [(0, import_dayjs.default)().add(-7, "d"), (0, import_dayjs.default)()] },
66
- { label: "Last 14 Days", value: [(0, import_dayjs.default)().add(-14, "d"), (0, import_dayjs.default)()] },
67
- { label: "Last 30 Days", value: [(0, import_dayjs.default)().add(-30, "d"), (0, import_dayjs.default)()] },
68
- { label: "Last 90 Days", value: [(0, import_dayjs.default)().add(-90, "d"), (0, import_dayjs.default)()] }
64
+ { label: "Last 3 Days", value: [(0, import_dayjs.default)().add(-3, "d").startOf("day"), (0, import_dayjs.default)().endOf("day")] },
65
+ { label: "Last 7 Days", value: [(0, import_dayjs.default)().add(-7, "d").startOf("day"), (0, import_dayjs.default)().endOf("day")] },
66
+ { label: "Last 14 Days", value: [(0, import_dayjs.default)().add(-14, "d").startOf("day"), (0, import_dayjs.default)().endOf("day")] },
67
+ { label: "Last 30 Days", value: [(0, import_dayjs.default)().add(-30, "d").startOf("day"), (0, import_dayjs.default)().endOf("day")] },
68
+ { label: "Last 90 Days", value: [(0, import_dayjs.default)().add(-90, "d").startOf("day"), (0, import_dayjs.default)().endOf("day")] }
69
69
  ];
70
70
  const _showTime = (0, import_react.useMemo)(() => {
71
71
  if ((0, import_utils.isBoolean)(showTime)) {
@@ -4,7 +4,9 @@ export default [
4
4
  screenshot: 'https://alifd.alicdn.com/fusion-cool/icons/icon-antd/1-1.png',
5
5
  schema: {
6
6
  componentName: 'Row',
7
- props: {},
7
+ props: {
8
+ wrap: true
9
+ },
8
10
  children: [
9
11
  {
10
12
  componentName: 'Col',
@@ -26,7 +28,7 @@ export default [
26
28
  screenshot: 'https://alifd.alicdn.com/fusion-cool/icons/icon-antd/1-1-1.png',
27
29
  schema: {
28
30
  componentName: 'Row',
29
- props: {},
31
+ props: { wrap: true },
30
32
  children: [
31
33
  {
32
34
  componentName: 'Col',
@@ -54,30 +56,40 @@ export default [
54
56
  screenshot: 'https://alifd.alicdn.com/fusion-cool/icons/icon-antd/1-1-1-1.png',
55
57
  schema: {
56
58
  componentName: 'Row',
57
- props: {},
59
+ props: {
60
+ wrap: true
61
+ },
58
62
  children: [
59
63
  {
60
64
  componentName: 'Col',
61
65
  props: {
62
- span: 6,
66
+ md: 6,
67
+ sm: 12,
68
+ xs: 24
63
69
  },
64
70
  },
65
71
  {
66
72
  componentName: 'Col',
67
73
  props: {
68
- span: 6,
74
+ md: 6,
75
+ sm: 12,
76
+ xs: 24
69
77
  },
70
78
  },
71
79
  {
72
80
  componentName: 'Col',
73
81
  props: {
74
- span: 6,
82
+ md: 6,
83
+ sm: 12,
84
+ xs: 24
75
85
  },
76
86
  },
77
87
  {
78
88
  componentName: 'Col',
79
89
  props: {
80
- span: 6,
90
+ md: 6,
91
+ sm: 12,
92
+ xs: 24
81
93
  },
82
94
  },
83
95
  ],
@@ -88,7 +100,9 @@ export default [
88
100
  screenshot: 'https://alifd.alicdn.com/fusion-cool/icons/icon-antd/1-3.png',
89
101
  schema: {
90
102
  componentName: 'Row',
91
- props: {},
103
+ props: {
104
+
105
+ },
92
106
  children: [
93
107
  {
94
108
  componentName: 'Col',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/materials",
3
- "version": "1.0.14",
3
+ "version": "1.0.16",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",