bri-components 1.0.3 → 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.
Files changed (99) hide show
  1. package/lib/0.bri-components.min.js +1 -1
  2. package/lib/1.bri-components.min.js +1 -1
  3. package/lib/2.bri-components.min.js +1 -1
  4. package/lib/3.bri-components.min.js +1 -1
  5. package/lib/4.bri-components.min.js +1 -1
  6. package/lib/5.bri-components.min.js +1 -1
  7. package/lib/6.bri-components.min.js +1 -1
  8. package/lib/7.bri-components.min.js +1 -0
  9. package/lib/8.bri-components.min.js +1 -0
  10. package/lib/9.bri-components.min.js +1 -0
  11. package/lib/bri-components.min.js +16 -6
  12. package/lib/styles/bundle.css +0 -2
  13. package/package.json +121 -120
  14. package/src/components/controls/base/BriLabels.vue +117 -0
  15. package/src/components/controls/base/DshCascader.vue +23 -38
  16. package/src/components/controls/base/DshCascaderMultiple.vue +1 -1
  17. package/src/components/controls/base/DshCheckbox.vue +14 -4
  18. package/src/components/controls/base/DshCoordinates.vue +5 -9
  19. package/src/components/controls/base/DshDate.vue +10 -34
  20. package/src/components/controls/base/DshDivider.vue +1 -1
  21. package/src/components/controls/base/DshEditor.vue +52 -44
  22. package/src/components/controls/base/DshInput.vue +18 -45
  23. package/src/components/controls/base/DshLabels.vue +8 -4
  24. package/src/components/controls/base/DshNumber/DshNumber.vue +6 -20
  25. package/src/components/controls/base/DshNumberange.vue +1 -1
  26. package/src/components/controls/base/DshPackage.vue +7 -1
  27. package/src/components/controls/base/DshSelect.vue +15 -5
  28. package/src/components/controls/base/DshSwitch.vue +2 -6
  29. package/src/components/controls/base/YSerialNumber.vue +0 -1
  30. package/src/components/controls/base/ZUpload/index.vue +16 -10
  31. package/src/components/controls/base/ZUpload/upload-list.vue +17 -12
  32. package/src/components/controls/base/ZUpload/uploadMixin.js +1 -5
  33. package/src/components/controls/base/controlShow.vue +52 -0
  34. package/src/components/controls/base/textMultiple/DshTextMultiple.vue +1 -1
  35. package/src/components/controls/controlMap.js +4 -0
  36. package/src/components/controls/controlMixin.js +21 -20
  37. package/src/components/controls/senior/cascaderTable.vue +188 -0
  38. package/src/components/controls/senior/flatTable.vue +131 -0
  39. package/src/components/form/DshForm.vue +0 -5
  40. package/src/components/list/BriFlatTable.vue +430 -0
  41. package/src/components/list/BriTable.vue +184 -0
  42. package/src/components/list/DshBox/DshPanel.vue +63 -79
  43. package/src/components/list/DshBox/DshTable.vue +29 -39
  44. package/src/components/list/DshCascaderTable.vue +6 -11
  45. package/src/components/list/DshFlatTable.vue +9 -17
  46. package/src/components/other/BriTransfer.vue +71 -0
  47. package/src/components/small/BriButton.vue +65 -0
  48. package/src/components/small/BriTree.vue +42 -0
  49. package/src/components/small/Ctooltip.vue +1 -1
  50. package/src/components/small/DshButtons.vue +12 -42
  51. package/src/components/unit/DshFormItem.vue +11 -6
  52. package/src/components/unit/DshUnit.vue +1 -3
  53. package/src/components/unit/unitMixin.js +4 -1
  54. package/src/index.js +24 -4
  55. package/src/styles/bundle.css +0 -2
  56. package/src/styles/common/common.less +2 -2
  57. package/src/styles/common/control.less +53 -0
  58. package/src/styles/common/index.less +1 -0
  59. package/src/styles/components/controls/BriLabels.less +23 -0
  60. package/src/styles/components/controls/DshCascader.less +3 -3
  61. package/src/styles/components/controls/DshCheckbox.less +1 -1
  62. package/src/styles/components/controls/DshCoordinates.less +3 -3
  63. package/src/styles/components/controls/DshDate.less +54 -0
  64. package/src/styles/components/controls/DshDaterange.less +1 -1
  65. package/src/styles/components/controls/DshEditor.less +27 -9
  66. package/src/styles/components/controls/DshInput.less +5 -5
  67. package/src/styles/components/controls/DshLabels.less +1 -1
  68. package/src/styles/components/controls/DshSelect.less +46 -30
  69. package/src/styles/components/controls/ZUpload.less +82 -91
  70. package/src/styles/components/controls/cascaderTable.less +33 -0
  71. package/src/styles/components/controls/controlShow.less +12 -0
  72. package/src/styles/components/controls/flatTable.less +33 -0
  73. package/src/styles/components/form/DshAdvSearchForm.less +6 -6
  74. package/src/styles/components/index.less +10 -0
  75. package/src/styles/components/list/BriFlatTable.less +8 -0
  76. package/src/styles/components/list/BriTable.less +155 -0
  77. package/src/styles/components/list/DshFlatTable.less +3 -8
  78. package/src/styles/components/list/evTable.less +1 -1
  79. package/src/styles/components/other/BriTransfer.less +65 -0
  80. package/src/styles/components/other/DshEditPanel.less +2 -2
  81. package/src/styles/components/other/DshMenuNav.less +5 -5
  82. package/src/styles/components/other/ZGantt.less +5 -5
  83. package/src/styles/components/small/BriButton.less +259 -0
  84. package/src/styles/components/small/BriTree.less +57 -0
  85. package/src/styles/components/small/Ctooltip.less +14 -0
  86. package/src/styles/components/small/DshButtons.less +1 -1
  87. package/src/styles/components/small/DshControlDefine.less +2 -2
  88. package/src/styles/components/small/DshDropdown.less +1 -1
  89. package/src/styles/components/small/DshPage.less +1 -1
  90. package/src/styles/components/small/DshTabs.less +2 -2
  91. package/src/styles/components/unit/DshFormItem.less +5 -6
  92. package/src/styles/index.less +1 -5
  93. package/src/styles/plugin/easytable.less +22 -0
  94. package/src/styles/plugin/index.less +2 -0
  95. package/src/styles/plugin/iview.less +33 -0
  96. package/src/styles/variables.less +71 -88
  97. package/src/utils/table.js +72 -978
  98. package/src/styles/define.less +0 -374
  99. package/src/styles/view_reset.less +0 -452
@@ -0,0 +1,42 @@
1
+ <template>
2
+ <Tree
3
+ class="BriTree"
4
+ :data="val"
5
+ :multiple="propsObj.multiple"
6
+ :showCheckbox="propsObj.showCheckbox"
7
+ :checkStrictly="propsObj.checkStrictly"
8
+ :checkDirectly="propsObj.checkDirectly"
9
+ :emptyText="propsObj.emptyText"
10
+ :childrenKey="propsObj.childrenKey"
11
+ :loadData="propsObj.loadData"
12
+ :render="propsObj.render"
13
+ :selectNode="propsObj.selectNode"
14
+ :expandNode="propsObj.expandNode"
15
+ ></Tree>
16
+ </template>
17
+
18
+ <script>
19
+ import controlMixin from "../controls/controlMixin.js";
20
+ export default {
21
+ name: "BriTree",
22
+ mixins: [controlMixin],
23
+ props: {
24
+ },
25
+ data () {
26
+ return {};
27
+ },
28
+ computed: {
29
+ selfPropsObj () {
30
+ return {
31
+ ...this.propsObj
32
+ };
33
+ },
34
+ val () {
35
+ return this.value[this.propsObj._key];
36
+ }
37
+ },
38
+ created () {},
39
+ methods: {
40
+ }
41
+ };
42
+ </script>
@@ -6,7 +6,7 @@
6
6
  :content="content"
7
7
  :placement="placement"
8
8
  :transfer="transfer"
9
- :maxWidth="maxWidth"
9
+ :max-width="maxWidth"
10
10
  >
11
11
  <div
12
12
  ref="ellipsisContent"
@@ -9,7 +9,7 @@
9
9
  >
10
10
  <!-- 左侧按钮 -->
11
11
  <div class="DshButtons-flex-left">
12
- <Button
12
+ <bri-button
13
13
  v-for="(operationItem, index) in leftFlatList"
14
14
  :key="operationItem.type"
15
15
  :style="operationItem.style"
@@ -17,16 +17,8 @@
17
17
  index ? 'dsh-margin-left5' : undefined,
18
18
  !operationItem.customIcon && !operationItem.icon ? 'DshButtons-item' : undefined,
19
19
  itemClass,
20
- ...(Array.isArray(operationItem.class) ? operationItem.class : [operationItem.class])
21
20
  ]"
22
- :type="operationItem.btnType"
23
- :ghost="operationItem.ghost"
24
- :size="operationItem.size"
25
- :shape="operationItem.shape"
26
- :long="operationItem.long"
27
- :disabled="operationItem.disabled"
28
- :icon="operationItem.icon"
29
- :custom-icon="operationItem.customIcon ? `bico-font ${operationItem.customIcon}` : undefined"
21
+ :propsObj="operationItem"
30
22
  @click="emit(operationItem)"
31
23
  >
32
24
  <span
@@ -35,7 +27,7 @@
35
27
  >
36
28
  {{ operationItem.name }}
37
29
  </span>
38
- </Button>
30
+ </bri-button>
39
31
 
40
32
  <!-- 更多的 下拉按钮-->
41
33
  <dsh-dropdown
@@ -46,21 +38,14 @@
46
38
  @click="emit($event)"
47
39
  >
48
40
  <slot name="more">
49
- <Button
41
+ <bri-button
50
42
  class="DshButtons-dropdown-more"
51
- :type="moreBtnOperationObj.btnType"
52
- :ghost="moreBtnOperationObj.ghost"
53
- :size="moreBtnOperationObj.size"
54
- :shape="moreBtnOperationObj.shape"
55
- :long="moreBtnOperationObj.long"
56
- :disabled="moreBtnOperationObj.disabled"
57
- :icon="moreBtnOperationObj.icon"
58
- :custom-icon="moreBtnOperationObj.customIcon ? `bico-font ${moreBtnOperationObj.customIcon}` : undefined"
43
+ :propsObj="moreBtnOperationObj"
59
44
  >
60
45
  <span class="DshButtons-dropdown-more-name">
61
46
  {{ moreBtnOperationObj.name }}
62
47
  </span>
63
- </Button>
48
+ </bri-button>
64
49
  </slot>
65
50
  </dsh-dropdown>
66
51
  </div>
@@ -69,7 +54,7 @@
69
54
  <div class="DshButtons-flex-right">
70
55
  <slot></slot>
71
56
 
72
- <Button
57
+ <bri-button
73
58
  v-for="(operationItem, index) in rightList"
74
59
  :key="operationItem.type"
75
60
  :style="operationItem.style"
@@ -77,16 +62,8 @@
77
62
  index ? 'dsh-margin-left5' : undefined,
78
63
  !operationItem.customIcon && !operationItem.icon ? 'DshButtons-item' : undefined,
79
64
  itemClass,
80
- ...(Array.isArray(operationItem.class) ? operationItem.class : [operationItem.class])
81
65
  ]"
82
- :type="operationItem.btnType"
83
- :ghost="operationItem.ghost"
84
- :size="operationItem.size"
85
- :shape="operationItem.shape"
86
- :long="operationItem.long"
87
- :disabled="operationItem.disabled"
88
- :icon="operationItem.icon"
89
- :custom-icon="operationItem.customIcon ? `bico-font ${operationItem.customIcon}` : undefined"
66
+ :propsObj="operationItem"
90
67
  @click="emit(operationItem)"
91
68
  >
92
69
  <span
@@ -95,12 +72,12 @@
95
72
  >
96
73
  {{ operationItem.name }}
97
74
  </span>
98
- </Button>
75
+ </bri-button>
99
76
  </div>
100
77
  </div>
101
78
 
102
79
  <template v-else>
103
- <Button
80
+ <bri-button
104
81
  v-for="(operationItem, index) in list"
105
82
  :key="operationItem.type"
106
83
  :style="operationItem.style"
@@ -110,14 +87,7 @@
110
87
  itemClass,
111
88
  ...(Array.isArray(operationItem.class) ? operationItem.class : [operationItem.class])
112
89
  ]"
113
- :type="operationItem.btnType"
114
- :ghost="operationItem.ghost"
115
- :size="operationItem.size"
116
- :shape="operationItem.shape"
117
- :long="operationItem.long"
118
- :disabled="operationItem.disabled"
119
- :icon="operationItem.icon"
120
- :custom-icon="operationItem.customIcon ? `bico-font ${operationItem.customIcon}` : undefined"
90
+ :propsObj="operationItem"
121
91
  @click="emit(operationItem)"
