@quansitech/antd-admin 1.2.2 → 1.2.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.
@@ -6,6 +6,7 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
6
6
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
7
7
  import React, { useEffect, useState } from 'react';
8
8
  import { Input, Select, Space } from 'antd';
9
+ import styles from "./SelectText.module.scss";
9
10
  export default function (props) {
10
11
  var _props$fieldProps2;
11
12
  var options = [];
@@ -27,7 +28,9 @@ export default function (props) {
27
28
  setValue(value);
28
29
  (_props$fieldProps = props.fieldProps) === null || _props$fieldProps === void 0 || _props$fieldProps.onChange(value);
29
30
  };
30
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Space.Compact, null, /*#__PURE__*/React.createElement(Select, {
31
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Space.Compact, {
32
+ className: styles.selectText
33
+ }, /*#__PURE__*/React.createElement(Select, {
31
34
  onChange: function onChange(v) {
32
35
  return _onChange([v, value[1]]);
33
36
  },
@@ -0,0 +1,3 @@
1
+ .selectText{
2
+ width: 100%;
3
+ }
@@ -297,14 +297,7 @@ export default function (props) {
297
297
 
298
298
  // 搜索
299
299
  if (!searchUrl) {
300
- var s = window.location.href;
301
- s = s.replace(/page=\d+&?/, '');
302
- realColumns.filter(function (c) {
303
- return c.search !== false;
304
- }).map(function (c) {
305
- s = s.replace(new RegExp("".concat(c.dataIndex, "=[^&]*&?")), '');
306
- });
307
- setSearchUrl(s);
300
+ setSearchUrl(window.location.href);
308
301
  }
309
302
  setDataSource(postData(props.dataSource || []));
310
303
  if (!modalContext.inModal) {
package/dist/global.d.ts CHANGED
@@ -3,4 +3,10 @@ declare global {
3
3
  UE: any,
4
4
  UE_LOADING_PROMISE: any,
5
5
  }
6
+ }
7
+
8
+
9
+ declare module "*.module.scss" {
10
+ const content: { [className: string]: string };
11
+ export default content;
6
12
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quansitech/antd-admin",
3
- "version": "1.2.2",
3
+ "version": "1.2.4",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"