@deepinnet-components/pc 0.0.24 → 0.0.26

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.
@@ -17,7 +17,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
17
17
  function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
18
18
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
19
19
  import { ShenduTable } from "../..";
20
- import { Button, message } from 'antd';
20
+ import { Button, message, Tooltip } from 'antd';
21
21
  import dayjs from 'dayjs';
22
22
  import React, { useContext, useRef, useState } from 'react';
23
23
  import CreateAccount from "./components/CreateAccount";
@@ -109,6 +109,25 @@ var AccountList = function AccountList() {
109
109
  }, item.name), !isLast && /*#__PURE__*/React.createElement("div", null, "/"));
110
110
  }));
111
111
  }
112
+ }, {
113
+ title: '角色',
114
+ dataIndex: 'roles',
115
+ width: 150,
116
+ render: function render(_) {
117
+ var arr = _ === null || _ === void 0 ? void 0 : _[0];
118
+ if (!(_ !== null && _ !== void 0 && _.length)) return '-';
119
+ var text = '';
120
+ _.forEach(function (item, index) {
121
+ text += item.roleName;
122
+ if (index !== _.length - 1) text += '/';
123
+ });
124
+ return /*#__PURE__*/React.createElement(Tooltip, {
125
+ placement: "top",
126
+ title: text
127
+ }, /*#__PURE__*/React.createElement("div", {
128
+ className: "truncate"
129
+ }, text));
130
+ }
112
131
  }, {
113
132
  title: '创建人',
114
133
  dataIndex: 'creatorName',
@@ -84,10 +84,12 @@ var schema = {
84
84
  }, {
85
85
  value: 3,
86
86
  label: '组织数据(全局)'
87
- }, {
88
- value: 2,
89
- label: '组织数据(本级及下属)'
90
- }, {
87
+ },
88
+ // {
89
+ // value: 2,
90
+ // label: '组织数据(本级及下属)',
91
+ // },
92
+ {
91
93
  value: 1,
92
94
  label: '个人数据'
93
95
  }]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deepinnet-components/pc",
3
- "version": "0.0.24",
3
+ "version": "0.0.26",
4
4
  "description": "A react library developed with dumi",
5
5
  "license": "MIT",
6
6
  "module": "dist/index.js",