@bchr/bchr-front-lib 0.3.116 → 0.3.117
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.
|
@@ -9,16 +9,12 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
|
|
10
10
|
var _treeview = _interopRequireDefault(require("@progress/kendo-treeview-react-wrapper/dist/npm/treeview"));
|
|
11
11
|
|
|
12
|
-
var _antd =
|
|
12
|
+
var _antd = require("antd");
|
|
13
13
|
|
|
14
14
|
var _kendoReactGrid = require("@progress/kendo-react-grid");
|
|
15
15
|
|
|
16
16
|
var _bchrFrontLib = require("@bchr/bchr-front-lib");
|
|
17
17
|
|
|
18
|
-
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
19
|
-
|
|
20
|
-
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
21
|
-
|
|
22
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
23
19
|
|
|
24
20
|
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
@@ -509,6 +505,7 @@ var LeftOrgTreeRightPersonGridForSelectPsnModal = /*#__PURE__*/function (_React$
|
|
|
509
505
|
onSelectionChange: this.onGridRowSelectionChange,
|
|
510
506
|
onHeaderSelectionChange: this.onGridHeaderSelectionChange
|
|
511
507
|
}), this.props.selectType && this.props.selectType === 'single' ? /*#__PURE__*/_react["default"].createElement(_kendoReactGrid.GridColumn, {
|
|
508
|
+
locked: true,
|
|
512
509
|
field: "selected",
|
|
513
510
|
title: "\u9009\u62E9",
|
|
514
511
|
width: "55px",
|
|
@@ -519,8 +516,12 @@ var LeftOrgTreeRightPersonGridForSelectPsnModal = /*#__PURE__*/function (_React$
|
|
|
519
516
|
},
|
|
520
517
|
cell: function cell(props) {
|
|
521
518
|
return /*#__PURE__*/_react["default"].createElement("td", {
|
|
522
|
-
className: "text-center"
|
|
523
|
-
|
|
519
|
+
className: "text-center locked_column k-grid-content-sticky",
|
|
520
|
+
style: {
|
|
521
|
+
left: "0px",
|
|
522
|
+
right: "0px"
|
|
523
|
+
}
|
|
524
|
+
}, /*#__PURE__*/_react["default"].createElement(_antd.Radio, {
|
|
524
525
|
name: "selectDef",
|
|
525
526
|
defaultChecked: props.dataItem.selected,
|
|
526
527
|
className: "grid-radio",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import TreeView from "@progress/kendo-treeview-react-wrapper/dist/npm/treeview";
|
|
3
|
-
import
|
|
3
|
+
import {Checkbox, Input, Radio} from "antd";
|
|
4
4
|
import {Grid, GridColumn} from "@progress/kendo-react-grid";
|
|
5
5
|
import {GridRowSequenceNumberCell, SmartMessage, HttpService, SModal} from "@bchr/bchr-front-lib";
|
|
6
6
|
|
|
@@ -445,14 +445,14 @@ class LeftOrgTreeRightPersonGridForSelectPsnModal extends React.Component {
|
|
|
445
445
|
onHeaderSelectionChange={this.onGridHeaderSelectionChange}
|
|
446
446
|
>
|
|
447
447
|
{
|
|
448
|
-
this.props.selectType && this.props.selectType ==='single' ? <GridColumn field="selected" title="选择" width="55px" className={"text-center"}
|
|
448
|
+
this.props.selectType && this.props.selectType ==='single' ? <GridColumn locked field="selected" title="选择" width="55px" className={"text-center"}
|
|
449
449
|
sortable={false}
|
|
450
450
|
headerCell={props => {
|
|
451
451
|
return (<span>选择</span>)
|
|
452
452
|
}}
|
|
453
453
|
cell={(props) => {
|
|
454
454
|
return (
|
|
455
|
-
<td className={"text-center"}>
|
|
455
|
+
<td className={"text-center locked_column k-grid-content-sticky"} style={{left: "0px", right: "0px"}}>
|
|
456
456
|
<Radio name='selectDef' defaultChecked={props.dataItem.selected}
|
|
457
457
|
className={"grid-radio"} key={props.dataIndex}
|
|
458
458
|
onChange={this.selectPsnRadiosChange.bind(this, props)}
|