doway-coms 2.3.2 → 2.3.3

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 (82) 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.7946d50b.css +1 -0
  5. package/dist/favicon.ico +0 -0
  6. package/dist/js/chunk-vendors.28fda91d.js +340 -0
  7. package/dist/js/index.49bc6add.js +2 -0
  8. package/lib/doway-coms.common.js +120397 -0
  9. package/lib/doway-coms.css +1 -0
  10. package/lib/doway-coms.umd.js +120407 -0
  11. package/lib/doway-coms.umd.min.js +328 -0
  12. package/package.json +53 -53
  13. package/packages/AuditsList/index.js +7 -7
  14. package/packages/AuditsList/src/index.vue +266 -266
  15. package/packages/BaseButton/index.js +7 -7
  16. package/packages/BaseButton/src/index.vue +241 -241
  17. package/packages/BaseCheckbox/index.js +7 -7
  18. package/packages/BaseCheckbox/src/index.vue +134 -134
  19. package/packages/BaseDate/index.js +7 -7
  20. package/packages/BaseDate/src/index.vue +197 -197
  21. package/packages/BaseDateWeek/index.js +7 -7
  22. package/packages/BaseDateWeek/src/index.vue +163 -163
  23. package/packages/BaseDatetime/index.js +7 -7
  24. package/packages/BaseDatetime/src/index.vue +196 -196
  25. package/packages/BaseForm/index.js +7 -7
  26. package/packages/BaseForm/src/index.vue +730 -730
  27. package/packages/BaseGantt/index.js +9 -9
  28. package/packages/BaseGantt/src/index.vue +617 -617
  29. package/packages/BaseGrid/index.js +9 -9
  30. package/packages/BaseGrid/src/SeqSetting.vue +278 -278
  31. package/packages/BaseGrid/src/index.vue +3616 -3616
  32. package/packages/BaseGridAdjust/index.js +9 -9
  33. package/packages/BaseGridAdjust/src/index.vue +482 -482
  34. package/packages/BaseInput/index.js +7 -7
  35. package/packages/BaseInput/src/index.vue +164 -164
  36. package/packages/BaseIntervalInput/index.js +7 -7
  37. package/packages/BaseIntervalInput/src/index.vue +310 -310
  38. package/packages/BaseKanbanEmpty/index.js +7 -7
  39. package/packages/BaseKanbanEmpty/src/index.vue +176 -176
  40. package/packages/BaseNumberInput/index.js +7 -7
  41. package/packages/BaseNumberInput/src/index.vue +291 -291
  42. package/packages/BasePagination/index.js +7 -7
  43. package/packages/BasePagination/src/index.vue +91 -91
  44. package/packages/BasePictureCard/index.js +7 -7
  45. package/packages/BasePictureCard/src/index.vue +580 -580
  46. package/packages/BasePrintPreview/index.js +7 -7
  47. package/packages/BasePrintPreview/src/index.vue +129 -129
  48. package/packages/BasePulldown/index.js +7 -7
  49. package/packages/BasePulldown/src/index.vue +1321 -1282
  50. package/packages/BaseSearch/index.js +7 -7
  51. package/packages/BaseSearch/src/index.vue +935 -935
  52. package/packages/BaseSelect/index.js +7 -7
  53. package/packages/BaseSelect/src/index.vue +155 -155
  54. package/packages/BaseSelectMulti/index.js +7 -7
  55. package/packages/BaseSelectMulti/src/index.vue +148 -148
  56. package/packages/BaseTextArea/index.js +7 -7
  57. package/packages/BaseTextArea/src/index.vue +178 -178
  58. package/packages/BaseTime/index.js +7 -7
  59. package/packages/BaseTime/src/index.vue +166 -166
  60. package/packages/BaseTool/index.js +7 -7
  61. package/packages/BaseTool/src/index.vue +349 -349
  62. package/packages/BaseToolStatus/index.js +7 -7
  63. package/packages/BaseToolStatus/src/index.vue +388 -388
  64. package/packages/BaseTreeSelect/index.js +8 -8
  65. package/packages/BaseTreeSelect/src/index.vue +437 -437
  66. package/packages/LeaveAMessage/index.js +7 -7
  67. package/packages/LeaveAMessage/src/index.vue +601 -601
  68. package/packages/index.js +191 -191
  69. package/packages/styles/default.css +78 -78
  70. package/packages/styles/default.less +84 -84
  71. package/packages/utils/api.js +107 -107
  72. package/packages/utils/auth.js +38 -38
  73. package/packages/utils/common.js +610 -610
  74. package/packages/utils/dom.js +181 -181
  75. package/packages/utils/enum.js +86 -86
  76. package/packages/utils/filters.js +472 -472
  77. package/packages/utils/gridFormat.js +66 -66
  78. package/packages/utils/msg.js +84 -84
  79. package/packages/utils/patchFiles.js +44 -44
  80. package/packages/utils/request.js +178 -178
  81. package/packages/utils/store.js +305 -309
  82. package/vue.config.js +59 -59