122
92
  >
123
93
  <span
@@ -126,7 +96,7 @@
126
96
  >
127
97
  {{ operationItem.name }}
128
98
  </span>
129
- </Button>
99
+ </bri-button>
130
100
  </template>
131
101
  </div>
132
102
  </template>
@@ -4,7 +4,6 @@
4
4
  'DshFormItem',
5
5
  { 'DshFormItem-required': formItem._required&&canEdit },
6
6
  { 'DshFormItem-line': formItem._line },
7
- `DshFormItem-${mode}`,
8
7
  `DshFormItem-${formItem._type}`,
9
8
  formControlClass,
10
9
  ]"
@@ -40,6 +39,10 @@
40
39
  <span class="DshFormItem-label-name-sign">!有更新</span>
41
40
  </template>
42
41
  </slot>
42
+ <dsh-render
43
+ v-if="formItem._tipsRender"
44
+ :render="tipsRender(formItem,formData)"
45
+ ></dsh-render>
43
46
  </span>
44
47
  </Ctooltip>
45
48
  </span>
@@ -76,8 +79,6 @@
76
79
  <component
77
80
  ref="control"
78
81
  :is="componentNameMap[formItem._type] || 'DshUndeveloped'"
79
- :mode="mode"
80
- :isShare="isShare"
81
82
  :canEdit="canEdit"
82
83
  :value="formData"
83
84
  :propsObj="formItem"
@@ -122,11 +123,12 @@
122
123
  },
123
124
 
124
125
  labelWidth: [String, Number],
125
- formControlClass: String,
126
- isShare: Boolean
126
+ formControlClass: String
127
127
  },
128
128
  data () {
129
- return {};
129
+ return {
130
+ showTipModal: false
131
+ };
130
132
  },
131
133
  computed: {
132
134
  selfLabelStyle () {
@@ -151,6 +153,9 @@
151
153
 
152
154
  changeField (...params) {
153
155
  this.$emit("changeField", ...params);
156
+ },
157
+ tipsRender (formItem, formData) {
158
+ return formItem._tipsRender.call(this, formItem, formData);
154
159
  }
155
160
  }
156
161
  };
@@ -16,9 +16,8 @@
16
16
  <template v-else>
17
17
  <component
18
18
  :is="componentNameMap[formItem._type]"
19
- :mode="mode"
20
- :isShare="isShare"
21
19
  :canEdit="canEdit"
20
+ :isUnit="isUnit"
22
21
  :parentData="parentData"
23
22
  :value="formData"
24
23
  :propsObj="{
@@ -42,7 +41,6 @@
42
41
  props: {
43
42
  indexStr: String,
44
43
  rowIndex: Number,
45
- isShare: Boolean,
46
44
  parentData: Array
47
45
  },
