doway-coms 2.11.42 → 2.11.44

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "doway-coms",
3
- "version": "2.11.42",
3
+ "version": "2.11.44",
4
4
  "description": "doway组件库",
5
5
  "author": "dowaysoft",
6
6
  "main": "packages/index.js",
@@ -1,12 +1,12 @@
1
1
  <template>
2
2
  <div class="d-control-container">
3
3
  <div
4
- class="d-control-label"
5
- :style="{ width: labelWidth > 0 ? labelWidth + 'px' : 'none' }"
4
+ class="d-control-label"
5
+ :style="{ width: labelWidth > 0 ? labelWidth + 'px' : 'none' }"
6
6
  >
7
7
  {{ label }}
8
8
  <span v-if="rules && rules['required']" class="d-control-label-required"
9
- >*</span
9
+ >*</span
10
10
  >
11
11
  <Tooltip :title="tooltip" v-if="tooltip" style="margin: 0 2px">
12
12
  <img src="../../styles/icon/help.png" alt="" style="width: 14px" />
@@ -14,22 +14,22 @@
14
14
  </div>
15
15
  <div class="d-control">
16
16
  <ValidationProvider
17
- :name="label"
18
- v-slot="v"
19
- :rules="rules"
20
- v-if="edit === true"
17
+ :name="label"
18
+ v-slot="v"
19
+ :rules="rules"
20
+ v-if="edit === true"
21
21
  >
22
22
  <DatePicker
23
- :size="'small'"
24
- placeholder="选择日期"
25
- v-model="currentValue"
26
- :disabled-date="disabledDate"
27
- format="YYYY-MM-DD"
28
- value-format="YYYY-MM-DD"
29
- style="width: 100%"
30
- @change="change"
31
- :class="{ 'd-error-input': v.errors.length > 0 }"
32
- :dropdown-class-name="getDatePickerClass({disablePrevYearBtn, disableNextYearBtn})"
23
+ :size="'small'"
24
+ placeholder="选择日期"
25
+ v-model="currentValue"
26
+ :disabled-date="disabledDate"
27
+ format="YYYY-MM-DD"
28
+ value-format="YYYY-MM-DD"
29
+ style="width: 100%"
30
+ @change="change"
31
+ :class="{ 'd-error-input': v.errors.length > 0 }"
32
+ :dropdown-class-name="getDatePickerClass({disablePrevYearBtn, disableNextYearBtn})"
33
33
  />
34
34
  <div class="d-error-msg">
35
35
  {{ v.errors[0] }}
@@ -52,17 +52,13 @@
52
52
  import VXETable from "vxe-table";
53
53
  //轻量级剪贴板复制函数
54
54
  import XEClipboard from "xe-clipboard";
55
- import {DatePicker as a, DatePicker as a, DatePicker, Tooltip} from "ant-design-vue";
55
+ import { DatePicker, Tooltip } from "ant-design-vue";
56
56
  import { ValidationProvider } from "vee-validate";
57
57
  import moment from "moment";
58
- import {DatePicker as a
59
- import {DatePicker as a
60
58
 
61
59
  export default {
62
60
  name: "BaseDate",
63
61
  components: {
64
- a-date - picker,
65
- a-date - picker,
66
62
  DatePicker,
67
63
  ValidationProvider,
68
64
  Tooltip,
@@ -201,11 +197,12 @@ export default {
201
197
  return false;
202
198
  }
203
199
  return (
204
- current &&
205
- current.diff(moment().add(this.disabledDateValue, "day"), "days") < 0
200
+ current &&
201
+ current.diff(moment().add(this.disabledDateValue, "day"), "days") < 0
206
202
  );
207
203
  },
208
- getDatePickerClass({disablePrevYearBtn, disableNextYearBtn}) {
204
+ getDatePickerClass({ disablePrevYearBtn, disableNextYearBtn }) {
205
+
209
206
  const classes = [];
210
207
 
211
208
  if (disablePrevYearBtn) {
@@ -222,18 +219,15 @@ export default {
222
219
  };
223
220
  </script>
224
221
 
225
- <style lang="less">
222
+ <style lang="less">
226
223
  @import "../../styles/default.less";
227
224
  </style>
228
-
229
- <style>
230
225
  /* 隐藏上一年按钮 */
231
226
  .hide-prev-year .ant-calendar-prev-year-btn {
232
- display: none !important;
227
+ display: none !important;
233
228
  }
234
229
 
235
230
  /* 隐藏下一年按钮 */
236
231
  .hide-next-year .ant-calendar-next-year-btn {
237
- display: none !important;
232
+ display: none !important;
238
233
  }
239
- </style>
@@ -2285,6 +2285,8 @@ export default {
2285
2285
  originCol.disabledDateValue == undefined ? 0: originCol.disabledDateValue
2286
2286
  }
2287
2287
  colParams['disableUserVisible'] = originCol.disableUserVisible === true
2288
+ colParams['disablePrevYearBtn'] = originCol.disablePrevYearBtn === true
2289
+ colParams['disableNextYearBtn'] = originCol.disableNextYearBtn === true
2288
2290
  colInfo['params'] = colParams
2289
2291
  colInfo['params']['sysOriValue'] = {}
2290
2292