@pisell/materials 1.0.8 → 1.0.10

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.
@@ -39,7 +39,7 @@ var EditableCell = function EditableCell(props) {
39
39
  lock = props.lock,
40
40
  restProps = _objectWithoutProperties(props, _excluded2);
41
41
  return /*#__PURE__*/React.createElement("td", _extends({}, restProps, {
42
- className: classNames(restProps.className, "ant-table-cell")
42
+ className: classNames(restProps.className, "ant-table-cell", "materials-grid-table-cell")
43
43
  }), /*#__PURE__*/React.createElement(CellProvider, props));
44
44
  };
45
45
  export default {
@@ -3,7 +3,7 @@
3
3
  height: 100%;
4
4
  }
5
5
 
6
- .ant-table-cell {
6
+ .materials-grid-table-cell {
7
7
  height: 1px;
8
8
  padding: 0 !important;
9
9
 
@@ -13,9 +13,9 @@ var CustomHeaderCell = function CustomHeaderCell(props) {
13
13
  var isCheckbox = !props.record;
14
14
  var field = getFieldByType(field_type);
15
15
  return isCheckbox ? /*#__PURE__*/React.createElement(React.Fragment, null, props.children) : /*#__PURE__*/React.createElement("div", {
16
- className: "header-cell"
16
+ className: "materials-grid-table-header-cell"
17
17
  }, /*#__PURE__*/React.createElement("div", {
18
- className: "content"
18
+ className: "materials-grid-table-header-cell-content"
19
19
  }, props.children));
20
20
  };
21
21
  export default CustomHeaderCell;
@@ -1,4 +1,4 @@
1
- .header-cell {
1
+ .materials-grid-table-header-cell {
2
2
  height: 44px;
3
3
  display: flex;
4
4
  align-items: center;
@@ -9,7 +9,7 @@
9
9
  color: #777777;
10
10
  }
11
11
 
12
- .content {
12
+ .materials-grid-table-header-cell-content {
13
13
  padding-right: 10px;
14
14
  flex: auto;
15
15
  font-weight: 600;
@@ -61,7 +61,11 @@ var EditableCell = (props) => {
61
61
  "td",
62
62
  {
63
63
  ...restProps,
64
- className: (0, import_classnames.default)(restProps.className, "ant-table-cell")
64
+ className: (0, import_classnames.default)(
65
+ restProps.className,
66
+ "ant-table-cell",
67
+ "materials-grid-table-cell"
68
+ )
65
69
  },
66
70
  /* @__PURE__ */ import_react.default.createElement(import_CellProvider.default, { ...props })
67
71
  );
@@ -3,7 +3,7 @@
3
3
  height: 100%;
4
4
  }
5
5
 
6
- .ant-table-cell {
6
+ .materials-grid-table-cell {
7
7
  height: 1px;
8
8
  padding: 0 !important;
9
9
 
@@ -42,6 +42,6 @@ var CustomHeaderCell = (props) => {
42
42
  const { state, dispatch } = (0, import_hooks.useSharedState)(import_model.Context);
43
43
  const isCheckbox = !props.record;
44
44
  const field = (0, import_fields.getFieldByType)(field_type);
45
- return isCheckbox ? /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, props.children) : /* @__PURE__ */ import_react.default.createElement("div", { className: "header-cell" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "content" }, props.children));
45
+ return isCheckbox ? /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, props.children) : /* @__PURE__ */ import_react.default.createElement("div", { className: "materials-grid-table-header-cell" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "materials-grid-table-header-cell-content" }, props.children));
46
46
  };
47
47
  var CellProvider_default = CustomHeaderCell;
@@ -1,4 +1,4 @@
1
- .header-cell {
1
+ .materials-grid-table-header-cell {
2
2
  height: 44px;
3
3
  display: flex;
4
4
  align-items: center;
@@ -9,7 +9,7 @@
9
9
  color: #777777;
10
10
  }
11
11
 
12
- .content {
12
+ .materials-grid-table-header-cell-content {
13
13
  padding-right: 10px;
14
14
  flex: auto;
15
15
  font-weight: 600;
@@ -57,11 +57,20 @@ export default {
57
57
  title: { label: '数值内容', tip: '数值内容' },
58
58
  propType: { type: 'oneOfType', value: ['string', 'number'] },
59
59
  },
60
+ {
61
+ name: 'loading',
62
+ title: { label: 'Loading', tip: 'Loading' },
63
+ propType: 'bool',
64
+ setter: 'BoolSetter',
65
+ defaultValue: false,
66
+ },
60
67
  {
61
68
  name: 'valueStyle',
62
69
  title: { label: '设置数值的样式', tip: '设置数值的样式' },
63
70
  propType: 'object',
64
71
  },
72
+
65
73
  ],
66
74
  configure: { supports: { style: true } },
67
75
  };
76
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/materials",
3
- "version": "1.0.8",
3
+ "version": "1.0.10",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -14,7 +14,7 @@
14
14
  "react": "^18.0.0",
15
15
  "react-dom": "^18.0.0",
16
16
  "@alib/build-scripts": "^0.1.32",
17
- "@pisell/build-plugin-lowcode": "^1.0.7",
17
+ "@pisell/build-plugin-lowcode": "^1.0.8",
18
18
  "@types/react": "^18.0.0",
19
19
  "@types/react-dom": "^18.0.0",
20
20
  "@alilc/lowcode-utils": "1.1.6",