@oceanbase/ui 0.4.10 → 0.4.12

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.
Files changed (44) hide show
  1. package/dist/ui.min.js +1 -1
  2. package/es/Action/Group.js +6 -7
  3. package/es/Action/Item.d.ts +1 -0
  4. package/es/BasicLayout/Header.d.ts +2 -0
  5. package/es/BasicLayout/Header.js +7 -2
  6. package/es/BasicLayout/locale/en-US.d.ts +1 -0
  7. package/es/BasicLayout/locale/en-US.js +1 -0
  8. package/es/BasicLayout/locale/zh-CN.d.ts +1 -0
  9. package/es/BasicLayout/locale/zh-CN.js +1 -0
  10. package/es/BasicLayout/locale/zh-TW.d.ts +1 -0
  11. package/es/BasicLayout/locale/zh-TW.js +1 -0
  12. package/es/ContentWithIcon/index.js +1 -1
  13. package/es/DateRanger/PickerPanel.js +88 -140
  14. package/es/Highlight/index.d.ts +1 -1
  15. package/es/ProCard/index.js +5 -4
  16. package/es/ProCard/style/index.js +6 -3
  17. package/es/ProTable/index.d.ts +9 -4
  18. package/es/ProTable/index.js +9 -4
  19. package/es/SideTip/Dragger.d.ts +1 -0
  20. package/es/SideTip/Dragger.js +6 -2
  21. package/es/SideTip/index.d.ts +6 -0
  22. package/es/SideTip/index.js +3 -0
  23. package/lib/Action/Group.js +15 -15
  24. package/lib/Action/Item.d.ts +1 -0
  25. package/lib/BasicLayout/Header.d.ts +2 -0
  26. package/lib/BasicLayout/Header.js +4 -0
  27. package/lib/BasicLayout/locale/en-US.d.ts +1 -0
  28. package/lib/BasicLayout/locale/en-US.js +1 -0
  29. package/lib/BasicLayout/locale/zh-CN.d.ts +1 -0
  30. package/lib/BasicLayout/locale/zh-CN.js +1 -0
  31. package/lib/BasicLayout/locale/zh-TW.d.ts +1 -0
  32. package/lib/BasicLayout/locale/zh-TW.js +1 -0
  33. package/lib/ContentWithIcon/index.js +1 -1
  34. package/lib/DateRanger/PickerPanel.js +57 -122
  35. package/lib/Highlight/index.d.ts +1 -1
  36. package/lib/ProCard/index.js +3 -3
  37. package/lib/ProCard/style/index.js +13 -4
  38. package/lib/ProTable/index.d.ts +9 -4
  39. package/lib/ProTable/index.js +8 -4
  40. package/lib/SideTip/Dragger.d.ts +1 -0
  41. package/lib/SideTip/Dragger.js +6 -2
  42. package/lib/SideTip/index.d.ts +6 -0
  43. package/lib/SideTip/index.js +3 -1
  44. package/package.json +9 -9
@@ -147,6 +147,12 @@ export interface SideTipProps extends LocaleWrapperProps {
147
147
  */
148
148
  getPopupContainer?: () => HTMLElement;
149
149
  children?: any;
150
+ /**
151
+ * @title 是否可拖拽
152
+ * @description 是否可拖拽
153
+ * @default true
154
+ */
155
+ draggable?: boolean;
150
156
  }
151
157
  export interface SideTipState {
152
158
  hide?: boolean;
@@ -71,6 +71,7 @@ var SideTip = (props) => {
71
71
  id,
72
72
  hideable = true,
73
73
  disabled = false,
74
+ draggable = true,
74
75
  getPopupContainer
75
76
  } = props;
76
77
  const [hide, setHide] = (0, import_react.useState)(
@@ -169,7 +170,8 @@ var SideTip = (props) => {
169
170
  onDragEnd,
170
171
  onDrag,
171
172
  getPopupContainer,
172
- className
173
+ className,
174
+ draggable
173
175
  },
174
176
  tooltip && tooltip.title ? /* @__PURE__ */ import_react.default.createElement(import_design.Tooltip, { ...tooltip, getPopupContainer: () => buttonRef.current }, BadgeButton) : BadgeButton,
175
177
  hideable && hideIcon,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oceanbase/ui",
3
- "version": "0.4.10",
3
+ "version": "0.4.12",
4
4
  "description": "The UI library based on OceanBase Design",
5
5
  "keywords": [
6
6
  "oceanbase",
@@ -40,23 +40,23 @@
40
40
  },
41
41
  "dependencies": {
42
42
  "@ant-design/cssinjs": "^1.23.0",
43
- "@ant-design/pro-components": "^2.8.5",
43
+ "@ant-design/pro-components": "^2.8.7",
44
44
  "@antv/g6": "3.4.10",
45
- "@oceanbase/design": "^0.4.9",
46
- "@oceanbase/icons": "^0.4.5",
45
+ "@oceanbase/design": "^0.4.10",
46
+ "@oceanbase/icons": "^0.4.6",
47
47
  "@oceanbase/util": "^0.4.2",
48
48
  "ahooks": "^2.10.14",
49
49
  "classnames": "^2.5.1",
50
50
  "dayjs": "^1.11.13",
51
51
  "diff": "^5.2.0",
52
- "highlight.js": "^11.10.0",
52
+ "highlight.js": "^11.11.1",
53
53
  "highlightjs-solidity": "^2.0.6",
54
54
  "hoist-non-react-statics": "^3.3.2",
55
55
  "lodash": "^4.17.21",
56
56
  "moment": "^2.30.1",
57
57
  "path-to-regexp": "^7.2.0",
58
58
  "randexp": "^0.5.3",
59
- "rc-picker": "^4.11.1",
59
+ "rc-picker": "^4.11.3",
60
60
  "rc-util": "^5.44.4",
61
61
  "react-copy-to-clipboard": "^5.1.0",
62
62
  "react-json-view": "^1.21.3",
@@ -64,12 +64,12 @@
64
64
  "screenfull": "^6.0.2"
65
65
  },
66
66
  "devDependencies": {
67
- "@ant-design/pro-form": "^2.31.5",
68
- "@ant-design/pro-layout": "^7.22.2"
67
+ "@ant-design/pro-form": "^2.31.7",
68
+ "@ant-design/pro-layout": "^7.22.4"
69
69
  },
70
70
  "peerDependencies": {
71
71
  "react": ">=16.9.0",
72
72
  "react-dom": ">=16.9.0"
73
73
  },
74
- "gitHead": "b9a6e4edde09d388777caade3586a12ddf51779e"
74
+ "gitHead": "db83d4b1d50b50813d9751f4e8c1189badf67820"
75
75
  }