@newview/ui 1.1.26 → 1.1.27
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/newview-ui.js +23 -4
- package/dist/newview-ui.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/types/ComForm.d.ts +129 -17
- package/types/Grid.d.ts +4 -0
package/package.json
CHANGED
package/types/ComForm.d.ts
CHANGED
|
@@ -1485,6 +1485,117 @@ export interface ColorPickerProp {
|
|
|
1485
1485
|
onOpenChange?: (event?: any, item?: ComFormItem) => any;
|
|
1486
1486
|
}
|
|
1487
1487
|
|
|
1488
|
+
/**
|
|
1489
|
+
* 文件上传参数
|
|
1490
|
+
*/
|
|
1491
|
+
export interface uploadFileProp{
|
|
1492
|
+
/**
|
|
1493
|
+
* 是否多选
|
|
1494
|
+
*/
|
|
1495
|
+
multiple?:boolean;
|
|
1496
|
+
/**
|
|
1497
|
+
* 分组
|
|
1498
|
+
*/
|
|
1499
|
+
groups?:Array<string>
|
|
1500
|
+
/**
|
|
1501
|
+
* 是否压缩
|
|
1502
|
+
*/
|
|
1503
|
+
isCompress?:Boolean
|
|
1504
|
+
/**
|
|
1505
|
+
* 允许上传格式
|
|
1506
|
+
*/
|
|
1507
|
+
format?:Array<string>
|
|
1508
|
+
/**
|
|
1509
|
+
* 文件大小限制,单位 kb
|
|
1510
|
+
*/
|
|
1511
|
+
maxSize?:Number
|
|
1512
|
+
/**
|
|
1513
|
+
* 单文件
|
|
1514
|
+
*/
|
|
1515
|
+
single?:Boolean
|
|
1516
|
+
/**
|
|
1517
|
+
* 空文件时显示信息
|
|
1518
|
+
*/
|
|
1519
|
+
nullMsg?:String
|
|
1520
|
+
/**
|
|
1521
|
+
* 是否只读
|
|
1522
|
+
*/
|
|
1523
|
+
readonly?:Boolean
|
|
1524
|
+
}
|
|
1525
|
+
/**
|
|
1526
|
+
* 富文本配置
|
|
1527
|
+
*/
|
|
1528
|
+
export interface textEditorProp{
|
|
1529
|
+
/**
|
|
1530
|
+
* 文本高度
|
|
1531
|
+
*/
|
|
1532
|
+
textHeight?: number;
|
|
1533
|
+
/**
|
|
1534
|
+
* 只读模式下文本区域是否有边框
|
|
1535
|
+
*/
|
|
1536
|
+
textBorder?: boolean;
|
|
1537
|
+
/**
|
|
1538
|
+
* 是否只读
|
|
1539
|
+
*/
|
|
1540
|
+
readonly?:Boolean
|
|
1541
|
+
}
|
|
1542
|
+
|
|
1543
|
+
/**
|
|
1544
|
+
* 字典项配置
|
|
1545
|
+
*/
|
|
1546
|
+
export interface dicSelProp{
|
|
1547
|
+
/**
|
|
1548
|
+
* 是否只读
|
|
1549
|
+
*/
|
|
1550
|
+
readonly?:Boolean
|
|
1551
|
+
/**
|
|
1552
|
+
* 字典code
|
|
1553
|
+
*/
|
|
1554
|
+
code?:String
|
|
1555
|
+
/**
|
|
1556
|
+
* 平台Id
|
|
1557
|
+
*/
|
|
1558
|
+
platformId?:Number
|
|
1559
|
+
}
|
|
1560
|
+
|
|
1561
|
+
/**
|
|
1562
|
+
* 构件类别选择参数
|
|
1563
|
+
*/
|
|
1564
|
+
export interface structureTypeProp{
|
|
1565
|
+
/**
|
|
1566
|
+
* 是否只读
|
|
1567
|
+
*/
|
|
1568
|
+
readonly?:Boolean
|
|
1569
|
+
/**
|
|
1570
|
+
* 是否多选
|
|
1571
|
+
*/
|
|
1572
|
+
multiple?:boolean;
|
|
1573
|
+
|
|
1574
|
+
}
|
|
1575
|
+
|
|
1576
|
+
/**
|
|
1577
|
+
* 构件选择类别 1:单位工程 2:构件
|
|
1578
|
+
*/
|
|
1579
|
+
type StructureInstanceSelType = 1 | 2
|
|
1580
|
+
/**
|
|
1581
|
+
* 构件选择参数
|
|
1582
|
+
*/
|
|
1583
|
+
export interface structureProp{
|
|
1584
|
+
/**
|
|
1585
|
+
* 是否只读
|
|
1586
|
+
*/
|
|
1587
|
+
readonly?:Boolean
|
|
1588
|
+
/**
|
|
1589
|
+
* 是否多选
|
|
1590
|
+
*/
|
|
1591
|
+
multiple?:boolean;
|
|
1592
|
+
/**
|
|
1593
|
+
* 构件选择类别 1:单位工程 2:构件
|
|
1594
|
+
*/
|
|
1595
|
+
selType?:StructureInstanceSelType;
|
|
1596
|
+
|
|
1597
|
+
}
|
|
1598
|
+
|
|
1488
1599
|
/**
|
|
1489
1600
|
* FormItem 参数
|
|
1490
1601
|
*/
|
|
@@ -1645,28 +1756,29 @@ export interface ComFormItem {
|
|
|
1645
1756
|
* 是否显示校验错误信息
|
|
1646
1757
|
*/
|
|
1647
1758
|
'show-message'?: boolean;
|
|
1759
|
+
|
|
1648
1760
|
/**
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1761
|
+
* 附件上传参数
|
|
1762
|
+
*/
|
|
1763
|
+
uploadFileProp?:uploadFileProp,
|
|
1652
1764
|
|
|
1653
1765
|
/**
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1766
|
+
* 富文本参数
|
|
1767
|
+
*/
|
|
1768
|
+
textEditorProp?:textEditorProp,
|
|
1769
|
+
|
|
1657
1770
|
/**
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1771
|
+
* 字典项参数
|
|
1772
|
+
*/
|
|
1773
|
+
dicSelProp?:dicSelProp
|
|
1661
1774
|
/**
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
multiple?:boolean
|
|
1775
|
+
* 构件类别选择参数
|
|
1776
|
+
*/
|
|
1777
|
+
structureTypeProp?:structureTypeProp
|
|
1778
|
+
/**
|
|
1779
|
+
* 构件选择参数
|
|
1780
|
+
*/
|
|
1781
|
+
structureProp?:structureProp
|
|
1670
1782
|
}
|
|
1671
1783
|
|
|
1672
1784
|
import type { DefineComponent } from 'vue';
|