cnhis-design-vue 3.4.0-beta.60 → 3.4.0-beta.62

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.
package/README.md CHANGED
@@ -1,87 +1,87 @@
1
- # 安装
2
-
3
- ```shell
4
- npm i cnhis-design-vue@[版本号]
5
- # or
6
- yarn add cnhis-design-vue@[版本号] #推荐
7
- ```
8
-
9
- ## 1.全局引入
10
-
11
- ```typescript
12
- // main.ts
13
- import { createApp } from 'vue';
14
- import App from './App.vue';
15
- import 'cnhis-design-vue/es/packages/index.css';
16
- import cui from 'cnhis-design-vue';
17
-
18
- const app = createApp(App);
19
- app.use(cui).mount('#app');
20
- ```
21
-
22
- ## 2. 按需引入
23
-
24
- 组件现在支持了自动按需引入, 但是样式文件需要额外的处理
25
-
26
- ### 2.1 样式处理方式1 (按需引入样式)
27
-
28
- ```shell
29
- # 安装自动导入样式的插件
30
- npm i -d vite-plugin-style-import
31
- ```
32
-
33
- ```typescript
34
- // vite.config.ts
35
- import { defineConfig } from 'vite';
36
- import { createStyleImportPlugin } from 'vite-plugin-style-import';
37
-
38
- export default defineConfig({
39
- plugins: [
40
- // ...otherPlugins
41
- createStyleImportPlugin({
42
- libs: [
43
- {
44
- libraryName: 'cnhis-design-vue',
45
- esModule: true,
46
- ensureStyleFile: true,
47
- resolveStyle: name => {
48
- return `cnhis-design-vue/es/components/${ name.slice(2) }/style/index.css`;
49
- }
50
- }
51
- ]
52
- })
53
- ]
54
- });
55
- ```
56
-
57
- ### 2.2 样式处理方式2 (全局引入样式)
58
-
59
- ```typescript
60
- // main.ts
61
- import 'cnhis-design-vue/es/components/index.css';
62
- ```
63
-
64
- ## 3.FAQ
65
-
66
- ### 3.1 项目打包后样式丢失
67
-
68
- 处理方法, 将 cnhis-design-vue 从 vendor 包中移除 (没有出现此问题则不需要)
69
-
70
- ```typescript
71
- // vite.config.ts
72
- import { defineConfig } from 'vite';
73
-
74
- export default defineConfig({
75
- build: {
76
- rollupOptions: {
77
- // ..otherOptions
78
- output: {
79
- dir: './dist',
80
- manualChunks: {
81
- 'cnhis-vendor': ['cnhis-design-vue']
82
- }
83
- }
84
- }
85
- }
86
- });
87
- ```
1
+ # 安装
2
+
3
+ ```shell
4
+ npm i cnhis-design-vue@[版本号]
5
+ # or
6
+ yarn add cnhis-design-vue@[版本号] #推荐
7
+ ```
8
+
9
+ ## 1.全局引入
10
+
11
+ ```typescript
12
+ // main.ts
13
+ import { createApp } from 'vue';
14
+ import App from './App.vue';
15
+ import 'cnhis-design-vue/es/packages/index.css';
16
+ import cui from 'cnhis-design-vue';
17
+
18
+ const app = createApp(App);
19
+ app.use(cui).mount('#app');
20
+ ```
21
+
22
+ ## 2. 按需引入
23
+
24
+ 组件现在支持了自动按需引入, 但是样式文件需要额外的处理
25
+
26
+ ### 2.1 样式处理方式1 (按需引入样式)
27
+
28
+ ```shell
29
+ # 安装自动导入样式的插件
30
+ npm i -d vite-plugin-style-import
31
+ ```
32
+
33
+ ```typescript
34
+ // vite.config.ts
35
+ import { defineConfig } from 'vite';
36
+ import { createStyleImportPlugin } from 'vite-plugin-style-import';
37
+
38
+ export default defineConfig({
39
+ plugins: [
40
+ // ...otherPlugins
41
+ createStyleImportPlugin({
42
+ libs: [
43
+ {
44
+ libraryName: 'cnhis-design-vue',
45
+ esModule: true,
46
+ ensureStyleFile: true,
47
+ resolveStyle: name => {
48
+ return `cnhis-design-vue/es/components/${ name.slice(2) }/style/index.css`;
49
+ }
50
+ }
51
+ ]
52
+ })
53
+ ]
54
+ });
55
+ ```
56
+
57
+ ### 2.2 样式处理方式2 (全局引入样式)
58
+
59
+ ```typescript
60
+ // main.ts
61
+ import 'cnhis-design-vue/es/components/index.css';
62
+ ```
63
+
64
+ ## 3.FAQ
65
+
66
+ ### 3.1 项目打包后样式丢失
67
+
68
+ 处理方法, 将 cnhis-design-vue 从 vendor 包中移除 (没有出现此问题则不需要)
69
+
70
+ ```typescript
71
+ // vite.config.ts
72
+ import { defineConfig } from 'vite';
73
+
74
+ export default defineConfig({
75
+ build: {
76
+ rollupOptions: {
77
+ // ..otherOptions
78
+ output: {
79
+ dir: './dist',
80
+ manualChunks: {
81
+ 'cnhis-vendor': ['cnhis-design-vue']
82
+ }
83
+ }
84
+ }
85
+ }
86
+ });
87
+ ```
@@ -643,6 +643,10 @@ declare const ExpandField: SFCWithInstall<import("vue").DefineComponent<import("
643
643
  type: BooleanConstructor;
644
644
  default: boolean;
645
645
  };
