doway-coms 2.8.4 → 2.8.6

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 (85) hide show
  1. package/.browserslistrc +2 -2
  2. package/README.md +28 -28
  3. package/package.json +54 -54
  4. package/packages/AuditsList/index.js +7 -7
  5. package/packages/AuditsList/src/index.vue +266 -266
  6. package/packages/BaseButton/index.js +7 -7
  7. package/packages/BaseButton/src/index.vue +241 -241
  8. package/packages/BaseCheckbox/index.js +7 -7
  9. package/packages/BaseCheckbox/src/index.vue +134 -134
  10. package/packages/BaseDate/index.js +7 -7
  11. package/packages/BaseDate/src/index.vue +197 -197
  12. package/packages/BaseDateWeek/index.js +7 -7
  13. package/packages/BaseDateWeek/src/index.vue +163 -163
  14. package/packages/BaseDatetime/index.js +7 -7
  15. package/packages/BaseDatetime/src/index.vue +196 -196
  16. package/packages/BaseFileGroup/index.js +7 -7
  17. package/packages/BaseFileGroup/src/index.vue +724 -724
  18. package/packages/BaseForm/index.js +7 -7
  19. package/packages/BaseForm/src/index.vue +752 -752
  20. package/packages/BaseGantt/index.js +9 -9
  21. package/packages/BaseGantt/src/index.vue +617 -617
  22. package/packages/BaseGrid/index.js +9 -9
  23. package/packages/BaseGrid/src/SeqSetting.vue +278 -278
  24. package/packages/BaseGrid/src/index.vue +3796 -3796
  25. package/packages/BaseGridAdjust/index.js +9 -9
  26. package/packages/BaseGridAdjust/src/index.vue +482 -482
  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 +290 -290
  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 +150 -129
  41. package/packages/BasePulldown/index.js +7 -7
  42. package/packages/BasePulldown/src/index.vue +1346 -1346
  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 +353 -353
  55. package/packages/BaseToolStatus/index.js +7 -7
  56. package/packages/BaseToolStatus/src/ApprovalPersonsGroup.vue +41 -41
  57. package/packages/BaseToolStatus/src/index.vue +439 -439
  58. package/packages/BaseTreeSelect/index.js +8 -8
  59. package/packages/BaseTreeSelect/src/index.vue +437 -437
  60. package/packages/LeaveAMessage/index.js +7 -7
  61. package/packages/LeaveAMessage/src/index.vue +601 -601
  62. package/packages/index.js +194 -194
  63. package/packages/styles/default.css +78 -78
  64. package/packages/styles/default.less +91 -91
  65. package/packages/utils/api.js +107 -107
  66. package/packages/utils/auth.js +38 -38
  67. package/packages/utils/common.js +635 -635
  68. package/packages/utils/dom.js +181 -181
  69. package/packages/utils/enum.js +86 -86
  70. package/packages/utils/filters.js +485 -485
  71. package/packages/utils/gridFormat.js +66 -66
  72. package/packages/utils/msg.js +84 -84
  73. package/packages/utils/patchFiles.js +44 -44
  74. package/packages/utils/request.js +178 -178
  75. package/packages/utils/store.js +317 -314
  76. package/vue.config.js +59 -59
  77. package/dist/css/chunk-vendors.7f83d8f9.css +0 -8
  78. package/dist/css/index.7946d50b.css +0 -1
  79. package/dist/favicon.ico +0 -0
  80. package/dist/js/chunk-vendors.28fda91d.js +0 -340
  81. package/dist/js/index.49bc6add.js +0 -2
  82. package/lib/doway-coms.common.js +0 -120397
  83. package/lib/doway-coms.css +0 -1
  84. package/lib/doway-coms.umd.js +0 -120407
  85. package/lib/doway-coms.umd.min.js +0 -328
@@ -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;