wargerm 0.7.9 → 0.7.11
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/dist/components/Modal/dialog.d.ts +3 -1
- package/dist/components/Modal/index.d.ts +1 -0
- package/dist/index.css +30 -0
- package/dist/index.esm.css +30 -0
- package/dist/index.esm.js +19 -9
- package/dist/index.js +19 -9
- package/package.json +1 -1
@@ -12,12 +12,14 @@ declare type Props = {
|
|
12
12
|
destroyOnClose?: boolean;
|
13
13
|
hiddenMask?: boolean;
|
14
14
|
isResize?: boolean;
|
15
|
+
isDrag?: boolean;
|
15
16
|
open?: boolean;
|
16
17
|
width?: number;
|
17
18
|
className?: string;
|
19
|
+
wrapClassName?: string;
|
18
20
|
style?: React.CSSProperties;
|
19
21
|
children?: ReactNode;
|
20
22
|
ref?: any;
|
21
23
|
};
|
22
|
-
declare const _default: React.ForwardRefExoticComponent<Pick<Props, "width" | "open" | "destroyOnClose" | "closeCb" | "onClose" | "hiddenMask" | "isResize" | "className" | "style" | "title" | "onOk" | "onCancel" | "footer" | "content" | "okText" | "cancelText" | "children"> & React.RefAttributes<unknown>>;
|
24
|
+
declare const _default: React.ForwardRefExoticComponent<Pick<Props, "width" | "open" | "destroyOnClose" | "closeCb" | "onClose" | "hiddenMask" | "isResize" | "isDrag" | "className" | "wrapClassName" | "style" | "title" | "onOk" | "onCancel" | "footer" | "content" | "okText" | "cancelText" | "children"> & React.RefAttributes<unknown>>;
|
23
25
|
export default _default;
|
package/dist/index.css
CHANGED
@@ -12004,6 +12004,12 @@
|
|
12004
12004
|
.h1 {
|
12005
12005
|
height: calc(1 / 1080 * 100vh);
|
12006
12006
|
}
|
12007
|
+
.w0 {
|
12008
|
+
width: 0px;
|
12009
|
+
}
|
12010
|
+
.h0 {
|
12011
|
+
height: calc(0 / 1080 * 100vh);
|
12012
|
+
}
|
12007
12013
|
.flex {
|
12008
12014
|
display: flex;
|
12009
12015
|
}
|
@@ -24840,6 +24846,12 @@ button.swiper-pagination-bullet {
|
|
24840
24846
|
.h1 {
|
24841
24847
|
height: calc(1 / 1080 * 100vh);
|
24842
24848
|
}
|
24849
|
+
.w0 {
|
24850
|
+
width: 0px;
|
24851
|
+
}
|
24852
|
+
.h0 {
|
24853
|
+
height: calc(0 / 1080 * 100vh);
|
24854
|
+
}
|
24843
24855
|
.flex {
|
24844
24856
|
display: flex;
|
24845
24857
|
}
|
@@ -38822,6 +38834,12 @@ button[data-prefers-color='dark'] .swiper-pagination-bullet {
|
|
38822
38834
|
.h1 {
|
38823
38835
|
height: calc(1 / 1080 * 100vh);
|
38824
38836
|
}
|
38837
|
+
.w0 {
|
38838
|
+
width: 0px;
|
38839
|
+
}
|
38840
|
+
.h0 {
|
38841
|
+
height: calc(0 / 1080 * 100vh);
|
38842
|
+
}
|
38825
38843
|
.flex {
|
38826
38844
|
display: flex;
|
38827
38845
|
}
|
@@ -52563,6 +52581,12 @@ button[data-prefers-color='light'] .swiper-pagination-bullet {
|
|
52563
52581
|
.h1 {
|
52564
52582
|
height: calc(1 / 1080 * 100vh);
|
52565
52583
|
}
|
52584
|
+
.w0 {
|
52585
|
+
width: 0px;
|
52586
|
+
}
|
52587
|
+
.h0 {
|
52588
|
+
height: calc(0 / 1080 * 100vh);
|
52589
|
+
}
|
52566
52590
|
.flex {
|
52567
52591
|
display: flex;
|
52568
52592
|
}
|
@@ -65316,6 +65340,12 @@ button[data-prefers-color='light'] .swiper-pagination-bullet {
|
|
65316
65340
|
.h1 {
|
65317
65341
|
height: calc(1 / 1080 * 100vh);
|
65318
65342
|
}
|
65343
|
+
.w0 {
|
65344
|
+
width: 0px;
|
65345
|
+
}
|
65346
|
+
.h0 {
|
65347
|
+
height: calc(0 / 1080 * 100vh);
|
65348
|
+
}
|
65319
65349
|
.flex {
|
65320
65350
|
display: flex;
|
65321
65351
|
}
|
package/dist/index.esm.css
CHANGED
@@ -12004,6 +12004,12 @@
|
|
12004
12004
|
.h1 {
|
12005
12005
|
height: calc(1 / 1080 * 100vh);
|
12006
12006
|
}
|
12007
|
+
.w0 {
|
12008
|
+
width: 0px;
|
12009
|
+
}
|
12010
|
+
.h0 {
|
12011
|
+
height: calc(0 / 1080 * 100vh);
|
12012
|
+
}
|
12007
12013
|
.flex {
|
12008
12014
|
display: flex;
|
12009
12015
|
}
|
@@ -24840,6 +24846,12 @@ button.swiper-pagination-bullet {
|
|
24840
24846
|
.h1 {
|
24841
24847
|
height: calc(1 / 1080 * 100vh);
|
24842
24848
|
}
|
24849
|
+
.w0 {
|
24850
|
+
width: 0px;
|
24851
|
+
}
|
24852
|
+
.h0 {
|
24853
|
+
height: calc(0 / 1080 * 100vh);
|
24854
|
+
}
|
24843
24855
|
.flex {
|
24844
24856
|
display: flex;
|
24845
24857
|
}
|
@@ -38822,6 +38834,12 @@ button[data-prefers-color='dark'] .swiper-pagination-bullet {
|
|
38822
38834
|
.h1 {
|
38823
38835
|
height: calc(1 / 1080 * 100vh);
|
38824
38836
|
}
|
38837
|
+
.w0 {
|
38838
|
+
width: 0px;
|
38839
|
+
}
|
38840
|
+
.h0 {
|
38841
|
+
height: calc(0 / 1080 * 100vh);
|
38842
|
+
}
|
38825
38843
|
.flex {
|
38826
38844
|
display: flex;
|
38827
38845
|
}
|
@@ -52563,6 +52581,12 @@ button[data-prefers-color='light'] .swiper-pagination-bullet {
|
|
52563
52581
|
.h1 {
|
52564
52582
|
height: calc(1 / 1080 * 100vh);
|
52565
52583
|
}
|
52584
|
+
.w0 {
|
52585
|
+
width: 0px;
|
52586
|
+
}
|
52587
|
+
.h0 {
|
52588
|
+
height: calc(0 / 1080 * 100vh);
|
52589
|
+
}
|
52566
52590
|
.flex {
|
52567
52591
|
display: flex;
|
52568
52592
|
}
|
@@ -65316,6 +65340,12 @@ button[data-prefers-color='light'] .swiper-pagination-bullet {
|
|
65316
65340
|
.h1 {
|
65317
65341
|
height: calc(1 / 1080 * 100vh);
|
65318
65342
|
}
|
65343
|
+
.w0 {
|
65344
|
+
width: 0px;
|
65345
|
+
}
|
65346
|
+
.h0 {
|
65347
|
+
height: calc(0 / 1080 * 100vh);
|
65348
|
+
}
|
65319
65349
|
.flex {
|
65320
65350
|
display: flex;
|
65321
65351
|
}
|
package/dist/index.esm.js
CHANGED
@@ -4165,7 +4165,7 @@ var WForm = function WForm(props, ref) {
|
|
4165
4165
|
style: {
|
4166
4166
|
display: 'flex'
|
4167
4167
|
}
|
4168
|
-
}, search && search.optionRender && search.optionRender(search,
|
4168
|
+
}, search && search.optionRender && search.optionRender(search, form, [/*#__PURE__*/React.createElement(WButton, {
|
4169
4169
|
key: 'submit',
|
4170
4170
|
type: "primary",
|
4171
4171
|
className: "mr20",
|
@@ -5983,8 +5983,10 @@ function DialogModel(props, ref) {
|
|
5983
5983
|
onClose = props.onClose,
|
5984
5984
|
hiddenMask = props.hiddenMask,
|
5985
5985
|
isResize = props.isResize,
|
5986
|
+
isDrag = props.isDrag,
|
5986
5987
|
_props$className = props.className,
|
5987
5988
|
className = _props$className === void 0 ? 'default-dialog' : _props$className,
|
5989
|
+
wrapClassName = props.wrapClassName,
|
5988
5990
|
style = props.style;
|
5989
5991
|
|
5990
5992
|
var _useState = useState(open),
|
@@ -6026,19 +6028,21 @@ function DialogModel(props, ref) {
|
|
6026
6028
|
var _classNames;
|
6027
6029
|
|
6028
6030
|
return /*#__PURE__*/ReactDOM.createPortal( /*#__PURE__*/React.createElement("div", {
|
6029
|
-
className:
|
6031
|
+
className: 'w100p h100p'.concat(" pa ", wrapClassName || ''),
|
6030
6032
|
style: {
|
6031
6033
|
display: modelShow ? 'block' : 'none',
|
6032
|
-
overflow: 'hidden',
|
6034
|
+
overflow: isDrag ? 'visible' : 'hidden',
|
6033
6035
|
top: 0,
|
6034
|
-
left: 0
|
6036
|
+
left: 0,
|
6037
|
+
pointerEvents: isDrag ? 'none' : 'all'
|
6035
6038
|
}
|
6036
6039
|
}, /*#__PURE__*/React.createElement("div", {
|
6037
6040
|
ref: containerRef,
|
6038
6041
|
className: classnames((_classNames = {}, _defineProperty(_classNames, className, true), _defineProperty(_classNames, 'model_container', true), _defineProperty(_classNames, "animate__animated", true), _defineProperty(_classNames, flag ? 'animate__bounceInDown' : 'animate__fadeOutRightBig', true), _classNames)),
|
6039
6042
|
style: _objectSpread2({
|
6040
6043
|
opacity: modelShowAync ? 1 : 0,
|
6041
|
-
width: typeof width == 'number' ? width + 'px' : width
|
6044
|
+
width: typeof width == 'number' ? width + 'px' : width,
|
6045
|
+
pointerEvents: 'all'
|
6042
6046
|
}, style)
|
6043
6047
|
}, /*#__PURE__*/React.createElement("div", {
|
6044
6048
|
className: 'model_wrap'
|
@@ -6168,7 +6172,7 @@ function DialogModel(props, ref) {
|
|
6168
6172
|
|
6169
6173
|
var Dialog = /*#__PURE__*/React.forwardRef(DialogModel);
|
6170
6174
|
|
6171
|
-
var _excluded$i = ["open", "width", "closeCb", "onClose", "className", "style"],
|
6175
|
+
var _excluded$i = ["open", "width", "closeCb", "onClose", "className", "style", "isDrag", "wrapClassName"],
|
6172
6176
|
_excluded2$3 = ["open"];
|
6173
6177
|
|
6174
6178
|
var Modal = /*#__PURE__*/function (_React$PureComponent) {
|
@@ -6286,6 +6290,8 @@ var Modal = /*#__PURE__*/function (_React$PureComponent) {
|
|
6286
6290
|
onClose = _this$props4.onClose,
|
6287
6291
|
className = _this$props4.className,
|
6288
6292
|
style = _this$props4.style,
|
6293
|
+
isDrag = _this$props4.isDrag,
|
6294
|
+
wrapClassName = _this$props4.wrapClassName,
|
6289
6295
|
other = _objectWithoutProperties(_this$props4, _excluded$i);
|
6290
6296
|
|
6291
6297
|
return /*#__PURE__*/React.createElement(Dialog, _objectSpread2({
|
@@ -6295,6 +6301,8 @@ var Modal = /*#__PURE__*/function (_React$PureComponent) {
|
|
6295
6301
|
open: open,
|
6296
6302
|
width: width,
|
6297
6303
|
className: className,
|
6304
|
+
isDrag: isDrag,
|
6305
|
+
wrapClassName: wrapClassName,
|
6298
6306
|
style: style
|
6299
6307
|
}, other), this.renderTop(), /*#__PURE__*/React.createElement("div", {
|
6300
6308
|
className: "model-content"
|
@@ -8568,7 +8576,7 @@ var index$6 = /*#__PURE__*/forwardRef(VideoPlayer$1);
|
|
8568
8576
|
}, window.dhPlayerControl || {}, {
|
8569
8577
|
noCardPlayerFlag: false,
|
8570
8578
|
DHPlayerVersion: '',
|
8571
|
-
pkgDHPlayerVerion: [
|
8579
|
+
pkgDHPlayerVerion: [2305221636, 2305221636] // 配套的插件版本号
|
8572
8580
|
|
8573
8581
|
}); //在Function的原型上自定义myBind()方法
|
8574
8582
|
|
@@ -9754,7 +9762,7 @@ var index$6 = /*#__PURE__*/forwardRef(VideoPlayer$1);
|
|
9754
9762
|
onbeforeunload: function onbeforeunload() {
|
9755
9763
|
var _this5 = this;
|
9756
9764
|
|
9757
|
-
this.destroy().then(function () {
|
9765
|
+
this.destroy(true).then(function () {
|
9758
9766
|
socketClose.call(_this5);
|
9759
9767
|
});
|
9760
9768
|
},
|
@@ -9944,6 +9952,7 @@ var index$6 = /*#__PURE__*/forwardRef(VideoPlayer$1);
|
|
9944
9952
|
destroy: function destroy() {
|
9945
9953
|
var _this7 = this;
|
9946
9954
|
|
9955
|
+
var isRefresh = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
9947
9956
|
return new Promise(function (resolve, reject) {
|
9948
9957
|
var that = window.dhPlayerControl.videoList[_this7.setting.videoId];
|
9949
9958
|
|
@@ -9953,7 +9962,8 @@ var index$6 = /*#__PURE__*/forwardRef(VideoPlayer$1);
|
|
9953
9962
|
_this7.send({
|
9954
9963
|
method: 'window.destroy',
|
9955
9964
|
info: {
|
9956
|
-
hwnd: that.setting.hwnd
|
9965
|
+
hwnd: that.setting.hwnd,
|
9966
|
+
isRefresh: isRefresh
|
9957
9967
|
}
|
9958
9968
|
});
|
9959
9969
|
|
package/dist/index.js
CHANGED
@@ -4209,7 +4209,7 @@ var WForm = function WForm(props, ref) {
|
|
4209
4209
|
style: {
|
4210
4210
|
display: 'flex'
|
4211
4211
|
}
|
4212
|
-
}, search && search.optionRender && search.optionRender(search,
|
4212
|
+
}, search && search.optionRender && search.optionRender(search, form, [/*#__PURE__*/React__default['default'].createElement(WButton, {
|
4213
4213
|
key: 'submit',
|
4214
4214
|
type: "primary",
|
4215
4215
|
className: "mr20",
|
@@ -6027,8 +6027,10 @@ function DialogModel(props, ref) {
|
|
6027
6027
|
onClose = props.onClose,
|
6028
6028
|
hiddenMask = props.hiddenMask,
|
6029
6029
|
isResize = props.isResize,
|
6030
|
+
isDrag = props.isDrag,
|
6030
6031
|
_props$className = props.className,
|
6031
6032
|
className = _props$className === void 0 ? 'default-dialog' : _props$className,
|
6033
|
+
wrapClassName = props.wrapClassName,
|
6032
6034
|
style = props.style;
|
6033
6035
|
|
6034
6036
|
var _useState = React.useState(open),
|
@@ -6070,19 +6072,21 @@ function DialogModel(props, ref) {
|
|
6070
6072
|
var _classNames;
|
6071
6073
|
|
6072
6074
|
return /*#__PURE__*/ReactDOM__default['default'].createPortal( /*#__PURE__*/React__default['default'].createElement("div", {
|
6073
|
-
className:
|
6075
|
+
className: 'w100p h100p'.concat(" pa ", wrapClassName || ''),
|
6074
6076
|
style: {
|
6075
6077
|
display: modelShow ? 'block' : 'none',
|
6076
|
-
overflow: 'hidden',
|
6078
|
+
overflow: isDrag ? 'visible' : 'hidden',
|
6077
6079
|
top: 0,
|
6078
|
-
left: 0
|
6080
|
+
left: 0,
|
6081
|
+
pointerEvents: isDrag ? 'none' : 'all'
|
6079
6082
|
}
|
6080
6083
|
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
6081
6084
|
ref: containerRef,
|
6082
6085
|
className: classnames__default['default']((_classNames = {}, _defineProperty(_classNames, className, true), _defineProperty(_classNames, 'model_container', true), _defineProperty(_classNames, "animate__animated", true), _defineProperty(_classNames, flag ? 'animate__bounceInDown' : 'animate__fadeOutRightBig', true), _classNames)),
|
6083
6086
|
style: _objectSpread2({
|
6084
6087
|
opacity: modelShowAync ? 1 : 0,
|
6085
|
-
width: typeof width == 'number' ? width + 'px' : width
|
6088
|
+
width: typeof width == 'number' ? width + 'px' : width,
|
6089
|
+
pointerEvents: 'all'
|
6086
6090
|
}, style)
|
6087
6091
|
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
6088
6092
|
className: 'model_wrap'
|
@@ -6212,7 +6216,7 @@ function DialogModel(props, ref) {
|
|
6212
6216
|
|
6213
6217
|
var Dialog = /*#__PURE__*/React__default['default'].forwardRef(DialogModel);
|
6214
6218
|
|
6215
|
-
var _excluded$i = ["open", "width", "closeCb", "onClose", "className", "style"],
|
6219
|
+
var _excluded$i = ["open", "width", "closeCb", "onClose", "className", "style", "isDrag", "wrapClassName"],
|
6216
6220
|
_excluded2$3 = ["open"];
|
6217
6221
|
|
6218
6222
|
var Modal = /*#__PURE__*/function (_React$PureComponent) {
|
@@ -6330,6 +6334,8 @@ var Modal = /*#__PURE__*/function (_React$PureComponent) {
|
|
6330
6334
|
onClose = _this$props4.onClose,
|
6331
6335
|
className = _this$props4.className,
|
6332
6336
|
style = _this$props4.style,
|
6337
|
+
isDrag = _this$props4.isDrag,
|
6338
|
+
wrapClassName = _this$props4.wrapClassName,
|
6333
6339
|
other = _objectWithoutProperties(_this$props4, _excluded$i);
|
6334
6340
|
|
6335
6341
|
return /*#__PURE__*/React__default['default'].createElement(Dialog, _objectSpread2({
|
@@ -6339,6 +6345,8 @@ var Modal = /*#__PURE__*/function (_React$PureComponent) {
|
|
6339
6345
|
open: open,
|
6340
6346
|
width: width,
|
6341
6347
|
className: className,
|
6348
|
+
isDrag: isDrag,
|
6349
|
+
wrapClassName: wrapClassName,
|
6342
6350
|
style: style
|
6343
6351
|
}, other), this.renderTop(), /*#__PURE__*/React__default['default'].createElement("div", {
|
6344
6352
|
className: "model-content"
|
@@ -8612,7 +8620,7 @@ var index$6 = /*#__PURE__*/React.forwardRef(VideoPlayer$1);
|
|
8612
8620
|
}, window.dhPlayerControl || {}, {
|
8613
8621
|
noCardPlayerFlag: false,
|
8614
8622
|
DHPlayerVersion: '',
|
8615
|
-
pkgDHPlayerVerion: [
|
8623
|
+
pkgDHPlayerVerion: [2305221636, 2305221636] // 配套的插件版本号
|
8616
8624
|
|
8617
8625
|
}); //在Function的原型上自定义myBind()方法
|
8618
8626
|
|
@@ -9798,7 +9806,7 @@ var index$6 = /*#__PURE__*/React.forwardRef(VideoPlayer$1);
|
|
9798
9806
|
onbeforeunload: function onbeforeunload() {
|
9799
9807
|
var _this5 = this;
|
9800
9808
|
|
9801
|
-
this.destroy().then(function () {
|
9809
|
+
this.destroy(true).then(function () {
|
9802
9810
|
socketClose.call(_this5);
|
9803
9811
|
});
|
9804
9812
|
},
|
@@ -9988,6 +9996,7 @@ var index$6 = /*#__PURE__*/React.forwardRef(VideoPlayer$1);
|
|
9988
9996
|
destroy: function destroy() {
|
9989
9997
|
var _this7 = this;
|
9990
9998
|
|
9999
|
+
var isRefresh = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
9991
10000
|
return new Promise(function (resolve, reject) {
|
9992
10001
|
var that = window.dhPlayerControl.videoList[_this7.setting.videoId];
|
9993
10002
|
|
@@ -9997,7 +10006,8 @@ var index$6 = /*#__PURE__*/React.forwardRef(VideoPlayer$1);
|
|
9997
10006
|
_this7.send({
|
9998
10007
|
method: 'window.destroy',
|
9999
10008
|
info: {
|
10000
|
-
hwnd: that.setting.hwnd
|
10009
|
+
hwnd: that.setting.hwnd,
|
10010
|
+
isRefresh: isRefresh
|
10001
10011
|
}
|
10002
10012
|
});
|
10003
10013
|
|