doway-coms 1.6.44 → 1.6.46

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 (72) hide show
  1. package/.browserslistrc +2 -2
  2. package/README.md +28 -28
  3. package/dist/css/chunk-vendors.7f83d8f9.css +8 -0
  4. package/dist/css/index.86478f73.css +3 -0
  5. package/dist/favicon.ico +0 -0
  6. package/dist/js/chunk-vendors.307eaa8f.js +347 -0
  7. package/dist/js/index.48e7f7ac.js +2 -0
  8. package/package.json +52 -52
  9. package/packages/BaseButton/index.js +7 -7
  10. package/packages/BaseButton/src/index.vue +241 -241
  11. package/packages/BaseCheckbox/index.js +7 -7
  12. package/packages/BaseCheckbox/src/index.vue +134 -134
  13. package/packages/BaseDate/index.js +7 -7
  14. package/packages/BaseDate/src/index.vue +197 -197
  15. package/packages/BaseDateWeek/index.js +7 -7
  16. package/packages/BaseDateWeek/src/index.vue +163 -163
  17. package/packages/BaseDatetime/index.js +7 -7
  18. package/packages/BaseDatetime/src/index.vue +196 -196
  19. package/packages/BaseForm/index.js +7 -7
  20. package/packages/BaseForm/src/index.vue +666 -666
  21. package/packages/BaseGantt/index.js +9 -9
  22. package/packages/BaseGantt/src/index.vue +608 -608
  23. package/packages/BaseGrid/index.js +9 -9
  24. package/packages/BaseGrid/src/index.vue +2749 -2746
  25. package/packages/BaseGridAdjust/index.js +9 -9
  26. package/packages/BaseGridAdjust/src/index.vue +482 -455
  27. package/packages/BaseInput/index.js +7 -7
  28. package/packages/BaseInput/src/index.vue +164 -164
  29. package/packages/BaseIntervalInput/index.js +7 -7
  30. package/packages/BaseIntervalInput/src/index.vue +310 -310
  31. package/packages/BaseKanbanEmpty/index.js +7 -7
  32. package/packages/BaseKanbanEmpty/src/index.vue +176 -176
  33. package/packages/BaseNumberInput/index.js +7 -7
  34. package/packages/BaseNumberInput/src/index.vue +229 -229
  35. package/packages/BasePagination/index.js +7 -7
  36. package/packages/BasePagination/src/index.vue +91 -91
  37. package/packages/BasePictureCard/index.js +7 -7
  38. package/packages/BasePictureCard/src/index.vue +580 -580
  39. package/packages/BasePrintPreview/index.js +7 -7
  40. package/packages/BasePrintPreview/src/index.vue +117 -117
  41. package/packages/BasePulldown/index.js +7 -7
  42. package/packages/BasePulldown/src/index.vue +1136 -1136
  43. package/packages/BaseSearch/index.js +7 -7
  44. package/packages/BaseSearch/src/index.vue +935 -935
  45. package/packages/BaseSelect/index.js +7 -7
  46. package/packages/BaseSelect/src/index.vue +155 -155
  47. package/packages/BaseSelectMulti/index.js +7 -7
  48. package/packages/BaseSelectMulti/src/index.vue +148 -148
  49. package/packages/BaseTextArea/index.js +7 -7
  50. package/packages/BaseTextArea/src/index.vue +178 -178
  51. package/packages/BaseTime/index.js +7 -7
  52. package/packages/BaseTime/src/index.vue +166 -166
  53. package/packages/BaseTool/index.js +7 -7
  54. package/packages/BaseTool/src/index.vue +349 -349
  55. package/packages/BaseToolStatus/index.js +7 -7
  56. package/packages/BaseToolStatus/src/index.vue +388 -388
  57. package/packages/LeaveAMessage/index.js +8 -0
  58. package/packages/LeaveAMessage/src/index.vue +386 -0
  59. package/packages/index.js +167 -165
  60. package/packages/styles/default.less +80 -80
  61. package/packages/utils/api.js +74 -45
  62. package/packages/utils/auth.js +38 -38
  63. package/packages/utils/common.js +595 -595
  64. package/packages/utils/dom.js +181 -181
  65. package/packages/utils/enum.js +83 -83
  66. package/packages/utils/filters.js +458 -458
  67. package/packages/utils/gridFormat.js +60 -60
  68. package/packages/utils/msg.js +16 -16
  69. package/packages/utils/patchFiles.js +44 -44
  70. package/packages/utils/request.js +169 -169
  71. package/packages/utils/store.js +261 -261
  72. package/vue.config.js +59 -59
@@ -1,8 +1,8 @@
1
- // 导入组件,组件必须声明 name
2
- import BaseSelect from './src/index.vue';
3
- // 为组件提供 install 安装方法,供按需引入
4
- BaseSelect.install = function(Vue) {
5
- Vue.component(BaseSelect.name, BaseSelect);
6
- };
7
- // 默认导出组件
1
+ // 导入组件,组件必须声明 name
2
+ import BaseSelect from './src/index.vue';
3
+ // 为组件提供 install 安装方法,供按需引入
4
+ BaseSelect.install = function(Vue) {
5
+ Vue.component(BaseSelect.name, BaseSelect);
6
+ };
7
+ // 默认导出组件
8
8
  export default BaseSelect;
@@ -1,156 +1,156 @@
1
- <template>
2
- <div class="d-control-container">
3
- <div
4
- class="d-control-label"
5
- :style="{ width: labelWidth > 0 ? labelWidth + 'px' : 'none' }"
6
- >
7
- {{ label
8
- }}
9
- <span v-if="rules && rules['required']" class="d-control-label-required"
10
- >*</span
11
- >
12
- <Tooltip :title="tooltip" v-if="tooltip" style="margin: 0 2px">
13
- <img src="../../styles/icon/help.png" alt="" style="width: 14px">
14
- </Tooltip>
15
- </div>
16
- <div class="d-control">
17
- <ValidationProvider
18
- :name="label"
19
- v-slot="v"
20
- :rules="rules"
21
- v-if="edit === true"
22
- >
23
- <Select
24
- v-model="currentValue"
25
- :placeholder="placeholder"
26
- :size="'small'"
27
- @change="selectChange"
28
- style="width: 100%"
29
- :class="{ 'd-error-input': v.errors.length > 0 }"
30
- option-filter-prop="children"
31
- show-search
32
- >
33
- <SelectOption
34
- v-for="loopSource in dataSource"
35
- :key="loopSource.value"
36
- :value="loopSource.value"
37
- >{{ loopSource.caption }}</SelectOption
38
- >
39
- </Select>
40
- <div class="d-error-msg">
41
- {{ v.errors[0] }}
42
- </div>
43
- </ValidationProvider>
44
- <span v-else>{{ currentValue | displaySelectCaption(dataSource) }}</span>
45
- </div>
46
- </div>
47
- </template>
48
-
49
- <script>
50
- import { Select } from 'ant-design-vue'
51
- import { ValidationProvider } from 'vee-validate'
52
- import { displaySelectCaption } from '../../utils/filters'
53
- import { Tooltip } from 'ant-design-vue'
54
- export default {
55
- filters:{
56
- displaySelectCaption:displaySelectCaption
57
- },
58
- name: 'BaseSelect',
59
- components:{
60
- Select,
61
- SelectOption:Select.Option,
62
- ValidationProvider,
63
- Tooltip,
64
-
65
- },
66
- data() {
67
- return {
68
- filterCols: [],
69
- gridLoading: false,
70
- gridPagerConfig: {
71
- total: 0,
72
- currentPage: 1,
73
- pageSize: 10
74
- }
75
- }
76
- },
77
- computed: {
78
- currentValue: {
79
- // 动态计算currentValue的值
80
- get: function() {
81
- return this.value // 将props中的value赋值给currentValue
82
- },
83
- set: function(val) {
84
- this.$emit('input', val) // 通过$emit触发父组件
85
- }
86
- }
87
- },
88
- props: {
89
- labelWidth: {
90
- type: Number,
91
- default: function() {
92
- return 0
93
- }
94
- },
95
- rules: {
96
- type: Object,
97
- default: function() {
98
- return null
99
- }
100
- },
101
- value: {
102
- type: String,
103
- default: function() {
104
- return ''
105
- }
106
- },
107
- dataSource: {
108
- type: Array,
109
- default: function() {
110
- return []
111
- }
112
- },
113
- edit: {
114
- type: Boolean,
115
- default: function() {
116
- return false
117
- }
118
- },
119
- name: {
120
- type: String,
121
- default: function() {
122
- return ''
123
- }
124
- },
125
- label: {
126
- type: String,
127
- default: function() {
128
- return ''
129
- }
130
- },
131
- placeholder: {
132
- type: String,
133
- default: function() {
134
- return ''
135
- }
136
- },
137
- tooltip: {
138
- type: String,
139
- default: function() {
140
- return ''
141
- }
142
- }
143
- },
144
- created() {},
145
- methods: {
146
- selectChange() {
147
- this.$emit('change', null)
148
- }
149
- }
150
- }
151
- </script>
152
-
153
- <style lang="scss" scoped></style>
154
- <style lang="less">
155
- @import '../../styles/default.less';
1
+ <template>
2
+ <div class="d-control-container">
3
+ <div
4
+ class="d-control-label"
5
+ :style="{ width: labelWidth > 0 ? labelWidth + 'px' : 'none' }"
6
+ >
7
+ {{ label
8
+ }}
9
+ <span v-if="rules && rules['required']" class="d-control-label-required"
10
+ >*</span
11
+ >
12
+ <Tooltip :title="tooltip" v-if="tooltip" style="margin: 0 2px">
13
+ <img src="../../styles/icon/help.png" alt="" style="width: 14px">
14
+ </Tooltip>
15
+ </div>
16
+ <div class="d-control">
17
+ <ValidationProvider
18
+ :name="label"
19
+ v-slot="v"
20
+ :rules="rules"
21
+ v-if="edit === true"
22
+ >
23
+ <Select
24
+ v-model="currentValue"
25
+ :placeholder="placeholder"
26
+ :size="'small'"
27
+ @change="selectChange"
28
+ style="width: 100%"
29
+ :class="{ 'd-error-input': v.errors.length > 0 }"
30
+ option-filter-prop="children"
31
+ show-search
32
+ >
33
+ <SelectOption
34
+ v-for="loopSource in dataSource"
35
+ :key="loopSource.value"
36
+ :value="loopSource.value"
37
+ >{{ loopSource.caption }}</SelectOption
38
+ >
39
+ </Select>
40
+ <div class="d-error-msg">
41
+ {{ v.errors[0] }}
42
+ </div>
43
+ </ValidationProvider>
44
+ <span v-else>{{ currentValue | displaySelectCaption(dataSource) }}</span>
45
+ </div>
46
+ </div>
47
+ </template>
48
+
49
+ <script>
50
+ import { Select } from 'ant-design-vue'
51
+ import { ValidationProvider } from 'vee-validate'
52
+ import { displaySelectCaption } from '../../utils/filters'
53
+ import { Tooltip } from 'ant-design-vue'
54
+ export default {
55
+ filters:{
56
+ displaySelectCaption:displaySelectCaption
57
+ },
58
+ name: 'BaseSelect',
59
+ components:{
60
+ Select,
61
+ SelectOption:Select.Option,
62
+ ValidationProvider,
63
+ Tooltip,
64
+
65
+ },
66
+ data() {
67
+ return {
68
+ filterCols: [],
69
+ gridLoading: false,
70
+ gridPagerConfig: {
71
+ total: 0,
72
+ currentPage: 1,
73
+ pageSize: 10
74
+ }
75
+ }
76
+ },
77
+ computed: {
78
+ currentValue: {
79
+ // 动态计算currentValue的值
80
+ get: function() {
81
+ return this.value // 将props中的value赋值给currentValue
82
+ },
83
+ set: function(val) {
84
+ this.$emit('input', val) // 通过$emit触发父组件
85
+ }
86
+ }
87
+ },
88
+ props: {
89
+ labelWidth: {
90
+ type: Number,
91
+ default: function() {
92
+ return 0
93
+ }
94
+ },
95
+ rules: {
96
+ type: Object,
97
+ default: function() {
98
+ return null
99
+ }
100
+ },
101
+ value: {
102
+ type: String,
103
+ default: function() {
104
+ return ''
105
+ }
106
+ },
107
+ dataSource: {
108
+ type: Array,
109
+ default: function() {
110
+ return []
111
+ }
112
+ },
113
+ edit: {
114
+ type: Boolean,
115
+ default: function() {
116
+ return false
117
+ }
118
+ },
119
+ name: {
120
+ type: String,
121
+ default: function() {
122
+ return ''
123
+ }
124
+ },
125
+ label: {
126
+ type: String,
127
+ default: function() {
128
+ return ''
129
+ }
130
+ },
131
+ placeholder: {
132
+ type: String,
133
+ default: function() {
134
+ return ''
135
+ }
136
+ },
137
+ tooltip: {
138
+ type: String,
139
+ default: function() {
140
+ return ''
141
+ }
142
+ }
143
+ },
144
+ created() {},
145
+ methods: {
146
+ selectChange() {
147
+ this.$emit('change', null)
148
+ }
149
+ }
150
+ }
151
+ </script>
152
+
153
+ <style lang="scss" scoped></style>
154
+ <style lang="less">
155
+ @import '../../styles/default.less';
156
156
  </style>
