shineout 3.3.0-beta.8 → 3.3.0

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,8 +1,9 @@
1
1
  import { ModalProps } from '../modal/modal.type';
2
+ import { type } from '../utils';
2
3
  /**
3
4
  * @title Drawer
4
5
  */
5
- export interface DrawerProps extends Omit<ModalProps, 'moveable'> {
6
+ interface DrawerPropsOrgin extends Omit<ModalProps, 'moveable'> {
6
7
  /** *
7
8
  * @en 弹出位置
8
9
  * @cn Pop-up position
@@ -22,3 +23,5 @@ export interface DrawerProps extends Omit<ModalProps, 'moveable'> {
22
23
  */
23
24
  height?: number | string;
24
25
  }
26
+ export type DrawerProps = type.RequireAWithB<DrawerPropsOrgin, 'type', 'title'>;
27
+ export {};
package/cjs/index.js CHANGED
@@ -476,5 +476,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
476
476
  // 此文件由脚本自动生成,请勿直接修改。
477
477
  // This file was generated automatically by a script. Please do not modify it directly.
478
478
  var _default = exports.default = {
479
- version: '3.3.0-beta.8'
479
+ version: '3.3.0'
480
480
  };
@@ -1 +1,2 @@
1
1
  export type { TabsProps as Props } from './tabs.type';
2
+ export type { TabsPanelProps as PanelProps } from './tabs-panel.type';
@@ -17,8 +17,9 @@ import normalizeWheel from './dom/normalizeWheel';
17
17
  import * as position from './dom/popover';
18
18
  import ready from './dom/ready';
19
19
  import isJson from './validate/isJson';
20
+ import * as type from './type';
20
21
  import accept from './accept';
21
22
  declare const validate: () => void;
22
23
  declare const cssAccessors: {};
23
24
  declare const cssInject: {};
24
- export { classname, clone, color, flat, func, hash, is, number, objects, shallowEqual, string, tree, detect, doc, element, normalizeWheel, position, ready, isJson, validate, cssAccessors, cssInject, accept, };
25
+ export { classname, clone, color, flat, func, hash, is, number, objects, shallowEqual, string, tree, detect, doc, element, normalizeWheel, position, ready, isJson, validate, cssAccessors, cssInject, type, accept, };
@@ -49,7 +49,7 @@ Object.defineProperty(exports, "shallowEqual", {
49
49
  return _shallowEqual.default;
50
50
  }
51
51
  });
52
- exports.validate = exports.tree = exports.string = void 0;
52
+ exports.validate = exports.type = exports.tree = exports.string = void 0;
53
53
  var _classname = _interopRequireDefault(require("./classname"));
54
54
  var clone = _interopRequireWildcard(require("./clone"));
55
55
  exports.clone = clone;
@@ -82,6 +82,8 @@ var position = _interopRequireWildcard(require("./dom/popover"));
82
82
  exports.position = position;
83
83
  var _ready = _interopRequireDefault(require("./dom/ready"));
84
84
  var _isJson = _interopRequireDefault(require("./validate/isJson"));
85
+ var type = _interopRequireWildcard(require("./type"));
86
+ exports.type = type;
85
87
  var _accept = _interopRequireDefault(require("./accept"));
86
88
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
87
89
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
@@ -0,0 +1,3 @@
1
+ export type RequireAWithB<T, A extends keyof T, B extends keyof T> = (Omit<T, A> & {
2
+ [K in A]?: never;
3
+ }) | (T & Required<Pick<T, B>>) | (T & Required<Pick<T, A | B>>);
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });