cnhis-design-vue 3.3.1-beta.60 → 3.3.1-beta.61

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.
@@ -116,8 +116,11 @@ const script = /* @__PURE__ */ defineComponent({
116
116
  return;
117
117
  field.value.validator = [{
118
118
  async validator() {
119
+ var _a;
119
120
  if (!isArray(valueRef.value) || !valueRef.value.length)
120
121
  return;
122
+ if (((_a = last(valueRef.value)) == null ? void 0 : _a.lvlnr) === (props.wordbook.level_num || Infinity) - 1)
123
+ return;
121
124
  try {
122
125
  if (await nodeHasChild(last(valueRef.value)))
123
126
  return isString(props.validateLastNode) ? props.validateLastNode : "\u8BF7\u9009\u62E9\u6700\u540E\u4E00\u7EA7\u9009\u9879";
@@ -539,9 +539,6 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
539
539
  }
540
540
  function setCheckdWithAll(tree, checked) {
541
541
  var _a3;
542
- if (!props.onlyForwardCascade) {
543
- checkedKeys.value = [];
544
- }
545
542
  let newKeys = checkedKeys.value;
546
543
  for (let i = 0, len = tree.length; i < len; i++) {
547
544
  const item = tree[i];
@@ -552,7 +549,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
552
549
  remove(newKeys, (key) => [item.key].includes(key));
553
550
  }
554
551
  }
555
- if (((_a3 = item.children) == null ? void 0 : _a3.length) && props.onlyForwardCascade) {
552
+ if ((_a3 = item.children) == null ? void 0 : _a3.length) {
556
553
  const flattenKeys = getFlattenKeys(item.children);
557
554
  if (checked) {
558
555
  newKeys = union(newKeys, flattenKeys);
@@ -561,7 +558,13 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
561
558
  }
562
559
  }
563
560
  }
564
- checkedKeys.value = newKeys;
561
+ if (props.showSelectType) {
562
+ const curType = curSelectKey.value;
563
+ checkedKeys.value = checkedKeysMiddle[curType] = newKeys;
564
+ return;
565
+ } else {
566
+ checkedKeys.value = newKeys;
567
+ }
565
568
  }
566
569
  function checkedAllChange(checked) {
567
570
  setTreeCheckd(treeData.value, checked);
@@ -1,5 +1,5 @@
1
1
  var name = "@cnhis-design-vue/shared";
2
- var version = "3.3.1-beta.60";
2
+ var version = "3.3.1-beta.61";
3
3
  var main = "index.ts";
4
4
  var peerDependencies = {
5
5
  "naive-ui": "^2.30.0",
package/package.json CHANGED
@@ -1,77 +1,77 @@
1
- {
2
- "name": "cnhis-design-vue",
3
- "version": "3.3.1-beta.60",
4
- "license": "ISC",
5
- "module": "./es/components/index.js",
6
- "main": "./es/components/index.js",
7
- "types": "./es/components/index.d.ts",
8
- "sideEffects": [
9
- "es/components/**/style/*",
10
- "es/components/*(.css,.less)"
11
- ],
12
- "files": [
13
- "es",
14
- "README.md"
15
- ],
16
- "peerDependencies": {
17
- "@fullcalendar/core": "^6.1.10",
18
- "@fullcalendar/interaction": "^6.1.10",
19
- "@fullcalendar/resource": "^6.1.10",
20
- "@fullcalendar/resource-timegrid": "^6.1.10",
21
- "@fullcalendar/scrollgrid": "^6.1.10",
22
- "@fullcalendar/vue3": "^6.1.10",
23
- "naive-ui": "^2.34.0",
24
- "vue": "^3.2.0",
25
- "vxe-table": "^4.2.5"
26
- },
27
- "dependencies": {
28
- "@formily/core": "2.1.9",
29
- "@formily/path": "2.1.9",
30
- "@formily/reactive": "2.1.9",
31
- "@formily/vue": "2.1.9",
32
- "@microsoft/fetch-event-source": "^2.0.1",
33
- "@vicons/ionicons5": "^0.12.0",
34
- "@vueuse/core": "^8.6.0",
35
- "@vueuse/shared": "^8.6.0",
36
- "@wangeditor/editor": "^5.1.1",
37
- "@wangeditor/editor-for-vue": "^5.1.11",
38
- "axios": "^0.27.2",
39
- "bpmn-js": "^9.2.2",
40
- "bpmnlint-utils": "^1.0.2",
41
- "date-fns": "^3.6.0",
42
- "diagram-js": "^8.7.1",
43
- "ids": "^1.0.0",
44
- "inherits": "^2.0.4",
45
- "lodash": "^4.17.21",
46
- "lodash-es": "^4.17.21",
47
- "lodash-unified": "^1.0.2",
48
- "markdown-it": "^13.0.1",
49
- "min-dash": "^3.8.1",
50
- "min-dom": "^3.2.1",
51
- "moment": "^2.29.1",
52
- "naive-ui": "^2.34.0",
53
- "socket.io-client": "^4.7.3",
54
- "sockjs-client": "^1.6.1",
55
- "sortablejs": "^1.15.0",
56
- "spark-md5": "^3.0.2",
57
- "stompjs": "^2.3.3",
58
- "tiny-svg": "^2.2.4",
59
- "trtc-sdk-v5": "^5.5.2",
60
- "v-viewer": "^3.0.10",
61
- "video.js": "^7.19.2",
62
- "videojs-contrib-hls": "^5.15.0",
63
- "viewerjs": "^1.10.5",
64
- "vue": "^3.2.0",
65
- "vue-simple-uploader": "^1.0.0-beta.5",
66
- "xe-utils": "^3.5.4"
67
- },
68
- "browserslist": [
69
- "defaults",
70
- "not ie < 8",
71
- "last 2 versions",
72
- "> 1%",
73
- "iOS 7",
74
- "last 3 iOS versions"
75
- ],
76
- "gitHead": "8608bbfc8f8273af160171d5f3b105559efd3463"
77
- }
1
+ {
2
+ "name": "cnhis-design-vue",
3
+ "version": "3.3.1-beta.61",
4
+ "license": "ISC",
5
+ "module": "./es/components/index.js",
6
+ "main": "./es/components/index.js",
7
+ "types": "./es/components/index.d.ts",
8
+ "sideEffects": [
9
+ "es/components/**/style/*",
10
+ "es/components/*(.css,.less)"
11
+ ],
12
+ "files": [
13
+ "es",
14
+ "README.md"
15
+ ],
16
+ "peerDependencies": {
17
+ "@fullcalendar/core": "^6.1.10",
18
+ "@fullcalendar/interaction": "^6.1.10",
19
+ "@fullcalendar/resource": "^6.1.10",
20
+ "@fullcalendar/resource-timegrid": "^6.1.10",
21
+ "@fullcalendar/scrollgrid": "^6.1.10",
22
+ "@fullcalendar/vue3": "^6.1.10",
23
+ "naive-ui": "^2.34.0",
24
+ "vue": "^3.2.0",
25
+ "vxe-table": "^4.2.5"
26
+ },
27
+ "dependencies": {
28
+ "@formily/core": "2.1.9",
29
+ "@formily/path": "2.1.9",
30
+ "@formily/reactive": "2.1.9",
31
+ "@formily/vue": "2.1.9",
32
+ "@microsoft/fetch-event-source": "^2.0.1",
33
+ "@vicons/ionicons5": "^0.12.0",
34
+ "@vueuse/core": "^8.6.0",
35
+ "@vueuse/shared": "^8.6.0",
36
+ "@wangeditor/editor": "^5.1.1",
37
+ "@wangeditor/editor-for-vue": "^5.1.11",
38
+ "axios": "^0.27.2",
39
+ "bpmn-js": "^9.2.2",
40
+ "bpmnlint-utils": "^1.0.2",
41
+ "date-fns": "^3.6.0",
42
+ "diagram-js": "^8.7.1",
43
+ "ids": "^1.0.0",
44
+ "inherits": "^2.0.4",
45
+ "lodash": "^4.17.21",
46
+ "lodash-es": "^4.17.21",
47
+ "lodash-unified": "^1.0.2",
48
+ "markdown-it": "^13.0.1",
49
+ "min-dash": "^3.8.1",
50
+ "min-dom": "^3.2.1",
51
+ "moment": "^2.29.1",
52
+ "naive-ui": "^2.34.0",
53
+ "socket.io-client": "^4.7.3",
54
+ "sockjs-client": "^1.6.1",
55
+ "sortablejs": "^1.15.0",
56
+ "spark-md5": "^3.0.2",
57
+ "stompjs": "^2.3.3",
58
+ "tiny-svg": "^2.2.4",
59
+ "trtc-sdk-v5": "^5.5.2",
60
+ "v-viewer": "^3.0.10",
61
+ "video.js": "^7.19.2",
62
+ "videojs-contrib-hls": "^5.15.0",
63
+ "viewerjs": "^1.10.5",
64
+ "vue": "^3.2.0",
65
+ "vue-simple-uploader": "^1.0.0-beta.5",
66
+ "xe-utils": "^3.5.4"
67
+ },
68
+ "browserslist": [
69
+ "defaults",
70
+ "not ie < 8",
71
+ "last 2 versions",
72
+ "> 1%",
73
+ "iOS 7",
74
+ "last 3 iOS versions"
75
+ ],
76
+ "gitHead": "628856840251a3c04c3d7accb98e17ba0e14a679"
77
+ }