doway-coms 1.4.98 → 1.4.99

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 (74) hide show
  1. package/.browserslistrc +2 -2
  2. package/README.md +28 -28
  3. package/package.json +52 -52
  4. package/packages/BaseButton/index.js +7 -7
  5. package/packages/BaseButton/src/index.vue +241 -241
  6. package/packages/BaseCheckbox/index.js +7 -7
  7. package/packages/BaseCheckbox/src/index.vue +134 -134
  8. package/packages/BaseDate/index.js +7 -7
  9. package/packages/BaseDate/src/index.vue +197 -197
  10. package/packages/BaseDateWeek/index.js +7 -7
  11. package/packages/BaseDateWeek/src/index.vue +163 -163
  12. package/packages/BaseDatetime/index.js +7 -7
  13. package/packages/BaseDatetime/src/index.vue +196 -196
  14. package/packages/BaseForm/index.js +7 -7
  15. package/packages/BaseForm/src/index.vue +664 -664
  16. package/packages/BaseGantt/index.js +9 -9
  17. package/packages/BaseGantt/src/index.vue +604 -604
  18. package/packages/BaseGrid/index.js +9 -9
  19. package/packages/BaseGrid/src/index.vue +2684 -2684
  20. package/packages/BaseGridAdjust/index.js +9 -9
  21. package/packages/BaseGridAdjust/src/index.vue +455 -455
  22. package/packages/BaseInput/index.js +7 -7
  23. package/packages/BaseInput/src/index.vue +164 -164
  24. package/packages/BaseIntervalInput/index.js +7 -7
  25. package/packages/BaseIntervalInput/src/index.vue +310 -310
  26. package/packages/BaseKanbanEmpty/index.js +7 -7
  27. package/packages/BaseKanbanEmpty/src/index.vue +176 -176
  28. package/packages/BaseNumberInput/index.js +7 -7
  29. package/packages/BaseNumberInput/src/index.vue +229 -229
  30. package/packages/BasePagination/index.js +7 -7
  31. package/packages/BasePagination/src/index.vue +91 -91
  32. package/packages/BasePictureCard/index.js +7 -7
  33. package/packages/BasePictureCard/src/index.vue +561 -561
  34. package/packages/BasePrintPreview/index.js +7 -7
  35. package/packages/BasePrintPreview/src/index.vue +117 -117
  36. package/packages/BasePulldown/index.js +7 -7
  37. package/packages/BasePulldown/src/index.vue +859 -859
  38. package/packages/BaseSearch/index.js +7 -7
  39. package/packages/BaseSearch/src/index.vue +935 -935
  40. package/packages/BaseSelect/index.js +7 -7
  41. package/packages/BaseSelect/src/index.vue +153 -153
  42. package/packages/BaseSelectMulti/index.js +7 -7
  43. package/packages/BaseSelectMulti/src/index.vue +148 -148
  44. package/packages/BaseTextArea/index.js +7 -7
  45. package/packages/BaseTextArea/src/index.vue +178 -178
  46. package/packages/BaseTime/index.js +7 -7
  47. package/packages/BaseTime/src/index.vue +166 -166
  48. package/packages/BaseTool/index.js +7 -7
  49. package/packages/BaseTool/src/index.vue +349 -349
  50. package/packages/BaseToolStatus/index.js +7 -7
  51. package/packages/BaseToolStatus/src/index.vue +383 -383
  52. package/packages/index.js +165 -165
  53. package/packages/styles/default.less +80 -80
  54. package/packages/utils/api.js +45 -45
  55. package/packages/utils/auth.js +38 -38
  56. package/packages/utils/common.js +583 -583
  57. package/packages/utils/dom.js +181 -181
  58. package/packages/utils/enum.js +83 -83
  59. package/packages/utils/filters.js +458 -458
  60. package/packages/utils/gridFormat.js +52 -52
  61. package/packages/utils/msg.js +16 -16
  62. package/packages/utils/patchFiles.js +44 -44
  63. package/packages/utils/request.js +169 -169
  64. package/packages/utils/store.js +250 -246
  65. package/vue.config.js +59 -59
  66. package/dist/css/chunk-vendors.7f83d8f9.css +0 -8
  67. package/dist/css/index.7946d50b.css +0 -1
  68. package/dist/favicon.ico +0 -0
  69. package/dist/js/chunk-vendors.28fda91d.js +0 -340
  70. package/dist/js/index.49bc6add.js +0 -2
  71. package/lib/doway-coms.common.js +0 -120397
  72. package/lib/doway-coms.css +0 -1
  73. package/lib/doway-coms.umd.js +0 -120407
  74. 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,154 +1,154 @@
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
- >
31
- <SelectOption
32
- v-for="loopSource in dataSource"
33
- :key="loopSource.value"
34
- :value="loopSource.value"
35
- >{{ loopSource.caption }}</SelectOption
36
- >
37
- </Select>
38
- <div class="d-error-msg">
39
- {{ v.errors[0] }}
40
- </div>
41
- </ValidationProvider>
42
- <span v-else>{{ currentValue | displaySelectCaption(dataSource) }}</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 { displaySelectCaption } from '../../utils/filters'
51
- import { Tooltip } from 'ant-design-vue'
52
- export default {
53
- filters:{
54
- displaySelectCaption:displaySelectCaption
55
- },
56
- name: 'BaseSelect',
57
- components:{
58
- Select,
59
- SelectOption:Select.Option,
60
- ValidationProvider,
61
- Tooltip,
62
-
63
- },
64
- data() {
65
- return {
66
- filterCols: [],
67
- gridLoading: false,
68
- gridPagerConfig: {
69
- total: 0,
70
- currentPage: 1,
71
- pageSize: 10
72
- }
73
- }
74
- },
75
- computed: {
76
- currentValue: {
77
- // 动态计算currentValue的值
78
- get: function() {
79
- return this.value // 将props中的value赋值给currentValue
80
- },
81
- set: function(val) {
82
- this.$emit('input', val) // 通过$emit触发父组件
83
- }
84
- }
85
- },
86
- props: {
87
- labelWidth: {
88
- type: Number,
89
- default: function() {
90
- return 0
91
- }
92
- },
93
- rules: {
94
- type: Object,
95
- default: function() {
96
- return null
97
- }
98
- },
99
- value: {
100
- type: String,
101
- default: function() {
102
- return ''
103
- }
104
- },
105
- dataSource: {
106
- type: Array,
107
- default: function() {
108
- return []
109
- }
110
- },
111
- edit: {
112
- type: Boolean,
113
- default: function() {
114
- return false
115
- }
116
- },
117
- name: {
118
- type: String,
119
- default: function() {
120
- return ''
121
- }
122
- },
123
- label: {
124
- type: String,
125
- default: function() {
126
- return ''
127
- }
128
- },
129
- placeholder: {
130
- type: String,
131
- default: function() {
132
- return ''
133
- }
134
- },
135
- tooltip: {
136
- type: String,
137
- default: function() {
138
- return ''
139
- }
140
- }
141
- },
142
- created() {},
143
- methods: {
144
- selectChange() {
145
- this.$emit('change', null)
146
- }
147
- }
148
- }
149
- </script>
150
-
151
- <style lang="scss" scoped></style>
152
- <style lang="less">
153
- @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
+ >
31
+ <SelectOption
32
+ v-for="loopSource in dataSource"
33
+ :key="loopSource.value"
34
+ :value="loopSource.value"
35
+ >{{ loopSource.caption }}</SelectOption
36
+ >
37
+ </Select>
38
+ <div class="d-error-msg">
39
+ {{ v.errors[0] }}
40
+ </div>
41
+ </ValidationProvider>
42
+ <span v-else>{{ currentValue | displaySelectCaption(dataSource) }}</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 { displaySelectCaption } from '../../utils/filters'
51
+ import { Tooltip } from 'ant-design-vue'
52
+ export default {
53
+ filters:{
54
+ displaySelectCaption:displaySelectCaption
55
+ },
56
+ name: 'BaseSelect',
57
+ components:{
58
+ Select,
59
+ SelectOption:Select.Option,
60
+ ValidationProvider,
61
+ Tooltip,
62
+
63
+ },
64
+ data() {
65
+ return {
66
+ filterCols: [],
67
+ gridLoading: false,
68
+ gridPagerConfig: {
69
+ total: 0,
70
+ currentPage: 1,
71
+ pageSize: 10
72
+ }
73
+ }
74
+ },
75
+ computed: {
76
+ currentValue: {
77
+ // 动态计算currentValue的值
78
+ get: function() {
79
+ return this.value // 将props中的value赋值给currentValue
80
+ },
81
+ set: function(val) {
82
+ this.$emit('input', val) // 通过$emit触发父组件
83
+ }
84
+ }
85
+ },
86
+ props: {
87
+ labelWidth: {
88
+ type: Number,
89
+ default: function() {
90
+ return 0
91
+ }
92
+ },
93
+ rules: {
94
+ type: Object,
95
+ default: function() {
96
+ return null
97
+ }
98
+ },
99
+ value: {
100
+ type: String,
101
+ default: function() {
102
+ return ''
103
+ }
104
+ },
105
+ dataSource: {
106
+ type: Array,
107
+ default: function() {
108
+ return []
109
+ }
110
+ },
111
+ edit: {
112
+ type: Boolean,
113
+ default: function() {
114
+ return false
115
+ }
116
+ },
117
+ name: {
118
+ type: String,
119
+ default: function() {
120
+ return ''
121
+ }
122
+ },
123
+ label: {
124
+ type: String,
125
+ default: function() {
126
+ return ''
127
+ }
128
+ },
129
+ placeholder: {
130
+ type: String,
131
+ default: function() {
132
+ return ''
133
+ }
134
+ },
135
+ tooltip: {
136
+ type: String,
137
+ default: function() {
138
+ return ''
139
+ }
140
+ }
141
+ },
142
+ created() {},
143
+ methods: {
144
+ selectChange() {
145
+ this.$emit('change', null)
146
+ }
147
+ }
148
+ }
149
+ </script>
150
+
151
+ <style lang="scss" scoped></style>
152
+ <style lang="less">
153
+ @import '../../styles/default.less';
154
154
  </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;