@hw-component/table 0.0.6-beta-v12 → 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,
@@ -52,6 +52,13 @@ var sizeObj = {
52
52
  };
53
53
  var defaultSubItem = {
54
54
  type: "submit",
55
+ itemProps: {
56
+ position: "end"
57
+ },
58
+ style: {
59
+ padding: 0,
60
+ marginLeft: -20
61
+ },
55
62
  render: function render(item, node, form) {
56
63
  return jsx(DefaultSubComponent, {
57
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,
@@ -53,6 +53,13 @@ var sizeObj = {
53
53
  };
54
54
  var defaultSubItem = {
55
55
  type: "submit",
56
+ itemProps: {
57
+ position: "end"
58
+ },
59
+ style: {
60
+ padding: 0,
61
+ marginLeft: -20
62
+ },
56
63
  render: function render(item, node, form) {
57
64
  return jsxRuntime.jsx(defaultSubComponent.DefaultSubComponent, {
58
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-v12",
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"}
@@ -32,6 +32,13 @@ const sizeObj = {
32
32
  };
33
33
  const defaultSubItem = {
34
34
  type: "submit",
35
+ itemProps:{
36
+ position:"end"
37
+ },
38
+ style:{
39
+ padding:0,
40
+ marginLeft:-20
41
+ },
35
42
  render: (item: HItemProps, node: React.ReactNode, form: HFormInstance) => {
36
43
  return <DefaultSubComponent form={form} />;
37
44
  },
@@ -122,7 +129,7 @@ const filterHideFormItem = (
122
129
  export const useHideMoreTitle = ({ searchSpan, configData }: IHeaderProps) => {
123
130
  const [formConfigData, setFormConfigData] = useState<HItemProps[]>([]);
124
131
  const [subData, setSubData] = useState<HItemProps>(
125
- defaultSubItem as HItemProps
132
+ defaultSubItem as any
126
133
  );
127
134
  const { headerOpen, setHeaderOpen } = useHTableContext();
128
135
  const className = useClassName("hw-table-header-item-hide");