@para-ui/core 2.2.52 → 2.2.54
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.
- package/ComboSelect/index.js +3 -3
- package/ComboSelect/interface.d.ts +2 -2
- package/Dropdown/index.d.ts +1 -0
- package/Dropdown/index.js +1 -1
- package/DynamicMultiBox/index.js +3 -3
- package/Form/index.js +3 -3
- package/FormItem/index.js +3 -3
- package/Pagination/index.js +1 -1
- package/README.md +12 -0
- package/Table/index.js +1 -1
- package/ToggleButton/index.js +3 -3
- package/Upload/index.js +3 -3
- package/cdn/ComboSelect/index.js +10 -9
- package/cdn/Dropdown/index.js +2 -2
- package/cdn/DynamicMultiBox/index.js +6 -6
- package/cdn/Form/index.js +10 -9
- package/cdn/FormItem/index.js +10 -9
- package/cdn/Pagination/index.js +1 -1
- package/cdn/SelectorPicker/index.js +3 -3
- package/cdn/Table/index.js +1 -1
- package/cdn/ToggleButton/index.js +5 -5
- package/cdn/Upload/index.js +1 -1
- package/index.js +4 -4
- package/package.json +1 -1
- package/style.css +3 -3
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
import React, { ReactNode } from 'react';
|
|
7
7
|
import { TableProps as ITableProps } from '../Table/interface';
|
|
8
8
|
import { TreeProps, TreeNodeProps } from '../Tree/interface';
|
|
9
|
-
import { TooltipProps } from "../Tooltip";
|
|
10
9
|
import { LabelTooltipProps } from "../Label";
|
|
11
10
|
import { EmptyProps } from '../Empty';
|
|
11
|
+
import { Placement } from '../Dropdown';
|
|
12
12
|
type TableProps = ITableProps & {
|
|
13
13
|
/** table 参数 */
|
|
14
14
|
params?: Object;
|
|
@@ -75,7 +75,7 @@ export interface ComboSelectProps {
|
|
|
75
75
|
/**刷新标识*/
|
|
76
76
|
refresh?: number;
|
|
77
77
|
/**位置*/
|
|
78
|
-
placement?:
|
|
78
|
+
placement?: Placement;
|
|
79
79
|
/** 清除回调 */
|
|
80
80
|
onClear?: () => void;
|
|
81
81
|
/**搜索回调*/
|
package/Dropdown/index.d.ts
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
import React, { FC } from 'react';
|
|
7
7
|
import './index.scss';
|
|
8
8
|
export type Placement = "top" | "topLeft" | "topRight" | "bottom" | "bottomLeft" | "bottomRight";
|
|
9
|
+
export declare const Dropdown_Placement_List: string[];
|
|
9
10
|
export interface DropdownProps {
|
|
10
11
|
/** 触发下拉的行为 */
|
|
11
12
|
trigger?: ('click' | 'hover' | 'contextMenu')[];
|
package/Dropdown/index.js
CHANGED
|
@@ -12,4 +12,4 @@ object-assign
|
|
|
12
12
|
* This source code is licensed under the MIT license found in the
|
|
13
13
|
* LICENSE file in the root directory of this source tree.
|
|
14
14
|
*/
|
|
15
|
-
r(7418);var t=r(8156),n=60103;if(60107,"function"==typeof Symbol&&Symbol.for){var a=Symbol.for;n=a("react.element"),a("react.fragment")}var i=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p=Object.prototype.hasOwnProperty,d={key:!0,ref:!0,__self:!0,__source:!0};function u(o,e,r){var t,a={},u=null,c=null;for(t in void 0!==r&&(u=""+r),void 0!==e.key&&(u=""+e.key),void 0!==e.ref&&(c=e.ref),e)p.call(e,t)&&!d.hasOwnProperty(t)&&(a[t]=e[t]);if(o&&o.defaultProps)for(t in e=o.defaultProps)void 0===a[t]&&(a[t]=e[t]);return{$$typeof:n,type:o,key:u,ref:c,props:a,_owner:i.current}}e.jsx=u},5893:function(o,e,r){"use strict";o.exports=r(5251)},6475:function(o,e,r){var t=r(3379),n=r(5127);"string"==typeof(n=n.__esModule?n.default:n)&&(n=[[o.id,n,""]]);var a={insert:("body","body"),singleton:!1};t(n,a);o.exports=n.locals||{}},3379:function(o,e,r){"use strict";var t,n=function(){return void 0===t&&(t=Boolean(window&&document&&document.all&&!window.atob)),t},a=function(){var o={};return function(e){if(void 0===o[e]){var r=document.querySelector(e);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(o){r=null}o[e]=r}return o[e]}}(),i=[];function p(o){for(var e=-1,r=0;r<i.length;r++)if(i[r].identifier===o){e=r;break}return e}function d(o,e){for(var r={},t=[],n=0;n<o.length;n++){var a=o[n],d=e.base?a[0]+e.base:a[0],u=r[d]||0,c="".concat(d," ").concat(u);r[d]=u+1;var l=p(c),s={css:a[1],media:a[2],sourceMap:a[3]};-1!==l?(i[l].references++,i[l].updater(s)):i.push({identifier:c,updater:v(s,e),references:1}),t.push(c)}return t}function u(o){var e=document.createElement("style"),t=o.attributes||{};if(void 0===t.nonce){var n=r.nc;n&&(t.nonce=n)}if(Object.keys(t).forEach((function(o){e.setAttribute(o,t[o])})),"function"==typeof o.insert)o.insert(e);else{var i=a(o.insert||"head");if(!i)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");i.appendChild(e)}return e}var c,l=(c=[],function(o,e){return c[o]=e,c.filter(Boolean).join("\n")});function s(o,e,r,t){var n=r?"":t.media?"@media ".concat(t.media," {").concat(t.css,"}"):t.css;if(o.styleSheet)o.styleSheet.cssText=l(e,n);else{var a=document.createTextNode(n),i=o.childNodes;i[e]&&o.removeChild(i[e]),i.length?o.insertBefore(a,i[e]):o.appendChild(a)}}function f(o,e,r){var t=r.css,n=r.media,a=r.sourceMap;if(n?o.setAttribute("media",n):o.removeAttribute("media"),a&&"undefined"!=typeof btoa&&(t+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),o.styleSheet)o.styleSheet.cssText=t;else{for(;o.firstChild;)o.removeChild(o.firstChild);o.appendChild(document.createTextNode(t))}}var m=null,w=0;function v(o,e){var r,t,n;if(e.singleton){var a=w++;r=m||(m=u(e)),t=s.bind(null,r,a,!1),n=s.bind(null,r,a,!0)}else r=u(e),t=f.bind(null,r,e),n=function(){!function(o){if(null===o.parentNode)return!1;o.parentNode.removeChild(o)}(r)};return t(o),function(e){if(e){if(e.css===o.css&&e.media===o.media&&e.sourceMap===o.sourceMap)return;t(o=e)}else n()}}o.exports=function(o,e){(e=e||{}).singleton||"boolean"==typeof e.singleton||(e.singleton=n());var r=d(o=o||[],e);return function(o){if(o=o||[],"[object Array]"===Object.prototype.toString.call(o)){for(var t=0;t<r.length;t++){var n=p(r[t]);i[n].references--}for(var a=d(o,e),u=0;u<r.length;u++){var c=p(r[u]);0===i[c].references&&(i[c].updater(),i.splice(c,1))}r=a}}}},8430:function(o){"use strict";o.exports=e},8156:function(e){"use strict";e.exports=o}},t={};function n(o){var e=t[o];if(void 0!==e)return e.exports;var a=t[o]={id:o,exports:{}};return r[o](a,a.exports,n),a.exports}n.n=function(o){var e=o&&o.__esModule?function(){return o.default}:function(){return o};return n.d(e,{a:e}),e},n.d=function(o,e){for(var r in e)n.o(e,r)&&!n.o(o,r)&&Object.defineProperty(o,r,{enumerable:!0,get:e[r]})},n.o=function(o,e){return Object.prototype.hasOwnProperty.call(o,e)},n.r=function(o){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})},n.nc=void 0;var a={};return function(){"use strict";n.r(a),n.d(a,{Dropdown:function(){return
|
|
15
|
+
r(7418);var t=r(8156),n=60103;if(60107,"function"==typeof Symbol&&Symbol.for){var a=Symbol.for;n=a("react.element"),a("react.fragment")}var i=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p=Object.prototype.hasOwnProperty,d={key:!0,ref:!0,__self:!0,__source:!0};function u(o,e,r){var t,a={},u=null,c=null;for(t in void 0!==r&&(u=""+r),void 0!==e.key&&(u=""+e.key),void 0!==e.ref&&(c=e.ref),e)p.call(e,t)&&!d.hasOwnProperty(t)&&(a[t]=e[t]);if(o&&o.defaultProps)for(t in e=o.defaultProps)void 0===a[t]&&(a[t]=e[t]);return{$$typeof:n,type:o,key:u,ref:c,props:a,_owner:i.current}}e.jsx=u},5893:function(o,e,r){"use strict";o.exports=r(5251)},6475:function(o,e,r){var t=r(3379),n=r(5127);"string"==typeof(n=n.__esModule?n.default:n)&&(n=[[o.id,n,""]]);var a={insert:("body","body"),singleton:!1};t(n,a);o.exports=n.locals||{}},3379:function(o,e,r){"use strict";var t,n=function(){return void 0===t&&(t=Boolean(window&&document&&document.all&&!window.atob)),t},a=function(){var o={};return function(e){if(void 0===o[e]){var r=document.querySelector(e);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(o){r=null}o[e]=r}return o[e]}}(),i=[];function p(o){for(var e=-1,r=0;r<i.length;r++)if(i[r].identifier===o){e=r;break}return e}function d(o,e){for(var r={},t=[],n=0;n<o.length;n++){var a=o[n],d=e.base?a[0]+e.base:a[0],u=r[d]||0,c="".concat(d," ").concat(u);r[d]=u+1;var l=p(c),s={css:a[1],media:a[2],sourceMap:a[3]};-1!==l?(i[l].references++,i[l].updater(s)):i.push({identifier:c,updater:v(s,e),references:1}),t.push(c)}return t}function u(o){var e=document.createElement("style"),t=o.attributes||{};if(void 0===t.nonce){var n=r.nc;n&&(t.nonce=n)}if(Object.keys(t).forEach((function(o){e.setAttribute(o,t[o])})),"function"==typeof o.insert)o.insert(e);else{var i=a(o.insert||"head");if(!i)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");i.appendChild(e)}return e}var c,l=(c=[],function(o,e){return c[o]=e,c.filter(Boolean).join("\n")});function s(o,e,r,t){var n=r?"":t.media?"@media ".concat(t.media," {").concat(t.css,"}"):t.css;if(o.styleSheet)o.styleSheet.cssText=l(e,n);else{var a=document.createTextNode(n),i=o.childNodes;i[e]&&o.removeChild(i[e]),i.length?o.insertBefore(a,i[e]):o.appendChild(a)}}function f(o,e,r){var t=r.css,n=r.media,a=r.sourceMap;if(n?o.setAttribute("media",n):o.removeAttribute("media"),a&&"undefined"!=typeof btoa&&(t+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),o.styleSheet)o.styleSheet.cssText=t;else{for(;o.firstChild;)o.removeChild(o.firstChild);o.appendChild(document.createTextNode(t))}}var m=null,w=0;function v(o,e){var r,t,n;if(e.singleton){var a=w++;r=m||(m=u(e)),t=s.bind(null,r,a,!1),n=s.bind(null,r,a,!0)}else r=u(e),t=f.bind(null,r,e),n=function(){!function(o){if(null===o.parentNode)return!1;o.parentNode.removeChild(o)}(r)};return t(o),function(e){if(e){if(e.css===o.css&&e.media===o.media&&e.sourceMap===o.sourceMap)return;t(o=e)}else n()}}o.exports=function(o,e){(e=e||{}).singleton||"boolean"==typeof e.singleton||(e.singleton=n());var r=d(o=o||[],e);return function(o){if(o=o||[],"[object Array]"===Object.prototype.toString.call(o)){for(var t=0;t<r.length;t++){var n=p(r[t]);i[n].references--}for(var a=d(o,e),u=0;u<r.length;u++){var c=p(r[u]);0===i[c].references&&(i[c].updater(),i.splice(c,1))}r=a}}}},8430:function(o){"use strict";o.exports=e},8156:function(e){"use strict";e.exports=o}},t={};function n(o){var e=t[o];if(void 0!==e)return e.exports;var a=t[o]={id:o,exports:{}};return r[o](a,a.exports,n),a.exports}n.n=function(o){var e=o&&o.__esModule?function(){return o.default}:function(){return o};return n.d(e,{a:e}),e},n.d=function(o,e){for(var r in e)n.o(e,r)&&!n.o(o,r)&&Object.defineProperty(o,r,{enumerable:!0,get:e[r]})},n.o=function(o,e){return Object.prototype.hasOwnProperty.call(o,e)},n.r=function(o){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})},n.nc=void 0;var a={};return function(){"use strict";n.r(a),n.d(a,{Dropdown:function(){return c},Dropdown_Placement_List:function(){return d},getNearestOverflowAncestor:function(){return u}});var o=n(5893),e=n(8156),r=n.n(e),t=n(8430),i=n.n(t),p=(n(6475),function(){return p=Object.assign||function(o){for(var e,r=1,t=arguments.length;r<t;r++)for(var n in e=arguments[r])Object.prototype.hasOwnProperty.call(e,n)&&(o[n]=e[n]);return o},p.apply(this,arguments)}),d=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"];function u(o){var e,r,t=o.parentNode||o.ownerDocument,n=(null===(e=null==t?void 0:t.nodeName)||void 0===e?void 0:e.toLowerCase())||"";return["html","body","#document"].includes(n)?null===(r=null==o?void 0:o.ownerDocument)||void 0===r?void 0:r.body:t instanceof window.HTMLElement&&function(o){var e=window.getComputedStyle(o),r=e.overflow,t=e.overflowX,n=e.overflowY;return/auto|scroll|overlay/.test(r+n+t)}(t)?t:u(t)}var c=function(e){var t,n,a,d=r().useRef(),c=r().useRef();return r().useEffect((function(){return function(){c.current&&(c.current.style.position="")}}),[]),(0,o.jsx)(i(),p({},e,{prefixCls:"paraui-dropdown",animation:"slide-up",align:{offset:(t=e.placement,null!==(a=null===(n={top:{offset:[0,-8]},topLeft:{offset:[0,-8]},topRight:{offset:[0,-8]},bottom:{offset:[0,8]},bottomRight:{offset:[0,8]},bottomLeft:{offset:[0,8]}}[t])||void 0===n?void 0:n.offset)&&void 0!==a?a:[0,0])},getPopupContainer:function(o){var r,t,n,a,i;if(e.getPopupContainer)i=e.getPopupContainer(o)||document.body;else{var p=null===(t=null===(r=d.current)||void 0===r?void 0:r.getRootDomNode)||void 0===t?void 0:t.call(r);if(p)(i=u(p)).scrollHeight<=i.clientHeight&&(i=document.body);else i=document.body;"body"!==(null===(n=i.nodeName)||void 0===n?void 0:n.toLowerCase())&&"static"===(null===(a=window.getComputedStyle(i))||void 0===a?void 0:a.position)&&(i.style.position="relative"),c.current=i}return i},ref:d},{children:e.children}))};c.defaultProps={mouseEnterDelay:.15,mouseLeaveDelay:.1,trigger:["hover"],placement:"bottomRight"},a.default=c}(),a}()}));
|