shineout 3.7.10-beta.3 → 3.7.10-beta.5

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,4 +1,5 @@
1
1
  import { FormFieldProps as UiFormFieldProps, FormFieldSetProps as UiFormFieldSetProps, FormItemProps as UiFormItemProps, FormProps as UiFormProps, ObjectType, FormFlowProps as UiFormFlowProps, FormRef as UiFormRef, FormDatum as UiFormDatum } from '@sheinx/base';
2
+ import { ButtonProps } from '../button/button.type';
2
3
  /**
3
4
  * @title FormRef
4
5
  * @sort 6
@@ -58,3 +59,17 @@ export type FormFieldSetProps<T> = UiFormFieldSetProps<T>;
58
59
  * @cn 表单流程组件,用于监听表单数据变化并执行相应的副作用。适用于实现表单联动、条件渲染等场景
59
60
  */
60
61
  export type FormFlowProps = UiFormFlowProps;
62
+ /**
63
+ * @title Form.Button
64
+ * @sort 8
65
+ * @en Form button component with htmlType='button'. Prevents accidental form submission when users press Enter in form inputs. Users must explicitly click the button to submit the form. Internally calls formFunc.submit() for better control over submission logic
66
+ * @cn 表单按钮组件,htmlType='button'。防止用户在表单输入框中按回车键时意外提交表单。用户必须显式点击按钮才能提交表单。内部调用 formFunc.submit() 以更好地控制提交逻辑
67
+ */
68
+ export type FormButtonProps = ButtonProps;
69
+ /**
70
+ * @title Form.Submit
71
+ * @sort 9
72
+ * @en Form submit button component with htmlType='submit'. Uses native browser submit behavior. When users press Enter in any form input, it will trigger this button automatically. Suitable for simple forms where Enter-to-submit behavior is desired
73
+ * @cn 表单提交按钮组件,htmlType='submit'。使用浏览器原生提交行为。当用户在任何表单输入框中按回车键时,会自动触发此按钮。适用于希望支持回车提交的简单表单
74
+ */
75
+ export type FormSubmitProps = ButtonProps;
package/cjs/index.js CHANGED
@@ -522,5 +522,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
522
522
  // 此文件由脚本自动生成,请勿直接修改。
523
523
  // This file was generated automatically by a script. Please do not modify it directly.
524
524
  var _default = exports.default = {
525
- version: '3.7.10-beta.3'
525
+ version: '3.7.10-beta.5'
526
526
  };
package/dist/shineout.js CHANGED
@@ -12234,7 +12234,7 @@ var handleStyle = function handleStyle(style) {
12234
12234
  };
12235
12235
  /* harmony default export */ var jss_style_handleStyle = (handleStyle);
12236
12236
  ;// CONCATENATED MODULE: ../shineout-style/src/version.ts
12237
- /* harmony default export */ var version = ('3.7.10-beta.3');
12237
+ /* harmony default export */ var version = ('3.7.10-beta.5');
12238
12238
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
12239
12239
 
12240
12240
 
@@ -26599,14 +26599,14 @@ var getCardStyle = function getCardStyle() {
26599
26599
  bottom: 0,
26600
26600
  right: -1,
26601
26601
  width: 1,
26602
- background: '#FFFFFF'
26602
+ background: src.tabsCardCheckedBackgroundColor
26603
26603
  })),
26604
26604
  '&[dir=rtl]': objectSpread2_default()(objectSpread2_default()({}, active({
26605
26605
  top: 0,
26606
26606
  bottom: 0,
26607
26607
  left: -1,
26608
26608
  width: 1,
26609
- background: '#FFFFFF'
26609
+ background: src.tabsCardCheckedBackgroundColor
26610
26610
  })), {}, {
26611
26611
  '& $cardHr': {
26612
26612
  '&:before': {
@@ -26639,7 +26639,7 @@ var getCardStyle = function getCardStyle() {
26639
26639
  bottom: 0,
26640
26640
  left: -1,
26641
26641
  width: 1,
26642
- background: '#FFFFFF'
26642
+ background: src.tabsCardCheckedBackgroundColor
26643
26643
  })),
26644
26644
  '&[dir=rtl]': objectSpread2_default()({
26645
26645
  '& $cardHr': {
@@ -26654,7 +26654,7 @@ var getCardStyle = function getCardStyle() {
26654
26654
  bottom: 0,
26655
26655
  right: -1,
26656
26656
  width: 1,
26657
- background: '#FFFFFF'
26657
+ background: src.tabsCardCheckedBackgroundColor
26658
26658
  }))
26659
26659
  },
26660
26660
  '&[data-soui-position^="top-"][data-soui-shape="card"]': objectSpread2_default()({
@@ -26671,7 +26671,7 @@ var getCardStyle = function getCardStyle() {
26671
26671
  left: 0,
26672
26672
  right: 0,
26673
26673
  height: 1,
26674
- background: '#FFFFFF'
26674
+ background: src.tabsCardCheckedBackgroundColor
26675
26675
  })),
26676
26676
  '&[data-soui-position^="bottom-"][data-soui-shape="card"]': objectSpread2_default()({
26677
26677
  '& $tab,& $next,& $prev': {
@@ -26693,13 +26693,13 @@ var getCardStyle = function getCardStyle() {
26693
26693
  left: 0,
26694
26694
  right: 0,
26695
26695
  height: 1,
26696
- background: '#FFFFFF'
26696
+ background: src.tabsCardCheckedBackgroundColor
26697
26697
  }))
26698
26698
  };
26699
26699
  };
26700
26700
  var getLineStyle = function getLineStyle() {
26701
26701
  return {
26702
- '$tab': {
26702
+ '&[data-soui-shape="line"] $tab': {
26703
26703
  '&:after': {
26704
26704
  display: 'none'
26705
26705
  }
@@ -39258,6 +39258,8 @@ var useTree = function useTree(props) {
39258
39258
  var _context$dataFlatStat2;
39259
39259
  context.updateMap.set(id, update);
39260
39260
  var isActive = activeProp === id;
39261
+ // 立即调用update函数设置正确的active状态
39262
+ if (isActive) update('active', isActive);
39261
39263
  return {
39262
39264
  active: isActive,
39263
39265
  expanded: !!((_context$dataFlatStat2 = context.dataFlatStatusMap.get(id)) !== null && _context$dataFlatStat2 !== void 0 && _context$dataFlatStat2.expanded)
@@ -39387,7 +39389,7 @@ var useTree = function useTree(props) {
39387
39389
  context.dataMap.set(id, item);
39388
39390
  if (virtual) {
39389
39391
  context.dataFlatStatusMap.set(id, {
39390
- active: false,
39392
+ active: activeProp === id,
39391
39393
  expanded: defaultExpandAll ? true : (expanded === null || expanded === void 0 ? void 0 : expanded.includes(id)) || false,
39392
39394
  fetching: false
39393
39395
  });
@@ -71931,7 +71933,7 @@ var upload_interface = __webpack_require__(8821);
71931
71933
 
71932
71934
 
71933
71935
  /* harmony default export */ var src_0 = ({
71934
- version: '3.7.10-beta.3'
71936
+ version: '3.7.10-beta.5'
71935
71937
  });
71936
71938
  }();
71937
71939
  /******/ return __webpack_exports__;