@utogether/utils 3.0.0-beta.34 → 3.0.0-beta.36

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.
@@ -8,6 +8,7 @@ export declare const i18nColums: (columns: any, sortable?: boolean) => any;
8
8
  * @description: form item数据标准化
9
9
  * @param {*} items item
10
10
  * @param {*} status 状态
11
+ * @param {*} t 多语言转换函数
11
12
  * @return {*} form item数据标准化后的数据
12
13
  */
13
14
  export declare const formatItems: (items: any, status: any, span?: number) => any;
@@ -78,6 +78,7 @@ export declare const useRender: () => {
78
78
  props: {
79
79
  mapField: {};
80
80
  defaultParams: any;
81
+ disabled: any;
81
82
  url: string;
82
83
  fetchField: string;
83
84
  };
@@ -92,6 +93,7 @@ export declare const useRender: () => {
92
93
  name: string;
93
94
  props: {
94
95
  mapField: {};
96
+ disabled: any;
95
97
  defaultParams: any;
96
98
  url: string;
97
99
  fetchField: string;
package/dist/utils.es.js CHANGED
@@ -1253,7 +1253,6 @@ const useRender = () => {
1253
1253
  disabled: c == null ? void 0 : c.disabled,
1254
1254
  defaultValue: c == null ? void 0 : c.defaultValue,
1255
1255
  mapField: c == null ? void 0 : c.mapField,
1256
- code: "SYS037",
1257
1256
  url: "/uums/employee/listEmployeeIsUser",
1258
1257
  fetchField: "employeeName"
1259
1258
  }
@@ -1277,6 +1276,7 @@ const useRender = () => {
1277
1276
  }, C = {
1278
1277
  mapField: {},
1279
1278
  defaultParams: c == null ? void 0 : c.defaultParams,
1279
+ disabled: c == null ? void 0 : c.disabled,
1280
1280
  url: "/uums/cusOrganization",
1281
1281
  fetchField: "organizationName"
1282
1282
  }, L = {
@@ -1296,6 +1296,7 @@ const useRender = () => {
1296
1296
  value: (c == null ? void 0 : c.field) || "orgName"
1297
1297
  }, C = {
1298
1298
  mapField: {},
1299
+ disabled: c == null ? void 0 : c.disabled,
1299
1300
  defaultParams: c == null ? void 0 : c.defaultParams,
1300
1301
  url: "/uums/org",
1301
1302
  fetchField: "orgName"
@@ -1318,7 +1319,7 @@ const useRender = () => {
1318
1319
  }, v = (c, H) => {
1319
1320
  const u = Object.assign({ disabled: !1, rows: 3 }, c), C = u == null ? void 0 : u.defaultValue;
1320
1321
  return {
1321
- name: "#textarea",
1322
+ name: "VxeTextarea",
1322
1323
  props: u,
1323
1324
  defaultValue: C,
1324
1325
  events: w(H)
@@ -1528,14 +1529,15 @@ const deviceDetection = () => {
1528
1529
  return h.children = formatItems(h.children, l, o), h;
1529
1530
  {
1530
1531
  h.title = h.title || `message.${h.field}`, h.span = h.span || o, h.type === "collapseNode" && (h.title = "", h.titleWidth = 0);
1531
- let t = !1;
1532
- l === "detail" ? (t = !0, h.placeholder = null) : t = h.disabled === !1 ? h.disabled : h.disabled || ((i = (e = h.itemRender) == null ? void 0 : e.props) == null ? void 0 : i.disabled);
1533
- let v = {
1532
+ let t = !1, v = window.$i18n ? window.$i18n("message.udp.placeholder") + window.$i18n(h.title) : "";
1533
+ l === "detail" ? (t = !0, v = null) : t = h.disabled === !1 ? h.disabled : h.disabled || ((i = (e = h.itemRender) == null ? void 0 : e.props) == null ? void 0 : i.disabled);
1534
+ let Z = {
1534
1535
  name: "VxeInput",
1535
- props: { disabled: t, placeholder: t ? "" : h.placeholder }
1536
+ props: { disabled: t, placeholder: t ? "" : v }
1536
1537
  };
1537
- return h.code && !h.itemRender && (v = renderHook.renderDict(h.code)), h.itemRender = h.itemRender || v, h.itemRender.props = Object.assign(h.itemRender.props || {}, {
1538
- disabled: t
1538
+ return h.code && !h.itemRender && (Z = renderHook.renderDict(h.code)), h.itemRender = h.itemRender || Z, h.itemRender.props = Object.assign(h.itemRender.props || {}, {
1539
+ disabled: t,
1540
+ placeholder: t ? "" : v
1539
1541
  }), h;
1540
1542
  }
1541
1543
  }) : a, formSearchButtons = {