646
+ onlyCheckChildNode: {
647
+ type: BooleanConstructor;
648
+ default: boolean;
649
+ };
646
650
  itemKey: {
647
651
  type: import("vue").PropType<(node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & import("../../shared/types").AnyObject) => string | number>;
648
652
  default: undefined;
@@ -770,6 +774,10 @@ declare const ExpandField: SFCWithInstall<import("vue").DefineComponent<import("
770
774
  type: BooleanConstructor;
771
775
  default: boolean;
772
776
  };
777
+ onlyCheckChildNode: {
778
+ type: BooleanConstructor;
779
+ default: boolean;
780
+ };
773
781
  itemKey: {
774
782
  type: import("vue").PropType<(node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & import("../../shared/types").AnyObject) => string | number>;
775
783
  default: undefined;
@@ -1914,6 +1922,9 @@ declare const ExpandField: SFCWithInstall<import("vue").DefineComponent<import("
1914
1922
  type: BooleanConstructor;
1915
1923
  default: boolean;
1916
1924
  };
1925
+ onlyCheckChildNode: {
1926
+ type: BooleanConstructor;
1927
+ };
1917
1928
  itemKey: {
1918
1929
  type: import("vue").PropType<(node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & import("../../shared/types").AnyObject) => string | number>;
1919
1930
  default: undefined;
@@ -2000,6 +2011,9 @@ declare const ExpandField: SFCWithInstall<import("vue").DefineComponent<import("
2000
2011
  type: BooleanConstructor;
2001
2012
  default: boolean;
2002
2013
  };
2014
+ onlyCheckChildNode: {
2015
+ type: BooleanConstructor;
2016
+ };
2003
2017
  itemKey: {
2004
2018
  type: import("vue").PropType<(node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & import("../../shared/types").AnyObject) => string | number>;
2005
2019
  default: undefined;
@@ -2156,6 +2170,10 @@ declare const ExpandField: SFCWithInstall<import("vue").DefineComponent<import("
2156
2170
  node: import("naive-ui").TreeOption | null;
2157
2171
  action: "check" | "uncheck";
2158
2172
  }) => void;
2173
+ updateTreeSelected: (keys: (string | number)[], _: any, meta: {
2174
+ node: import("naive-ui").TreeOption | null;
2175
+ action: "check" | "uncheck";
2176
+ }) => void;
2159
2177
  clearAll: () => void;
2160
2178
  updateChecked: (key: string | number, checked: boolean) => void;
2161
2179
  notifyCheck: (key: string | number, isChecked?: boolean) => void;
@@ -2567,6 +2585,9 @@ declare const ExpandField: SFCWithInstall<import("vue").DefineComponent<import("
2567
2585
  type: BooleanConstructor;
2568
2586
  default: boolean;
2569
2587
  };
2588
+ onlyCheckChildNode: {
2589
+ type: BooleanConstructor;
2590
+ };
2570
2591
  itemKey: {
2571
2592
  type: import("vue").PropType<(node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & import("../../shared/types").AnyObject) => string | number>;
2572
2593
  default: undefined;
@@ -2596,6 +2617,7 @@ declare const ExpandField: SFCWithInstall<import("vue").DefineComponent<import("
2596
2617
  forceShowSelectAll: boolean;
2597
2618
  onlyForwardCascade: boolean;
2598
2619
  hideLeaf: boolean;
2620
+ onlyCheckChildNode: boolean;
2599
2621
  itemKey: (node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & import("../../shared/types").AnyObject) => string | number;
2600
2622
  showTagHover: boolean;
2601
2623
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
@@ -2714,6 +2736,10 @@ declare const ExpandField: SFCWithInstall<import("vue").DefineComponent<import("
2714
2736
  type: BooleanConstructor;
2715
2737
  default: boolean;
2716
2738
  };
2739
+ onlyCheckChildNode: {
2740
+ type: BooleanConstructor;
2741
+ default: boolean;
2742
+ };
2717
2743
  itemKey: {
2718
2744
  type: import("vue").PropType<(node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & import("../../shared/types").AnyObject) => string | number>;
2719
2745
  default: undefined;
@@ -2845,6 +2871,10 @@ declare const ExpandField: SFCWithInstall<import("vue").DefineComponent<import("
2845
2871
  type: BooleanConstructor;
2846
2872
  default: boolean;
2847
2873
  };
2874
+ onlyCheckChildNode: {
2875
+ type: BooleanConstructor;
2876
+ default: boolean;
2877
+ };
2848
2878
  itemKey: {
2849
2879
  type: import("vue").PropType<(node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & import("../../shared/types").AnyObject) => string | number>;
2850
2880
  default: undefined;
@@ -2894,6 +2924,7 @@ declare const ExpandField: SFCWithInstall<import("vue").DefineComponent<import("
2894
2924
  forceShowSelectAll: boolean;
2895
2925
  onlyForwardCascade: boolean;
2896
2926
  hideLeaf: boolean;
2927
+ onlyCheckChildNode: boolean;
2897
2928
  itemKey: (node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & import("../../shared/types").AnyObject) => string | number;
2898
2929
  showTagHover: boolean;
2899
2930
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
@@ -221,6 +221,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
221
221
  type: BooleanConstructor;
222
222
  default: boolean;
223
223
  };
224
+ onlyCheckChildNode: {
225
+ type: BooleanConstructor;
226
+ default: boolean;
227
+ };
224
228
  itemKey: {
225
229
  type: PropType<(node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & import("../../../../shared/types").AnyObject) => string | number>;
226
230
  default: undefined;
@@ -348,6 +352,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
348
352
  type: BooleanConstructor;
349
353
  default: boolean;
350
354
  };
355
+ onlyCheckChildNode: {
356
+ type: BooleanConstructor;
357
+ default: boolean;
358
+ };
351
359
  itemKey: {
352
360
  type: PropType<(node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & import("../../../../shared/types").AnyObject) => string | number>;
353
361
  default: undefined;
@@ -1492,6 +1500,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1492
1500
  type: BooleanConstructor;
1493
1501
  default: boolean;
1494
1502
  };
1503
+ onlyCheckChildNode: {
1504
+ type: BooleanConstructor;
1505
+ };
1495
1506
  itemKey: {
1496
1507
  type: PropType<(node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & import("../../../../shared/types").AnyObject) => string | number>;
1497
1508
  default: undefined;
@@ -1578,6 +1589,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1578
1589
  type: BooleanConstructor;
1579
1590
  default: boolean;
1580
1591
  };
1592
+ onlyCheckChildNode: {
1593
+ type: BooleanConstructor;
1594
+ };
1581
1595
  itemKey: {
1582
1596
  type: PropType<(node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & import("../../../../shared/types").AnyObject) => string | number>;
1583
1597
  default: undefined;
@@ -1734,6 +1748,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1734
1748
  node: import("naive-ui").TreeOption | null;
1735
1749
  action: "check" | "uncheck";
1736
1750
  }) => void;
1751
+ updateTreeSelected: (keys: (string | number)[], _: any, meta: {
1752
+ node: import("naive-ui").TreeOption | null;
1753
+ action: "check" | "uncheck";
1754
+ }) => void;
1737
1755
  clearAll: () => void;
1738
1756
  updateChecked: (key: string | number, checked: boolean) => void;
1739
1757
  notifyCheck: (key: string | number, isChecked?: boolean) => void;
@@ -2145,6 +2163,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
2145
2163
  type: BooleanConstructor;
2146
2164
  default: boolean;
2147
2165
  };
2166
+ onlyCheckChildNode: {
2167
+ type: BooleanConstructor;
2168
+ };
2148
2169
  itemKey: {
2149
2170
  type: PropType<(node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & import("../../../../shared/types").AnyObject) => string | number>;
2150
2171
  default: undefined;
@@ -2174,6 +2195,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
2174
2195
  forceShowSelectAll: boolean;
2175
2196
  onlyForwardCascade: boolean;
2176
2197
  hideLeaf: boolean;
2198
+ onlyCheckChildNode: boolean;
2177
2199
  itemKey: (node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & import("../../../../shared/types").AnyObject) => string | number;
2178
2200
  showTagHover: boolean;
2179
2201
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
@@ -2292,6 +2314,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
2292
2314
  type: BooleanConstructor;
2293
2315
  default: boolean;
2294
2316
  };
2317
+ onlyCheckChildNode: {
2318
+ type: BooleanConstructor;
2319
+ default: boolean;
2320
+ };
2295
2321
  itemKey: {
2296
2322
  type: PropType<(node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & import("../../../../shared/types").AnyObject) => string | number>;
2297
2323
  default: undefined;
@@ -2423,6 +2449,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
2423
2449
  type: BooleanConstructor;
2424
2450
  default: boolean;
2425
2451
  };
2452
+ onlyCheckChildNode: {
2453
+ type: BooleanConstructor;
2454
+ default: boolean;
2455
+ };
2426
2456
  itemKey: {
2427
2457
  type: PropType<(node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & import("../../../../shared/types").AnyObject) => string | number>;
2428
2458
  default: undefined;
@@ -2472,6 +2502,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
2472
2502
  forceShowSelectAll: boolean;
2473
2503
  onlyForwardCascade: boolean;
2474
2504
  hideLeaf: boolean;
2505
+ onlyCheckChildNode: boolean;
2475
2506
  itemKey: (node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & import("../../../../shared/types").AnyObject) => string | number;
2476
2507
  showTagHover: boolean;
2477
2508
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
@@ -180,6 +180,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
180
180
  type: BooleanConstructor;
181
181
  default: boolean;
182
182
  };
183
+ onlyCheckChildNode: {
184
+ type: BooleanConstructor;
185
+ default: boolean;
186
+ };
183
187
  itemKey: {
184
188
  type: PropType<(node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & AnyObject) => string | number>;
185
189
  default: undefined;
@@ -307,6 +311,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
307
311
  type: BooleanConstructor;
308
312
  default: boolean;
309
313
  };
314
+ onlyCheckChildNode: {
315
+ type: BooleanConstructor;
316
+ default: boolean;
317
+ };
310
318
  itemKey: {
311
319
  type: PropType<(node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & AnyObject) => string | number>;
312
320
  default: undefined;
@@ -1451,6 +1459,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1451
1459
  type: BooleanConstructor;
1452
1460
  default: boolean;
1453
1461
  };
1462
+ onlyCheckChildNode: {
1463
+ type: BooleanConstructor;
1464
+ };
1454
1465
  itemKey: {
1455
1466
  type: PropType<(node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & AnyObject) => string | number>;
1456
1467
  default: undefined;
@@ -1537,6 +1548,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1537
1548
  type: BooleanConstructor;
1538
1549
  default: boolean;
1539
1550
  };
1551
+ onlyCheckChildNode: {
1552
+ type: BooleanConstructor;
1553
+ };
1540
1554
  itemKey: {
1541
1555
  type: PropType<(node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & AnyObject) => string | number>;
1542
1556
  default: undefined;
@@ -1693,6 +1707,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1693
1707
  node: import("naive-ui").TreeOption | null;
1694
1708
  action: "check" | "uncheck";
1695
1709
  }) => void;
1710
+ updateTreeSelected: (keys: (string | number)[], _: any, meta: {
1711
+ node: import("naive-ui").TreeOption | null;
1712
+ action: "check" | "uncheck";
1713
+ }) => void;
1696
1714
  clearAll: () => void;
1697
1715
  updateChecked: (key: string | number, checked: boolean) => void;
1698
1716
  notifyCheck: (key: string | number, isChecked?: boolean) => void;
@@ -2104,6 +2122,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
2104
2122
  type: BooleanConstructor;
2105
2123
  default: boolean;
2106
2124
  };
2125
+ onlyCheckChildNode: {
2126
+ type: BooleanConstructor;
2127
+ };
2107
2128
  itemKey: {
2108
2129
  type: PropType<(node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & AnyObject) => string | number>;
2109
2130
  default: undefined;
@@ -2133,6 +2154,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
2133
2154
  forceShowSelectAll: boolean;
2134
2155
  onlyForwardCascade: boolean;
2135
2156
  hideLeaf: boolean;
2157
+ onlyCheckChildNode: boolean;
2136
2158
  itemKey: (node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & AnyObject) => string | number;
2137
2159
  showTagHover: boolean;
2138
2160
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
@@ -2251,6 +2273,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
2251
2273
  type: BooleanConstructor;
2252
2274
  default: boolean;
2253
2275
  };
2276
+ onlyCheckChildNode: {
2277
+ type: BooleanConstructor;
2278
+ default: boolean;
2279
+ };
2254
2280
  itemKey: {
2255
2281
  type: PropType<(node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & AnyObject) => string | number>;
2256
2282
  default: undefined;
@@ -2382,6 +2408,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
2382
2408
  type: BooleanConstructor;
2383
2409
  default: boolean;
2384
2410
  };
2411
+ onlyCheckChildNode: {
2412
+ type: BooleanConstructor;
2413
+ default: boolean;
2414
+ };
2385
2415
  itemKey: {
2386
2416
  type: PropType<(node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & AnyObject) => string | number>;
2387
2417
  default: undefined;
@@ -2431,6 +2461,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
2431
2461
  forceShowSelectAll: boolean;
2432
2462
  onlyForwardCascade: boolean;
2433
2463
  hideLeaf: boolean;
2464
+ onlyCheckChildNode: boolean;
2434
2465
  itemKey: (node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & AnyObject) => string | number;
2435
2466
  showTagHover: boolean;
2436
2467
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
@@ -585,6 +585,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
585
585
  type: BooleanConstructor;
586
586
  default: boolean;
587
587
  };
588
+ onlyCheckChildNode: {
589
+ type: BooleanConstructor;
590
+ default: boolean;
591
+ };
588
592
  itemKey: {
589
593
  type: import("vue").PropType<(node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & AnyObject) => string | number>;
590
594
  default: undefined;
@@ -712,6 +716,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
712
716
  type: BooleanConstructor;
713
717
  default: boolean;
714
718
  };
719
+ onlyCheckChildNode: {
720
+ type: BooleanConstructor;
721
+ default: boolean;
722
+ };
715
723
  itemKey: {
716
724
  type: import("vue").PropType<(node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & AnyObject) => string | number>;
717
725
  default: undefined;
@@ -1856,6 +1864,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1856
1864
  type: BooleanConstructor;
1857
1865
  default: boolean;
1858
1866
  };
1867
+ onlyCheckChildNode: {
1868
+ type: BooleanConstructor;
1869
+ };
1859
1870
  itemKey: {
1860
1871
  type: import("vue").PropType<(node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & AnyObject) => string | number>;
1861
1872
  default: undefined;
@@ -1942,6 +1953,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1942
1953
  type: BooleanConstructor;
1943
1954
  default: boolean;
1944
1955
  };
1956
+ onlyCheckChildNode: {
1957
+ type: BooleanConstructor;
1958
+ };
1945
1959
  itemKey: {
1946
1960
  type: import("vue").PropType<(node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & AnyObject) => string | number>;
1947
1961
  default: undefined;
@@ -2098,6 +2112,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
2098
2112
  node: import("naive-ui").TreeOption | null;
2099
2113
  action: "check" | "uncheck";
2100
2114
  }) => void;
2115
+ updateTreeSelected: (keys: (string | number)[], _: any, meta: {
2116
+ node: import("naive-ui").TreeOption | null;
2117
+ action: "check" | "uncheck";
2118
+ }) => void;
2101
2119
  clearAll: () => void;
2102
2120
  updateChecked: (key: string | number, checked: boolean) => void;
2103
2121
  notifyCheck: (key: string | number, isChecked?: boolean) => void;
@@ -2509,6 +2527,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
2509
2527
  type: BooleanConstructor;
2510
2528
  default: boolean;
2511
2529
  };
2530
+ onlyCheckChildNode: {
2531
+ type: BooleanConstructor;
2532
+ };
2512
2533
  itemKey: {
2513
2534
  type: import("vue").PropType<(node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & AnyObject) => string | number>;
2514
2535
  default: undefined;
@@ -2538,6 +2559,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
2538
2559
  forceShowSelectAll: boolean;
2539
2560
  onlyForwardCascade: boolean;
2540
2561
  hideLeaf: boolean;
2562
+ onlyCheckChildNode: boolean;
2541
2563
  itemKey: (node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & AnyObject) => string | number;
2542
2564
  showTagHover: boolean;
2543
2565
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
@@ -2656,6 +2678,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
2656
2678
  type: BooleanConstructor;
2657
2679
  default: boolean;
2658
2680
  };
2681
+ onlyCheckChildNode: {
2682
+ type: BooleanConstructor;
2683
+ default: boolean;
2684
+ };
2659
2685
  itemKey: {
2660
2686
  type: import("vue").PropType<(node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & AnyObject) => string | number>;
2661
2687
  default: undefined;
@@ -2787,6 +2813,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
2787
2813
  type: BooleanConstructor;
2788
2814
  default: boolean;
2789
2815
  };
2816
+ onlyCheckChildNode: {
2817
+ type: BooleanConstructor;
2818
+ default: boolean;
2819
+ };
2790
2820
  itemKey: {
2791
2821
  type: import("vue").PropType<(node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & AnyObject) => string | number>;
2792
2822
  default: undefined;
@@ -2836,6 +2866,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
2836
2866
  forceShowSelectAll: boolean;
2837
2867
  onlyForwardCascade: boolean;
2838
2868
  hideLeaf: boolean;
2869
+ onlyCheckChildNode: boolean;
2839
2870
  itemKey: (node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & AnyObject) => string | number;
2840
2871
  showTagHover: boolean;
2841
2872
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
@@ -645,6 +645,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
645
645
  type: BooleanConstructor;
646
646
  default: boolean;
647
647
  };
648
+ onlyCheckChildNode: {
649
+ type: BooleanConstructor;
650
+ default: boolean;
651
+ };
648
652
  itemKey: {
649
653
  type: PropType<(node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & AnyObject) => string | number>;
650
654
  default: undefined;
@@ -772,6 +776,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
772
776
  type: BooleanConstructor;
773
777
  default: boolean;
774
778
  };
779
+ onlyCheckChildNode: {
780
+ type: BooleanConstructor;
781
+ default: boolean;
782
+ };
775
783
  itemKey: {
776
784
  type: PropType<(node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & AnyObject) => string | number>;
777
785
  default: undefined;
@@ -1916,6 +1924,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1916
1924
  type: BooleanConstructor;
1917
1925
  default: boolean;
1918
1926
  };
1927
+ onlyCheckChildNode: {
1928
+ type: BooleanConstructor;
1929
+ };
1919
1930
  itemKey: {
1920
1931
  type: PropType<(node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & AnyObject) => string | number>;
1921
1932
  default: undefined;
@@ -2002,6 +2013,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
2002
2013
  type: BooleanConstructor;
2003
2014
  default: boolean;
2004
2015
  };
2016
+ onlyCheckChildNode: {
2017
+ type: BooleanConstructor;
2018
+ };
2005
2019
  itemKey: {
2006
2020
  type: PropType<(node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & AnyObject) => string | number>;
2007
2021
  default: undefined;
@@ -2158,6 +2172,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
2158
2172
  node: import("naive-ui").TreeOption | null;
2159
2173
  action: "check" | "uncheck";
2160
2174
  }) => void;
