bri-components 1.0.5 → 1.1.0
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/lib/0.bri-components.min.js +1 -1
- package/lib/1.bri-components.min.js +1 -1
- package/lib/2.bri-components.min.js +1 -1
- package/lib/3.bri-components.min.js +1 -1
- package/lib/4.bri-components.min.js +1 -1
- package/lib/5.bri-components.min.js +1 -1
- package/lib/6.bri-components.min.js +1 -1
- package/lib/7.bri-components.min.js +1 -0
- package/lib/8.bri-components.min.js +1 -0
- package/lib/9.bri-components.min.js +1 -0
- package/lib/bri-components.min.js +13 -5
- package/lib/styles/bundle.css +0 -2
- package/package.json +2 -1
- package/src/components/controls/base/BriLabels.vue +117 -0
- package/src/components/controls/base/DshCascader.vue +23 -38
- package/src/components/controls/base/DshCascaderMultiple.vue +1 -1
- package/src/components/controls/base/DshCheckbox.vue +14 -4
- package/src/components/controls/base/DshCoordinates.vue +5 -9
- package/src/components/controls/base/DshDate.vue +10 -34
- package/src/components/controls/base/DshDivider.vue +1 -1
- package/src/components/controls/base/DshEditor.vue +52 -44
- package/src/components/controls/base/DshInput.vue +18 -45
- package/src/components/controls/base/DshLabels.vue +8 -4
- package/src/components/controls/base/DshNumber/DshNumber.vue +6 -20
- package/src/components/controls/base/DshNumberange.vue +1 -1
- package/src/components/controls/base/DshPackage.vue +7 -1
- package/src/components/controls/base/DshSelect.vue +15 -5
- package/src/components/controls/base/DshSwitch.vue +2 -6
- package/src/components/controls/base/YSerialNumber.vue +0 -1
- package/src/components/controls/base/ZUpload/index.vue +16 -10
- package/src/components/controls/base/ZUpload/upload-list.vue +17 -12
- package/src/components/controls/base/ZUpload/uploadMixin.js +1 -5
- package/src/components/controls/base/controlShow.vue +52 -0
- package/src/components/controls/base/textMultiple/DshTextMultiple.vue +1 -1
- package/src/components/controls/controlMap.js +4 -0
- package/src/components/controls/controlMixin.js +18 -12
- package/src/components/controls/senior/cascaderTable.vue +188 -0
- package/src/components/controls/senior/flatTable.vue +131 -0
- package/src/components/form/DshForm.vue +0 -3
- package/src/components/list/BriFlatTable.vue +430 -0
- package/src/components/list/BriTable.vue +184 -0
- package/src/components/list/DshBox/DshPanel.vue +4 -9
- package/src/components/list/DshBox/DshTable.vue +29 -39
- package/src/components/list/DshCascaderTable.vue +6 -11
- package/src/components/other/BriTransfer.vue +71 -0
- package/src/components/small/BriButton.vue +65 -0
- package/src/components/small/BriTree.vue +42 -0
- package/src/components/small/Ctooltip.vue +1 -1
- package/src/components/small/DshButtons.vue +12 -42
- package/src/components/unit/DshFormItem.vue +0 -2
- package/src/components/unit/DshUnit.vue +1 -1
- package/src/components/unit/unitMixin.js +4 -1
- package/src/index.js +24 -4
- package/src/styles/bundle.css +0 -2
- package/src/styles/common/common.less +2 -2
- package/src/styles/common/control.less +53 -0
- package/src/styles/common/index.less +1 -0
- package/src/styles/components/controls/BriLabels.less +23 -0
- package/src/styles/components/controls/DshCascader.less +3 -3
- package/src/styles/components/controls/DshCheckbox.less +1 -1
- package/src/styles/components/controls/DshCoordinates.less +3 -3
- package/src/styles/components/controls/DshDate.less +54 -0
- package/src/styles/components/controls/DshDaterange.less +1 -1
- package/src/styles/components/controls/DshEditor.less +27 -9
- package/src/styles/components/controls/DshInput.less +5 -5
- package/src/styles/components/controls/DshLabels.less +1 -1
- package/src/styles/components/controls/DshSelect.less +46 -30
- package/src/styles/components/controls/ZUpload.less +82 -91
- package/src/styles/components/controls/cascaderTable.less +33 -0
- package/src/styles/components/controls/controlShow.less +12 -0
- package/src/styles/components/controls/flatTable.less +33 -0
- package/src/styles/components/form/DshAdvSearchForm.less +6 -6
- package/src/styles/components/index.less +10 -0
- package/src/styles/components/list/BriFlatTable.less +8 -0
- package/src/styles/components/list/BriTable.less +155 -0
- package/src/styles/components/list/DshFlatTable.less +3 -8
- package/src/styles/components/list/evTable.less +1 -1
- package/src/styles/components/other/BriTransfer.less +65 -0
- package/src/styles/components/other/DshEditPanel.less +2 -2
- package/src/styles/components/other/DshMenuNav.less +5 -5
- package/src/styles/components/other/ZGantt.less +5 -5
- package/src/styles/components/small/BriButton.less +259 -0
- package/src/styles/components/small/BriTree.less +57 -0
- package/src/styles/components/small/Ctooltip.less +14 -0
- package/src/styles/components/small/DshButtons.less +1 -1
- package/src/styles/components/small/DshControlDefine.less +2 -2
- package/src/styles/components/small/DshDropdown.less +1 -1
- package/src/styles/components/small/DshPage.less +1 -1
- package/src/styles/components/small/DshTabs.less +2 -2
- package/src/styles/components/unit/DshFormItem.less +5 -6
- package/src/styles/index.less +1 -5
- package/src/styles/plugin/easytable.less +22 -0
- package/src/styles/plugin/index.less +2 -0
- package/src/styles/plugin/iview.less +33 -0
- package/src/styles/variables.less +71 -88
- package/src/utils/table.js +72 -978
- package/src/styles/define.less +0 -374
- package/src/styles/view_reset.less +0 -452
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
.dsh-control-define {
|
|
2
2
|
height: 32px;
|
|
3
3
|
padding: 2px 6px;
|
|
4
|
-
border: 1px solid @
|
|
4
|
+
border: 1px solid @borderColor;
|
|
5
5
|
border-radius: 0px;
|
|
6
6
|
line-height: 22px;
|
|
7
7
|
text-align: left;
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
&-disabled {
|
|
32
|
-
border-color: @
|
|
32
|
+
border-color: @border-disabled !important;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
&-text {
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
&-active {
|
|
25
25
|
background-color: @bgColor;
|
|
26
26
|
font-weight: 600;
|
|
27
|
-
color:
|
|
27
|
+
color: #515a6e;
|
|
28
28
|
}
|
|
29
29
|
&:hover {
|
|
30
30
|
.DshTabs-item-delete,
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
background-color: @bgColor;
|
|
74
74
|
line-height: 16px;
|
|
75
75
|
font-size: 12px;
|
|
76
|
-
color:
|
|
76
|
+
color: #515a6e;
|
|
77
77
|
&:focus {
|
|
78
78
|
box-shadow: none;
|
|
79
79
|
}
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
padding: 5px 0px 5px;
|
|
24
24
|
min-width: 0px;
|
|
25
25
|
line-height: 20px;
|
|
26
|
-
font-size: @
|
|
26
|
+
font-size: @smallSize;
|
|
27
27
|
margin-bottom: 3px;
|
|
28
28
|
display: flex;
|
|
29
29
|
align-items: center;
|
|
@@ -41,9 +41,8 @@
|
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
&-name {
|
|
44
|
-
color: @
|
|
45
|
-
font-size: @
|
|
46
|
-
font-family: "Microsoft YaHei";
|
|
44
|
+
color: @contentColor;
|
|
45
|
+
font-size: @textSize;
|
|
47
46
|
|
|
48
47
|
&-sign {
|
|
49
48
|
#dsh-sign-change();
|
|
@@ -51,14 +50,14 @@
|
|
|
51
50
|
}
|
|
52
51
|
|
|
53
52
|
&-description {
|
|
54
|
-
color:
|
|
53
|
+
color: #60c0ec;
|
|
55
54
|
}
|
|
56
55
|
}
|
|
57
56
|
|
|
58
57
|
&-control {
|
|
59
58
|
min-height: 30px;
|
|
60
59
|
|
|
61
|
-
.DshPackage-edit{
|
|
60
|
+
.DshPackage-edit {
|
|
62
61
|
border: none;
|
|
63
62
|
padding: 0;
|
|
64
63
|
}
|
package/src/styles/index.less
CHANGED
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
// @import '~view-design/src/styles/index.less'; // 第三方库样式
|
|
2
|
-
|
|
3
1
|
@import "./variables.less"; // iview重置样式
|
|
4
|
-
@import "./
|
|
2
|
+
@import "./plugin/index.less"; // 插件定制化样式
|
|
5
3
|
@import "./reset.less"; // 自定义重置样式
|
|
6
4
|
@import "./common/index.less"; // 共用样式
|
|
7
|
-
@import "./define.less"; // 自定义样式
|
|
8
5
|
@import "./animate.less"; // 动画样式
|
|
9
|
-
|
|
10
6
|
@import "./components/index.less"; // 组件样式
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
@import '~vue-easytable/packages/theme-default/index.less'; // 引入官方提供的 less 样式入口文件
|
|
2
|
+
// 可替换列表 https://github.com/Happy-Coding-Clans/vue-easytable/blob/master/packages/theme-default/var.less
|
|
3
|
+
@ve-primary-color : @themeColor;
|
|
4
|
+
@ve-default-text-color : @textColor;
|
|
5
|
+
@ve-table-border-color : @borderColor;
|
|
6
|
+
@ve-table-body-row-hover-background-color : tint(@themeColor, 90%);
|
|
7
|
+
@ve-table-body-row-highlight-background-color: tint(@themeColor, 90%);
|
|
8
|
+
@ve-table-head-text-color : @contentColor;
|
|
9
|
+
@ve-table-foot-text-color : @textColor;
|
|
10
|
+
@ve-table-header-background-color : @btn-hover;
|
|
11
|
+
@ve-table-foot-background-color : @white;
|
|
12
|
+
@ve-table-sort-icon-default-color : @tableSeatchColor;
|
|
13
|
+
@ve-table-header-filter-icon-color : @tableSeatchColor;
|
|
14
|
+
@ve-dropdown-z-index : 99999;
|
|
15
|
+
@ve-table-head-row-height : 40px;
|
|
16
|
+
@ve-table-body-row-height : 40px;
|
|
17
|
+
@ve-table-foot-row-height : 40px;
|
|
18
|
+
@ve-table-head-row-td-padding : 4px 20px;
|
|
19
|
+
@ve-table-body-row-td-padding : 4px 20px;
|
|
20
|
+
@ve-table-foot-row-td-padding : 4px 20px;
|
|
21
|
+
@ve-table-column-fixed-border-color : @borderColor;
|
|
22
|
+
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
@import '~view-design/src/styles/index.less';
|
|
2
|
+
|
|
3
|
+
// 可替换样式 https://github.com/view-design/ViewUI/blob/master/src/styles/custom.less
|
|
4
|
+
// 直接引入变量custom_web报错,其他项目不报错,
|
|
5
|
+
@primary-color : #3DB8C5; // @themeColor;
|
|
6
|
+
@text-color : rgba(0, 0, 0, 0.9);
|
|
7
|
+
@border-radius-base : 4px;
|
|
8
|
+
@border-color-base : #E5E5E5;
|
|
9
|
+
@background-color-base : #F5F5F5;
|
|
10
|
+
@font-family : "PingFang SC","Microsoft YaHei","微软雅黑";
|
|
11
|
+
|
|
12
|
+
// Button
|
|
13
|
+
@btn-primary-color : rgba(255, 255,255, 0.9);
|
|
14
|
+
@btn-font-weight : 700;
|
|
15
|
+
@btn-border-radius-small: 4px;
|
|
16
|
+
@btn-disable-color : rgba(0, 0,0,0.26);
|
|
17
|
+
@btn-disable-bg : #E5E5E5;
|
|
18
|
+
@btn-disable-border : #ccc;
|
|
19
|
+
@btn-font-size-small : 12px;
|
|
20
|
+
@btn-ghost-color : #3DB8C5;
|
|
21
|
+
@btn-ghost-bg : rgba(255, 255,255, 0.9);
|
|
22
|
+
@btn-ghost-border : #E5E5E5;
|
|
23
|
+
|
|
24
|
+
// input
|
|
25
|
+
@input-placeholder-color: rgba(0, 0, 0, 0.4);
|
|
26
|
+
// @btn-padding-base-icon : 5px 15px 6px;
|
|
27
|
+
// @btn-padding-large-icon : 6px 15px 6px 15px;
|
|
28
|
+
// @btn-padding-small-icon : 1px 7px 2px;
|
|
29
|
+
// @btn-padding-base : 0 @padding-md - 1px;
|
|
30
|
+
// @btn-padding-large : @btn-padding-base;
|
|
31
|
+
// @btn-padding-small : 0 @padding-xs - 1px;
|
|
32
|
+
|
|
33
|
+
|
|
@@ -1,98 +1,81 @@
|
|
|
1
|
-
|
|
2
|
-
@themeColor: #3DB8C5; // 主题颜色
|
|
3
|
-
@
|
|
4
|
-
@
|
|
5
|
-
@
|
|
6
|
-
@
|
|
7
|
-
@
|
|
8
|
-
@
|
|
9
|
-
@
|
|
10
|
-
@
|
|
11
|
-
@disabledColor: #8A92A5; // 辅助图标
|
|
12
|
-
@shenpi-themeColor:#3D84EE; // 审批端表单编辑改版主题色
|
|
13
|
-
/*主色end*/
|
|
1
|
+
// 主题色
|
|
2
|
+
@themeColor : #3DB8C5; // 主题颜色
|
|
3
|
+
@theme-hover : #7DD0D8;
|
|
4
|
+
@theme-active : #298089;
|
|
5
|
+
@theme-focus : #DCF2F4;
|
|
6
|
+
@theme-disabled : #BCE7EB;
|
|
7
|
+
@brand2 : #5EC4CF; // 暂时未用到,名字待修改
|
|
8
|
+
@brand3 : #329EA9;
|
|
9
|
+
@brand5 : #9DDBE2;
|
|
10
|
+
@brand9 : #20636A;
|
|
14
11
|
|
|
15
|
-
|
|
16
|
-
@
|
|
17
|
-
@
|
|
18
|
-
@
|
|
19
|
-
@tipSuccess: #13C282; //通过绿
|
|
20
|
-
/*辅色end*/
|
|
12
|
+
// 背景色
|
|
13
|
+
@bgColor : #F5F5F5;
|
|
14
|
+
@white : #FFF;
|
|
15
|
+
@black : #000;
|
|
21
16
|
|
|
22
|
-
|
|
23
|
-
@
|
|
24
|
-
@
|
|
25
|
-
@
|
|
26
|
-
@
|
|
27
|
-
@
|
|
28
|
-
@
|
|
29
|
-
@
|
|
30
|
-
|
|
17
|
+
// border
|
|
18
|
+
@borderColor : #E5E5E5;
|
|
19
|
+
@border-hover : @theme-hover;
|
|
20
|
+
@border-active : @theme-active;
|
|
21
|
+
@border-readonly : @borderColor;
|
|
22
|
+
@border-disabled : #CCC;
|
|
23
|
+
@grey3 : #999999;
|
|
24
|
+
@gray6 : #666666;
|
|
25
|
+
@gray5 : #333333;
|
|
31
26
|
|
|
32
|
-
|
|
33
|
-
@
|
|
34
|
-
@
|
|
35
|
-
@
|
|
36
|
-
@smallTitleSize: 16px; //用于小标题类文字信息
|
|
37
|
-
@textSize: 14px; //用于主要信息类文字
|
|
38
|
-
@textSmallSize: 13px;
|
|
39
|
-
@tipTextSize: 12px; //用于辅助信息类文字
|
|
40
|
-
@bannerTitleSize: 54px;
|
|
41
|
-
/*字体大小规范end*/
|
|
27
|
+
// input背景色
|
|
28
|
+
@inputBg : @white;
|
|
29
|
+
@inputBg-readonly : #F5F5F5;
|
|
30
|
+
@inputBg-disabled : @borderColor;
|
|
42
31
|
|
|
32
|
+
// btn背景色
|
|
33
|
+
@btnBg : @white;
|
|
34
|
+
@btn-hover : #F0F0F0;
|
|
35
|
+
@btn-click : @borderColor;
|
|
36
|
+
@btn-disabled : @white;
|
|
43
37
|
|
|
44
|
-
|
|
45
|
-
@
|
|
46
|
-
@
|
|
47
|
-
@
|
|
48
|
-
@
|
|
38
|
+
// 文字&图标色
|
|
39
|
+
@textColor : rgba(0, 0, 0, 0.9);
|
|
40
|
+
@contentColor : rgba(0, 0, 0, 0.6); // 正文颜色
|
|
41
|
+
@titleColor : @textColor; // title文字颜色
|
|
42
|
+
@placeholderColor : rgba(0, 0, 0, 0.4);
|
|
43
|
+
@textColor-readonly : @textColor;
|
|
44
|
+
@textColor-disabled : rgba(0, 0, 0, 0.26);
|
|
45
|
+
@textWhColor : rgba(255, 255, 255, 0.9);
|
|
46
|
+
@fontWh2 : rgba(255, 255, 255, 0.55);
|
|
47
|
+
@fontWh3 : rgba(255, 255, 255, 0.35);
|
|
48
|
+
@fontWh4 : rgba(255, 255, 255, 0.22);
|
|
49
49
|
|
|
50
|
-
|
|
50
|
+
// 字体使用规则,字体大小和行高
|
|
51
|
+
@bannerTitleSize : 36px;
|
|
52
|
+
@bannerTitleHeight : 44px;
|
|
53
|
+
@largeTitleSize : 24px; // 最大title字体大小
|
|
54
|
+
@largeTitleHeight : 32px; // 最大title行高
|
|
55
|
+
@titleSize : 20px; // 用于导航文字 大标题文字
|
|
56
|
+
@titleHeight : 28px; // 用于导航文字 大标题行高
|
|
57
|
+
@commonTitleSize : 18px;
|
|
58
|
+
@smallTitleSize : 16px; //用于主页重要标题信息
|
|
59
|
+
@smallTitleHeight : 24px; //用于主页重要标题行高
|
|
60
|
+
@textSize : 14px; //用于主要信息类文字
|
|
61
|
+
@textHeight : 22px; //用于主要信息类文字行高
|
|
62
|
+
@smallSize : 12px; //用于辅助信息类文字
|
|
63
|
+
@smallHeight : 20px; //用于辅助信息类文字行高
|
|
64
|
+
@fontNormal : normal;
|
|
65
|
+
@fontBold : 700;
|
|
51
66
|
|
|
52
|
-
|
|
53
|
-
@
|
|
54
|
-
@
|
|
55
|
-
@
|
|
56
|
-
@
|
|
57
|
-
@formTextColor: #333; //表单label
|
|
58
|
-
@formLabelSize: 14px; //表单label
|
|
59
|
-
@formBorderColor: #E5E5E5; // 表单边框
|
|
60
|
-
@formBgColor: #F5F5F5; // 表单背景色
|
|
61
|
-
@formFocusBorderColor: @themeColor; // 表单选中边框
|
|
62
|
-
@uploadBackgroundColor: transparent; //上传icon背景
|
|
63
|
-
@iconDefaultGreyColor: #BABABA; //icon默认灰色
|
|
64
|
-
@ghostBg: #F4F8FF; //btn 浅背景色
|
|
65
|
-
@inputPlaceholderColor: #BCBCBC; //input框内部placeholder
|
|
66
|
-
@sheetSearchTitleColor: #333333; //工作表筛选两级title颜色
|
|
67
|
-
@activeDarkGreyColor: #515a6e; // active时字体深灰颜色
|
|
68
|
-
@readonlyBorderColor: #eee; //readonly状态下border颜色
|
|
69
|
-
@disabledBgColor: rgb(250, 250, 250);
|
|
70
|
-
// @disabledColor: #666;
|
|
67
|
+
// shadow 圆角
|
|
68
|
+
@hoverShadow : 0 1px 10px rgba(0, 0, 0, 0.05), 0 4px 5px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.12);
|
|
69
|
+
@boxShadow : 0 3px 14px 2px rgba(0, 0, 0, 0.05), 0 8px 10px 1px rgba(0, 0, 0, 0.06), 0 5px 5px -3px rgba(0, 0, 0, 0.1);
|
|
70
|
+
@modalShadow : 0 3px 14px 2px rgba(0, 0, 0, 0.05), 0 8px 10px 1px rgba(0, 0, 0, 0.06), 0 5px 5px -3px rgba(0, 0, 0, 0.1);
|
|
71
|
+
@borderRadius : 4px;
|
|
71
72
|
|
|
72
|
-
|
|
73
|
-
@
|
|
74
|
-
@
|
|
73
|
+
// 辅色
|
|
74
|
+
@warning-color : #EB920E;
|
|
75
|
+
@error-color : #E83636;
|
|
76
|
+
@scuess-color : #37C45E;
|
|
75
77
|
|
|
76
|
-
@cscecBg: #F4F5FA;
|
|
77
|
-
@cscecTableTitleBg: #fafbfd;
|
|
78
|
-
@dasTextColor: @contentColor;
|
|
79
|
-
@cscecInputBg: #fff;
|
|
80
78
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
#F4A135,
|
|
85
|
-
#32B5A5,
|
|
86
|
-
#A3CF26,
|
|
87
|
-
#C36625,
|
|
88
|
-
#793CB7,
|
|
89
|
-
#E94829,
|
|
90
|
-
#E8BB1F,
|
|
91
|
-
#52A829,
|
|
92
|
-
#37B653,
|
|
93
|
-
#1DD9E6,
|
|
94
|
-
#1457BC,
|
|
95
|
-
#4B5CC4,
|
|
96
|
-
#7471F7,
|
|
97
|
-
#C434DB,
|
|
98
|
-
#252F36;
|
|
79
|
+
// 老版本待优化
|
|
80
|
+
@resourceColor : #3D84EE,#F4A135, #32B5A5, #A3CF26, #C36625, #793CB7, #E94829,
|
|
81
|
+
#E8BB1F, #52A829, #37B653, #1DD9E6, #1457BC, #4B5CC4, #7471F7, #C434DB, #252F36;
|