bri-components 1.4.93 → 1.4.94

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.
Files changed (156) hide show
  1. package/README.md +83 -83
  2. package/lib/0.bri-components.min.js +1 -0
  3. package/lib/1.bri-components.min.js +1 -0
  4. package/lib/10.bri-components.min.js +1 -0
  5. package/lib/11.bri-components.min.js +1 -0
  6. package/lib/2.bri-components.min.js +1 -0
  7. package/lib/3.bri-components.min.js +1 -0
  8. package/lib/4.bri-components.min.js +1 -0
  9. package/lib/5.bri-components.min.js +1 -0
  10. package/lib/6.bri-components.min.js +1 -0
  11. package/lib/7.bri-components.min.js +1 -0
  12. package/lib/8.bri-components.min.js +1 -0
  13. package/lib/9.bri-components.min.js +1 -0
  14. package/lib/bri-components.min.js +18 -0
  15. package/lib/styles/bundle.css +12 -12
  16. package/lib/styles/font/fontello.svg +31 -31
  17. package/package.json +125 -125
  18. package/src/.DS_Store +0 -0
  19. package/src/components/.DS_Store +0 -0
  20. package/src/components/Error/Error403.vue +42 -42
  21. package/src/components/Error/Error404.vue +40 -40
  22. package/src/components/Error/Error500.vue +51 -51
  23. package/src/components/Error/error.less +162 -162
  24. package/src/components/Error/errorBack.vue +40 -40
  25. package/src/components/controls/.DS_Store +0 -0
  26. package/src/components/controls/DshControlInput.vue +195 -195
  27. package/src/components/controls/base/BriUpload/BriUpload.vue +434 -434
  28. package/src/components/controls/base/BriUpload/BriUploadImage.vue +373 -373
  29. package/src/components/controls/base/BriUpload/uploadList.vue +724 -724
  30. package/src/components/controls/base/BriUpload/uploadMixin.js +446 -446
  31. package/src/components/controls/base/DshCascader/DshCascader.vue +210 -210
  32. package/src/components/controls/base/DshCascader/components/cascaderModal.vue +366 -366
  33. package/src/components/controls/base/DshCascader/components/cascaderPicker.vue +416 -416
  34. package/src/components/controls/base/DshCascader/components/cascaderSimple.vue +143 -143
  35. package/src/components/controls/base/DshCoordinates.vue +577 -577
  36. package/src/components/controls/base/DshDate/DshDate.vue +191 -191
  37. package/src/components/controls/base/DshDate/DshDaterange.vue +186 -186
  38. package/src/components/controls/base/DshDivider.vue +201 -201
  39. package/src/components/controls/base/DshEditor.vue +274 -274
  40. package/src/components/controls/base/DshInput/BriInputs.vue +166 -166
  41. package/src/components/controls/base/DshInput/DshInput.vue +255 -255
  42. package/src/components/controls/base/DshNumber/BriInputNumber/BriInputNumber.vue +435 -435
  43. package/src/components/controls/base/DshNumber/BriInputNumber/mixins/emitter.js +34 -34
  44. package/src/components/controls/base/DshNumber/BriInputNumber/mixins/form.js +14 -14
  45. package/src/components/controls/base/DshNumber/BriInputNumber/utils/assist.js +322 -322
  46. package/src/components/controls/base/DshNumber/DshNumber.vue +143 -143
  47. package/src/components/controls/base/DshNumber/DshNumberange.vue +109 -109
  48. package/src/components/controls/base/DshSelect/DshCheckbox.vue +168 -168
  49. package/src/components/controls/base/DshSelect/DshSelect.vue +180 -180
  50. package/src/components/controls/base/DshSwitch/DshSwitch.vue +115 -115
  51. package/src/components/controls/control.less +324 -324
  52. package/src/components/controls/controlMap.js +114 -114
  53. package/src/components/controls/extra/DshColor.vue +81 -81
  54. package/src/components/controls/extra/themeColor.vue +104 -104
  55. package/src/components/controls/extra/themeIcon.vue +114 -114
  56. package/src/components/controls/mixins/cascaderMixin.js +295 -295
  57. package/src/components/controls/mixins/cascaderPickerMixin.js +216 -216
  58. package/src/components/controls/mixins/cascaderTableMixin.js +130 -130
  59. package/src/components/controls/mixins/controlMixin.js +368 -368
  60. package/src/components/controls/mixins/dateMixin.js +149 -149
  61. package/src/components/controls/mixins/flatTableMixin.js +111 -111
  62. package/src/components/controls/mixins/numberMixin.js +112 -112
  63. package/src/components/controls/mixins/selectMixin.js +233 -233
  64. package/src/components/controls/mixins/switchMixin.js +87 -87
  65. package/src/components/controls/mixins/userAndDepartMixin.js +218 -218
  66. package/src/components/controls/senior/.DS_Store +0 -0
  67. package/src/components/controls/senior/DshLabels.vue +331 -331
  68. package/src/components/controls/senior/DshPackage.vue +57 -57
  69. package/src/components/controls/senior/cascaderTable.vue +210 -210
  70. package/src/components/controls/senior/flatTable.vue +135 -135
  71. package/src/components/controls/senior/selectDepartments.vue +438 -438
  72. package/src/components/controls/senior/selectUsers/departMenu.vue +293 -293
  73. package/src/components/controls/senior/selectUsers/selectUsers.vue +752 -752
  74. package/src/components/controls/special/DshBack.vue +42 -42
  75. package/src/components/controls/special/DshUndeveloped.vue +41 -41
  76. package/src/components/form/DshAdvSearch.vue +510 -510
  77. package/src/components/form/DshDefaultSearch.vue +258 -258
  78. package/src/components/form/DshForm.vue +494 -494
  79. package/src/components/form/searchMixin.js +375 -375
  80. package/src/components/list/BriCard.vue +95 -95
  81. package/src/components/list/BriTable.vue +205 -205
  82. package/src/components/list/BriTree.vue +529 -529
  83. package/src/components/list/BriTreeItem.vue +163 -163
  84. package/src/components/list/DshBox/DshBox.vue +219 -219
  85. package/src/components/list/DshBox/DshCard.vue +446 -446
  86. package/src/components/list/DshBox/DshCrossTable.vue +827 -827
  87. package/src/components/list/DshBox/DshList.vue +404 -404
  88. package/src/components/list/DshBox/DshPanel.vue +669 -669
  89. package/src/components/list/DshBox/DshSingleData.vue +119 -119
  90. package/src/components/list/DshBox/DshTable.vue +239 -239
  91. package/src/components/list/DshCascaderTable.vue +115 -115
  92. package/src/components/list/DshFlatTable.vue +339 -339
  93. package/src/components/list/DshPage.vue +194 -194
  94. package/src/components/list/DshTreeTable.vue +113 -113
  95. package/src/components/list/common/importModal.vue +243 -243
  96. package/src/components/list/common/quoteListModal.vue +206 -206
  97. package/src/components/list/mixins/DshCascaderTableMixin.js +278 -278
  98. package/src/components/list/mixins/DshFlatTableMixin.js +493 -493
  99. package/src/components/list/mixins/DshTreeTableMixin.js +286 -286
  100. package/src/components/list/mixins/tableBaseMixin.js +1661 -1661
  101. package/src/components/list/mixins/treeTableBaseMixin.js +149 -149
  102. package/src/components/other/BriAvatar.vue +166 -166
  103. package/src/components/other/BriCode.vue +125 -125
  104. package/src/components/other/BriCollapseTree.vue +207 -207
  105. package/src/components/other/BriGantt.vue +1084 -1084
  106. package/src/components/other/BriIframe.vue +116 -116
  107. package/src/components/other/BriLoading.vue +171 -171
  108. package/src/components/other/BriSvg.vue +28 -28
  109. package/src/components/other/DshColorPanel.vue +128 -128
  110. package/src/components/other/DshMenuNav.vue +188 -188
  111. package/src/components/small/BriButton.vue +71 -71
  112. package/src/components/small/BriDrawer.vue +169 -169
  113. package/src/components/small/BriTooltip.vue +87 -87
  114. package/src/components/small/DshBtnModal.vue +68 -68
  115. package/src/components/small/DshButtons.vue +324 -324
  116. package/src/components/small/DshDropdown.vue +225 -225
  117. package/src/components/small/DshIcons.vue +59 -59
  118. package/src/components/small/DshListRender.js +21 -21
  119. package/src/components/small/DshModal.vue +160 -160
  120. package/src/components/small/DshSteps.vue +141 -141
  121. package/src/components/small/DshTabs.vue +598 -598
  122. package/src/components/small/DshTabsSet.vue +309 -309
  123. package/src/components/small/DshTags.vue +251 -251
  124. package/src/components/small/DshTitle.vue +50 -50
  125. package/src/components/small/render.js +20 -20
  126. package/src/components/unit/DshFormUnit.vue +398 -398
  127. package/src/components/unit/DshListUnit.vue +115 -115
  128. package/src/components/unit/unitMixin.js +86 -86
  129. package/src/data/index.js +9 -9
  130. package/src/index.js +271 -271
  131. package/src/styles/.DS_Store +0 -0
  132. package/src/styles/bundle.css +12 -12
  133. package/src/styles/components/.DS_Store +0 -0
  134. package/src/styles/components/BriButton.less +292 -292
  135. package/src/styles/components/BriTable.less +344 -344
  136. package/src/styles/components/DshModal.less +257 -250
  137. package/src/styles/components/index.less +3 -3
  138. package/src/styles/global/animate.less +11 -11
  139. package/src/styles/global/base.less +45 -45
  140. package/src/styles/global/box.less +186 -186
  141. package/src/styles/global/control.less +122 -122
  142. package/src/styles/global/flex.less +282 -282
  143. package/src/styles/global/global.less +8 -8
  144. package/src/styles/global/text.less +59 -59
  145. package/src/styles/global/variables.less +85 -85
  146. package/src/styles/iconfont/iconfont.css +254 -254
  147. package/src/styles/iconfont/iconfont.json +422 -422
  148. package/src/styles/iconfont/iconfont.svg +137 -137
  149. package/src/styles/index.less +11 -11
  150. package/src/styles/reset-easytable.less +21 -21
  151. package/src/styles/reset-iview-controls.less +145 -145
  152. package/src/styles/reset-iview-other.less +49 -49
  153. package/src/styles/reset-iview-variables.less +34 -34
  154. package/src/styles/reset.less +45 -45
  155. package/src/utils/index.js +5 -5
  156. package/src/utils/table.js +175 -175