48
46
  data () {
@@ -3,7 +3,6 @@ import { componentNameMap, registerComponents } from "../controls/controlMap.js"
3
3
  export default {
4
4
  components: registerComponents(),
5
5
  props: {
6
- mode: String,
7
6
  canEdit: {
8
7
  type: Boolean,
9
8
  default: true
@@ -20,6 +19,10 @@ export default {
20
19
  default () {
21
20
  return [];
22
21
  }
22
+ },
23
+ isUnit: {
24
+ type: Boolean,
25
+ default: false
23
26
  }
24
27
  },
25
28
  data () {
package/src/index.js CHANGED
@@ -4,6 +4,8 @@ import utilMap from "./utils/index.js";
4
4
  import ViewUI from "view-design";
5
5
  import DshDraggable from "vuedraggable";
6
6
  import DshCropper from "vue-cropperjs";
7
+ import { VeTable, VeLocale } from "vue-easytable";
8
+ import CN from "vue-easytable/libs/locale/lang/zh-CN.js";
7
9
 
8
10
  // list
9
11
  import { VTable } from "./components/list/easyTable/index.js";
@@ -11,8 +13,10 @@ import EvTable from "./components/list/evTable/EvTable.vue"; // 大表格
11
13
  import DshBox from "./components/list/DshBox/DshBox.vue";
12
14
  import DshTable from "./components/list/DshBox/DshTable.vue";
13
15
  import DshList from "./components/list/DshBox/DshList.vue";
16
+
17
+ import BriTable from "./components/list/BriTable.vue";
14
18
  import ZTree from "./components/list/ZTree.vue";
15
- import DshFlatTable from "./components/list/DshFlatTable.vue";
19
+ import BriFlatTable from "./components/list/BriFlatTable.vue";
16
20
  import DshCascaderTable from "./components/list/DshCascaderTable.vue";
17
21
 
18
22
  // form
@@ -25,6 +29,7 @@ import DshUnit from "./components/unit/DshUnit.vue";
25
29
  import DshFormItem from "./components/unit/DshFormItem.vue";
26
30
 
27
31
  // controls
32
+ import controlShow from "./components/controls/base/controlShow.vue";
28
33
  import DshInput from "./components/controls/base/DshInput.vue";
29
34
  import DshNumber from "./components/controls/base/DshNumber/DshNumber.vue";
30
35
  import DshSelect from "./components/controls/base/DshSelect.vue";
@@ -43,6 +48,7 @@ import YNoPermission from "./components/other/YNoPermission.vue";
43
48
  import ZGantt from "./components/other/ZGantt.vue";
44
49
  import ZCollapseTree from "./components/other/ZCollapseTree.vue";
45
50
  import ZLoading from "./components/other/ZLoading.vue";
51
+ import BriTransfer from "./components/other/BriTransfer.vue";
46
52
 
47
53
  // small
48
54
  import DshModal from "./components/small/DshModal.vue";
@@ -61,6 +67,8 @@ import Ctooltip from "./components/small/Ctooltip.vue";
61
67
  import DshPage from "./components/small/DshPage.vue";
62
68
  import DshControlDefine from "./components/small/DshControlDefine.vue";
63
69
  import DshFileShow from "./components/small/DshFileShow.vue";
70
+ import BriButton from "./components/small/BriButton.vue";
71
+ import BriTree from "./components/small/BriTree.vue";
64
72
 
65
73
  /* -------------------- 局部组件 ----------------------- */
66
74
  // pages
@@ -101,8 +109,9 @@ const map = {
101
109
  DshBox,
102
110
  DshTable,
103
111
  DshList,
112
+ BriTable,
104
113
  ZTree,
105
- DshFlatTable,
114
+ BriFlatTable,
106
115
  DshCascaderTable,
107
116
 
108
117
  DshForm,
@@ -112,6 +121,7 @@ const map = {
112
121
  DshUnit,
113
122
  DshFormItem,
114
123
 
124
+ controlShow,
115
125
  DshInput,
116
126
  DshNumber,
117
127
  DshSelect,
@@ -129,6 +139,7 @@ const map = {
129
139
  ZGantt,
130
140
  ZCollapseTree,
131
141
  ZLoading,
142
+ BriTransfer,
132
143
 
133
144
  DshModal,
134
145
  DshDropdown,
@@ -145,7 +156,9 @@ const map = {
145
156
  Ctooltip,
146
157
  DshPage,
147
158
  DshControlDefine,
148
- DshFileShow
159
+ DshFileShow,
160
+ BriButton,
161
+ BriTree
149
162
  };
150
163
  const install = function (Vue, opts = {}) {
151
164
  ViewUI.LoadingBar.config({
@@ -154,6 +167,8 @@ const install = function (Vue, opts = {}) {
154
167
  height: 3
155
168
  });
156
169
  Vue.use(ViewUI);
170
+ VeLocale.use(CN);
171
+ Vue.use(VeTable);
157
172
 
158
173
  // 挂载方法
159
174
  Object.keys(utilMap).forEach(key => {
@@ -184,8 +199,9 @@ export {
184
199
  DshBox,
185
200
  DshTable,
186
201
  DshList,
202
+ BriTable,
187
203
  ZTree,
188
- DshFlatTable,
204
+ BriFlatTable,
189
205
  DshCascaderTable,
190
206
 
191
207
  DshForm,
@@ -195,6 +211,7 @@ export {
195
211
  DshUnit,
196
212
  DshFormItem,
197
213
 
214
+ controlShow,
198
215
  DshInput,
199
216
  DshNumber,
200
217
  DshSelect,
@@ -212,6 +229,7 @@ export {
212
229
  ZGantt,
213
230
  ZCollapseTree,
214
231
  ZLoading,
232
+ BriTransfer,
215
233
 
216
234
  DshModal,
217
235
  DshDropdown,
@@ -229,6 +247,8 @@ export {
229
247
  DshPage,
230
248
  DshControlDefine,
231
249
  DshFileShow,
250
+ BriButton,
251
+ BriTree,
232
252
 
233
253
  /* 局部 */
234
254
  Error500,
@@ -1,5 +1,3 @@
1
- @import "view-design/dist/styles/iview.css";
2
-
3
1
  @import "codemirror/lib/codemirror.css";
4
2
  @import "codemirror/theme/cobalt.css";
5
3
  @import "codemirror/theme/base16-light.css";
@@ -18,7 +18,7 @@
18
18
  padding: 20px 10px;
19
19
  text-align: center;
20
20
  font-size: 14px;
21
- color: @subColor;
21
+ color: @textColor;
22
22
  }
23
23
 
24
24
  #btn-style {
@@ -26,6 +26,6 @@
26
26
  color: @themeColor;
27
27
  border-radius: 4px;
28
28
  font-weight: bold;
29
- font-family:titleFontFamily;
29
+ font-family: titleFontFamily;
30
30
  border: 1px solid #6694ED;
31
31
  }
@@ -0,0 +1,53 @@
1
+ // 表格展示
2
+ .unit-show () {
3
+ background-color: @theme-focus;
4
+ color: @themeColor;
5
+ border-radius: @borderRadius;
6
+ padding: 3px 8px;
7
+ text-align: center;
8
+ line-height: 24px;
9
+ }
10
+
11
+ // 表单模式
12
+ .control-show {
13
+ border: none;
14
+ background-color: transparent;
15
+ }
16
+ .control-edit {
17
+ color: @textColor;
18
+ border: 1px solid @borderColor;
19
+ background: @inputBg;
20
+ border-radius: @borderRadius;
21
+ cursor: pointer;
22
+ }
23
+ .control-placeholder {
24
+ color: @placeholderColor;
25
+ }
26
+ .control-readonly {
27
+ color: @textColor-readonly;
28
+ border: 1px solid @border-readonly;
29
+ background: @inputBg-readonly;
30
+ border-radius: @borderRadius;
31
+ }
32
+ .control-disabled {
33
+ color: @textColor-disabled;
34
+ border: 1px solid @border-disabled;
35
+ background: @inputBg-disabled;
36
+ border-radius: @borderRadius;
37
+ cursor: not-allowed;
38
+ }
39
+ .control-notext {
40
+ color: @placeholderColor;
41
+ }
42
+
43
+ // 暂时移到这里,部分需要删除
44
+ .control-show-text {
45
+ display: inline-block;
46
+ width: 100%;
47
+ height: 100%;
48
+ }
49
+
50
+ .control-nodata-text {
51
+ color: @placeholderColor ;
52
+ font-weight: 400;
53
+ }
@@ -2,3 +2,4 @@
2
2
  @import "./box.less";
3
3
  @import "./flex.less";
4
4
  @import "./text.less";
5
+ @import "./control.less";
@@ -0,0 +1,23 @@
1
+ .BriLabels {
2
+ width: 100%;
3
+
4
+ &-dropdown {
5
+ width: 100%;
6
+
7
+ &-input {
8
+ input {
9
+ cursor: pointer;
10
+ }
11
+ }
12
+
13
+ &-item {
14
+ margin: 4px 8px;
15
+ border-radius: @borderRadius;
16
+
17
+ &-active {
18
+ background-color: @theme-focus;
19
+ color: @themeColor;
20
+ }
21
+ }
22
+ }
23
+ }
@@ -6,7 +6,7 @@
6
6
  padding: 0 10px;
7
7
  height: 32px;
8
8
  line-height: 32px;
9
- border: 1px solid @formBorderColor;
9
+ border: 1px solid @borderColor;
10
10
  border-radius: 4px;
11
11
  cursor: pointer;
12
12
 
@@ -19,7 +19,7 @@
19
19
  &-text {
20
20
  .dsh-ellipsis();
21
21
  &-disabled {
22
- color: @formBorderColor;
22
+ color: @borderColor;
23
23
  }
24
24
  }
25
25
 
@@ -29,7 +29,7 @@
29
29
  }
30
30
 
31
31
  &-placeholder {
32
- color: @formBorderColor;
32
+ color: @borderColor;
33
33
  }
34
34
  }
35
35
 
@@ -135,7 +135,7 @@
135
135
 
136
136
  .readonlyCheckbox {
137
137
  .ivu-checkbox-disabled+span {
138
- color: @activeDarkGreyColor;
138
+ color: #515a6e;
139
139
  }
140
140
  }
141
141
 
@@ -4,9 +4,9 @@
4
4
  }
5
5
 
6
6
  &-wrap {
7
- cursor: pointer;
8
7
  position: relative;
9
-
8
+ padding: 0 7px;
9
+ .control-edit();
10
10
  &-zuobiao{
11
11
  color: #e5e5e5;
12
12
  line-height: 32px;
@@ -28,7 +28,7 @@
28
28
  }
29
29
 
30
30
  &-notext {
31
- color: #c6c9ce;
31
+ .control-placeholder();
32
32
  }
33
33
 
34
34
  &-message {
@@ -0,0 +1,54 @@
1
+ .DshDate {
2
+ width: 100%;
3
+ }
4
+
5
+ // .ivu-date-picker-cells-year .ivu-date-picker-cells-cell-focused,
6
+ // .ivu-date-picker-cells-month .ivu-date-picker-cells-cell-focused {
7
+ // position: relative;
8
+
9
+ // em {
10
+ // background-color: transparent;
11
+ // color: @themeColor;
12
+ // }
13
+
14
+ // &::after {
15
+ // position: absolute;
16
+ // bottom: -5px;
17
+ // right: calc(50% - 3px);
18
+ // content: "";
19
+ // width: 6px;
20
+ // height: 6px;
21
+ // border-radius: 50%;
22
+ // background-color: @themeColor;
23
+ // }
24
+ // }
25
+
26
+ // .ivu-date-picker-cells {
27
+ // &-focused em {
28
+ // box-shadow: none;
29
+ // }
30
+
31
+ // span em {
32
+ // border-radius: 50%;
33
+ // }
34
+
35
+ // &-cell-today {
36
+ // em {
37
+ // position: relative;
38
+ // color: @themeColor;
39
+
40
+ // &::after {
41
+ // content: '';
42
+ // display: block;
43
+ // width: 6px;
44
+ // height: 6px;
45
+ // border-radius: 50%;
46
+ // background: #3DB8C5;
47
+ // position: absolute;
48
+ // top: auto;
49
+ // bottom: -5px;
50
+ // right: calc(50% - 3px);
51
+ // }
52
+ // }
53
+ // }
54
+ // }
@@ -20,7 +20,7 @@
20
20
 
21
21
  &-item {
22
22
  height: 32px;
23
- border: 1px solid @formBorderColor;
23
+ border: 1px solid @borderColor;
24
24
  border-radius: 4px;
25
25
  overflow: hidden;
26
26
  position: relative;
@@ -1,8 +1,10 @@
1
- .DshEditor {
2
- width: 100%;
3
-
1
+ .DshEditor {
2
+ &-unit {
3
+ .unit-show();
4
+ display: inline-block;
5
+ }
4
6
  &-wrap {
5
- border: 1px solid @formBorderColor;
7
+ border: 1px solid @themeColor;
6
8
  border-radius: 4px;
7
9
  background: #fff;
8
10
 
@@ -11,12 +13,11 @@
11
13
  padding: 10px;
12
14
  }
13
15
  }
14
-
15
16
  &-show {
16
17
  height: 100%;
17
18
  min-height: 32px;
18
- cursor: pointer;
19
-
19
+ padding: 4px 10px;
20
+ border-radius: @borderRadius;
20
21
  p {
21
22
  font-size: 14px !important;
22
23
  }
@@ -32,15 +33,32 @@
32
33
  ol li {
33
34
  list-style: auto;
34
35
  }
36
+ &-nodata {
37
+ border: none;
38
+ color: @grey3;
39
+ padding-left: 0px;
40
+ }
41
+ &-disabled {
42
+ border: 1px solid @border-disabled;
43
+ cursor: not-allowed;
44
+ }
45
+ }
46
+ &-edit {
47
+ border: 1px solid @borderColor;
48
+ cursor: pointer;
49
+ &-placeholder {
50
+ color: @input-placeholder-color;
51
+ }
52
+ &:hover {
53
+ border-color: @theme-hover;
54
+ }
35
55
  }
36
-
37
56
  .toolbar {
38
57
  margin-top: 5px;
39
58
  }
40
59
 
41
60
  .text {
42
61
  min-height: 130px;
43
-
44
62
  ul li {
45
63
  list-style: disc;
46
64
  }