cnhis-design-vue 3.1.16-beta.3 → 3.1.16-beta.4

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.
@@ -1169,7 +1169,14 @@ declare const _default: import("vue").DefineComponent<{
1169
1169
  paddingRoundTiny: string;
1170
1170
  paddingRoundSmall: string;
1171
1171
  paddingRoundMedium: string;
1172
- paddingRoundLarge: string;
1172
+ paddingRoundLarge: string; /**
1173
+ * 初始化props
1174
+ * @param {*} unionItem
1175
+ * @param {*} row
1176
+ * @param {*} column
1177
+ * @param {*} $rowIndex
1178
+ * @returns
1179
+ */
1173
1180
  iconMarginTiny: string;
1174
1181
  iconMarginSmall: string;
1175
1182
  iconMarginMedium: string;
@@ -1232,7 +1239,10 @@ declare const _default: import("vue").DefineComponent<{
1232
1239
  borderPressed: string;
1233
1240
  borderFocus: string;
1234
1241
  borderDisabled: string;
1235
- rippleColor: string;
1242
+ rippleColor: string; /**
1243
+ * 单个form提交失败
1244
+ * @param {*} obj
1245
+ */
1236
1246
  colorPrimary: string;
1237
1247
  colorHoverPrimary: string;
1238
1248
  colorPressedPrimary: string;
@@ -1258,9 +1268,6 @@ declare const _default: import("vue").DefineComponent<{
1258
1268
  borderPressedPrimary: string;
1259
1269
  borderFocusPrimary: string;
1260
1270
  borderDisabledPrimary: string;
1261
- /**
1262
- * tsx渲染表格
1263
- */
1264
1271
  rippleColorPrimary: string;
1265
1272
  colorInfo: string;
1266
1273
  colorHoverInfo: string;
@@ -1371,7 +1371,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
1371
1371
  emit("checkboxChange", {
1372
1372
  checked: checked2,
1373
1373
  row,
1374
- index: $rowIndex
1374
+ index: $rowIndex,
1375
+ records: [row]
1375
1376
  });
1376
1377
  return;
1377
1378
  }
@@ -1444,7 +1445,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
1444
1445
  emit("checkboxChange", {
1445
1446
  checked: setChecked,
1446
1447
  row,
1447
- index: $rowIndex
1448
+ index: $rowIndex,
1449
+ records: checkedRow
1448
1450
  });
1449
1451
  setChecked && emit("handlerClickRow", row, $rowIndex);
1450
1452
  return;
@@ -1461,7 +1463,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
1461
1463
  emit("checkboxChange", {
1462
1464
  checked: setChecked,
1463
1465
  row,
1464
- index: $rowIndex
1466
+ index: $rowIndex,
1467
+ records: checkedRow
1465
1468
  });
1466
1469
  setChecked && emit("handlerClickRow", row, $rowIndex);
1467
1470
  };
@@ -1481,6 +1484,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
1481
1484
  };
1482
1485
  const treeTableSelectionChange = (records) => {
1483
1486
  if (state.isTree == 0) {
1487
+ emit("selectionChange", records);
1484
1488
  return false;
1485
1489
  }
1486
1490
  pubCheckChange(records);
@@ -1501,7 +1505,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
1501
1505
  emit("checkboxChange", {
1502
1506
  checked,
1503
1507
  row,
1504
- index: $rowIndex
1508
+ index: $rowIndex,
1509
+ records
1505
1510
  });
1506
1511
  if (treeTableSelectionChange(records))
1507
1512
  return;
@@ -115,7 +115,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
115
115
  const times = top.xScalevalue.times;
116
116
  let left = originX.value - xCellWidth.value;
117
117
  function getDate(date) {
118
- return String(date).length < 9 ? `20${date}` : date;
118
+ const [year = "2022", month = "01", day = "01"] = String(date).match(/\d+/g) || [];
119
+ return `20${year}`.slice(-4) + "-" + `00${month}`.slice(-2) + "-" + `00${day}`.slice(-2);
119
120
  }
120
121
  const timeList = dateList.map((item) => {
121
122
  return times.map((v) => {
@@ -14,9 +14,9 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
14
14
  [x: `on${string}`]: ((...args: any[]) => any) | ((...args: unknown[]) => any) | undefined;
15
15
  }>>;
16
16
  commonConfig: {
17
- onMove: ({ to, from }: import("sortablejs").SortableEvent) => void;
18
- onChoose: ({ target, item }: import("sortablejs").SortableEvent) => void;
19
- onUnchoose: ({ from, to, target, item }: import("sortablejs").SortableEvent) => void;
17
+ onMove: ({ to, from }: Sortable.SortableEvent) => void;
18
+ onChoose: ({ target, item }: Sortable.SortableEvent) => void;
19
+ onUnchoose: ({ from, to, target, item }: Sortable.SortableEvent) => void;
20
20
  tag: string;
21
21
  animation: string;
22
22
  'item-key': string;
@@ -16,9 +16,9 @@ declare const _default: import("vue").DefineComponent<{
16
16
  [x: `on${string}`]: ((...args: any[]) => any) | ((...args: unknown[]) => any) | undefined;
17
17
  }>>;
18
18
  commonConfig: {
19
- onMove: ({ to, from }: import("sortablejs").SortableEvent) => void;
20
- onChoose: ({ target, item }: import("sortablejs").SortableEvent) => void;
21
- onUnchoose: ({ from, to, target, item }: import("sortablejs").SortableEvent) => void;
19
+ onMove: ({ to, from }: Sortable.SortableEvent) => void;
20
+ onChoose: ({ target, item }: Sortable.SortableEvent) => void;
21
+ onUnchoose: ({ from, to, target, item }: Sortable.SortableEvent) => void;
22
22
  tag: string;
23
23
  animation: string;
24
24
  'item-key': string;
@@ -1,4 +1,3 @@
1
- import Sortable from 'sortablejs';
2
1
  export declare function useSortable(): {
3
2
  commonConfig: {
4
3
  onMove: ({ to, from }: Sortable.SortableEvent) => void;
package/global.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- import * as NaiveUI from 'naive-ui';
2
-
3
- declare module 'naive-ui' {
4
- // @ts-ignore
5
- export const NTree: any;
6
- }
7
-
8
- export {};
1
+ import * as NaiveUI from 'naive-ui';
2
+
3
+ declare module 'naive-ui' {
4
+ // @ts-ignore
5
+ export const NTree: any;
6
+ }
7
+
8
+ export {};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cnhis-design-vue",
3
3
  "private": false,
4
- "version": "3.1.16-beta.3",
4
+ "version": "3.1.16-beta.4",
5
5
  "license": "ISC",
6
6
  "module": "es/packages/index.js",
7
7
  "main": "es/packages/index.js",