@hw-component/table 1.9.6 → 1.9.8

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,7 +1,5 @@
1
1
  // welcome to hoo hoo hoo
2
- import { jsx } from 'react/jsx-runtime';
3
2
  import config from './config.js';
4
- import { Typography } from 'antd';
5
3
 
6
4
  var configRender = (function (item, tableInstance, valueTypeConfig) {
7
5
  var render = item.render,
@@ -10,19 +8,6 @@ var configRender = (function (item, tableInstance, valueTypeConfig) {
10
8
  return function (dom, itemData, index) {
11
9
  var valType = valueType;
12
10
  var node = dom;
13
- if (valType === "text") {
14
- return jsx(Typography.Paragraph, {
15
- ellipsis: {
16
- tooltip: true
17
- },
18
- style: {
19
- width: "100%",
20
- margin: 0,
21
- padding: 0
22
- },
23
- children: "fsafjsakfjsaklfjsaklfjsakfjaskfjakfjsaklfjsakfjsakfjskfjskfjfskjfksjffaskfjsak"
24
- });
25
- }
26
11
  if (config[valType]) {
27
12
  node = config[valType](item, itemData, index, tableInstance);
28
13
  }
@@ -2,9 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var jsxRuntime = require('react/jsx-runtime');
6
5
  var config = require('./config.js');
7
- var antd = require('antd');
8
6
 
9
7
  var configRender = (function (item, tableInstance, valueTypeConfig) {
10
8
  var render = item.render,
@@ -13,19 +11,6 @@ var configRender = (function (item, tableInstance, valueTypeConfig) {
13
11
  return function (dom, itemData, index) {
14
12
  var valType = valueType;
15
13
  var node = dom;
16
- if (valType === "text") {
17
- return jsxRuntime.jsx(antd.Typography.Paragraph, {
18
- ellipsis: {
19
- tooltip: true
20
- },
21
- style: {
22
- width: "100%",
23
- margin: 0,
24
- padding: 0
25
- },
26
- children: "fsafjsakfjsaklfjsaklfjsakfjaskfjakfjsaklfjsakfjsakfjskfjskfjfskjfksjffaskfjsak"
27
- });
28
- }
29
14
  if (config.default[valType]) {
30
15
  node = config.default[valType](item, itemData, index, tableInstance);
31
16
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hw-component/table",
3
- "version": "1.9.6",
3
+ "version": "1.9.8",
4
4
  "description": "基于antd二次开发table组件",
5
5
  "keywords": [
6
6
  "table"
@@ -29,13 +29,15 @@
29
29
  ]
30
30
  },
31
31
  "dependencies": {
32
+
33
+ },
34
+ "peerDependencies": {
32
35
  "@ant-design/icons": "4.6.2",
33
36
  "@ant-design/pro-table": "2.70.0",
34
- "@hw-component/form": "^1.8.2",
37
+ "@hw-component/form": "^1.8.3",
35
38
  "ahooks": "2.10.9",
36
39
  "antd": "4.20.7",
37
40
  "copy-to-clipboard": "3.3.1",
38
- "core-js": "3",
39
41
  "react": "17.0.0",
40
42
  "react-dom": "17.0.2",
41
43
  "react-router-dom": "^6.11.2"
@@ -82,7 +84,8 @@
82
84
  "webpack": "^5.83.1",
83
85
  "webpack-cli": "^5.1.1",
84
86
  "webpack-dev-server": "^4.15.0",
85
- "webpackbar": "^5.0.2"
87
+ "webpackbar": "^5.0.2",
88
+ "core-js": "3"
86
89
  },
87
90
  "publishConfig": {
88
91
  "access": "public",
@@ -2,7 +2,6 @@ import type { ConfigItemModal, HTableInstance } from "@/components/modal";
2
2
  import type React from "react";
3
3
  import config from "./config";
4
4
  import type { ValueTypeConfigModal } from "../modal";
5
- import {Typography} from 'antd';
6
5
  export default (
7
6
  item: ConfigItemModal,
8
7
  tableInstance: HTableInstance,
@@ -12,11 +11,6 @@ export default (
12
11
  return (dom: React.ReactNode, itemData: any, index: number) => {
13
12
  const valType = valueType as string;
14
13
  let node = dom;
15
- if (valType==="text"){
16
- return <Typography.Paragraph ellipsis={{tooltip:true}} style={{width:"100%",margin:0,padding:0}}>
17
- fsafjsakfjsaklfjsaklfjsakfjaskfjakfjsaklfjsakfjsakfjskfjskfjfskjfksjffaskfjsak
18
- </Typography.Paragraph>
19
- }
20
14
  if (config[valType]) {
21
15
  node = config[valType](item, itemData, index, tableInstance);
22
16
  }
@@ -34,6 +34,8 @@ export const configData = [
34
34
  width: 120,
35
35
  dataIndex: "name",
36
36
  valueType: "text",
37
+ searchType: 'rangePicker',
38
+ showSearch: true,
37
39
  valueTypeProps: {
38
40
  ellipsis: {
39
41
  tooltip: true,
@@ -154,7 +156,6 @@ export default () => {
154
156
  name1: "ffff",
155
157
  });
156
158
  }}
157
- hideLabel={false}
158
159
  labelWidth={88}
159
160
  action={{
160
161
  test: (params) => {