2175
+ updateTreeSelected: (keys: (string | number)[], _: any, meta: {
2176
+ node: import("naive-ui").TreeOption | null;
2177
+ action: "check" | "uncheck";
2178
+ }) => void;
2161
2179
  clearAll: () => void;
2162
2180
  updateChecked: (key: string | number, checked: boolean) => void;
2163
2181
  notifyCheck: (key: string | number, isChecked?: boolean) => void;
@@ -2569,6 +2587,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
2569
2587
  type: BooleanConstructor;
2570
2588
  default: boolean;
2571
2589
  };
2590
+ onlyCheckChildNode: {
2591
+ type: BooleanConstructor;
2592
+ };
2572
2593
  itemKey: {
2573
2594
  type: PropType<(node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & AnyObject) => string | number>;
2574
2595
  default: undefined;
@@ -2598,6 +2619,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
2598
2619
  forceShowSelectAll: boolean;
2599
2620
  onlyForwardCascade: boolean;
2600
2621
  hideLeaf: boolean;
2622
+ onlyCheckChildNode: boolean;
2601
2623
  itemKey: (node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & AnyObject) => string | number;
2602
2624
  showTagHover: boolean;
2603
2625
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
@@ -2716,6 +2738,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
2716
2738
  type: BooleanConstructor;
2717
2739
  default: boolean;
2718
2740
  };