@@ -1,8 +1,8 @@
1
- // 导入组件,组件必须声明 name
2
- import BaseSelectMulti from './src/index.vue';
3
- // 为组件提供 install 安装方法,供按需引入
4
- BaseSelectMulti.install = function(Vue) {
5
- Vue.component(BaseSelectMulti.name, BaseSelectMulti);
6
- };
7
- // 默认导出组件
1
+ // 导入组件,组件必须声明 name
2
+ import BaseSelectMulti from './src/index.vue';
3
+ // 为组件提供 install 安装方法,供按需引入
4
+ BaseSelectMulti.install = function(Vue) {
5
+ Vue.component(BaseSelectMulti.name, BaseSelectMulti);
6
+ };
7
+ // 默认导出组件
8
8
  export default BaseSelectMulti;
@@ -1,149 +1,149 @@
1
- <template>
2
- <div class="d-control-container">
3
- <div class="d-control-label">
4
- {{ label
5
- }}
6
- <span v-if="rules && rules['required']" class="d-control-label-required"
7
- >*</span
8
- >
9
- <Tooltip :title="tooltip" v-if="tooltip" style="margin: 0 2px">
10
- <img src="../../styles/icon/help.png" alt="" style="width: 14px">
11
- </Tooltip>
12
- </div>
13
- <div class="d-control">
14
- <ValidationProvider
15
- :name="label"
16
- v-slot="v"
17
- :rules="rules"
18
- v-if="edit === true"
19
- >
20
- <Select
21
- v-model="currentValue"
22
- :placeholder="placeholder"
23
- mode="multiple"
24
- :size="'small'"
25
- @change="selectChange"
26
- style="width: 100%"
27
- :class="{ 'd-error-input': v.errors.length > 0 }"
28
- >
29
- <SelectOption
30
- v-for="loopSource in dataSource"
31
- :key="loopSource.value"
32
- :value="loopSource.value"
33
- >{{ loopSource.caption }}</SelectOption
34
- >
35
- </Select>
36
- <div class="d-error-msg">
37
- {{ v.errors[0] }}
38
- </div>
39
- </ValidationProvider>
40
- <span v-else>{{
41
- currentValue | displaySelectMultiCaption(dataSource)
42
- }}</span>
43
- </div>
44
- </div>
45
- </template>
46
-
47
- <script>
48
- import { Select } from 'ant-design-vue'
49
- import { ValidationProvider } from 'vee-validate'
50
- import { displaySelectMultiCaption } from '../../utils/filters'
51
- import { Tooltip } from 'ant-design-vue'
52
-
53
- export default {
54
- name: 'BaseSelectMulti',
55
- filters:{
56
- displaySelectMultiCaption:displaySelectMultiCaption
57
- },
58
- components:{
59
- Select,
60
- SelectOption:Select.Option,
61
- ValidationProvider,
62
- Tooltip,
63
-
64
- },
65
- data() {
66
- return {
67
- filterCols: [],
68
- gridLoading: false,
69
- gridPagerConfig: {
70
- total: 0,
71
- currentPage: 1,
72
- pageSize: 10
73
- }
74
- }
75
- },
76
- computed: {
77
- currentValue: {
78
- // 动态计算currentValue的值
79
- get: function() {
80
- return this.value // 将props中的value赋值给currentValue
81
- },
82
- set: function(val) {
83
- this.$emit('input', val) // 通过$emit触发父组件
84
- }
85
- }
86
- },
87
- props: {
88
- rules: {
89
- type: Object,
90
- default: function() {
91
- return null
92
- }
93
- },
94
- value: {
95
- type: Array,
96
- default: function() {
97
- return []
98
- }
99
- },
100
- dataSource: {
101
- type: Array,
102
- default: function() {
103
- return []
104
- }
105
- },
106
- edit: {
107
- type: Boolean,
108
- default: function() {
109
- return false
110
- }
111
- },
112
- name: {
113
- type: String,
114
- default: function() {
115
- return ''
116
- }
117
- },
118
- label: {
119
- type: String,
120
- default: function() {
121
- return ''
122
- }
123
- },
124
- placeholder: {
125
- type: String,
126
- default: function() {
127
- return ''
128
- }
129
- },
130
- tooltip: {
131
- type: String,
132
- default: function() {
133
- return ''
134
- }
135
- }
136
- },
137
- created() {},
138
- methods: {
139
- selectChange() {
140
- this.$emit('change', null)
141
- }
142
- }
143
- }
144
- </script>
145
-
146
- <style lang="scss" scoped></style>
147
- <style lang="less">
148
- @import '../../styles/default.less';
1
+ <template>
2
+ <div class="d-control-container">
3
+ <div class="d-control-label">
4
+ {{ label
5
+ }}
6
+ <span v-if="rules && rules['required']" class="d-control-label-required"
7
+ >*</span
8
+ >
9
+ <Tooltip :title="tooltip" v-if="tooltip" style="margin: 0 2px">
10
+ <img src="../../styles/icon/help.png" alt="" style="width: 14px">
11
+ </Tooltip>
12
+ </div>
13
+ <div class="d-control">
14
+ <ValidationProvider
15
+ :name="label"
16
+ v-slot="v"
17
+ :rules="rules"
18
+ v-if="edit === true"
19
+ >
20
+ <Select
21
+ v-model="currentValue"
22
+ :placeholder="placeholder"
23
+ mode="multiple"
24
+ :size="'small'"
25
+ @change="selectChange"
26
+ style="width: 100%"
27
+ :class="{ 'd-error-input': v.errors.length > 0 }"
28
+ >
29
+ <SelectOption
30
+ v-for="loopSource in dataSource"
31
+ :key="loopSource.value"
32
+ :value="loopSource.value"
33
+ >{{ loopSource.caption }}</SelectOption
34
+ >
35
+ </Select>
36
+ <div class="d-error-msg">
37
+ {{ v.errors[0] }}
38
+ </div>
39
+ </ValidationProvider>
40
+ <span v-else>{{
41
+ currentValue | displaySelectMultiCaption(dataSource)
42
+ }}</span>
43
+ </div>
44
+ </div>
45
+ </template>
46
+
47
+ <script>
48
+ import { Select } from 'ant-design-vue'
49
+ import { ValidationProvider } from 'vee-validate'
50
+ import { displaySelectMultiCaption } from '../../utils/filters'
51
+ import { Tooltip } from 'ant-design-vue'
52
+
53
+ export default {
54
+ name: 'BaseSelectMulti',
55
+ filters:{
56
+ displaySelectMultiCaption:displaySelectMultiCaption
57
+ },
58
+ components:{
59
+ Select,
60
+ SelectOption:Select.Option,
61
+ ValidationProvider,
62
+ Tooltip,
63
+
64
+ },
65
+ data() {
66
+ return {
67
+ filterCols: [],
68
+ gridLoading: false,
69
+ gridPagerConfig: {
70
+ total: 0,
71
+ currentPage: 1,
72
+ pageSize: 10
73
+ }
74
+ }
75
+ },
76
+ computed: {
77
+ currentValue: {
78
+ // 动态计算currentValue的值
79
+ get: function() {
80
+ return this.value // 将props中的value赋值给currentValue
81
+ },
82
+ set: function(val) {
83
+ this.$emit('input', val) // 通过$emit触发父组件
84
+ }
85
+ }
86
+ },
87
+ props: {
88
+ rules: {
89
+ type: Object,
90
+ default: function() {
91
+ return null
92
+ }
93
+ },
94
+ value: {
95
+ type: Array,
96
+ default: function() {
97
+ return []
98
+ }
99
+ },
100
+ dataSource: {
101
+ type: Array,
102
+ default: function() {
103
+ return []
104
+ }
105
+ },
106
+ edit: {
107
+ type: Boolean,
108
+ default: function() {
109
+ return false
110
+ }
111
+ },
112
+ name: {
113
+ type: String,
114
+ default: function() {
115
+ return ''
116
+ }
117
+ },
118
+ label: {
119
+ type: String,
120
+ default: function() {
121
+ return ''
122
+ }
123
+ },
124
+ placeholder: {
125
+ type: String,
126
+ default: function() {
127
+ return ''
128
+ }
129
+ },
130
+ tooltip: {
131
+ type: String,
132
+ default: function() {
133
+ return ''
134
+ }
135
+ }
136
+ },
137
+ created() {},
138
+ methods: {
139
+ selectChange() {
140
+ this.$emit('change', null)
141
+ }
142
+ }
143
+ }
144
+ </script>
145
+
146
+ <style lang="scss" scoped></style>
147
+ <style lang="less">
148
+ @import '../../styles/default.less';
149
149
  </style>
@@ -1,8 +1,8 @@
1
- // 导入组件,组件必须声明 name
2
- import BaseTextArea from './src/index.vue';
3
- // 为组件提供 install 安装方法,供按需引入
4
- BaseTextArea.install = function(Vue) {
5
- Vue.component(BaseTextArea.name, BaseTextArea);
6
- };
7
- // 默认导出组件
1
+ // 导入组件,组件必须声明 name
2
+ import BaseTextArea from './src/index.vue';
3
+ // 为组件提供 install 安装方法,供按需引入
4
+ BaseTextArea.install = function(Vue) {
5
+ Vue.component(BaseTextArea.name, BaseTextArea);
6
+ };
7
+ // 默认导出组件
8
8
  export default BaseTextArea;