wargerm 0.4.32 → 0.4.35
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/DragBox/index.d.ts +14 -0
- package/dist/components/Table/index.d.ts +3 -2
- package/dist/index.css +12418 -57
- package/dist/index.d.ts +1 -0
- package/dist/index.esm.css +12418 -57
- package/dist/index.esm.js +222 -136
- package/dist/index.js +227 -140
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
@@ -6838,10 +6838,7 @@ var WForm = function WForm(props, ref) {
|
|
6838
6838
|
}
|
6839
6839
|
|
6840
6840
|
return /*#__PURE__*/React.createElement(_Col, _objectSpread2(_objectSpread2({
|
6841
|
-
|
6842
|
-
paddingLeft: '12px',
|
6843
|
-
paddingRight: '12px'
|
6844
|
-
}
|
6841
|
+
className: "pl12 pr12"
|
6845
6842
|
}, colProps), {}, {
|
6846
6843
|
key: c.dataIndex
|
6847
6844
|
}), /*#__PURE__*/React.createElement(_Form.Item, _objectSpread2(_objectSpread2({
|
@@ -6878,10 +6875,7 @@ var WForm = function WForm(props, ref) {
|
|
6878
6875
|
}
|
6879
6876
|
|
6880
6877
|
return /*#__PURE__*/React.createElement(_Col, _objectSpread2(_objectSpread2({
|
6881
|
-
|
6882
|
-
paddingLeft: '12px',
|
6883
|
-
paddingRight: '12px'
|
6884
|
-
}
|
6878
|
+
className: "pl12 pr12"
|
6885
6879
|
}, colProps), {}, {
|
6886
6880
|
key: c.dataIndex
|
6887
6881
|
}), /*#__PURE__*/React.createElement(_Form.Item, _objectSpread2(_objectSpread2({
|
@@ -6915,10 +6909,7 @@ var WForm = function WForm(props, ref) {
|
|
6915
6909
|
}
|
6916
6910
|
|
6917
6911
|
return /*#__PURE__*/React.createElement(_Col, _objectSpread2(_objectSpread2({
|
6918
|
-
|
6919
|
-
paddingLeft: '12px',
|
6920
|
-
paddingRight: '12px'
|
6921
|
-
}
|
6912
|
+
className: "pl12 pr12"
|
6922
6913
|
}, colProps), {}, {
|
6923
6914
|
key: c.dataIndex
|
6924
6915
|
}), /*#__PURE__*/React.createElement(_Form.Item, _objectSpread2(_objectSpread2({
|
@@ -6965,10 +6956,7 @@ var WForm = function WForm(props, ref) {
|
|
6965
6956
|
}
|
6966
6957
|
|
6967
6958
|
return /*#__PURE__*/React.createElement(_Col, _objectSpread2(_objectSpread2({
|
6968
|
-
|
6969
|
-
paddingLeft: '12px',
|
6970
|
-
paddingRight: '12px'
|
6971
|
-
}
|
6959
|
+
className: "pl12 pr12"
|
6972
6960
|
}, colProps), {}, {
|
6973
6961
|
key: c.dataIndex
|
6974
6962
|
}), /*#__PURE__*/React.createElement(_Form.Item, _objectSpread2(_objectSpread2({
|
@@ -7001,10 +6989,7 @@ var WForm = function WForm(props, ref) {
|
|
7001
6989
|
}
|
7002
6990
|
|
7003
6991
|
return /*#__PURE__*/React.createElement(_Col, _objectSpread2(_objectSpread2({
|
7004
|
-
|
7005
|
-
paddingLeft: '12px',
|
7006
|
-
paddingRight: '12px'
|
7007
|
-
}
|
6992
|
+
className: "pl12 pr12"
|
7008
6993
|
}, colProps), {}, {
|
7009
6994
|
key: c.dataIndex
|
7010
6995
|
}), /*#__PURE__*/React.createElement(_Form.Item, _objectSpread2(_objectSpread2({
|
@@ -7048,10 +7033,7 @@ var WForm = function WForm(props, ref) {
|
|
7048
7033
|
}
|
7049
7034
|
|
7050
7035
|
return /*#__PURE__*/React.createElement(_Col, _objectSpread2(_objectSpread2({
|
7051
|
-
|
7052
|
-
paddingLeft: '12px',
|
7053
|
-
paddingRight: '12px'
|
7054
|
-
}
|
7036
|
+
className: "pl12 pr12"
|
7055
7037
|
}, colProps), {}, {
|
7056
7038
|
key: c.dataIndex
|
7057
7039
|
}), /*#__PURE__*/React.createElement(_Form.Item, _objectSpread2(_objectSpread2({
|
@@ -7106,10 +7088,7 @@ var WForm = function WForm(props, ref) {
|
|
7106
7088
|
}
|
7107
7089
|
|
7108
7090
|
return /*#__PURE__*/React.createElement(_Col, _objectSpread2(_objectSpread2({
|
7109
|
-
|
7110
|
-
paddingLeft: '12px',
|
7111
|
-
paddingRight: '12px'
|
7112
|
-
}
|
7091
|
+
className: "pl12 pr12"
|
7113
7092
|
}, colProps), {}, {
|
7114
7093
|
key: c.dataIndex
|
7115
7094
|
}), /*#__PURE__*/React.createElement(_Form.Item, _objectSpread2(_objectSpread2({
|
@@ -7152,10 +7131,7 @@ var WForm = function WForm(props, ref) {
|
|
7152
7131
|
return _objectSpread2(_objectSpread2({}, preColumnsFields), {}, _defineProperty({}, c.dataIndex, _options2));
|
7153
7132
|
});
|
7154
7133
|
return /*#__PURE__*/React.createElement(_Col, _objectSpread2(_objectSpread2({
|
7155
|
-
|
7156
|
-
paddingLeft: '12px',
|
7157
|
-
paddingRight: '12px'
|
7158
|
-
}
|
7134
|
+
className: "pl12 pr12"
|
7159
7135
|
}, colProps), {}, {
|
7160
7136
|
key: c.dataIndex
|
7161
7137
|
}), /*#__PURE__*/React.createElement(_Form.Item, _objectSpread2(_objectSpread2({
|
@@ -7178,10 +7154,7 @@ var WForm = function WForm(props, ref) {
|
|
7178
7154
|
}
|
7179
7155
|
|
7180
7156
|
return /*#__PURE__*/React.createElement(_Col, _objectSpread2(_objectSpread2({
|
7181
|
-
|
7182
|
-
paddingLeft: '12px',
|
7183
|
-
paddingRight: '12px'
|
7184
|
-
}
|
7157
|
+
className: "pl12 pr12"
|
7185
7158
|
}, colProps), {}, {
|
7186
7159
|
key: c.dataIndex
|
7187
7160
|
}), /*#__PURE__*/React.createElement(_Form.Item, _objectSpread2(_objectSpread2({
|
@@ -7211,10 +7184,7 @@ var WForm = function WForm(props, ref) {
|
|
7211
7184
|
|
7212
7185
|
}), form);
|
7213
7186
|
return baseitem ? /*#__PURE__*/React.createElement(_Col, _objectSpread2(_objectSpread2({
|
7214
|
-
|
7215
|
-
paddingLeft: '12px',
|
7216
|
-
paddingRight: '12px'
|
7217
|
-
}
|
7187
|
+
className: "pl12 pr12"
|
7218
7188
|
}, colProps), {}, {
|
7219
7189
|
key: c.dataIndex
|
7220
7190
|
}), /*#__PURE__*/React.createElement(_Form.Item, _objectSpread2(_objectSpread2({
|
@@ -7234,10 +7204,7 @@ var WForm = function WForm(props, ref) {
|
|
7234
7204
|
}
|
7235
7205
|
|
7236
7206
|
return /*#__PURE__*/React.createElement(_Col, _objectSpread2(_objectSpread2({
|
7237
|
-
|
7238
|
-
paddingLeft: '12px',
|
7239
|
-
paddingRight: '12px'
|
7240
|
-
}
|
7207
|
+
className: "pl12 pr12"
|
7241
7208
|
}, colProps), {}, {
|
7242
7209
|
key: c.dataIndex
|
7243
7210
|
}), /*#__PURE__*/React.createElement(_Form.Item, _objectSpread2(_objectSpread2({
|
@@ -7261,10 +7228,7 @@ var WForm = function WForm(props, ref) {
|
|
7261
7228
|
}
|
7262
7229
|
|
7263
7230
|
return /*#__PURE__*/React.createElement(_Col, _objectSpread2(_objectSpread2({
|
7264
|
-
|
7265
|
-
paddingLeft: '12px',
|
7266
|
-
paddingRight: '12px'
|
7267
|
-
}
|
7231
|
+
className: "pl12 pr12"
|
7268
7232
|
}, colProps), {}, {
|
7269
7233
|
key: c.dataIndex
|
7270
7234
|
}), /*#__PURE__*/React.createElement(_Form.Item, _objectSpread2(_objectSpread2({
|
@@ -7287,10 +7251,7 @@ var WForm = function WForm(props, ref) {
|
|
7287
7251
|
}
|
7288
7252
|
|
7289
7253
|
return /*#__PURE__*/React.createElement(_Col, _objectSpread2(_objectSpread2({
|
7290
|
-
|
7291
|
-
paddingLeft: '12px',
|
7292
|
-
paddingRight: '12px'
|
7293
|
-
}
|
7254
|
+
className: "pl12 pr12"
|
7294
7255
|
}, colProps), {}, {
|
7295
7256
|
key: c.dataIndex
|
7296
7257
|
}), /*#__PURE__*/React.createElement(_Form.Item, _objectSpread2(_objectSpread2({
|
@@ -7344,10 +7305,7 @@ var WForm = function WForm(props, ref) {
|
|
7344
7305
|
}
|
7345
7306
|
|
7346
7307
|
return /*#__PURE__*/React.createElement(_Col, _objectSpread2(_objectSpread2({
|
7347
|
-
|
7348
|
-
paddingLeft: '12px',
|
7349
|
-
paddingRight: '12px'
|
7350
|
-
}
|
7308
|
+
className: "pl12 pr12"
|
7351
7309
|
}, colProps), {}, {
|
7352
7310
|
key: c.dataIndex
|
7353
7311
|
}), /*#__PURE__*/React.createElement(_Form.Item, _objectSpread2(_objectSpread2({
|
@@ -7384,10 +7342,7 @@ var WForm = function WForm(props, ref) {
|
|
7384
7342
|
}
|
7385
7343
|
|
7386
7344
|
return /*#__PURE__*/React.createElement(_Col, _objectSpread2(_objectSpread2({
|
7387
|
-
|
7388
|
-
paddingLeft: '12px',
|
7389
|
-
paddingRight: '12px'
|
7390
|
-
}
|
7345
|
+
className: "pl12 pr12"
|
7391
7346
|
}, colProps), {}, {
|
7392
7347
|
key: c.dataIndex
|
7393
7348
|
}), /*#__PURE__*/React.createElement(_Form.Item, _objectSpread2(_objectSpread2({
|
@@ -7421,10 +7376,7 @@ var WForm = function WForm(props, ref) {
|
|
7421
7376
|
}
|
7422
7377
|
|
7423
7378
|
return /*#__PURE__*/React.createElement(_Col, _objectSpread2(_objectSpread2({
|
7424
|
-
|
7425
|
-
paddingLeft: '12px',
|
7426
|
-
paddingRight: '12px'
|
7427
|
-
}
|
7379
|
+
className: "pl12 pr12"
|
7428
7380
|
}, colProps), {}, {
|
7429
7381
|
key: c.dataIndex
|
7430
7382
|
}), /*#__PURE__*/React.createElement(_Form.Item, _objectSpread2(_objectSpread2({
|
@@ -7471,10 +7423,7 @@ var WForm = function WForm(props, ref) {
|
|
7471
7423
|
}
|
7472
7424
|
|
7473
7425
|
return /*#__PURE__*/React.createElement(_Col, _objectSpread2(_objectSpread2({
|
7474
|
-
|
7475
|
-
paddingLeft: '12px',
|
7476
|
-
paddingRight: '12px'
|
7477
|
-
}
|
7426
|
+
className: "pl12 pr12"
|
7478
7427
|
}, colProps), {}, {
|
7479
7428
|
key: c.dataIndex
|
7480
7429
|
}), /*#__PURE__*/React.createElement(_Form.Item, _objectSpread2(_objectSpread2({
|
@@ -7507,10 +7456,7 @@ var WForm = function WForm(props, ref) {
|
|
7507
7456
|
}
|
7508
7457
|
|
7509
7458
|
return /*#__PURE__*/React.createElement(_Col, _objectSpread2(_objectSpread2({
|
7510
|
-
|
7511
|
-
paddingLeft: '12px',
|
7512
|
-
paddingRight: '12px'
|
7513
|
-
}
|
7459
|
+
className: "pl12 pr12"
|
7514
7460
|
}, colProps), {}, {
|
7515
7461
|
key: c.dataIndex
|
7516
7462
|
}), /*#__PURE__*/React.createElement(_Form.Item, _objectSpread2(_objectSpread2({
|
@@ -7554,10 +7500,7 @@ var WForm = function WForm(props, ref) {
|
|
7554
7500
|
}
|
7555
7501
|
|
7556
7502
|
return /*#__PURE__*/React.createElement(_Col, _objectSpread2(_objectSpread2({
|
7557
|
-
|
7558
|
-
paddingLeft: '12px',
|
7559
|
-
paddingRight: '12px'
|
7560
|
-
}
|
7503
|
+
className: "pl12 pr12"
|
7561
7504
|
}, colProps), {}, {
|
7562
7505
|
key: c.dataIndex
|
7563
7506
|
}), /*#__PURE__*/React.createElement(_Form.Item, _objectSpread2(_objectSpread2({
|
@@ -7612,10 +7555,7 @@ var WForm = function WForm(props, ref) {
|
|
7612
7555
|
}
|
7613
7556
|
|
7614
7557
|
return /*#__PURE__*/React.createElement(_Col, _objectSpread2(_objectSpread2({
|
7615
|
-
|
7616
|
-
paddingLeft: '12px',
|
7617
|
-
paddingRight: '12px'
|
7618
|
-
}
|
7558
|
+
className: "pl12 pr12"
|
7619
7559
|
}, colProps), {}, {
|
7620
7560
|
key: c.dataIndex
|
7621
7561
|
}), /*#__PURE__*/React.createElement(_Form.Item, _objectSpread2(_objectSpread2({
|
@@ -7658,10 +7598,7 @@ var WForm = function WForm(props, ref) {
|
|
7658
7598
|
return _objectSpread2(_objectSpread2({}, preColumnsFields), {}, _defineProperty({}, c.dataIndex, _options4));
|
7659
7599
|
});
|
7660
7600
|
return /*#__PURE__*/React.createElement(_Col, _objectSpread2(_objectSpread2({
|
7661
|
-
|
7662
|
-
paddingLeft: '12px',
|
7663
|
-
paddingRight: '12px'
|
7664
|
-
}
|
7601
|
+
className: "pl12 pr12"
|
7665
7602
|
}, colProps), {}, {
|
7666
7603
|
key: c.dataIndex
|
7667
7604
|
}), /*#__PURE__*/React.createElement(_Form.Item, _objectSpread2(_objectSpread2({
|
@@ -7684,10 +7621,7 @@ var WForm = function WForm(props, ref) {
|
|
7684
7621
|
}
|
7685
7622
|
|
7686
7623
|
return /*#__PURE__*/React.createElement(_Col, _objectSpread2(_objectSpread2({
|
7687
|
-
|
7688
|
-
paddingLeft: '12px',
|
7689
|
-
paddingRight: '12px'
|
7690
|
-
}
|
7624
|
+
className: "pl12 pr12"
|
7691
7625
|
}, colProps), {}, {
|
7692
7626
|
key: c.dataIndex
|
7693
7627
|
}), /*#__PURE__*/React.createElement(_Form.Item, _objectSpread2(_objectSpread2({
|
@@ -7717,10 +7651,7 @@ var WForm = function WForm(props, ref) {
|
|
7717
7651
|
|
7718
7652
|
}), form);
|
7719
7653
|
return baseitem ? /*#__PURE__*/React.createElement(_Col, _objectSpread2(_objectSpread2({
|
7720
|
-
|
7721
|
-
paddingLeft: '12px',
|
7722
|
-
paddingRight: '12px'
|
7723
|
-
}
|
7654
|
+
className: "pl12 pr12"
|
7724
7655
|
}, colProps), {}, {
|
7725
7656
|
key: c.dataIndex
|
7726
7657
|
}), /*#__PURE__*/React.createElement(_Form.Item, _objectSpread2(_objectSpread2({
|
@@ -7740,10 +7671,7 @@ var WForm = function WForm(props, ref) {
|
|
7740
7671
|
}
|
7741
7672
|
|
7742
7673
|
return /*#__PURE__*/React.createElement(_Col, _objectSpread2(_objectSpread2({
|
7743
|
-
|
7744
|
-
paddingLeft: '12px',
|
7745
|
-
paddingRight: '12px'
|
7746
|
-
}
|
7674
|
+
className: "pl12 pr12"
|
7747
7675
|
}, colProps), {}, {
|
7748
7676
|
key: c.dataIndex
|
7749
7677
|
}), /*#__PURE__*/React.createElement(_Form.Item, _objectSpread2(_objectSpread2({
|
@@ -7767,10 +7695,7 @@ var WForm = function WForm(props, ref) {
|
|
7767
7695
|
}
|
7768
7696
|
|
7769
7697
|
return /*#__PURE__*/React.createElement(_Col, _objectSpread2(_objectSpread2({
|
7770
|
-
|
7771
|
-
paddingLeft: '12px',
|
7772
|
-
paddingRight: '12px'
|
7773
|
-
}
|
7698
|
+
className: "pl12 pr12"
|
7774
7699
|
}, colProps), {}, {
|
7775
7700
|
key: c.dataIndex
|
7776
7701
|
}), /*#__PURE__*/React.createElement(_Form.Item, _objectSpread2(_objectSpread2({
|
@@ -7793,10 +7718,7 @@ var WForm = function WForm(props, ref) {
|
|
7793
7718
|
}
|
7794
7719
|
|
7795
7720
|
return /*#__PURE__*/React.createElement(_Col, _objectSpread2(_objectSpread2({
|
7796
|
-
|
7797
|
-
paddingLeft: '12px',
|
7798
|
-
paddingRight: '12px'
|
7799
|
-
}
|
7721
|
+
className: "pl12 pr12"
|
7800
7722
|
}, colProps), {}, {
|
7801
7723
|
key: c.dataIndex
|
7802
7724
|
}), /*#__PURE__*/React.createElement(_Form.Item, _objectSpread2(_objectSpread2({
|
@@ -7923,9 +7845,9 @@ var WForm = function WForm(props, ref) {
|
|
7923
7845
|
}, []);
|
7924
7846
|
return /*#__PURE__*/React.createElement(_Form, _objectSpread2({
|
7925
7847
|
style: {
|
7926
|
-
marginBottom: '20px',
|
7927
7848
|
width: '100%'
|
7928
7849
|
},
|
7850
|
+
className: "mt10",
|
7929
7851
|
onFinish: handleSearch,
|
7930
7852
|
onValuesChange: function onValuesChange(changedValues, allValues) {
|
7931
7853
|
onFormChange && onFormChange(changedValues, allValues, form);
|
@@ -7933,10 +7855,7 @@ var WForm = function WForm(props, ref) {
|
|
7933
7855
|
},
|
7934
7856
|
form: form
|
7935
7857
|
}, extraProps), /*#__PURE__*/React.createElement(_Row, null, filterForm, filterExtraColumnsForm, search && search.hideSubmit ? null : /*#__PURE__*/React.createElement(_Col, {
|
7936
|
-
|
7937
|
-
paddingLeft: '12px',
|
7938
|
-
paddingRight: '12px'
|
7939
|
-
}
|
7858
|
+
className: "pl20 pr20"
|
7940
7859
|
}, /*#__PURE__*/React.createElement(_Form.Item, null, /*#__PURE__*/React.createElement("div", {
|
7941
7860
|
style: {
|
7942
7861
|
display: 'flex'
|
@@ -7944,49 +7863,37 @@ var WForm = function WForm(props, ref) {
|
|
7944
7863
|
}, search && search.optionRender && search.optionRender(search, props.form, [/*#__PURE__*/React.createElement(WButton, {
|
7945
7864
|
key: 'submit',
|
7946
7865
|
type: "primary",
|
7947
|
-
|
7948
|
-
marginRight: '20px'
|
7949
|
-
},
|
7866
|
+
className: "mr20",
|
7950
7867
|
htmlType: "submit",
|
7951
7868
|
icon: /*#__PURE__*/React.createElement(SearchOutlined, null)
|
7952
7869
|
}, search && search.searchText ? search.searchText : '提交')].concat(_toConsumableArray(search.hideResetBtn ? [] : [/*#__PURE__*/React.createElement(WButton, {
|
7953
7870
|
key: 'reset',
|
7954
7871
|
type: "primary",
|
7955
|
-
|
7956
|
-
marginRight: '20px'
|
7957
|
-
},
|
7872
|
+
className: "mr20",
|
7958
7873
|
onClick: handleRest,
|
7959
7874
|
icon: /*#__PURE__*/React.createElement(ReloadOutlined, null)
|
7960
7875
|
}, search && search.resetText ? search.resetText : '重置')]))), !search ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(WButton, {
|
7961
7876
|
key: 'submit',
|
7962
7877
|
type: "primary",
|
7963
|
-
|
7964
|
-
marginRight: '20px'
|
7965
|
-
},
|
7878
|
+
className: "mr20",
|
7966
7879
|
htmlType: "submit",
|
7967
7880
|
icon: /*#__PURE__*/React.createElement(SearchOutlined, null)
|
7968
7881
|
}, "\u63D0\u4EA4"), /*#__PURE__*/React.createElement(WButton, {
|
7969
7882
|
key: 'reset',
|
7970
7883
|
type: "primary",
|
7971
|
-
|
7972
|
-
marginRight: '20px'
|
7973
|
-
},
|
7884
|
+
className: "mr20",
|
7974
7885
|
icon: /*#__PURE__*/React.createElement(ReloadOutlined, null),
|
7975
7886
|
onClick: handleRest
|
7976
7887
|
}, "\u91CD\u7F6E")) : search && !search.optionRender ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(WButton, {
|
7977
7888
|
key: 'submit',
|
7978
7889
|
type: "primary",
|
7979
|
-
|
7980
|
-
marginRight: '20px'
|
7981
|
-
},
|
7890
|
+
className: "mr20",
|
7982
7891
|
htmlType: "submit",
|
7983
7892
|
icon: /*#__PURE__*/React.createElement(SearchOutlined, null)
|
7984
7893
|
}, search && search.searchText ? search.searchText : '提交'), search.hideResetBtn ? null : /*#__PURE__*/React.createElement(WButton, {
|
7985
7894
|
key: 'reset',
|
7986
7895
|
type: "primary",
|
7987
|
-
|
7988
|
-
marginRight: '20px'
|
7989
|
-
},
|
7896
|
+
className: "mr20",
|
7990
7897
|
icon: /*#__PURE__*/React.createElement(ReloadOutlined, null),
|
7991
7898
|
onClick: handleRest
|
7992
7899
|
}, search && search.resetText ? search.resetText : '重置')) : null)))));
|
@@ -7995,6 +7902,7 @@ var WForm = function WForm(props, ref) {
|
|
7995
7902
|
var WForm$1 = /*#__PURE__*/React.forwardRef(WForm);
|
7996
7903
|
|
7997
7904
|
var _excluded$7 = ["columns", "dataSource", "request", "onLoad", "params", "onSubmit", "rowKey", "onRow", "className", "rowClassName", "rowSelection", "style", "tbodyStyle", "thStyle", "border", "scroll", "pagination", "search", "frameBoxTable", "frameBoxDirection", "formRef", "none"];
|
7905
|
+
|
7998
7906
|
function Table(_ref) {
|
7999
7907
|
var _formSearchRef$curren4, _classnames2, _columns$, _columns$2;
|
8000
7908
|
|
@@ -8409,7 +8317,7 @@ function Table(_ref) {
|
|
8409
8317
|
case 7:
|
8410
8318
|
res = _context.sent;
|
8411
8319
|
setLoading(false);
|
8412
|
-
onLoad && onLoad(res.data);
|
8320
|
+
onLoad && onLoad(res.data, res);
|
8413
8321
|
setDataSource(res.data);
|
8414
8322
|
setTotal(res.total || 0);
|
8415
8323
|
setpaginationParams(function (c) {
|
@@ -8550,14 +8458,16 @@ function Table(_ref) {
|
|
8550
8458
|
}
|
8551
8459
|
}, none || '暂无数据')))), _typeof(pagination) === 'object' && /*#__PURE__*/React.createElement(_Pagination, _objectSpread2({
|
8552
8460
|
style: {
|
8553
|
-
textAlign: 'right'
|
8554
|
-
|
8555
|
-
|
8461
|
+
textAlign: 'right'
|
8462
|
+
},
|
8463
|
+
className: "mt10"
|
8556
8464
|
}, paginationParams)));
|
8557
8465
|
}
|
8466
|
+
|
8558
8467
|
Table.defaultProps = {
|
8559
8468
|
rowKey: 'key'
|
8560
8469
|
};
|
8470
|
+
var index$1 = /*#__PURE__*/memo(Table);
|
8561
8471
|
|
8562
8472
|
var _excluded$8 = ["height", "width", "count", "style", "numberStyle"],
|
8563
8473
|
_excluded2$2 = ["count", "numberCount", "width", "height", "marginRight"];
|
@@ -9657,7 +9567,7 @@ var Index$c = function Index(_ref, ref) {
|
|
9657
9567
|
}))));
|
9658
9568
|
};
|
9659
9569
|
|
9660
|
-
var index$
|
9570
|
+
var index$2 = /*#__PURE__*/forwardRef(Index$c);
|
9661
9571
|
|
9662
9572
|
var controlShow = function controlShow(f1, f2, value, timer) {
|
9663
9573
|
f1(value);
|
@@ -10323,6 +10233,182 @@ Modal$1.hidden = function () {
|
|
10323
10233
|
ModalContainer[modelSysbol] && ModalContainer[modelSysbol].hidden();
|
10324
10234
|
};
|
10325
10235
|
|
10236
|
+
function DragBox(_ref) {
|
10237
|
+
var title = _ref.title,
|
10238
|
+
children = _ref.children,
|
10239
|
+
closeIcon = _ref.closeIcon,
|
10240
|
+
onClose = _ref.onClose,
|
10241
|
+
visible = _ref.visible,
|
10242
|
+
isDrag = _ref.isDrag,
|
10243
|
+
isResize = _ref.isResize,
|
10244
|
+
className = _ref.className,
|
10245
|
+
style = _ref.style;
|
10246
|
+
var titleRef = useRef(null);
|
10247
|
+
var containerRef = useRef(null);
|
10248
|
+
var rRef = useRef(null);
|
10249
|
+
var bRef = useRef(null);
|
10250
|
+
var rbRef = useRef(null);
|
10251
|
+
|
10252
|
+
var _useState = useState(false),
|
10253
|
+
_useState2 = _slicedToArray(_useState, 2),
|
10254
|
+
delayVisiable = _useState2[0],
|
10255
|
+
setDelayVisiable = _useState2[1];
|
10256
|
+
|
10257
|
+
useEffect(function () {
|
10258
|
+
var timer = null;
|
10259
|
+
|
10260
|
+
if (visible) {
|
10261
|
+
setDelayVisiable(visible);
|
10262
|
+
} else {
|
10263
|
+
timer = setTimeout(function () {
|
10264
|
+
setDelayVisiable(visible);
|
10265
|
+
}, 1000);
|
10266
|
+
}
|
10267
|
+
|
10268
|
+
return function () {
|
10269
|
+
timer && clearTimeout(timer);
|
10270
|
+
};
|
10271
|
+
}, [visible]);
|
10272
|
+
useEffect(function () {
|
10273
|
+
var tltleEl = titleRef.current;
|
10274
|
+
var containerEl = containerRef.current;
|
10275
|
+
var tltleElOnmousedown = null;
|
10276
|
+
|
10277
|
+
if (tltleEl && containerEl && isDrag) {
|
10278
|
+
tltleElOnmousedown = function tltleElOnmousedown(eventDown) {
|
10279
|
+
var left = containerEl.offsetLeft;
|
10280
|
+
var top = containerEl.offsetTop;
|
10281
|
+
var downX = eventDown.clientX;
|
10282
|
+
var downY = eventDown.clientY;
|
10283
|
+
|
10284
|
+
document.onmousemove = function (eventMove) {
|
10285
|
+
eventMove.stopPropagation();
|
10286
|
+
eventMove.preventDefault();
|
10287
|
+
var moveX = eventMove.clientX - downX;
|
10288
|
+
var moveY = eventMove.clientY - downY;
|
10289
|
+
containerEl.style.left = "".concat(left + moveX, "px");
|
10290
|
+
containerEl.style.top = "".concat(top + moveY, "px");
|
10291
|
+
};
|
10292
|
+
};
|
10293
|
+
|
10294
|
+
tltleEl.onmousedown = tltleElOnmousedown;
|
10295
|
+
}
|
10296
|
+
|
10297
|
+
var rEl = rRef.current;
|
10298
|
+
var bEl = bRef.current;
|
10299
|
+
var rbEl = rbRef.current;
|
10300
|
+
var rElOnmousedown = null;
|
10301
|
+
var bElOnmousedown = null;
|
10302
|
+
var rbElOnmousedown = null;
|
10303
|
+
|
10304
|
+
if (containerEl && isResize && rEl && bEl && rbEl) {
|
10305
|
+
rElOnmousedown = function rElOnmousedown(e) {
|
10306
|
+
var disX = e.clientX - rEl.offsetLeft;
|
10307
|
+
|
10308
|
+
document.onmousemove = function (e) {
|
10309
|
+
e.stopPropagation();
|
10310
|
+
e.preventDefault();
|
10311
|
+
var l = e.clientX - disX;
|
10312
|
+
containerEl.style.width = "".concat(l, "px");
|
10313
|
+
};
|
10314
|
+
|
10315
|
+
document.onmouseup = function (e) {
|
10316
|
+
document.onmousemove = null;
|
10317
|
+
};
|
10318
|
+
};
|
10319
|
+
|
10320
|
+
rEl.onmousedown = rElOnmousedown;
|
10321
|
+
|
10322
|
+
bElOnmousedown = function bElOnmousedown(e) {
|
10323
|
+
var disY = e.clientY - bEl.offsetTop;
|
10324
|
+
|
10325
|
+
document.onmousemove = function (e) {
|
10326
|
+
e.stopPropagation();
|
10327
|
+
e.preventDefault();
|
10328
|
+
var h = e.clientY - disY;
|
10329
|
+
containerEl.style.height = "".concat(h, "px");
|
10330
|
+
};
|
10331
|
+
|
10332
|
+
document.onmouseup = function (e) {
|
10333
|
+
document.onmousemove = null;
|
10334
|
+
};
|
10335
|
+
};
|
10336
|
+
|
10337
|
+
bEl.onmousedown = bElOnmousedown;
|
10338
|
+
|
10339
|
+
rbElOnmousedown = function rbElOnmousedown(e) {
|
10340
|
+
var disX = e.clientX - rbEl.offsetLeft;
|
10341
|
+
var disY = e.clientY - rbEl.offsetTop;
|
10342
|
+
|
10343
|
+
document.onmousemove = function (e) {
|
10344
|
+
e.stopPropagation();
|
10345
|
+
e.preventDefault();
|
10346
|
+
var l = e.clientX - disX;
|
10347
|
+
var h = e.clientY - disY;
|
10348
|
+
containerEl.style.width = "".concat(l, "px");
|
10349
|
+
containerEl.style.height = "".concat(h, "px");
|
10350
|
+
};
|
10351
|
+
|
10352
|
+
document.onmouseup = function (e) {
|
10353
|
+
document.onmousemove = null;
|
10354
|
+
};
|
10355
|
+
};
|
10356
|
+
|
10357
|
+
rbEl.onmousedown = rbElOnmousedown;
|
10358
|
+
}
|
10359
|
+
|
10360
|
+
document.onmouseup = function (eventMove) {
|
10361
|
+
document.onmousemove = null;
|
10362
|
+
};
|
10363
|
+
|
10364
|
+
return function () {
|
10365
|
+
if (tltleElOnmousedown) {
|
10366
|
+
document.onmousemove = null;
|
10367
|
+
}
|
10368
|
+
|
10369
|
+
if (rElOnmousedown) {
|
10370
|
+
rElOnmousedown = null;
|
10371
|
+
}
|
10372
|
+
|
10373
|
+
if (bElOnmousedown) {
|
10374
|
+
rElOnmousedown = null;
|
10375
|
+
}
|
10376
|
+
|
10377
|
+
if (rbElOnmousedown) {
|
10378
|
+
rElOnmousedown = null;
|
10379
|
+
}
|
10380
|
+
};
|
10381
|
+
}, [isDrag, delayVisiable, visible, isResize]);
|
10382
|
+
return delayVisiable ? /*#__PURE__*/React.createElement("div", {
|
10383
|
+
ref: containerRef,
|
10384
|
+
className: "drag-container ".concat(visible ? 'animation-fade' : 'animation-fade-out', " ").concat(className),
|
10385
|
+
style: _objectSpread2({
|
10386
|
+
animationDelay: "0.3s"
|
10387
|
+
}, style || {})
|
10388
|
+
}, isResize && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
10389
|
+
ref: rRef,
|
10390
|
+
className: "resizer"
|
10391
|
+
}), /*#__PURE__*/React.createElement("div", {
|
10392
|
+
ref: bRef,
|
10393
|
+
className: "resizeb"
|
10394
|
+
}), /*#__PURE__*/React.createElement("div", {
|
10395
|
+
ref: rbRef,
|
10396
|
+
className: "resizerb"
|
10397
|
+
})), /*#__PURE__*/React.createElement("div", {
|
10398
|
+
ref: titleRef,
|
10399
|
+
className: "drag-title ".concat(isDrag ? 'move' : '')
|
10400
|
+
}, title, /*#__PURE__*/React.createElement("span", {
|
10401
|
+
style: {
|
10402
|
+
cursor: 'pointer'
|
10403
|
+
},
|
10404
|
+
onClick: function onClick() {
|
10405
|
+
onClose && onClose();
|
10406
|
+
}
|
10407
|
+
}, closeIcon || /*#__PURE__*/React.createElement(CloseCircleOutlined, null))), /*#__PURE__*/React.createElement("div", {
|
10408
|
+
className: "drag-body"
|
10409
|
+
}, children)) : /*#__PURE__*/React.createElement(React.Fragment, null);
|
10410
|
+
}
|
10411
|
+
|
10326
10412
|
var _excluded$g = ["columns", "extraColumns", "search", "visible", "setVisible", "disabled", "submitMethod", "onSubmitSuccess", "title", "record", "onFormChange", "formItemChild"];
|
10327
10413
|
|
10328
10414
|
var ModalForm = function ModalForm(props, ref) {
|
@@ -10995,7 +11081,7 @@ var TabelCard = function TabelCard(props, ref) {
|
|
10995
11081
|
}, extraProps)));
|
10996
11082
|
};
|
10997
11083
|
|
10998
|
-
var index$
|
11084
|
+
var index$3 = /*#__PURE__*/React.forwardRef(TabelCard);
|
10999
11085
|
|
11000
11086
|
var WebsocketHeart = /*#__PURE__*/_createClass(function WebsocketHeart(_ref) {
|
11001
11087
|
var _this = this;
|
@@ -11431,7 +11517,7 @@ function VideoPlayer(_ref, ref) {
|
|
11431
11517
|
})) : null));
|
11432
11518
|
}
|
11433
11519
|
|
11434
|
-
var index$
|
11520
|
+
var index$4 = /*#__PURE__*/forwardRef(VideoPlayer);
|
11435
11521
|
|
11436
11522
|
var _excluded$i = ["id", "videoUrls", "definitionList", "isLoop", "muted", "currentIndex", "setCurrentIndex", "className", "style", "visible", "autoplay", "videoInit", "enableMemory", "lastPlayTimeHideDelay"];
|
11437
11523
|
|
@@ -11440,7 +11526,7 @@ var DEFAULT_PLAY_BACK_RATE = [0.5, 0.75, 1, 1.5, 2]; // 默认记忆提示文字
|
|
11440
11526
|
var DEFAULT_LAST_PLAY_TIME_DELAY = 5; // 默认音量大小
|
11441
11527
|
|
11442
11528
|
var DEFAULT_VOLUME = 0.6;
|
11443
|
-
var index$
|
11529
|
+
var index$5 = (function (_ref) {
|
11444
11530
|
var id = _ref.id,
|
11445
11531
|
_ref$videoUrls = _ref.videoUrls,
|
11446
11532
|
videoUrls = _ref$videoUrls === void 0 ? [] : _ref$videoUrls,
|
@@ -12442,4 +12528,4 @@ function WaterLevelCharts(config) {
|
|
12442
12528
|
});
|
12443
12529
|
}
|
12444
12530
|
|
12445
|
-
export { Index$9 as AutoScroll, Index$b as Breadcrumb, WButton as Button, index$
|
12531
|
+
export { Index$9 as AutoScroll, Index$b as Breadcrumb, WButton as Button, index$2 as Card, WCascader as Cascader, Index$3 as Checkbox, Index$8 as CountUp, Index$1 as DatePicker, DragBox, index as IconFont, Index as Input, WInputNumber as InputNumber, LineEcharts, Modal, ModalForm$1 as ModalForm, Modal$1 as ModalTips, Index$7 as Number, NumericInput, Index$2 as Radio, Select, Index$a as Swiper, WSwitch as Switch, index$3 as TabelCard, index$1 as Table, Index$6 as TreeSelect, index$5 as Video, index$4 as VideoPlayer, Index$5 as WDatePicker, WForm$1 as WForm, WaterLevelCharts, WebsocketHeart };
|