@sheinx/base 3.7.0-beta.42 → 3.7.0-beta.44

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,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { InputCommonProps } from './input.type';
3
- declare const useInputCommon: <Value, Props extends InputCommonProps<Value>>(props0: Props) => Omit<Props, "error" | "info" | "style" | "status" | "size" | "innerTitle" | "placeTitle" | "tip" | "value" | "onChange" | "disabled" | "width" | "defaultValue" | "popover" | "beforeChange" | "delay" | "onBlur" | "clearable" | "forwardedRef" | "popoverProps" | "suffix" | "forwardRef" | "htmlName" | "clearToUndefined"> & {
3
+ declare const useInputCommon: <Value, Props extends InputCommonProps<Value>>(props0: Props) => Omit<Props, "error" | "info" | "style" | "status" | "size" | "innerTitle" | "placeTitle" | "tip" | "value" | "onChange" | "disabled" | "width" | "defaultValue" | "popover" | "delay" | "beforeChange" | "popoverProps" | "onBlur" | "clearable" | "forwardedRef" | "suffix" | "forwardRef" | "htmlName" | "clearToUndefined"> & {
4
4
  name: string | undefined;
5
5
  style: React.CSSProperties;
6
6
  suffix: import("react/jsx-runtime").JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"table.d.ts","sourceRoot":"","sources":["table.tsx"],"names":[],"mappings":"AAyBA,OAAO,EAAgB,UAAU,EAAE,MAAM,cAAc,CAAC;;AAexD,wBAkqBE"}
1
+ {"version":3,"file":"table.d.ts","sourceRoot":"","sources":["table.tsx"],"names":[],"mappings":"AAyBA,OAAO,EAAgB,UAAU,EAAE,MAAM,cAAc,CAAC;;AAexD,wBAmqBE"}
@@ -306,14 +306,17 @@ var _default = exports.default = function _default(props) {
306
306
  var renderEmpty = function renderEmpty() {
307
307
  var _props$data;
308
308
  if (!((_props$data = props.data) !== null && _props$data !== void 0 && _props$data.length) || filteredData !== undefined && filteredData.length === 0) {
309
+ var empty = props.empty !== undefined ? /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
310
+ children: props.empty
311
+ }) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_empty.default, {
312
+ jssStyle: props.jssStyle
313
+ });
309
314
  return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
310
315
  className: (0, _classnames.default)(tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.emptyWrapper, isScrollX && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.emptyNoBorder)),
311
316
  ref: function ref(el) {
312
317
  context.emptyHeight = (el === null || el === void 0 ? void 0 : el.clientHeight) || 0;
313
318
  },
314
- children: props.empty || /*#__PURE__*/(0, _jsxRuntime.jsx)(_empty.default, {
315
- jssStyle: props.jssStyle
316
- })
319
+ children: empty
317
320
  });
318
321
  }
319
322
  return null;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { InputCommonProps } from './input.type';
3
- declare const useInputCommon: <Value, Props extends InputCommonProps<Value>>(props0: Props) => Omit<Props, "error" | "info" | "style" | "status" | "size" | "innerTitle" | "placeTitle" | "tip" | "value" | "onChange" | "disabled" | "width" | "defaultValue" | "popover" | "beforeChange" | "delay" | "onBlur" | "clearable" | "forwardedRef" | "popoverProps" | "suffix" | "forwardRef" | "htmlName" | "clearToUndefined"> & {
3
+ declare const useInputCommon: <Value, Props extends InputCommonProps<Value>>(props0: Props) => Omit<Props, "error" | "info" | "style" | "status" | "size" | "innerTitle" | "placeTitle" | "tip" | "value" | "onChange" | "disabled" | "width" | "defaultValue" | "popover" | "delay" | "beforeChange" | "popoverProps" | "onBlur" | "clearable" | "forwardedRef" | "suffix" | "forwardRef" | "htmlName" | "clearToUndefined"> & {
4
4
  name: string | undefined;
5
5
  style: React.CSSProperties;
6
6
  suffix: import("react/jsx-runtime").JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"table.d.ts","sourceRoot":"","sources":["table.tsx"],"names":[],"mappings":"AAyBA,OAAO,EAAgB,UAAU,EAAE,MAAM,cAAc,CAAC;;AAexD,wBAkqBE"}
1
+ {"version":3,"file":"table.d.ts","sourceRoot":"","sources":["table.tsx"],"names":[],"mappings":"AAyBA,OAAO,EAAgB,UAAU,EAAE,MAAM,cAAc,CAAC;;AAexD,wBAmqBE"}
@@ -299,14 +299,17 @@ export default (function (props) {
299
299
  var renderEmpty = function renderEmpty() {
300
300
  var _props$data;
301
301
  if (!((_props$data = props.data) !== null && _props$data !== void 0 && _props$data.length) || filteredData !== undefined && filteredData.length === 0) {
302
+ var empty = props.empty !== undefined ? /*#__PURE__*/_jsx("span", {
303
+ children: props.empty
304
+ }) : /*#__PURE__*/_jsx(Empty, {
305
+ jssStyle: props.jssStyle
306
+ });
302
307
  return /*#__PURE__*/_jsx("div", {
303
308
  className: classNames(tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.emptyWrapper, isScrollX && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.emptyNoBorder)),
304
309
  ref: function ref(el) {
305
310
  context.emptyHeight = (el === null || el === void 0 ? void 0 : el.clientHeight) || 0;
306
311
  },
307
- children: props.empty || /*#__PURE__*/_jsx(Empty, {
308
- jssStyle: props.jssStyle
309
- })
312
+ children: empty
310
313
  });
311
314
  }
312
315
  return null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sheinx/base",
3
- "version": "3.7.0-beta.42",
3
+ "version": "3.7.0-beta.44",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -10,7 +10,7 @@
10
10
  "module": "./esm/index.js",
11
11
  "typings": "./cjs/index.d.ts",
12
12
  "dependencies": {
13
- "@sheinx/hooks": "3.7.0-beta.42",
13
+ "@sheinx/hooks": "3.7.0-beta.44",
14
14
  "immer": "^10.0.0",
15
15
  "classnames": "^2.0.0",
16
16
  "@shined/reactive": "^0.1.3-alpha.0"