@@ -1,112 +1,112 @@
1
- import controlMixin from "./controlMixin.js";
2
-
3
- export default {
4
- mixins: [
5
- controlMixin
6
- ],
7
- components: {},
8
- props: {},
9
- data () {
10
- return {};
11
- },
12
- computed: {
13
- selfPropsObj () {
14
- return {
15
- _numberFormat: "normal", // 子类型 "normal", "percent"
16
-
17
- _unit: "", // 常规-单位
18
- _separator: true, // 常规-千位分隔符
19
- _showProgress: false, // 百分比-进度条展示(列表)
20
- _strokeWidth: 12, // 百分比-进度条宽(高)
21
- _overflowColor: "#87d068", // 百分比-进度条超100%颜色
22
- _compeleteColor: "#87d068", // 百分比-进度条100%颜色
23
- _lessColor: "#108ee9", // 百分比-进度条低于100%颜色
24
-
25
- _round: "decimal", // 取值方式 "decimal", "round", "normal"
26
- _digit: "2", // 保留小数位数 "1", "2", "3", "4"
27
- _min: null, // 最小值
28
- _max: null, // 最大值
29
-
30
- ...this.propsObj,
31
- ...this.commonDealPropsObj
32
- };
33
- },
34
- subType () {
35
- return this.selfPropsObj._numberFormat;
36
- },
37
- step () {
38
- return this.selfPropsObj._step;
39
- },
40
-
41
- unit () {
42
- return this.selfPropsObj._unit;
43
- },
44
- unitStr () {
45
- return this.subType === "percent"
46
- ? "%"
47
- : this.unit
48
- ? `${this.unit}`
49
- : "";
50
- },
51
- separator () {
52
- return this.selfPropsObj._separator;
53
- },
54
- formatterFunc () {
55
- return this.separator
56
- ? this.$numToSeparator
57
- : value => `${value}`;
58
- },
59
-
60
- showProgress () {
61
- return this.selfPropsObj._showProgress;
62
- },
63
- // 进度条方式使用(此处先这样,实际是进度条使用要受0-100的数值范围限制)
64
- strokeWidth () {
65
- return this.selfPropsObj._strokeWidth;
66
- },
67
- statusColor () {
68
- return this.curVal > 100
69
- ? this.selfPropsObj._overflowColor
70
- : this.curVal === 100
71
- ? this.selfPropsObj._compeleteColor
72
- : this.selfPropsObj._lessColor;
73
- },
74
-
75
- round () {
76
- return this.selfPropsObj._round;
77
- },
78
- digit () {
79
- return this.round === "round"
80
- ? 0
81
- : this.round === "decimal"
82
- ? Number(this.selfPropsObj._digit || 2)
83
- : undefined;
84
- },
85
- maxNum () {
86
- return this.selfPropsObj._max || this.selfPropsObj._max === 0
87
- ? this.selfPropsObj._max
88
- : Infinity;
89
- },
90
- minNum () {
91
- return this.selfPropsObj._min || this.selfPropsObj._min === 0
92
- ? this.selfPropsObj._min
93
- : -Infinity;
94
- },
95
-
96
- progressNum () {
97
- return this.$isEmptyData(this.curVal) || this.curVal < 0
98
- ? 0
99
- : Math.round((this.curVal > 100 ? 100 : this.curVal) * 100) / 100;
100
- },
101
- progressStr () {
102
- return this.$numToStrAndUnit(this.$isEmptyData(this.curVal) ? 0 : this.curVal, this.selfPropsObj);
103
- },
104
- showVal () {
105
- return this.$isEmptyData(this.curVal)
106
- ? this.emptyShowVal
107
- : this.$numToStrAndUnit(this.curVal, this.selfPropsObj);
108
- }
109
- },
110
- created () { },
111
- methods: {}
112
- };
1
+ import controlMixin from "./controlMixin.js";
2
+
3
+ export default {
4
+ mixins: [
5
+ controlMixin
6
+ ],
7
+ components: {},
8
+ props: {},
9
+ data () {
10
+ return {};
11
+ },
12
+ computed: {
13
+ selfPropsObj () {
14
+ return {
15
+ _numberFormat: "normal", // 子类型 "normal", "percent"
16
+
17
+ _unit: "", // 常规-单位
18
+ _separator: true, // 常规-千位分隔符
19
+ _showProgress: false, // 百分比-进度条展示(列表)
20
+ _strokeWidth: 12, // 百分比-进度条宽(高)
21
+ _overflowColor: "#87d068", // 百分比-进度条超100%颜色
22
+ _compeleteColor: "#87d068", // 百分比-进度条100%颜色
23
+ _lessColor: "#108ee9", // 百分比-进度条低于100%颜色
24
+
25
+ _round: "decimal", // 取值方式 "decimal", "round", "normal"
26
+ _digit: "2", // 保留小数位数 "1", "2", "3", "4"
27
+ _min: null, // 最小值
28
+ _max: null, // 最大值
29
+
30
+ ...this.propsObj,
31
+ ...this.commonDealPropsObj
32
+ };
33
+ },
34
+ subType () {
35
+ return this.selfPropsObj._numberFormat;
36
+ },
37
+ step () {
38
+ return this.selfPropsObj._step;
39
+ },
40
+
41
+ unit () {
42
+ return this.selfPropsObj._unit;
43
+ },
44
+ unitStr () {
45
+ return this.subType === "percent"
46
+ ? "%"
47
+ : this.unit
48
+ ? `${this.unit}`
49
+ : "";
50
+ },
51
+ separator () {
52
+ return this.selfPropsObj._separator;
53
+ },
54
+ formatterFunc () {
55
+ return this.separator
56
+ ? this.$numToSeparator
57
+ : value => `${value}`;
58
+ },
59
+
60
+ showProgress () {
61
+ return this.selfPropsObj._showProgress;
62
+ },
63
+ // 进度条方式使用(此处先这样,实际是进度条使用要受0-100的数值范围限制)
64
+ strokeWidth () {
65
+ return this.selfPropsObj._strokeWidth;
66
+ },
67
+ statusColor () {
68
+ return this.curVal > 100
69
+ ? this.selfPropsObj._overflowColor
70
+ : this.curVal === 100
71
+ ? this.selfPropsObj._compeleteColor
72
+ : this.selfPropsObj._lessColor;
73
+ },
74
+
75
+ round () {
76
+ return this.selfPropsObj._round;
77
+ },
78
+ digit () {
79
+ return this.round === "round"
80
+ ? 0
81
+ : this.round === "decimal"
82
+ ? Number(this.selfPropsObj._digit || 2)
83
+ : undefined;
84
+ },
85
+ maxNum () {
86
+ return this.selfPropsObj._max || this.selfPropsObj._max === 0
87
+ ? this.selfPropsObj._max
88
+ : Infinity;
89
+ },
90
+ minNum () {
91
+ return this.selfPropsObj._min || this.selfPropsObj._min === 0
92
+ ? this.selfPropsObj._min
93
+ : -Infinity;
94
+ },
95
+
96
+ progressNum () {
97
+ return this.$isEmptyData(this.curVal) || this.curVal < 0
98
+ ? 0
99
+ : Math.round((this.curVal > 100 ? 100 : this.curVal) * 100) / 100;
100
+ },
101
+ progressStr () {
102
+ return this.$numToStrAndUnit(this.$isEmptyData(this.curVal) ? 0 : this.curVal, this.selfPropsObj);
103
+ },
104
+ showVal () {
105
+ return this.$isEmptyData(this.curVal)
106
+ ? this.emptyShowVal
107
+ : this.$numToStrAndUnit(this.curVal, this.selfPropsObj);
108
+ }
109
+ },
110
+ created () { },
111
+ methods: {}
112
+ };