@@ -1,8 +1,8 @@
1
- // 导入组件,组件必须声明 name
2
- import BaseInput from './src/index.vue';
3
- // 为组件提供 install 安装方法,供按需引入
4
- BaseInput.install = function(Vue) {
5
- Vue.component(BaseInput.name, BaseInput);
6
- };
7
- // 默认导出组件
1
+ // 导入组件,组件必须声明 name
2
+ import BaseInput from './src/index.vue';
3
+ // 为组件提供 install 安装方法,供按需引入
4
+ BaseInput.install = function(Vue) {
5
+ Vue.component(BaseInput.name, BaseInput);
6
+ };
7
+ // 默认导出组件
8
8
  export default BaseInput;
@@ -1,164 +1,164 @@
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
- >*
8
- </span>
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
- <Input
21
- :size="'small'"
22
- v-model="currentValue"
23
- :placeholder="placeholder"
24
- @change="change"
25
- @blur="blur"
26
- style="width: 100%"
27
- :class="{ 'd-error-input': v.errors.length > 0 }"
28
- />
29
- <div class="d-error-msg">
30
- {{ v.errors[0] }}
31
- </div>
32
- </ValidationProvider>
33
- <Tooltip placement="topLeft" v-else>
34
- <template slot="title">
35
- {{ currentValue }}
36
- </template>
37
- <span @contextmenu.prevent="(event) => onContextmenu(event, currentValue)">
38
- {{ currentValue }}
39
- </span>
40
- </Tooltip>
41
- </div>
42
- </div>
43
- </template>
44
-
45
- <script>
46
- //VXETable插件
47
- import VXETable from "vxe-table";
48
- //轻量级剪贴板复制函数
49
- import XEClipboard from "xe-clipboard";
50
- import { Input, Tooltip } from 'ant-design-vue'
51
- import { ValidationProvider } from 'vee-validate'
52
- export default {
53
- name: 'BaseInput',
54
- components:{
55
- Input,
56
- ValidationProvider,
57
- Tooltip,
58
- },
59
- data() {
60
- return {
61
- filterValue: '',
62
- isInputChanged: false,
63
- inputTimeout: null,
64
- searchRows: [],
65
- filterCols: [],
66
- gridLoading: false,
67
- gridPagerConfig: {
68
- total: 0,
69
- currentPage: 1,
70
- pageSize: 10
71
- }
72
- }
73
- },
74
- computed: {
75
- currentValue: {
76
- // 动态计算currentValue的值
77
- get: function() {
78
- return this.value // 将props中的value赋值给currentValue
79
- },
80
- set: function(val) {
81
- this.$emit('input', val) // 通过$emit触发父组件
82
- }
83
- }
84
- },
85
- props: {
86
- rules: {
87
- type: Object,
88
- default: function() {
89
- return null
90
- }
91
- },
92
- value: {
93
- type: String,
94
- default: function() {
95
- return ''
96
- }
97
- },
98
- edit: {
99
- type: Boolean,
100
- default: function() {
101
- return false
102
- }
103
- },
104
- name: {
105
- type: String,
106
- default: function() {
107
- return ''
108
- }
109
- },
110
- label: {
111
- type: String,
112
- default: function() {
113
- return ''
114
- }
115
- },
116
- placeholder: {
117
- type: String,
118
- default: function() {
119
- return ''
120
- }
121
- },
122
- tooltip: {
123
- type: String,
124
- default: function() {
125
- return ''
126
- }
127
- }
128
- },
129
- created() {},
130
- methods: {
131
- change() {
132
- this.$emit('change')
133
- },
134
- blur() {
135
- this.$emit('blur')
136
- },
137
- onContextmenu(event, currentValue) {
138
- this.$contextmenu({
139
- items: [
140
- {
141
- icon: 'ant-design:folder-open-filled',
142
- label: "复制",
143
- onClick: () => {
144
- if (XEClipboard.copy(currentValue)) {
145
- VXETable.modal.message({
146
- content: "已复制到剪贴板!",
147
- status: "success",
148
- });
149
- }
150
- }
151
- }
152
- ],
153
- event,
154
- zIndex: 1000,
155
- minWidth: 150
156
- });
157
- return false;
158
- }
159
- }
160
- }
161
- </script>
162
- <style lang="less">
163
- @import '../../styles/default.less';
164
- </style>
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
+ >*
8
+ </span>
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
+ <Input
21
+ :size="'small'"
22
+ v-model="currentValue"
23
+ :placeholder="placeholder"
24
+ @change="change"
25
+ @blur="blur"
26
+ style="width: 100%"
27
+ :class="{ 'd-error-input': v.errors.length > 0 }"
28
+ />
29
+ <div class="d-error-msg">
30
+ {{ v.errors[0] }}
31
+ </div>
32
+ </ValidationProvider>
33
+ <Tooltip placement="topLeft" v-else>
34
+ <template slot="title">
35
+ {{ currentValue }}
36
+ </template>
37
+ <span @contextmenu.prevent="(event) => onContextmenu(event, currentValue)">
38
+ {{ currentValue }}
39
+ </span>
40
+ </Tooltip>
41
+ </div>
42
+ </div>
43
+ </template>
44
+
45
+ <script>
46
+ //VXETable插件
47
+ import VXETable from "vxe-table";
48
+ //轻量级剪贴板复制函数
49
+ import XEClipboard from "xe-clipboard";
50
+ import { Input, Tooltip } from 'ant-design-vue'
51
+ import { ValidationProvider } from 'vee-validate'
52
+ export default {
53
+ name: 'BaseInput',
54
+ components:{
55
+ Input,
56
+ ValidationProvider,
57
+ Tooltip,
58
+ },
59
+ data() {
60
+ return {
61
+ filterValue: '',
62
+ isInputChanged: false,
63
+ inputTimeout: null,
64
+ searchRows: [],
65
+ filterCols: [],
66
+ gridLoading: false,
67
+ gridPagerConfig: {
68
+ total: 0,
69
+ currentPage: 1,
70
+ pageSize: 10
71
+ }
72
+ }
73
+ },
74
+ computed: {
75
+ currentValue: {
76
+ // 动态计算currentValue的值
77
+ get: function() {
78
+ return this.value // 将props中的value赋值给currentValue
79
+ },
80
+ set: function(val) {
81
+ this.$emit('input', val) // 通过$emit触发父组件
82
+ }
83
+ }
84
+ },
85
+ props: {
86
+ rules: {
87
+ type: Object,
88
+ default: function() {
89
+ return null
90
+ }
91
+ },
92
+ value: {
93
+ type: String,
94
+ default: function() {
95
+ return ''
96
+ }
97
+ },
98
+ edit: {
99
+ type: Boolean,
100
+ default: function() {
101
+ return false
102
+ }
103
+ },
104
+ name: {
105
+ type: String,
106
+ default: function() {
107
+ return ''
108
+ }
109
+ },
110
+ label: {
111
+ type: String,
112
+ default: function() {
113
+ return ''
114
+ }
115
+ },
116
+ placeholder: {
117
+ type: String,
118
+ default: function() {
119
+ return ''
120
+ }
121
+ },
122
+ tooltip: {
123
+ type: String,
124
+ default: function() {
125
+ return ''
126
+ }
127
+ }
128
+ },
129
+ created() {},
130
+ methods: {
131
+ change() {
132
+ this.$emit('change')
133
+ },
134
+ blur() {
135
+ this.$emit('blur')
136
+ },
137
+ onContextmenu(event, currentValue) {
138
+ this.$contextmenu({
139
+ items: [
140
+ {
141
+ icon: 'ant-design:folder-open-filled',
142
+ label: "复制",
143
+ onClick: () => {
144
+ if (XEClipboard.copy(currentValue)) {
145
+ VXETable.modal.message({
146
+ content: "已复制到剪贴板!",
147
+ status: "success",
148
+ });
149
+ }
150
+ }
151
+ }
152
+ ],
153
+ event,
154
+ zIndex: 1000,
155
+ minWidth: 150
156
+ });
157
+ return false;
158
+ }
159
+ }
160
+ }
161
+ </script>
162
+ <style lang="less">
163
+ @import '../../styles/default.less';
164
+ </style>
@@ -1,8 +1,8 @@
1
- // 导入组件,组件必须声明 name
2
- import BaseIntervalInput from './src/index.vue';
3
- // 为组件提供 install 安装方法,供按需引入
4
- BaseIntervalInput.install = function(Vue) {
5
- Vue.component(BaseIntervalInput.name, BaseIntervalInput);
6
- };
7
- // 默认导出组件
1
+ // 导入组件,组件必须声明 name
2
+ import BaseIntervalInput from './src/index.vue';
3
+ // 为组件提供 install 安装方法,供按需引入
4
+ BaseIntervalInput.install = function(Vue) {
5
+ Vue.component(BaseIntervalInput.name, BaseIntervalInput);
6
+ };
7
+ // 默认导出组件
8
8
  export default BaseIntervalInput;