@hw-component/table 0.0.6-beta-v16 → 0.0.6-beta-v18

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.
@@ -30,7 +30,7 @@ var DefaultSubComponent = function DefaultSubComponent(_ref) {
30
30
  return jsx(Row, {
31
31
  justify: "end",
32
32
  style: {
33
- marginLeft: -20
33
+ width: "100%"
34
34
  },
35
35
  children: jsxs(Space, {
36
36
  size: 6,
@@ -55,6 +55,10 @@ var defaultSubItem = {
55
55
  itemProps: {
56
56
  position: "end"
57
57
  },
58
+ style: {
59
+ padding: 0,
60
+ marginLeft: -20
61
+ },
58
62
  render: function render(item, node, form) {
59
63
  return jsx(DefaultSubComponent, {
60
64
  form: form
@@ -31,7 +31,7 @@ var DefaultSubComponent = function DefaultSubComponent(_ref) {
31
31
  return jsxRuntime.jsx(antd.Row, {
32
32
  justify: "end",
33
33
  style: {
34
- marginLeft: -20
34
+ width: "100%"
35
35
  },
36
36
  children: jsxRuntime.jsxs(antd.Space, {
37
37
  size: 6,
@@ -56,6 +56,10 @@ var defaultSubItem = {
56
56
  itemProps: {
57
57
  position: "end"
58
58
  },
59
+ style: {
60
+ padding: 0,
61
+ marginLeft: -20
62
+ },
59
63
  render: function render(item, node, form) {
60
64
  return jsxRuntime.jsx(defaultSubComponent.DefaultSubComponent, {
61
65
  form: form
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hw-component/table",
3
- "version": "0.0.6-beta-v16",
3
+ "version": "0.0.6-beta-v18",
4
4
  "description": "基于antd二次开发table组件",
5
5
  "keywords": [
6
6
  "table"
@@ -35,7 +35,7 @@ const OpenComponent = () => {
35
35
  export const DefaultSubComponent = ({ form }: IProps) => {
36
36
  const { loading, headerOpen } = useHTableContext();
37
37
  return (
38
- <Row justify="end" style={{ marginLeft: -20 }}>
38
+ <Row justify="end" style={{width:"100%"}}>
39
39
  <Space size={6}>
40
40
  <Button
41
41
  type={"primary"}
@@ -35,6 +35,10 @@ const defaultSubItem = {
35
35
  itemProps:{
36
36
  position:"end"
37
37
  },
38
+ style:{
39
+ padding:0,
40
+ marginLeft:-20
41
+ },
38
42
  render: (item: HItemProps, node: React.ReactNode, form: HFormInstance) => {
39
43
  return <DefaultSubComponent form={form} />;
40
44
  },