@a2simcode/ui 0.0.261 → 0.0.263
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/dist/components/tree/index.d.ts +15 -0
- package/dist/components/tree/src/tree.vue.d.ts +15 -0
- package/dist/simcode-ui.es.js +13 -2
- package/dist/simcode-ui.umd.js +1 -1
- package/dist/stats.html +1 -1
- package/docs/components/tree.md +15 -0
- package/docs/examples/tree/check-strictly.vue +53 -0
- package/docs/examples/tree/checkable.vue +1 -1
- package/package.json +1 -1
|
@@ -46,6 +46,10 @@ export declare const JTree: {
|
|
|
46
46
|
dataType: StringConstructor;
|
|
47
47
|
dataCode: StringConstructor;
|
|
48
48
|
checkable: BooleanConstructor;
|
|
49
|
+
checkStrictly: {
|
|
50
|
+
type: BooleanConstructor;
|
|
51
|
+
default: boolean;
|
|
52
|
+
};
|
|
49
53
|
check: FunctionConstructor;
|
|
50
54
|
emptyDes: {
|
|
51
55
|
type: StringConstructor;
|
|
@@ -107,6 +111,7 @@ export declare const JTree: {
|
|
|
107
111
|
"node-drop": (...args: any[]) => void;
|
|
108
112
|
}, import('vue').PublicProps, {
|
|
109
113
|
immediate: boolean;
|
|
114
|
+
checkStrictly: boolean;
|
|
110
115
|
accordion: boolean;
|
|
111
116
|
defaultExpandAll: boolean;
|
|
112
117
|
theme: string;
|
|
@@ -182,6 +187,10 @@ export declare const JTree: {
|
|
|
182
187
|
dataType: StringConstructor;
|
|
183
188
|
dataCode: StringConstructor;
|
|
184
189
|
checkable: BooleanConstructor;
|
|
190
|
+
checkStrictly: {
|
|
191
|
+
type: BooleanConstructor;
|
|
192
|
+
default: boolean;
|
|
193
|
+
};
|
|
185
194
|
check: FunctionConstructor;
|
|
186
195
|
emptyDes: {
|
|
187
196
|
type: StringConstructor;
|
|
@@ -241,6 +250,7 @@ export declare const JTree: {
|
|
|
241
250
|
getCheck: (leafOnly?: boolean) => any;
|
|
242
251
|
}, {}, {}, {}, {
|
|
243
252
|
immediate: boolean;
|
|
253
|
+
checkStrictly: boolean;
|
|
244
254
|
accordion: boolean;
|
|
245
255
|
defaultExpandAll: boolean;
|
|
246
256
|
theme: string;
|
|
@@ -311,6 +321,10 @@ export declare const JTree: {
|
|
|
311
321
|
dataType: StringConstructor;
|
|
312
322
|
dataCode: StringConstructor;
|
|
313
323
|
checkable: BooleanConstructor;
|
|
324
|
+
checkStrictly: {
|
|
325
|
+
type: BooleanConstructor;
|
|
326
|
+
default: boolean;
|
|
327
|
+
};
|
|
314
328
|
check: FunctionConstructor;
|
|
315
329
|
emptyDes: {
|
|
316
330
|
type: StringConstructor;
|
|
@@ -372,6 +386,7 @@ export declare const JTree: {
|
|
|
372
386
|
"node-drop": (...args: any[]) => void;
|
|
373
387
|
}, string, {
|
|
374
388
|
immediate: boolean;
|
|
389
|
+
checkStrictly: boolean;
|
|
375
390
|
accordion: boolean;
|
|
376
391
|
defaultExpandAll: boolean;
|
|
377
392
|
theme: string;
|
|
@@ -98,6 +98,13 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
98
98
|
* @zh 是否可选择
|
|
99
99
|
*/
|
|
100
100
|
checkable: BooleanConstructor;
|
|
101
|
+
/**
|
|
102
|
+
* @zh 在显示复选框的情况下,是否严格的遵循父子不互相关联的做法,默认为 false
|
|
103
|
+
*/
|
|
104
|
+
checkStrictly: {
|
|
105
|
+
type: BooleanConstructor;
|
|
106
|
+
default: boolean;
|
|
107
|
+
};
|
|
101
108
|
/**
|
|
102
109
|
* @zh 勾选方法
|
|
103
110
|
*/
|
|
@@ -298,6 +305,13 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
298
305
|
* @zh 是否可选择
|
|
299
306
|
*/
|
|
300
307
|
checkable: BooleanConstructor;
|
|
308
|
+
/**
|
|
309
|
+
* @zh 在显示复选框的情况下,是否严格的遵循父子不互相关联的做法,默认为 false
|
|
310
|
+
*/
|
|
311
|
+
checkStrictly: {
|
|
312
|
+
type: BooleanConstructor;
|
|
313
|
+
default: boolean;
|
|
314
|
+
};
|
|
301
315
|
/**
|
|
302
316
|
* @zh 勾选方法
|
|
303
317
|
*/
|
|
@@ -396,6 +410,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
396
410
|
"onNode-drop"?: ((...args: any[]) => any) | undefined;
|
|
397
411
|
}>, {
|
|
398
412
|
immediate: boolean;
|
|
413
|
+
checkStrictly: boolean;
|
|
399
414
|
accordion: boolean;
|
|
400
415
|
defaultExpandAll: boolean;
|
|
401
416
|
theme: string;
|
package/dist/simcode-ui.es.js
CHANGED
|
@@ -12634,7 +12634,12 @@ var Kp = /* @__PURE__ */ we({
|
|
|
12634
12634
|
}, Fe = D(!1), Ue = () => {
|
|
12635
12635
|
Fe.value = !Fe.value;
|
|
12636
12636
|
}, gt = () => {
|
|
12637
|
-
g.value = [], l.value && (l.value.setSelection?.([]), b.value && (b.value = !1, l.value.setRecords(s.value))), c.value?.clearSelection?.()
|
|
12637
|
+
g.value = [], l.value && (l.value.setSelection?.([]), b.value && (b.value = !1, l.value.setRecords(s.value))), c.value?.clearSelection?.(), r("select", {
|
|
12638
|
+
selections: [],
|
|
12639
|
+
record: {},
|
|
12640
|
+
checked: !1,
|
|
12641
|
+
isMultiple: i.isMultiple
|
|
12642
|
+
});
|
|
12638
12643
|
}, zt = () => {
|
|
12639
12644
|
b.value = !b.value, !v.value && (b.value ? l.value?.setRecords(g.value) : l.value?.setRecords(s.value), l.value?.setSelection?.(g.value));
|
|
12640
12645
|
}, Jt = P(() => {
|
|
@@ -13357,6 +13362,10 @@ var Kp = /* @__PURE__ */ we({
|
|
|
13357
13362
|
dataType: String,
|
|
13358
13363
|
dataCode: String,
|
|
13359
13364
|
checkable: Boolean,
|
|
13365
|
+
checkStrictly: {
|
|
13366
|
+
type: Boolean,
|
|
13367
|
+
default: !1
|
|
13368
|
+
},
|
|
13360
13369
|
check: Function,
|
|
13361
13370
|
emptyDes: {
|
|
13362
13371
|
type: String,
|
|
@@ -13487,6 +13496,7 @@ var Kp = /* @__PURE__ */ we({
|
|
|
13487
13496
|
draggable: e.draggable,
|
|
13488
13497
|
"allow-drop": B,
|
|
13489
13498
|
"expand-on-click-node": e.expandOnClickNode,
|
|
13499
|
+
"check-strictly": e.checkStrictly,
|
|
13490
13500
|
onNodeClick: C,
|
|
13491
13501
|
onCheck: v,
|
|
13492
13502
|
onNodeDrop: _
|
|
@@ -13554,7 +13564,8 @@ var Kp = /* @__PURE__ */ we({
|
|
|
13554
13564
|
"filter-node-method",
|
|
13555
13565
|
"render-after-expand",
|
|
13556
13566
|
"draggable",
|
|
13557
|
-
"expand-on-click-node"
|
|
13567
|
+
"expand-on-click-node",
|
|
13568
|
+
"check-strictly"
|
|
13558
13569
|
])) : (k(), L("div", gb, [ee(Q, { description: G(r)(e.emptyDes) }, null, 8, ["description"])]))], 2)), [[U, d.value]]);
|
|
13559
13570
|
};
|
|
13560
13571
|
}
|