@canlooks/can-ui 0.0.62 → 0.0.63

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.
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.style = exports.classes = void 0;
4
4
  const react_1 = require("@emotion/react");
5
5
  const utils_1 = require("../../utils");
6
+ const loading_style_1 = require("../loading/loading.style");
6
7
  exports.classes = (0, utils_1.defineInnerClasses)('data-grid', [
7
8
  'container',
8
9
  'title',
@@ -20,6 +21,11 @@ exports.classes = (0, utils_1.defineInnerClasses)('data-grid', [
20
21
  exports.style = (0, utils_1.defineCss)(({ spacing, mode, gray, text, colors, easing }) => (0, react_1.css) `
21
22
  max-height: 100%;
22
23
  min-height: 0;
24
+
25
+ .${loading_style_1.classes.container} {
26
+ display: flex;
27
+ flex-direction: column;
28
+ }
23
29
 
24
30
  .${exports.classes.container} {
25
31
  flex: 1;
@@ -17,7 +17,6 @@ variant, size, color, disabled, readOnly, autoFocus, ...props }) => {
17
17
  variant, size, color, disabled, readOnly
18
18
  };
19
19
  const showTimer = /[Hms]/.test(format);
20
- console.log(innerValue.current?.[1].date());
21
20
  return ((0, jsx_runtime_1.jsxs)("div", { ...props, css: dateTimeRangePicker_style_1.style, className: (0, utils_1.clsx)(dateTimeRangePicker_style_1.classes.root, props.className), children: [(0, jsx_runtime_1.jsx)(dateTimePicker_1.DateTimePicker, { ...commonProps, autoFocus: autoFocus, autoClose: false, placeholder: showTimer ? '开始时间' : '开始日期', max: innerValue.current?.[1] || void 0, open: innerOpen.current === 'start', ...startPickerProps, onOpenChange: open => {
22
21
  startPickerProps?.onOpenChange?.(open);
23
22
  setInnerOpen(open ? 'start' : 'closed');
@@ -1,5 +1,6 @@
1
1
  import { css } from '@emotion/react';
2
2
  import { defineInnerClasses, defineCss } from '../../utils';
3
+ import { classes as loadingClasses } from '../loading/loading.style';
3
4
  export const classes = defineInnerClasses('data-grid', [
4
5
  'container',
5
6
  'title',
@@ -17,6 +18,11 @@ export const classes = defineInnerClasses('data-grid', [
17
18
  export const style = defineCss(({ spacing, mode, gray, text, colors, easing }) => css `
18
19
  max-height: 100%;
19
20
  min-height: 0;
21
+
22
+ .${loadingClasses.container} {
23
+ display: flex;
24
+ flex-direction: column;
25
+ }
20
26
 
21
27
  .${classes.container} {
22
28
  flex: 1;
@@ -14,7 +14,6 @@ variant, size, color, disabled, readOnly, autoFocus, ...props }) => {
14
14
  variant, size, color, disabled, readOnly
15
15
  };
16
16
  const showTimer = /[Hms]/.test(format);
17
- console.log(innerValue.current?.[1].date());
18
17
  return (_jsxs("div", { ...props, css: style, className: clsx(classes.root, props.className), children: [_jsx(DateTimePicker, { ...commonProps, autoFocus: autoFocus, autoClose: false, placeholder: showTimer ? '开始时间' : '开始日期', max: innerValue.current?.[1] || void 0, open: innerOpen.current === 'start', ...startPickerProps, onOpenChange: open => {
19
18
  startPickerProps?.onOpenChange?.(open);
20
19
  setInnerOpen(open ? 'start' : 'closed');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@canlooks/can-ui",
3
- "version": "0.0.62",
3
+ "version": "0.0.63",
4
4
  "author": "C.CanLiang <canlooks@gmail.com>",
5
5
  "description": "My ui framework",
6
6
  "license": "MIT",