mali-applet-ui 1.1.110 → 1.1.112

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 (181) hide show
  1. package/README.md +7 -7
  2. package/clipboard/index.js +35 -35
  3. package/config/index.js +9 -9
  4. package/config/json.js +30 -30
  5. package/config/store.js +87 -87
  6. package/env/index.d.ts +49 -49
  7. package/env/index.js +552 -552
  8. package/env/script/run-before.txt +7 -7
  9. package/env/script/run-build.txt +9 -9
  10. package/env/script/run-init.txt +6 -6
  11. package/env/script/run-upload.txt +25 -25
  12. package/i18n/i18n.js +53 -53
  13. package/i18n/lang/en_US.js +26 -26
  14. package/i18n/lang/zh_CN.js +26 -26
  15. package/index.js +46 -46
  16. package/lib/components/fix-uni-datetime-picker/calendar-item.vue +183 -183
  17. package/lib/components/fix-uni-datetime-picker/calendar.vue +924 -924
  18. package/lib/components/fix-uni-datetime-picker/fix-uni-datetime-picker.vue +1025 -1025
  19. package/lib/components/fix-uni-datetime-picker/i18n/en.json +22 -22
  20. package/lib/components/fix-uni-datetime-picker/i18n/index.js +8 -8
  21. package/lib/components/fix-uni-datetime-picker/time-picker.vue +958 -958
  22. package/lib/components/fix-uni-datetime-picker/util.js +414 -414
  23. package/lib/components/ml-action-menu/ml-action-menu.vue +43 -43
  24. package/lib/components/ml-amount-input/ml-amount-input.vue +271 -271
  25. package/lib/components/ml-amount-text/ml-amount-text.vue +114 -114
  26. package/lib/components/ml-approval-record/ml-approval-record.vue +326 -326
  27. package/lib/components/ml-approval-select/ml-approval-select.vue +319 -319
  28. package/lib/components/ml-approval-type/ml-approval-type.vue +45 -45
  29. package/lib/components/ml-button/ml-button.vue +259 -259
  30. package/lib/components/ml-calendar/handle.js +145 -145
  31. package/lib/components/ml-calendar/ml-calendar.vue +351 -351
  32. package/lib/components/ml-card/ml-card.vue +83 -83
  33. package/lib/components/ml-cascader/ml-cascader.vue +249 -249
  34. package/lib/components/ml-cascader-picker/ml-cascader-picker.vue +249 -249
  35. package/lib/components/ml-charts/echarts.min.js +46 -46
  36. package/lib/components/ml-charts/ml-charts.vue +258 -258
  37. package/lib/components/ml-checkbox/ml-checkbox.vue +96 -96
  38. package/lib/components/ml-checkbox-button/ml-checkbox-button.vue +71 -71
  39. package/lib/components/ml-checkbox-group/ml-checkbox-group.vue +54 -54
  40. package/lib/components/ml-chunk-group/ml-chunk-group.vue +180 -180
  41. package/lib/components/ml-chunk-item/ml-chunk-item.vue +155 -155
  42. package/lib/components/ml-col/ml-col.vue +117 -117
  43. package/lib/components/ml-countdown/ml-countdown.vue +130 -130
  44. package/lib/components/ml-date-picker/ml-date-picker.vue +75 -75
  45. package/lib/components/ml-date-quick-range-picker/ml-date-quick-range-picker.vue +160 -150
  46. package/lib/components/ml-date-range-picker/ml-date-range-picker.vue +58 -58
  47. package/lib/components/ml-datetime-picker/ml-datetime-picker.vue +53 -53
  48. package/lib/components/ml-datetime-range-picker/ml-datetime-range-picker.vue +62 -62
  49. package/lib/components/ml-dict-type/ml-dict-type.vue +228 -228
  50. package/lib/components/ml-drawer/ml-drawer.vue +215 -215
  51. package/lib/components/ml-echarts/ml-echarts.vue +258 -258
  52. package/lib/components/ml-editor/html-parser.js +353 -353
  53. package/lib/components/ml-editor/ml-editor.vue +73 -73
  54. package/lib/components/ml-fixed-footer/ml-fixed-footer.vue +122 -122
  55. package/lib/components/ml-fixed-header/ml-fixed-header.vue +114 -114
  56. package/lib/components/ml-form/ml-form.vue +193 -193
  57. package/lib/components/ml-form-group/ml-form-group.vue +71 -71
  58. package/lib/components/ml-form-item/ml-form-item.vue +337 -337
  59. package/lib/components/ml-full-watermark/ml-full-watermark.vue +37 -37
  60. package/lib/components/ml-header-filter-form/ml-header-filter-form.vue +205 -205
  61. package/lib/components/ml-hint/ml-hint.vue +85 -85
  62. package/lib/components/ml-icon/ml-icon.vue +110 -110
  63. package/lib/components/ml-image/ml-image.vue +38 -38
  64. package/lib/components/ml-image-swiper/ml-image-swiper.vue +68 -68
  65. package/lib/components/ml-input/ml-input.vue +291 -291
  66. package/lib/components/ml-list-group/ml-list-group.vue +302 -302
  67. package/lib/components/ml-list-item/ml-list-item.vue +238 -238
  68. package/lib/components/ml-list-item-describe/ml-list-item-describe.vue +81 -81
  69. package/lib/components/ml-list-item-menu/ml-list-item-menu.vue +28 -28
  70. package/lib/components/ml-list-item-title/ml-list-item-title.vue +83 -83
  71. package/lib/components/ml-list-menu-group/ml-list-menu-group.vue +195 -195
  72. package/lib/components/ml-list-menu-item/ml-list-menu-item.vue +276 -276
  73. package/lib/components/ml-list-select-group/ml-list-select-group.vue +208 -208
  74. package/lib/components/ml-list-select-page/ml-list-select-page.vue +206 -206
  75. package/lib/components/ml-list-select-page-footer/ml-list-select-page-footer.vue +92 -92
  76. package/lib/components/ml-list-select-user-page/ml-list-select-user-page.vue +256 -256
  77. package/lib/components/ml-load-more/ml-load-more.vue +234 -234
  78. package/lib/components/ml-location-pick/location.js +12 -12
  79. package/lib/components/ml-location-pick/ml-location-pick.vue +73 -73
  80. package/lib/components/ml-modal/ml-modal.vue +197 -197
  81. package/lib/components/ml-month-picker/ml-month-picker.vue +71 -71
  82. package/lib/components/ml-navbar/ml-navbar.vue +95 -95
  83. package/lib/components/ml-not-data/ml-not-data.vue +73 -73
  84. package/lib/components/ml-number-input/ml-number-input.vue +311 -311
  85. package/lib/components/ml-pager/ml-pager.vue +244 -244
  86. package/lib/components/ml-picker-drawer/ml-picker-drawer.vue +108 -108
  87. package/lib/components/ml-progress-bar/ml-progress-bar.vue +157 -157
  88. package/lib/components/ml-province-city-picker/ml-province-city-picker.vue +255 -255
  89. package/lib/components/ml-provinces-picker/ml-provinces-picker.vue +182 -182
  90. package/lib/components/ml-radio/ml-radio.vue +83 -83
  91. package/lib/components/ml-radio-button/ml-radio-button.vue +75 -75
  92. package/lib/components/ml-radio-group/ml-radio-group.vue +48 -48
  93. package/lib/components/ml-rich-text/ml-rich-text.vue +45 -45
  94. package/lib/components/ml-row/ml-row.vue +79 -79
  95. package/lib/components/ml-search-bar/ml-search-bar.vue +171 -171
  96. package/lib/components/ml-section/ml-section.vue +45 -45
  97. package/lib/components/ml-select/ml-select.vue +212 -212
  98. package/lib/components/ml-select-picker/ml-select-picker.vue +212 -212
  99. package/lib/components/ml-status-tag/ml-status-tag.vue +95 -95
  100. package/lib/components/ml-switch/ml-switch.vue +167 -167
  101. package/lib/components/ml-tab-container/ml-tab-container.vue +42 -42
  102. package/lib/components/ml-tab-container-navs/ml-tab-container-navs.vue +182 -182
  103. package/lib/components/ml-tab-pane/ml-tab-pane.vue +102 -102
  104. package/lib/components/ml-tabbar/ml-tabbar.vue +158 -158
  105. package/lib/components/ml-table/ml-table.vue +471 -471
  106. package/lib/components/ml-table-td/ml-table-td.vue +148 -148
  107. package/lib/components/ml-table-tr/ml-table-tr.vue +28 -28
  108. package/lib/components/ml-tabs/ml-tabs.vue +166 -166
  109. package/lib/components/ml-tag/ml-tag.vue +113 -113
  110. package/lib/components/ml-text/ml-text.vue +121 -121
  111. package/lib/components/ml-textarea/ml-textarea.vue +176 -176
  112. package/lib/components/ml-time-line/ml-time-line.vue +102 -102
  113. package/lib/components/ml-time-line-group/ml-time-line-group.vue +17 -17
  114. package/lib/components/ml-time-line-item/ml-time-line-item.vue +92 -92
  115. package/lib/components/ml-time-picker/ml-time-picker.vue +70 -70
  116. package/lib/components/ml-toast/ml-toast.vue +82 -82
  117. package/lib/components/ml-tooltip/ml-tooltip.vue +144 -144
  118. package/lib/components/ml-tooltip-view/ml-tooltip-view.vue +187 -187
  119. package/lib/components/ml-tree/ml-tree.vue +312 -312
  120. package/lib/components/ml-tree-box/ml-tree-box.vue +545 -545
  121. package/lib/components/ml-tree-box/ml-tree-icon.vue +39 -39
  122. package/lib/components/ml-tree-box/utils/index.js +58 -58
  123. package/lib/components/ml-tree-node/ml-tree-node.vue +164 -164
  124. package/lib/components/ml-update-log/ml-update-log.vue +76 -76
  125. package/lib/components/ml-upload/ml-upload.vue +798 -798
  126. package/lib/components/ml-year-picker/ml-year-picker.vue +69 -69
  127. package/modal/loading.js +31 -31
  128. package/modal/modal.js +43 -43
  129. package/modal/toast.js +66 -66
  130. package/package.json +1 -1
  131. package/storage/index.js +35 -35
  132. package/store/base.js +53 -53
  133. package/store/events.js +22 -22
  134. package/store/toast.js +84 -84
  135. package/style/variable.scss +44 -44
  136. package/theme.scss +1 -1
  137. package/tongji/index.js +10 -10
  138. package/types/clipboard/index.d.ts +11 -11
  139. package/types/i18n/index.d.ts +9 -9
  140. package/types/index.d.ts +66 -66
  141. package/types/loading.d.ts +6 -6
  142. package/types/modal.d.ts +13 -13
  143. package/types/storage/index.d.ts +7 -7
  144. package/types/toast.d.ts +10 -10
  145. package/types/uni/index.d.ts +24 -24
  146. package/types/utils/index.d.ts +50 -50
  147. package/types/webview/index.d.ts +7 -7
  148. package/uni/index.js +45 -45
  149. package/utils/applet.js +118 -118
  150. package/utils/date.js +19 -19
  151. package/utils/file.js +191 -191
  152. package/utils/index.js +44 -44
  153. package/utils/number.js +142 -142
  154. package/utils/scan.js +23 -23
  155. package/webview/index.js +52 -52
  156. package/lib/components/ml-calendar/calendar.js +0 -145
  157. package/lib/components/ml-echart2/ec-canvas.vue +0 -140
  158. package/lib/components/ml-echart2/echarts.js +0 -11
  159. package/lib/components/ml-echart2/echarts.simple.min.js +0 -18
  160. package/lib/components/ml-echart2/ml-echart2.vue +0 -182
  161. package/lib/components/ml-echart2/wx-canvas.js +0 -111
  162. package/lib/components/ml-echarts/echarts.js +0 -15
  163. package/lib/components/ml-echarts/echarts.min.js +0 -46
  164. package/lib/components/ml-echarts/echarts.simple.min.js +0 -21
  165. package/lib/components/ml-echarts/wx-canvas.js +0 -168
  166. package/lib/components/ml-fix-uni-datetime-picker/calendar-item.vue +0 -183
  167. package/lib/components/ml-fix-uni-datetime-picker/calendar.vue +0 -921
  168. package/lib/components/ml-fix-uni-datetime-picker/i18n/en.json +0 -22
  169. package/lib/components/ml-fix-uni-datetime-picker/i18n/index.js +0 -8
  170. package/lib/components/ml-fix-uni-datetime-picker/i18n/zh-Hans.json +0 -22
  171. package/lib/components/ml-fix-uni-datetime-picker/i18n/zh-Hant.json +0 -22
  172. package/lib/components/ml-fix-uni-datetime-picker/keypress.js +0 -45
  173. package/lib/components/ml-fix-uni-datetime-picker/ml-fix-uni-datetime-picker.vue +0 -1025
  174. package/lib/components/ml-fix-uni-datetime-picker/time-picker.vue +0 -944
  175. package/lib/components/ml-fix-uni-datetime-picker/util.js +0 -414
  176. package/lib/components/ml-province-city-picker/province-city.json +0 -1
  177. package/lib/components/ml-provinces-picker/provincesData.js +0 -13588
  178. package/lib/components/ml-rich-text/html-parser.js +0 -354
  179. package/lib/components/ml-textarea/voice-input.vue +0 -197
  180. package/lib/components/ml-tree-box/index.js +0 -58
  181. package/lib/components/ml-upload/file-handle.js +0 -49
