@sooloer/pages 0.1.1 → 0.1.4

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,9 +1,10 @@
1
1
  .sooloer-page {
2
2
  display: flex;
3
3
  flex-direction: column;
4
+ padding-top: 12px;
4
5
  overflow: hidden;
5
6
  background-color: #fff;
6
- border-radius: 2px;
7
+ border-radius: 8px;
7
8
  &-container {
8
9
  flex: 1;
9
10
  margin: 8px 24px 0;
@@ -22,6 +22,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
22
22
  import { StyleProvider } from '@ant-design/cssinjs';
23
23
  import { sum } from '@tmaito/utils';
24
24
  import { Checkbox, Col, ConfigProvider, Row, Table } from 'antd';
25
+ import classnames from 'classnames';
25
26
  import React, { useContext, useLayoutEffect, useMemo, useState } from 'react';
26
27
  import { render } from 'react-dom';
27
28
  import Setting from "../setting";
@@ -159,7 +160,9 @@ var ElTable = function ElTable(_ref) {
159
160
  }), /*#__PURE__*/React.createElement(Table, _extends({}, args, {
160
161
  size: size,
161
162
  rowKey: rowKey,
162
- className: "sooloer-table",
163
+ className: classnames('sooloer-table', {
164
+ 'pagination-hidden': pagination === false
165
+ }),
163
166
  columns: showColumns,
164
167
  dataSource: dataSource,
165
168
  style: {
@@ -1,5 +1,17 @@
1
1
  import { createGlobalStyle } from 'styled-components';
2
- var Style = createGlobalStyle([".sooloer-table{height:100%;> .", "-spin-nested-loading{height:100%;> div[class$='-spin-container']{height:100%;}.", "-table{height:calc(100% - 48px);}}div[class$='-table-container']{height:100%;}div[class$='-table-body']{height:100%;}tr[class$='-table-placeholder']{> td{border-bottom:none;}}li[class$='-pagination-total-text']{flex:1;}&-global-checkbox{margin-left:12px;}.sooloer-table-pagination{margin:12px 0 !important;}}"], function (props) {
2
+ var Style = createGlobalStyle([".sooloer-table{height:100%;> .", "-spin-nested-loading{height:100%;> .", "-spin-container{height:100%;}}.pagination-hidden{.", "-table{height:100%;}}.", "-table{height:calc(100% - 48px);}.", "-table-container{height:100%;}.", "-table-body{height:100%;}.", "-table-placeholder{> td{border-bottom:none;}}.", "-pagination-total-text{flex:1;}&-global-checkbox{margin-left:12px;}.sooloer-table-pagination{margin:12px 0 !important;}}"], function (props) {
3
+ return props.prefix;
4
+ }, function (props) {
5
+ return props.prefix;
6
+ }, function (props) {
7
+ return props.prefix;
8
+ }, function (props) {
9
+ return props.prefix;
10
+ }, function (props) {
11
+ return props.prefix;
12
+ }, function (props) {
13
+ return props.prefix;
14
+ }, function (props) {
3
15
  return props.prefix;
4
16
  }, function (props) {
5
17
  return props.prefix;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sooloer/pages",
3
- "version": "0.1.1",
3
+ "version": "0.1.4",
4
4
  "description": "A react library developed with dumi",
5
5
  "license": "MIT",
6
6
  "module": "dist/index.js",
@@ -1,35 +0,0 @@
1
- .sooloer-table {
2
- height: 100%;
3
- // transition: all 0.3s cubic-bezier(0.9, 0, 0.3, 0.7);
4
- > div[class$='-loading'] {
5
- height: 100%;
6
- > div {
7
- &:last-child {
8
- height: 100%;
9
- > div {
10
- height: calc(100% - 48px);
11
- }
12
- }
13
- }
14
- }
15
- div[class$='-table-container'] {
16
- height: 100%;
17
- }
18
- div[class$='-table-body'] {
19
- height: 100%;
20
- }
21
- tr[class$='-table-placeholder'] {
22
- > td {
23
- border-bottom: none;
24
- }
25
- }
26
- li[class$='-pagination-total-text'] {
27
- flex: 1;
28
- }
29
- &-global-checkbox {
30
- margin-left: 12px;
31
- }
32
- .sooloer-table-pagination {
33
- margin: 12px 0;
34
- }
35
- }