2741
+ onlyCheckChildNode: {
2742
+ type: BooleanConstructor;
2743
+ default: boolean;
2744
+ };
2719
2745
  itemKey: {
2720
2746
  type: PropType<(node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & AnyObject) => string | number>;
2721
2747
  default: undefined;
@@ -2847,6 +2873,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
2847
2873
  type: BooleanConstructor;
2848
2874
  default: boolean;
2849
2875
  };
2876
+ onlyCheckChildNode: {
2877
+ type: BooleanConstructor;
2878
+ default: boolean;
2879
+ };
2850
2880
  itemKey: {
2851
2881
  type: PropType<(node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & AnyObject) => string | number>;
2852
2882
  default: undefined;
@@ -2896,6 +2926,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
2896
2926
  forceShowSelectAll: boolean;
2897
2927
  onlyForwardCascade: boolean;
2898
2928
  hideLeaf: boolean;
2929
+ onlyCheckChildNode: boolean;
2899
2930
  itemKey: (node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & AnyObject) => string | number;
2900
2931
  showTagHover: boolean;
2901
2932
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
@@ -601,7 +601,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
601
601
  }, {
602
602
  default: withCtx(() => [!unref(isAudioOrVideoMessage)(item.content) ? (openBlock(), createElementBlock(Fragment, {
603
603
  key: 0
604
- }, [createCommentVNode(' <n-button\r\n quaternary\r\n size="tiny"\r\n @click="(event: MouseEvent) => handleSelectLabel(event, item.id)"\r\n >\r\n <template #icon>\r\n <n-icon size="17" :component="HappyOutline" />\r\n </template>\r\n </n-button> '), createVNode(unref(NButton), {
604
+ }, [createCommentVNode(' <n-button\n quaternary\n size="tiny"\n @click="(event: MouseEvent) => handleSelectLabel(event, item.id)"\n >\n <template #icon>\n <n-icon size="17" :component="HappyOutline" />\n </template>\n </n-button> '), createVNode(unref(NButton), {
605
605
  quaternary: "",
606
606
  size: "tiny",
607
607
  onClick: () => setReferenceMsg(item)
@@ -170,7 +170,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
170
170
  round: "",
171
171
  size: 100,
172
172
  onClickCapture: _cache[0] || (_cache[0] = ($event) => showLargeAvatar.value = true)
173
- }, null, 8, ["src"]), createCommentVNode(' <n-upload abstract accept="image/*" @change="onChange">\r\n <n-upload-trigger #="{ handleClick }" abstract>\r\n <n-button\r\n circle\r\n secondary\r\n class="edit-avatar"\r\n v-show="userDetail.id === state.userInfo.id"\r\n @click="handleClick"\r\n >\r\n <template #icon>\r\n <n-icon size="16" color="#666666" :component="Camera" />\r\n </template>\r\n </n-button>\r\n </n-upload-trigger>\r\n </n-upload> '), createElementVNode("div", _hoisted_4, [createElementVNode("h4", null, [createElementVNode("label", _hoisted_5, toDisplayString(userDetail.name), 1), withDirectives(createElementVNode("label", {
173
+ }, null, 8, ["src"]), createCommentVNode(' <n-upload abstract accept="image/*" @change="onChange">\n <n-upload-trigger #="{ handleClick }" abstract>\n <n-button\n circle\n secondary\n class="edit-avatar"\n v-show="userDetail.id === state.userInfo.id"\n @click="handleClick"\n >\n <template #icon>\n <n-icon size="16" color="#666666" :component="Camera" />\n </template>\n </n-button>\n </n-upload-trigger>\n </n-upload> '), createElementVNode("div", _hoisted_4, [createElementVNode("h4", null, [createElementVNode("label", _hoisted_5, toDisplayString(userDetail.name), 1), withDirectives(createElementVNode("label", {
174
174
  class: normalizeClass(["iho-chatRole", unref(isDoctorRole)(userDetail.roleInfo) ? "isDoctor" : ""])
175
175
  }, toDisplayString(unref(getRoleName)(userDetail.roleInfo)), 3), [[vShow, unref(getRoleName)(userDetail.roleInfo)]])]), createElementVNode("p", null, toDisplayString(userDetail.orgName), 1)]), createVNode(unref(NButton), {
176
176
  strong: "",
@@ -20,10 +20,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
20
20
  checked: boolean;
21
21
  _checked: boolean;
22
22
  };
23
- shortcuts: {
24
- 近一周: () => number[];
25
- 近一个月: () => number[];
26
- };
23
+ datePickerProps: import("vue").ComputedRef<import("../../../../../shared/types").AnyObject>;
24
+ shortcuts: import("vue").ComputedRef<any>;
27
25
  onConfirm: (value: [number, number], formattedValue: [string, string] | null) => void;
28
26
  readonly CDatePicker: import("../../../../../shared/types").SFCWithInstall<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
29
27
  updateUnchangedValue: {
@@ -1,6 +1,7 @@
1
- import { defineComponent, reactive, openBlock, createBlock, unref } from 'vue';
1
+ import { defineComponent, reactive, computed, openBlock, createBlock, unref, mergeProps } from 'vue';
2
2
  import DatePicker from '../../../../date-picker/index.js';
3
3
  import { subDays, subMonths } from 'date-fns';
4
+ import { getLowCodeFieldFromField } from '../../utils/index.js';
4
5
 
5
6
  var _sfc_main = /* @__PURE__ */ defineComponent({
6
7
  __name: "filter",
@@ -14,9 +15,21 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
14
15
  var _a, _b, _c;
15
16
  const props = __props;
16
17
  const optionRef = reactive(((_c = (_b = (_a = props.payload) == null ? void 0 : _a.column) == null ? void 0 : _b.filters) == null ? void 0 : _c[0]) || { data: void 0 });
17
- const shortcuts = reactive({
18
- \u8FD1\u4E00\u5468: () => [subDays(new Date(), 7).getTime(), new Date().getTime()],
19
- \u8FD1\u4E00\u4E2A\u6708: () => [subMonths(new Date(), 1).getTime(), new Date().getTime()]
18
+ const datePickerProps = computed(() => {
19
+ var _a2, _b2, _c2;
20
+ const fieldItem = getLowCodeFieldFromField(props.payload.column);
21
+ if (!fieldItem)
22
+ return {};
23
+ return (_c2 = (_b2 = (_a2 = fieldItem.filterSetting) == null ? void 0 : _a2.daterange) == null ? void 0 : _b2.datePickerProps) != null ? _c2 : {};
24
+ });
25
+ const shortcuts = computed(() => {
26
+ return Object.assign(
27
+ {
28
+ \u8FD1\u4E00\u5468: () => [subDays(new Date(), 7).getTime(), new Date().getTime()],
29
+ \u8FD1\u4E00\u4E2A\u6708: () => [subMonths(new Date(), 1).getTime(), new Date().getTime()]
30
+ },
31
+ datePickerProps.value.shortcuts
32
+ );
20
33
  });
21
34
  function onConfirm(value, formattedValue) {
22
35
  var _a2;
@@ -27,16 +40,17 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
27
40
  props.payload.$panel.confirmFilter(new CustomEvent("click"));
28
41
  }
29
42
  return (_ctx, _cache) => {
30
- return openBlock(), createBlock(unref(DatePicker), {
43
+ return openBlock(), createBlock(unref(DatePicker), mergeProps({
31
44
  type: "datetimerange",
32
45
  panel: "",
33
46
  clearable: "",
34
47
  "default-time": ["00:00:00", "23:59:59"],
35
48
  "formatted-value": optionRef.data,
36
- "onUpdate:formattedValue": _cache[0] || (_cache[0] = ($event) => optionRef.data = $event),
37
- shortcuts,
49
+ "onUpdate:formattedValue": _cache[0] || (_cache[0] = ($event) => optionRef.data = $event)
50
+ }, datePickerProps.value, {
51
+ shortcuts: shortcuts.value,
38
52
  onConfirm
39
- }, null, 8, ["formatted-value", "shortcuts"]);
53
+ }), null, 16, ["formatted-value", "shortcuts"]);
40
54
  };
41
55
  }
42
56
  });
@@ -75,7 +75,7 @@ function filterAdaptor(props) {
75
75
  Reflect.deleteProperty(props, "filterSetting");
76
76
  Reflect.deleteProperty(props, "fieldSetting");
77
77
  }
78
- if ((_a = props.filterSetting) == null ? void 0 : _a.daterange) {
78
+ if (((_a = props.filterSetting) == null ? void 0 : _a.daterange) === true) {
79
79
  Reflect.deleteProperty(props.filterSetting, "daterange");
80
80
  props.filterSetting.type = "daterange";
81
81
  }
@@ -156,7 +156,9 @@ export declare namespace IhoTableLowCodeField {
156
156
  }>;
157
157
  }>;
158
158
  type FilterSetting = Partial<{
159
- daterange: boolean;
159
+ daterange: Partial<{
160
+ datePickerProps: AnyObject;
161
+ }>;
160
162
  type: 'daterange' | 'text' | 'remote';
161
163
  pagination: boolean;
162
164
  text: Partial<{
@@ -114,6 +114,10 @@ declare const SelectPerson: SFCWithInstall<import("vue").DefineComponent<import(
114
114
  type: BooleanConstructor;
115
115
  default: boolean;
116
116
  };
117
+ onlyCheckChildNode: {
118
+ type: BooleanConstructor;
119
+ default: boolean;
120
+ };
117
121
  itemKey: {
118
122
  type: import("vue").PropType<(node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & import("../../shared/types").AnyObject) => string | number>;
119
123
  default: undefined;
@@ -241,6 +245,10 @@ declare const SelectPerson: SFCWithInstall<import("vue").DefineComponent<import(
241
245
  type: BooleanConstructor;
242
246
  default: boolean;
243
247
  };
248
+ onlyCheckChildNode: {
249
+ type: BooleanConstructor;
250
+ default: boolean;
251
+ };
244
252
  itemKey: {
245
253
  type: import("vue").PropType<(node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & import("../../shared/types").AnyObject) => string | number>;
246
254
  default: undefined;
@@ -1385,6 +1393,9 @@ declare const SelectPerson: SFCWithInstall<import("vue").DefineComponent<import(
1385
1393
  type: BooleanConstructor;
1386
1394
  default: boolean;
1387
1395
  };
1396
+ onlyCheckChildNode: {
1397
+ type: BooleanConstructor;
1398
+ };
1388
1399
  itemKey: {
1389
1400
  type: import("vue").PropType<(node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & import("../../shared/types").AnyObject) => string | number>;
1390
1401
  default: undefined;
@@ -1471,6 +1482,9 @@ declare const SelectPerson: SFCWithInstall<import("vue").DefineComponent<import(
1471
1482
  type: BooleanConstructor;
1472
1483
  default: boolean;
1473
1484
  };
1485
+ onlyCheckChildNode: {
1486
+ type: BooleanConstructor;
1487
+ };
1474
1488
  itemKey: {
1475
1489
  type: import("vue").PropType<(node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & import("../../shared/types").AnyObject) => string | number>;
1476
1490
  default: undefined;
@@ -1627,6 +1641,10 @@ declare const SelectPerson: SFCWithInstall<import("vue").DefineComponent<import(
1627
1641
  node: import("naive-ui").TreeOption | null;
1628
1642
  action: "check" | "uncheck";
1629
1643
  }) => void;
1644
+ updateTreeSelected: (keys: (string | number)[], _: any, meta: {
1645
+ node: import("naive-ui").TreeOption | null;
1646
+ action: "check" | "uncheck";
1647
+ }) => void;
1630
1648
  clearAll: () => void;
1631
1649
  updateChecked: (key: string | number, checked: boolean) => void;
1632
1650
  notifyCheck: (key: string | number, isChecked?: boolean) => void;
@@ -2038,6 +2056,9 @@ declare const SelectPerson: SFCWithInstall<import("vue").DefineComponent<import(
2038
2056
  type: BooleanConstructor;
2039
2057
  default: boolean;
2040
2058
  };
2059
+ onlyCheckChildNode: {
2060
+ type: BooleanConstructor;
2061
+ };
2041
2062
  itemKey: {
2042
2063
  type: import("vue").PropType<(node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & import("../../shared/types").AnyObject) => string | number>;
2043
2064
  default: undefined;
@@ -2067,6 +2088,7 @@ declare const SelectPerson: SFCWithInstall<import("vue").DefineComponent<import(
2067
2088
  forceShowSelectAll: boolean;
2068
2089
  onlyForwardCascade: boolean;
2069
2090
  hideLeaf: boolean;
2091
+ onlyCheckChildNode: boolean;
2070
2092
  itemKey: (node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & import("../../shared/types").AnyObject) => string | number;
2071
2093
  showTagHover: boolean;
2072
2094
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
@@ -2185,6 +2207,10 @@ declare const SelectPerson: SFCWithInstall<import("vue").DefineComponent<import(
2185
2207
  type: BooleanConstructor;
2186
2208
  default: boolean;
2187
2209
  };
2210
+ onlyCheckChildNode: {
2211
+ type: BooleanConstructor;
2212
+ default: boolean;
2213
+ };
2188
2214
  itemKey: {
2189
2215
  type: import("vue").PropType<(node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & import("../../shared/types").AnyObject) => string | number>;
2190
2216
  default: undefined;
@@ -2316,6 +2342,10 @@ declare const SelectPerson: SFCWithInstall<import("vue").DefineComponent<import(
2316
2342
  type: BooleanConstructor;
2317
2343
  default: boolean;
2318
2344
  };
2345
+ onlyCheckChildNode: {
2346
+ type: BooleanConstructor;
2347
+ default: boolean;
2348
+ };
2319
2349
  itemKey: {
2320
2350
  type: import("vue").PropType<(node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & import("../../shared/types").AnyObject) => string | number>;
2321
2351
  default: undefined;
@@ -2365,6 +2395,7 @@ declare const SelectPerson: SFCWithInstall<import("vue").DefineComponent<import(
2365
2395
  forceShowSelectAll: boolean;
2366
2396
  onlyForwardCascade: boolean;
2367
2397
  hideLeaf: boolean;
2398
+ onlyCheckChildNode: boolean;
2368
2399
  itemKey: (node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & import("../../shared/types").AnyObject) => string | number;
2369
2400
  showTagHover: boolean;
2370
2401
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
@@ -81,6 +81,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
81
81
  type: BooleanConstructor;
82
82
  default: boolean;
83
83
  };
84
+ onlyCheckChildNode: {
85
+ type: BooleanConstructor;
86
+ };
84
87
  itemKey: {
85
88
  type: PropType<(node: ITreeOption) => IKey>;
86
89
  default: undefined;
@@ -164,6 +167,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
164
167
  type: BooleanConstructor;
165
168
  default: boolean;
166
169
  };
170
+ onlyCheckChildNode: {
171
+ type: BooleanConstructor;
172
+ };
167
173
  itemKey: {
168
174
  type: PropType<(node: ITreeOption) => IKey>;
169
175
  default: undefined;
@@ -320,6 +326,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
320
326
  node: TreeOption | null;
321
327
  action: 'check' | 'uncheck';
322
328
  }) => void;
329
+ updateTreeSelected: (keys: Array<IKey>, _: any, meta: {
330
+ node: TreeOption | null;
331
+ action: 'check' | 'uncheck';
332
+ }) => void;
323
333
  clearAll: () => void;
324
334
  updateChecked: (key: IKey, checked: boolean) => void;
325
335
  notifyCheck: (key: IKey, isChecked?: boolean) => void;
@@ -728,6 +738,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
728
738
  type: BooleanConstructor;
729
739
  default: boolean;
730
740
  };
741
+ onlyCheckChildNode: {
742
+ type: BooleanConstructor;
743
+ };
731
744
  itemKey: {
732
745
  type: PropType<(node: ITreeOption) => IKey>;
733
746
  default: undefined;
@@ -754,6 +767,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
754
767
  forceShowSelectAll: boolean;
755
768
  onlyForwardCascade: boolean;
756
769
  hideLeaf: boolean;
770
+ onlyCheckChildNode: boolean;
757
771
  itemKey: (node: ITreeOption) => IKey;
758
772
  showTagHover: boolean;
759
773
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -99,6 +99,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
99
99
  type: Boolean,
100
100
  default: false
101
101
  },
102
+ onlyCheckChildNode: {
103
+ type: Boolean
104
+ },
102
105
  itemKey: {
103
106
  type: Function,
104
107
  default: void 0
@@ -296,7 +299,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
296
299
  children: void 0,
297
300
  originItem: item,
298
301
  leaf: isLeaf,
299
- disabled: disabled || item.disabled
302
+ disabled: disabled || item.disabled,
303
+ checkboxDisabled: false
300
304
  };
301
305
  if (isRemote.value)
302
306
  tree.isLeaf = isLeaf;
@@ -313,6 +317,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
313
317
  }
314
318
  } else {
315
319
  if (children == null ? void 0 : children.length) {
320
+ if (props.onlyCheckChildNode)
321
+ tree.checkboxDisabled = true;
316
322
  const childData = transformData(children, tree, visitor);
317
323
  if (childData.treeItems.length) {
318
324
  tree.children = childData.treeItems;
@@ -481,6 +487,12 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
481
487
  checkedAll.value = false;
482
488
  }
483
489
  }
490
+ function updateTreeSelected(keys, _, meta) {
491
+ var _a;
492
+ if ((_a = meta.node) == null ? void 0 : _a.checkboxDisabled)
493
+ return;
494
+ checkedKeys.value = keys;
495
+ }
484
496
  function clearAll() {
485
497
  checkedAll.value = false;
486
498
  checkedKeys.value = [];
@@ -658,7 +670,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
658
670
  checked: checkedAll.value,
659
671
  "onUpdate:checked": [_cache[1] || (_cache[1] = ($event) => checkedAll.value = $event), checkedAllChange]
660
672
  }, {
661
- default: withCtx(() => [..._cache[4] || (_cache[4] = [createTextVNode(i18n("10010.1.37", "\u5168\u9009"), -1)])]),
673
+ default: withCtx(() => [..._cache[3] || (_cache[3] = [createTextVNode(i18n("10010.1.37", "\u5168\u9009"), -1)])]),
662
674
  _: 1
663
675
  }, 8, ["checked"])), [[vShow, __props.forceShowSelectAll]]) : createCommentVNode("v-if", true), createCommentVNode(" \u540C\u65F6\u517C\u5BB9\u9009\u4EBA\u548C\u9009\u90E8\u95E8 "), isSearch.value && isShowGroupList.value ? (openBlock(), createBlock(SearchGroupList, {
664
676
  key: 1,
@@ -672,7 +684,6 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
672
684
  "expanded-keys": expandedKeys.value,
673
685
  "onUpdate:expandedKeys": _cache[2] || (_cache[2] = ($event) => expandedKeys.value = $event),
674
686
  "selected-keys": checkedKeys.value,
675
- "onUpdate:selectedKeys": _cache[3] || (_cache[3] = ($event) => checkedKeys.value = $event),
676
687
  style: {
677
688
  "height": "100%"
678
689
  },
@@ -688,6 +699,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
688
699
  }, __props.treeSetting, {
689
700
  class: "c-select-person__scroll",
690
701
  "onUpdate:checkedKeys": updateTreeChecked,
702
+ "onUpdate:selectedKeys": updateTreeSelected,
691
703
  onLoad: queryLoadChildNode
692
704
  }), {
693
705
  empty: withCtx(() => [createVNode(unref(DefaultPage), {
@@ -707,7 +719,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
707
719
  "margin-bottom": "20px"
708
720
  }
709
721
  }, {
710
- default: withCtx(() => [__props.showCount ? (openBlock(), createElementBlock("span", _hoisted_3, [_cache[5] || (_cache[5] = createTextVNode(i18n("10010.1.39", "\u5DF2\u9009\u62E9"), -1)), createElementVNode("span", null, "\uFF1A" + toDisplayString(caculateTagData.value.length), 1)])) : createCommentVNode("v-if", true), __props.showClear ? (openBlock(), createElementBlock("span", {
722
+ default: withCtx(() => [__props.showCount ? (openBlock(), createElementBlock("span", _hoisted_3, [_cache[4] || (_cache[4] = createTextVNode(i18n("10010.1.39", "\u5DF2\u9009\u62E9"), -1)), createElementVNode("span", null, "\uFF1A" + toDisplayString(caculateTagData.value.length), 1)])) : createCommentVNode("v-if", true), __props.showClear ? (openBlock(), createElementBlock("span", {
711
723
  key: 1,
712
724
  class: "c-select-person__clear-btn",
713
725
  onClick: clearAll
@@ -122,6 +122,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
122
122
  type: BooleanConstructor;
123
123
  default: boolean;
124
124
  };
125
+ onlyCheckChildNode: {
126
+ type: BooleanConstructor;
127
+ default: boolean;
128
+ };
125
129
  itemKey: {
126
130
  type: PropType<(node: ITreeOption) => IKey>;
127
131
  default: undefined;
@@ -236,6 +240,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
236
240
  type: BooleanConstructor;
237
241
  default: boolean;
238
242
  };
243
+ onlyCheckChildNode: {
244
+ type: BooleanConstructor;
245
+ default: boolean;
246
+ };
239
247
  itemKey: {
240
248
  type: PropType<(node: ITreeOption) => IKey>;
241
249
  default: undefined;
@@ -1380,6 +1388,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1380
1388
  type: BooleanConstructor;
1381
1389
  default: boolean;
1382
1390
  };
1391
+ onlyCheckChildNode: {
1392
+ type: BooleanConstructor;
1393
+ };
1383
1394
  itemKey: {
1384
1395
  type: PropType<(node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & AnyObject) => string | number>;
1385
1396
  default: undefined;
@@ -1466,6 +1477,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1466
1477
  type: BooleanConstructor;
1467
1478
  default: boolean;
1468
1479
  };
1480
+ onlyCheckChildNode: {
1481
+ type: BooleanConstructor;
1482
+ };
1469
1483
  itemKey: {
1470
1484
  type: PropType<(node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & AnyObject) => string | number>;
1471
1485
  default: undefined;
@@ -1622,6 +1636,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1622
1636
  node: import("naive-ui").TreeOption | null;
1623
1637
  action: "check" | "uncheck";
1624
1638
  }) => void;
1639
+ updateTreeSelected: (keys: (string | number)[], _: any, meta: {
1640
+ node: import("naive-ui").TreeOption | null;
1641
+ action: "check" | "uncheck";
1642
+ }) => void;
1625
1643
  clearAll: () => void;
1626
1644
  updateChecked: (key: string | number, checked: boolean) => void;
1627
1645
  notifyCheck: (key: string | number, isChecked?: boolean) => void;
@@ -2033,6 +2051,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
2033
2051
  type: BooleanConstructor;
2034
2052
  default: boolean;
2035
2053
  };
2054
+ onlyCheckChildNode: {
2055
+ type: BooleanConstructor;
2056
+ };
2036
2057
  itemKey: {
2037
2058
  type: PropType<(node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & AnyObject) => string | number>;
2038
2059
  default: undefined;
@@ -2062,6 +2083,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
2062
2083
  forceShowSelectAll: boolean;
2063
2084
  onlyForwardCascade: boolean;
2064
2085
  hideLeaf: boolean;
2086
+ onlyCheckChildNode: boolean;
2065
2087
  itemKey: (node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & AnyObject) => string | number;
2066
2088
  showTagHover: boolean;
2067
2089
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
@@ -2167,6 +2189,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
2167
2189
  type: BooleanConstructor;
2168
2190
  default: boolean;
2169
2191
  };
2192
+ onlyCheckChildNode: {
2193
+ type: BooleanConstructor;
2194
+ default: boolean;
2195
+ };
2170
2196
  itemKey: {
2171
2197
  type: PropType<(node: ITreeOption) => IKey>;
2172
2198
  default: undefined;
@@ -2285,6 +2311,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
2285
2311
  type: BooleanConstructor;
2286
2312
  default: boolean;
2287
2313
  };
2314
+ onlyCheckChildNode: {
2315
+ type: BooleanConstructor;
2316
+ default: boolean;
2317
+ };
2288
2318
  itemKey: {
2289
2319
  type: PropType<(node: ITreeOption) => IKey>;
2290
2320
  default: undefined;
@@ -2321,6 +2351,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
2321
2351
  forceShowSelectAll: boolean;
2322
2352
  onlyForwardCascade: boolean;
2323
2353
  hideLeaf: boolean;
2354
+ onlyCheckChildNode: boolean;
2324
2355
  itemKey: (node: ITreeOption) => IKey;
2325
2356
  showTagHover: boolean;
2326
2357
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -109,6 +109,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
109
109
  type: Boolean,
110
110
  default: false
111
111
  },
112
+ onlyCheckChildNode: {
113
+ type: Boolean,
114
+ default: false
115
+ },
112
116
  itemKey: {
113
117
  type: Function,
114
118
  default: void 0
package/es/env.d.ts CHANGED
@@ -1,25 +1,25 @@
1
- /// <reference types="vite/client" />
2
-
3
- interface ImportMetaEnv {
4
- readonly VITE_APP_TYPE: string;
5
- // 更多环境变量...
6
- }
7
-
8
- interface ImportMeta {
9
- readonly env: ImportMetaEnv;
10
- }
11
-
12
- declare module '*.vue' {
13
- // @ts-ignore
14
- import type { App, defineComponent } from 'vue';
15
- // // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types
16
- // // const component: DefineComponent<{}, {}, any>
17
- const component: ReturnType<typeof defineComponent> & {
18
- install(app: App): void;
19
- };
20
- // @ts-ignore
21
- export default component;
22
- }
23
-
24
- declare module '*.js';
25
-
1
+ /// <reference types="vite/client" />
2
+
3
+ interface ImportMetaEnv {
4
+ readonly VITE_APP_TYPE: string;
5
+ // 更多环境变量...
6
+ }
7
+
8
+ interface ImportMeta {
9
+ readonly env: ImportMetaEnv;
10
+ }
11
+
12
+ declare module '*.vue' {
13
+ // @ts-ignore
14
+ import type { App, defineComponent } from 'vue';
15
+ // // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types
16
+ // // const component: DefineComponent<{}, {}, any>
17
+ const component: ReturnType<typeof defineComponent> & {
18
+ install(app: App): void;
19
+ };
20
+ // @ts-ignore
21
+ export default component;
22
+ }
23
+
24
+ declare module '*.js';
25
+
@@ -1,5 +1,5 @@
1
1
  var name = "@cnhis-design-vue/shared";
2
- var version = "3.4.0-beta.60";
2
+ var version = "3.4.0-beta.62";
3
3
  var main = "index.ts";
4
4
  var peerDependencies = {
5
5
  "naive-ui": "^2.30.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cnhis-design-vue",
3
- "version": "3.4.0-beta.60",
3
+ "version": "3.4.0-beta.62",
4
4
  "license": "ISC",
5
5
  "module": "./es/components/index.js",
6
6
  "main": "./es/components/index.js",
@@ -73,5 +73,5 @@
73
73
  "iOS 7",
74
74
  "last 3 iOS versions"
75
75
  ],
76
- "gitHead": "8bd05157ab043e7ef037ee69e52191ef2c335bf3"
76
+ "gitHead": "e56cdc71d06fa1f2e4bf83422443c4758757c06e"
77
77
  }