@next-bricks/advanced 0.51.5 → 0.51.6

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.
@@ -353,131 +353,6 @@
353
353
  "category": "table",
354
354
  "insider": true
355
355
  },
356
- {
357
- "name": "eo-cascader",
358
- "alias": [
359
- "advanced.general-cascader"
360
- ],
361
- "properties": [
362
- {
363
- "name": "name",
364
- "description": "表单字段名",
365
- "type": "string"
366
- },
367
- {
368
- "name": "label",
369
- "description": "表单字段标签",
370
- "type": "string"
371
- },
372
- {
373
- "name": "required",
374
- "description": "是否为必填项",
375
- "type": "boolean"
376
- },
377
- {
378
- "name": "options",
379
- "description": "可选项数据源",
380
- "attribute": false,
381
- "type": "AntdCascaderProps[\"options\"]"
382
- },
383
- {
384
- "name": "fieldNames",
385
- "description": "自定义字段名,指定 label、value、children 对应的字段",
386
- "default": "{\n label: \"label\",\n value: \"value\",\n children: \"children\",\n }",
387
- "attribute": false,
388
- "type": "AntdCascaderProps[\"fieldNames\"]"
389
- },
390
- {
391
- "name": "value",
392
- "description": "当前选中的值",
393
- "attribute": false,
394
- "type": "AntdCascaderProps[\"value\"]"
395
- },
396
- {
397
- "name": "placeholder",
398
- "description": "输入框占位文本",
399
- "type": "string"
400
- },
401
- {
402
- "name": "multiple",
403
- "description": "是否支持多选",
404
- "type": "boolean"
405
- },
406
- {
407
- "name": "disabled",
408
- "description": "是否禁用",
409
- "type": "boolean"
410
- },
411
- {
412
- "name": "allowClear",
413
- "description": "是否支持清除",
414
- "default": "true",
415
- "type": "boolean"
416
- },
417
- {
418
- "name": "showSearch",
419
- "description": "是否支持搜索,开启后可通过输入关键字过滤选项",
420
- "default": "true",
421
- "type": "boolean"
422
- },
423
- {
424
- "name": "suffixIcon",
425
- "description": "自定义下拉箭头图标",
426
- "attribute": false,
427
- "type": "GeneralIconProps"
428
- },
429
- {
430
- "name": "expandTrigger",
431
- "description": "次级菜单的展开方式,可选 click 或 hover",
432
- "default": "\"click\"",
433
- "type": "AntdCascaderProps[\"expandTrigger\"]"
434
- },
435
- {
436
- "name": "popupPlacement",
437
- "description": "浮层预设位置,可选 bottomLeft、bottomRight、topLeft、topRight",
438
- "default": "\"bottomLeft\"",
439
- "type": "AntdCascaderProps[\"placement\"]"
440
- },
441
- {
442
- "name": "size",
443
- "description": "输入框大小,可选 large、middle、small",
444
- "type": "AntdCascaderProps[\"size\"]"
445
- },
446
- {
447
- "name": "limit",
448
- "description": "搜索结果的最大条数,0 表示不限制",
449
- "default": "50",
450
- "type": "number"
451
- },
452
- {
453
- "name": "maxTagCount",
454
- "description": "多选模式下最多显示的 tag 数量,设为 responsive 时会自适应宽度",
455
- "attribute": false,
456
- "type": "number | \"responsive\""
457
- },
458
- {
459
- "name": "cascaderStyle",
460
- "description": "级联选择器的内联样式",
461
- "attribute": false,
462
- "type": "CSSProperties"
463
- }
464
- ],
465
- "events": [
466
- {
467
- "name": "cascader.change",
468
- "description": "",
469
- "detail": {
470
- "description": "{ value: 选择的值, selectedOptions: 选择的值所对应的 options }",
471
- "type": "CascaderChangeEventDetail"
472
- }
473
- }
474
- ],
475
- "slots": [],
476
- "methods": [],
477
- "parts": [],
478
- "description": "级联选择器",
479
- "category": "form-input-basic"
480
- },
481
356
  {
482
357
  "name": "eo-next-table",
483
358
  "properties": [
@@ -714,6 +589,131 @@
714
589
  "description": "大型表格",
715
590
  "category": "table"
716
591
  },
592
+ {
593
+ "name": "eo-cascader",
594
+ "alias": [
595
+ "advanced.general-cascader"
596
+ ],
597
+ "properties": [
598
+ {
599
+ "name": "name",
600
+ "description": "表单字段名",
601
+ "type": "string"
602
+ },
603
+ {
604
+ "name": "label",
605
+ "description": "表单字段标签",
606
+ "type": "string"
607
+ },
608
+ {
609
+ "name": "required",
610
+ "description": "是否为必填项",
611
+ "type": "boolean"
612
+ },
613
+ {
614
+ "name": "options",
615
+ "description": "可选项数据源",
616
+ "attribute": false,
617
+ "type": "AntdCascaderProps[\"options\"]"
618
+ },
619
+ {
620
+ "name": "fieldNames",
621
+ "description": "自定义字段名,指定 label、value、children 对应的字段",
622
+ "default": "{\n label: \"label\",\n value: \"value\",\n children: \"children\",\n }",
623
+ "attribute": false,
624
+ "type": "AntdCascaderProps[\"fieldNames\"]"
625
+ },
626
+ {
627
+ "name": "value",
628
+ "description": "当前选中的值",
629
+ "attribute": false,
630
+ "type": "AntdCascaderProps[\"value\"]"
631
+ },
632
+ {
633
+ "name": "placeholder",
634
+ "description": "输入框占位文本",
635
+ "type": "string"
636
+ },
637
+ {
638
+ "name": "multiple",
639
+ "description": "是否支持多选",
640
+ "type": "boolean"
641
+ },
642
+ {
643
+ "name": "disabled",
644
+ "description": "是否禁用",
645
+ "type": "boolean"
646
+ },
647
+ {
648
+ "name": "allowClear",
649
+ "description": "是否支持清除",
650
+ "default": "true",
651
+ "type": "boolean"
652
+ },
653
+ {
654
+ "name": "showSearch",
655
+ "description": "是否支持搜索,开启后可通过输入关键字过滤选项",
656
+ "default": "true",
657
+ "type": "boolean"
658
+ },
659
+ {
660
+ "name": "suffixIcon",
661
+ "description": "自定义下拉箭头图标",
662
+ "attribute": false,
663
+ "type": "GeneralIconProps"
664
+ },
665
+ {
666
+ "name": "expandTrigger",
667
+ "description": "次级菜单的展开方式,可选 click 或 hover",
668
+ "default": "\"click\"",
669
+ "type": "AntdCascaderProps[\"expandTrigger\"]"
670
+ },
671
+ {
672
+ "name": "popupPlacement",
673
+ "description": "浮层预设位置,可选 bottomLeft、bottomRight、topLeft、topRight",
674
+ "default": "\"bottomLeft\"",
675
+ "type": "AntdCascaderProps[\"placement\"]"
676
+ },
677
+ {
678
+ "name": "size",
679
+ "description": "输入框大小,可选 large、middle、small",
680
+ "type": "AntdCascaderProps[\"size\"]"
681
+ },
682
+ {
683
+ "name": "limit",
684
+ "description": "搜索结果的最大条数,0 表示不限制",
685
+ "default": "50",
686
+ "type": "number"
687
+ },
688
+ {
689
+ "name": "maxTagCount",
690
+ "description": "多选模式下最多显示的 tag 数量,设为 responsive 时会自适应宽度",
691
+ "attribute": false,
692
+ "type": "number | \"responsive\""
693
+ },
694
+ {
695
+ "name": "cascaderStyle",
696
+ "description": "级联选择器的内联样式",
697
+ "attribute": false,
698
+ "type": "CSSProperties"
699
+ }
700
+ ],
701
+ "events": [
702
+ {
703
+ "name": "cascader.change",
704
+ "description": "",
705
+ "detail": {
706
+ "description": "{ value: 选择的值, selectedOptions: 选择的值所对应的 options }",
707
+ "type": "CascaderChangeEventDetail"
708
+ }
709
+ }
710
+ ],
711
+ "slots": [],
712
+ "methods": [],
713
+ "parts": [],
714
+ "description": "级联选择器",
715
+ "category": "form-input-basic"
716
+ },
717
717
  {
718
718
  "name": "eo-workbench-layout",
719
719
  "properties": [
@@ -1158,29 +1158,6 @@
1158
1158
  "description": "树选择器,支持从树形数据中单选或多选节点",
1159
1159
  "category": "form-input-basic"
1160
1160
  },
1161
- {
1162
- "name": "eo-text-tooltip",
1163
- "properties": [
1164
- {
1165
- "name": "label",
1166
- "description": "显示的文本内容,超出时以省略号截断",
1167
- "default": null,
1168
- "type": "string"
1169
- },
1170
- {
1171
- "name": "lineClamp",
1172
- "description": "省略的行数,超过该行数后显示省略号,设为 0 表示不省略",
1173
- "default": "1",
1174
- "type": "number"
1175
- }
1176
- ],
1177
- "events": [],
1178
- "slots": [],
1179
- "methods": [],
1180
- "parts": [],
1181
- "description": "文本超出显示区域时,鼠标悬浮显示完整内容的 Tooltip",
1182
- "category": "display"
1183
- },
1184
1161
  {
1185
1162
  "name": "advanced.pdf-viewer",
1186
1163
  "properties": [
@@ -1212,6 +1189,29 @@
1212
1189
  "parts": [],
1213
1190
  "description": "PDF 文件预览器,支持分页跳转和关键字高亮搜索",
1214
1191
  "category": "display"
1192
+ },
1193
+ {
1194
+ "name": "eo-text-tooltip",
1195
+ "properties": [
1196
+ {
1197
+ "name": "label",
1198
+ "description": "显示的文本内容,超出时以省略号截断",
1199
+ "default": null,
1200
+ "type": "string"
1201
+ },
1202
+ {
1203
+ "name": "lineClamp",
1204
+ "description": "省略的行数,超过该行数后显示省略号,设为 0 表示不省略",
1205
+ "default": "1",
1206
+ "type": "number"
1207
+ }
1208
+ ],
1209
+ "events": [],
1210
+ "slots": [],
1211
+ "methods": [],
1212
+ "parts": [],
1213
+ "description": "文本超出显示区域时,鼠标悬浮显示完整内容的 Tooltip",
1214
+ "category": "display"
1215
1215
  }
1216
1216
  ],
1217
1217
  "providers": [
package/dist/types.json CHANGED
@@ -1313,26 +1313,6 @@
1313
1313
  ],
1314
1314
  "methods": []
1315
1315
  },
1316
- "eo-text-tooltip": {
1317
- "properties": [
1318
- {
1319
- "name": "label",
1320
- "annotation": {
1321
- "type": "keyword",
1322
- "value": "string"
1323
- }
1324
- },
1325
- {
1326
- "name": "lineClamp",
1327
- "annotation": {
1328
- "type": "keyword",
1329
- "value": "number"
1330
- }
1331
- }
1332
- ],
1333
- "events": [],
1334
- "methods": []
1335
- },
1336
1316
  "advanced.pdf-viewer": {
1337
1317
  "properties": [
1338
1318
  {
@@ -1377,6 +1357,26 @@
1377
1357
  "events": [],
1378
1358
  "methods": []
1379
1359
  },
1360
+ "eo-text-tooltip": {
1361
+ "properties": [
1362
+ {
1363
+ "name": "label",
1364
+ "annotation": {
1365
+ "type": "keyword",
1366
+ "value": "string"
1367
+ }
1368
+ },
1369
+ {
1370
+ "name": "lineClamp",
1371
+ "annotation": {
1372
+ "type": "keyword",
1373
+ "value": "number"
1374
+ }
1375
+ }
1376
+ ],
1377
+ "events": [],
1378
+ "methods": []
1379
+ },
1380
1380
  "advanced.capture-snapshot": {
1381
1381
  "type": "provider",
1382
1382
  "params": [
@@ -3,6 +3,7 @@ import "@next-core/theme";
3
3
  import type { GeneralIconProps } from "@next-bricks/icons/general-icon";
4
4
  import { CascaderProps as AntdCascaderProps, DefaultOptionType } from "antd/lib/cascader";
5
5
  import { FormItemElementBase } from "@next-shared/form";
6
+ export type CascaderBrickProps = Omit<CascaderProps, "shadowRoot" | "onChange">;
6
7
  export interface CascaderProps extends Pick<AntdCascaderProps, "options" | "fieldNames" | "value" | "expandTrigger" | "size"> {
7
8
  shadowRoot: ShadowRoot | null;
8
9
  multiple?: boolean;
@@ -32,7 +33,7 @@ export interface CascaderEventsMapping {
32
33
  * @author nlicroshan
33
34
  * @category form-input-basic
34
35
  */
35
- export declare class CascaderBrick extends FormItemElementBase implements CascaderProps {
36
+ export declare class CascaderBrick extends FormItemElementBase implements CascaderBrickProps {
36
37
  #private;
37
38
  /** 表单字段名 */
38
39
  accessor name: string | undefined;
@@ -3,6 +3,7 @@ import "@next-core/theme";
3
3
  import type { GeneralIconProps } from "@next-bricks/icons/general-icon";
4
4
  import { TreeSelectProps as AntdTreeSelectProps } from "antd/lib/tree-select";
5
5
  import { FormItemElementBase } from "@next-shared/form";
6
+ export type TreeSelectBrickProps = Omit<TreeSelectProps, "shadowRoot" | "onChange" | "onSearch" | "onSelect" | "onTreeExpand">;
6
7
  export interface TreeSelectProps extends Pick<AntdTreeSelectProps, "value" | "allowClear" | "disabled" | "fieldNames" | "filterTreeNode" | "maxTagCount" | "multiple" | "onSearch" | "onSelect" | "onChange" | "onTreeExpand" | "loading" | "placeholder" | "size" | "showSearch" | "searchValue" | "treeData" | "treeDefaultExpandAll" | "treeExpandedKeys"> {
7
8
  shadowRoot: ShadowRoot | null;
8
9
  checkable?: boolean;
@@ -35,7 +36,7 @@ export interface TreeSelectEventsMapping {
35
36
  * @author sailor
36
37
  * @category form-input-basic
37
38
  */
38
- export declare class TreeSelectBrick extends FormItemElementBase implements TreeSelectProps {
39
+ export declare class TreeSelectBrick extends FormItemElementBase implements TreeSelectBrickProps {
39
40
  #private;
40
41
  /** 表单字段名 */
41
42
  accessor name: string | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@next-bricks/advanced",
3
- "version": "0.51.5",
3
+ "version": "0.51.6",
4
4
  "homepage": "https://github.com/easyops-cn/next-advanced-bricks/tree/master/bricks/advanced",
5
5
  "repository": {
6
6
  "type": "git",
@@ -46,5 +46,5 @@
46
46
  "@next-bricks/form": "*",
47
47
  "@next-bricks/icons": "*"
48
48
  },
49
- "gitHead": "bfc02e6cd7028ac3f92808235d9f3fcc0dfde393"
49
+ "gitHead": "133fce513661478d2adb1648eb49938ab6deb607"
50
50
  }