package/README.md CHANGED
@@ -1,7 +1,7 @@
1
- # mali-applet-ui
2
-
3
- Mali-Applet-UI 码里云小程序组件库vue2
4
-
5
- ## copyright
6
-
7
- 深圳叮当科技技术有限公司
1
+ # mali-applet-ui
2
+
3
+ Mali-Applet-UI 码里云小程序组件库vue2
4
+
5
+ ## copyright
6
+
7
+ 深圳叮当科技技术有限公司
@@ -1,35 +1,35 @@
1
- const MaliClipboard = {
2
- copy (text) {
3
- return new Promise(resolve => {
4
- uni.setClipboardData({
5
- data: text,
6
- success () {
7
- resolve(true)
8
- },
9
- fail () {
10
- resolve(false)
11
- }
12
- })
13
- })
14
- },
15
- read () {
16
- return new Promise(resolve => {
17
- uni.getClipboardData({
18
- success (res) {
19
- resolve({
20
- status: true,
21
- content: res.data
22
- })
23
- },
24
- fail () {
25
- resolve({
26
- status: false,
27
- content: ''
28
- })
29
- }
30
- })
31
- })
32
- }
33
- }
34
-
35
- export default MaliClipboard
1
+ const MaliClipboard = {
2
+ copy (text) {
3
+ return new Promise(resolve => {
4
+ uni.setClipboardData({
5
+ data: text,
6
+ success () {
7
+ resolve(true)
8
+ },
9
+ fail () {
10
+ resolve(false)
11
+ }
12
+ })
13
+ })
14
+ },
15
+ read () {
16
+ return new Promise(resolve => {
17
+ uni.getClipboardData({
18
+ success (res) {
19
+ resolve({
20
+ status: true,
21
+ content: res.data
22
+ })
23
+ },
24
+ fail () {
25
+ resolve({
26
+ status: false,
27
+ content: ''
28
+ })
29
+ }
30
+ })
31
+ })
32
+ }
33
+ }
34
+
35
+ export default MaliClipboard
package/config/index.js CHANGED
@@ -1,9 +1,9 @@
1
- import globalStore from './store'
2
- import XEUtils from 'xe-utils'
3
-
4
- function config (options) {
5
- XEUtils.merge(globalStore, options)
6
- return globalStore
7
- }
8
-
9
- export default config
1
+ import globalStore from './store'
2
+ import XEUtils from 'xe-utils'
3
+
4
+ function config (options) {
5
+ XEUtils.merge(globalStore, options)
6
+ return globalStore
7
+ }
8
+
9
+ export default config
package/config/json.js CHANGED
@@ -1,30 +1,30 @@
1
- import globalStore from './store'
2
- import XEUtils from 'xe-utils'
3
-
4
- let provincesPromise
5
-
6
- export function getProvincesJSON () {
7
- if (provincesPromise) {
8
- return provincesPromise
9
- }
10
- if (globalStore.provincesPicker && globalStore.provincesPicker.jsonUrl) {
11
- provincesPromise = new Promise((resolve) => {
12
- uni.request({
13
- url: globalStore.provincesPicker.jsonUrl,
14
- method: 'GET',
15
- dataType: 'json',
16
- success (res) {
17
- resolve(XEUtils.isArray(res.data) ? res.data : [])
18
- },
19
- fail (e) {
20
- provincesPromise = null
21
- resolve([])
22
- }
23
- })
24
- })
25
- } else {
26
- provincesPromise = Promise.resolve([])
27
- console.error('缺少全局配置:provincesPicker.jsonUrl')
28
- }
29
- return provincesPromise
30
- }
1
+ import globalStore from './store'
2
+ import XEUtils from 'xe-utils'
3
+
4
+ let provincesPromise
5
+
6
+ export function getProvincesJSON () {
7
+ if (provincesPromise) {
8
+ return provincesPromise
9
+ }
10
+ if (globalStore.provincesPicker && globalStore.provincesPicker.jsonUrl) {
11
+ provincesPromise = new Promise((resolve) => {
12
+ uni.request({
13
+ url: globalStore.provincesPicker.jsonUrl,
14
+ method: 'GET',
15
+ dataType: 'json',
16
+ success (res) {
17
+ resolve(XEUtils.isArray(res.data) ? res.data : [])
18
+ },
19
+ fail (e) {
20
+ provincesPromise = null
21
+ resolve([])
22
+ }
23
+ })
24
+ })
25
+ } else {
26
+ provincesPromise = Promise.resolve([])
27
+ console.error('缺少全局配置:provincesPicker.jsonUrl')
28
+ }
29
+ return provincesPromise
30
+ }
package/config/store.js CHANGED
@@ -1,87 +1,87 @@
1
- const globalStore = {
2
- // 上传组件
3
- upload: {
4
- // fileProps: {
5
- // fileUrl: 'fileUrl', // 文件地址
6
- // fileType: 'fileType', // 文件类型
7
- // fileName: 'fileName' // 文件名
8
- // },
9
- // 获取附件缩略图方法
10
- // getThumbnailFileUrl: null,
11
- // // 获取附件路径方法
12
- // getFileUrl: null,
13
- // // 上传附件方法
14
- // uploadFile: null,
15
- // // 下载附件方法
16
- // downloadFile: null,
17
- // // 删除附件方法
18
- // removeFile: null
19
- },
20
- // 审批组件
21
- approval: {
22
- // 审批流程
23
- select: {
24
- // optionMethod: null
25
- },
26
- // 审批记录
27
- record: {
28
- // optionMethod: null
29
- },
30
- types: [
31
- { value: 0, label: '起草中', color: '#353535', background: '#eaebed' },
32
- { value: 1, label: '审批中', color: '#007FFF', background: '#e0efff' },
33
- { value: 2, label: '已通过', color: '#00B042', background: '#e0f5e8' },
34
- { value: 3, label: '已驳回', color: '#FF5064', background: '#ffeaec' },
35
- { value: 4, label: '会签中', color: '#007FFF', background: '#e0efff' },
36
- { value: 5, label: '处理中', color: '#007FFF', background: '#e0efff' },
37
- { value: 6, label: '已完成', color: '#00B042', background: '#e0f5e8' }
38
- ]
39
- },
40
- // 上拉加载更多
41
- loadMore: {
42
- pageSize: 30,
43
- pageProp: {
44
- pageSize: 'limit',
45
- currentPage: 'page'
46
- },
47
- resProps: {
48
- result: 'datas',
49
- total: 'total'
50
- },
51
- notData: {
52
- // emptyUrl: '',
53
- emptyText: '暂无记录',
54
- // resultUrl: '',
55
- resultText: '暂无相关结果',
56
- resultHint: '请检查输入是否正确'
57
- }
58
- },
59
- // 分页器
60
- pager: {
61
- pageSize: 30,
62
- pageProp: {
63
- pageSize: 'limit',
64
- currentPage: 'page'
65
- },
66
- resProps: {
67
- result: 'datas',
68
- total: 'total'
69
- },
70
- notData: {
71
- // emptyUrl: '',
72
- emptyText: '暂无记录',
73
- resultUrl: '',
74
- resultText: '暂无相关结果',
75
- resultHint: '请检查输入是否正确'
76
- }
77
- },
78
- notData: {
79
- // emptyUrl: '',
80
- emptyText: '暂无记录'
81
- },
82
- listSelectUserPage: {
83
- // defaultAvatarUrl: ''
84
- }
85
- }
86
-
87
- export default globalStore
1
+ const globalStore = {
2
+ // 上传组件
3
+ upload: {
4
+ // fileProps: {
5
+ // fileUrl: 'fileUrl', // 文件地址
6
+ // fileType: 'fileType', // 文件类型
7
+ // fileName: 'fileName' // 文件名
8
+ // },
9
+ // 获取附件缩略图方法
10
+ // getThumbnailFileUrl: null,
11
+ // // 获取附件路径方法
12
+ // getFileUrl: null,
13
+ // // 上传附件方法
14
+ // uploadFile: null,
15
+ // // 下载附件方法
16
+ // downloadFile: null,
17
+ // // 删除附件方法
18
+ // removeFile: null
19
+ },
20
+ // 审批组件
21
+ approval: {
22
+ // 审批流程
23
+ select: {
24
+ // optionMethod: null
25
+ },
26
+ // 审批记录
27
+ record: {
28
+ // optionMethod: null
29
+ },
30
+ types: [
31
+ { value: 0, label: '起草中', color: '#353535', background: '#eaebed' },
32
+ { value: 1, label: '审批中', color: '#007FFF', background: '#e0efff' },
33
+ { value: 2, label: '已通过', color: '#00B042', background: '#e0f5e8' },
34
+ { value: 3, label: '已驳回', color: '#FF5064', background: '#ffeaec' },
35
+ { value: 4, label: '会签中', color: '#007FFF', background: '#e0efff' },
36
+ { value: 5, label: '处理中', color: '#007FFF', background: '#e0efff' },
37
+ { value: 6, label: '已完成', color: '#00B042', background: '#e0f5e8' }
38
+ ]
39
+ },
40
+ // 上拉加载更多
41
+ loadMore: {
42
+ pageSize: 30,
43
+ pageProp: {
44
+ pageSize: 'limit',
45
+ currentPage: 'page'
46
+ },
47
+ resProps: {
48
+ result: 'datas',
49
+ total: 'total'
50
+ },
51
+ notData: {
52
+ // emptyUrl: '',
53
+ emptyText: '暂无记录',
54
+ // resultUrl: '',
55
+ resultText: '暂无相关结果',
56
+ resultHint: '请检查输入是否正确'
57
+ }
58
+ },
59
+ // 分页器
60
+ pager: {
61
+ pageSize: 30,
62
+ pageProp: {
63
+ pageSize: 'limit',
64
+ currentPage: 'page'
65
+ },
66
+ resProps: {
67
+ result: 'datas',
68
+ total: 'total'
69
+ },
70
+ notData: {
71
+ // emptyUrl: '',
72
+ emptyText: '暂无记录',
73
+ resultUrl: '',
74
+ resultText: '暂无相关结果',
75
+ resultHint: '请检查输入是否正确'
76
+ }
77
+ },
78
+ notData: {
79
+ // emptyUrl: '',
80
+ emptyText: '暂无记录'
81
+ },
82
+ listSelectUserPage: {
83
+ // defaultAvatarUrl: ''
84
+ }
85
+ }
86
+
87
+ export default globalStore
package/env/index.d.ts CHANGED
@@ -1,50 +1,50 @@
1
- export function defineSwaggerConfig(config: Record<string, any>, defaultRootPath ?: string): Record<string, any>
2
- export function getEnvCode(mode: string): string
3
- export function getEnvName(mode: string): string
4
- export function getCustomName(custom: string): string
5
- export function getPlatformName(platform: string): string
6
- export function getSubModuleName(module: string): string
7
- export function parseEnv(dirPath: string): Record<string, string>
8
- export function initEnv(dirPath: string, defaultEnv: Record<string, string>): Record<string, string>
9
- export function initManifestConfig(dirPath: string, manifestJson: any): void
10
- export function initManifestEnv(dirPath: string, manifestJson: any): Record<string, string>
11
- export function initEnvScript(dirPath: string, confs: {
12
- customName: string
13
- subName: string
14
- platform: '' | 'mp-weixin' | 'mp-qiwei' | 'mp-dingtalk' | 'h5-dingtalk' | 'h5-qiwei' | 'dingtalk'
15
- modes: ('dev' | 'test' | 'demo' | 'pre' | 'prod')[]
16
- }[]): any
17
- export function uploadWxMiniprogram(version: string): void
18
- export function getSCSSAdditionalData(envConfig?: an): string
19
-
20
- /**
21
- * 发送邮件通知
22
- * @param options
23
- */
24
- export function sendMail(options: {
25
- receivedBy: string | string[]
26
- subject: string
27
- html: string
28
- })
29
-
30
- /**
31
- * 推送企微群机器人消息
32
- * @param webhook 机器人地址
33
- * @param params
34
- */
35
- export function sendQyWechatMsg(webhook: string, params: {
36
- content: string
37
- mentionedList?: string[]
38
- mentionedMobileList?: string[]
39
- })
40
-
41
- /**
42
- * 获取默认开始编译的消息文本
43
- * @param description
44
- */
45
- export function getBuildMsg(description: string, time?: number): string
46
- /**
47
- * 获取默认编译成功的消息文本
48
- * @param description
49
- */
1
+ export function defineSwaggerConfig(config: Record<string, any>, defaultRootPath ?: string): Record<string, any>
2
+ export function getEnvCode(mode: string): string
3
+ export function getEnvName(mode: string): string
4
+ export function getCustomName(custom: string): string
5
+ export function getPlatformName(platform: string): string
6
+ export function getSubModuleName(module: string): string
7
+ export function parseEnv(dirPath: string): Record<string, string>
8
+ export function initEnv(dirPath: string, defaultEnv: Record<string, string>): Record<string, string>
9
+ export function initManifestConfig(dirPath: string, manifestJson: any): void
10
+ export function initManifestEnv(dirPath: string, manifestJson: any): Record<string, string>
11
+ export function initEnvScript(dirPath: string, confs: {
12
+ customName: string
13
+ subName: string
14
+ platform: '' | 'mp-weixin' | 'mp-qiwei' | 'mp-dingtalk' | 'h5-dingtalk' | 'h5-qiwei' | 'dingtalk'
15
+ modes: ('dev' | 'test' | 'demo' | 'pre' | 'prod')[]
16
+ }[]): any
17
+ export function uploadWxMiniprogram(version: string): void
18
+ export function getSCSSAdditionalData(envConfig?: an): string
19
+
20
+ /**
21
+ * 发送邮件通知
22
+ * @param options
23
+ */
24
+ export function sendMail(options: {
25
+ receivedBy: string | string[]
26
+ subject: string
27
+ html: string
28
+ })
29
+
30
+ /**
31
+ * 推送企微群机器人消息
32
+ * @param webhook 机器人地址
33
+ * @param params
34
+ */
35
+ export function sendQyWechatMsg(webhook: string, params: {
36
+ content: string
37
+ mentionedList?: string[]
38
+ mentionedMobileList?: string[]
39
+ })
40
+
41
+ /**
42
+ * 获取默认开始编译的消息文本
43
+ * @param description
44
+ */
45
+ export function getBuildMsg(description: string, time?: number): string
46
+ /**
47
+ * 获取默认编译成功的消息文本
48
+ * @param description
49
+ */
50
50
  export function getBuildSuccessMsg(description: string): string