swordpass-ui 1.0.0

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 (330) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +37 -0
  3. package/lib/demo.html +10 -0
  4. package/lib/img/icon_found_img.c785c1b7.png +0 -0
  5. package/lib/sword-vue-ui.common.js +61402 -0
  6. package/lib/sword-vue-ui.css +1 -0
  7. package/lib/sword-vue-ui.umd.js +61412 -0
  8. package/lib/sword-vue-ui.umd.min.js +6 -0
  9. package/package.json +109 -0
  10. package/packages/AddQueryStrategy/index.js +7 -0
  11. package/packages/AddQueryStrategy/src/main.vue +236 -0
  12. package/packages/Autocomplete/index.js +7 -0
  13. package/packages/Autocomplete/src/main.vue +192 -0
  14. package/packages/Button/index.js +7 -0
  15. package/packages/Button/src/main.vue +90 -0
  16. package/packages/Cascader/index.js +7 -0
  17. package/packages/Cascader/src/main.vue +210 -0
  18. package/packages/Chart/index.js +7 -0
  19. package/packages/Chart/src/Chart.vue +831 -0
  20. package/packages/Checkbox/index.js +7 -0
  21. package/packages/Checkbox/src/main.vue +200 -0
  22. package/packages/Collapse/index.js +7 -0
  23. package/packages/Collapse/src/ClCollapse.vue +67 -0
  24. package/packages/Collapse/src/ClCollapseItem.vue +21 -0
  25. package/packages/CollapseItem/index.js +7 -0
  26. package/packages/CustomDialog/index.js +7 -0
  27. package/packages/CustomDialog/src/customDialog.js +99 -0
  28. package/packages/CustomDialog/src/main.vue +1944 -0
  29. package/packages/DataView/index.js +7 -0
  30. package/packages/DataView/src/DataView.vue +45 -0
  31. package/packages/Date/index.js +7 -0
  32. package/packages/Date/src/main.vue +180 -0
  33. package/packages/DatePicker/index.js +7 -0
  34. package/packages/DatePicker/src/main.vue +155 -0
  35. package/packages/Demension/index.js +7 -0
  36. package/packages/Demension/src/main.vue +379 -0
  37. package/packages/Dialog/index.js +7 -0
  38. package/packages/Dialog/src/main.vue +160 -0
  39. package/packages/Dictionary/index.js +7 -0
  40. package/packages/Dictionary/src/main.vue +204 -0
  41. package/packages/DimensionSelector/index.js +7 -0
  42. package/packages/DimensionSelector/src/main.vue +359 -0
  43. package/packages/DimensionSelectorInput/index.js +7 -0
  44. package/packages/DimensionSelectorInput/src/main.vue +79 -0
  45. package/packages/Divider/index.js +7 -0
  46. package/packages/Divider/src/main.vue +38 -0
  47. package/packages/Duration/index.js +7 -0
  48. package/packages/Duration/src/main.vue +172 -0
  49. package/packages/Editor/index.js +7 -0
  50. package/packages/Editor/src/main.vue +280 -0
  51. package/packages/Explain/index.js +7 -0
  52. package/packages/Explain/src/main.vue +55 -0
  53. package/packages/FieldTail/index.js +7 -0
  54. package/packages/FieldTail/src/main.vue +163 -0
  55. package/packages/File/index.js +7 -0
  56. package/packages/File/src/FileCard.vue +169 -0
  57. package/packages/File/src/FileList.vue +180 -0
  58. package/packages/File/src/FileTable.vue +223 -0
  59. package/packages/File/src/main.vue +467 -0
  60. package/packages/FileUpload/index.js +7 -0
  61. package/packages/FileUpload/src/main.vue +222 -0
  62. package/packages/FlowChart/index.js +7 -0
  63. package/packages/FlowChart/src/main.vue +386 -0
  64. package/packages/FormItem/index.js +7 -0
  65. package/packages/FormItem/src/main.vue +167 -0
  66. package/packages/Global/index.js +12 -0
  67. package/packages/Global/src/GlobalQuery.vue +200 -0
  68. package/packages/Global/src/GlobalValidate.vue +69 -0
  69. package/packages/Icon/index.js +7 -0
  70. package/packages/Icon/src/icons/ad.js +14 -0
  71. package/packages/Icon/src/icons/address-book.js +14 -0
  72. package/packages/Icon/src/icons/arrow.js +14 -0
  73. package/packages/Icon/src/icons/attachment.js +18 -0
  74. package/packages/Icon/src/icons/balance.js +14 -0
  75. package/packages/Icon/src/icons/ban.js +14 -0
  76. package/packages/Icon/src/icons/bell.js +14 -0
  77. package/packages/Icon/src/icons/block.js +26 -0
  78. package/packages/Icon/src/icons/book.js +14 -0
  79. package/packages/Icon/src/icons/bookmark.js +14 -0
  80. package/packages/Icon/src/icons/bug.js +22 -0
  81. package/packages/Icon/src/icons/bullhorn.js +14 -0
  82. package/packages/Icon/src/icons/calc.js +14 -0
  83. package/packages/Icon/src/icons/checkbox.js +14 -0
  84. package/packages/Icon/src/icons/circle.js +14 -0
  85. package/packages/Icon/src/icons/close.js +14 -0
  86. package/packages/Icon/src/icons/cloud-sun.js +14 -0
  87. package/packages/Icon/src/icons/coffee.js +14 -0
  88. package/packages/Icon/src/icons/component.js +14 -0
  89. package/packages/Icon/src/icons/compress.js +14 -0
  90. package/packages/Icon/src/icons/copyright.js +14 -0
  91. package/packages/Icon/src/icons/dialog.js +14 -0
  92. package/packages/Icon/src/icons/download.js +14 -0
  93. package/packages/Icon/src/icons/duration.js +14 -0
  94. package/packages/Icon/src/icons/excel.js +18 -0
  95. package/packages/Icon/src/icons/expand.js +14 -0
  96. package/packages/Icon/src/icons/export.js +21 -0
  97. package/packages/Icon/src/icons/eye-slash.js +14 -0
  98. package/packages/Icon/src/icons/eye.js +14 -0
  99. package/packages/Icon/src/icons/file.js +18 -0
  100. package/packages/Icon/src/icons/form.js +14 -0
  101. package/packages/Icon/src/icons/ganged.js +14 -0
  102. package/packages/Icon/src/icons/gaode.js +27 -0
  103. package/packages/Icon/src/icons/gift.js +14 -0
  104. package/packages/Icon/src/icons/home.js +14 -0
  105. package/packages/Icon/src/icons/image.js +14 -0
  106. package/packages/Icon/src/icons/import.js +18 -0
  107. package/packages/Icon/src/icons/index.js +67 -0
  108. package/packages/Icon/src/icons/info.js +21 -0
  109. package/packages/Icon/src/icons/laptop.js +14 -0
  110. package/packages/Icon/src/icons/line.js +34 -0
  111. package/packages/Icon/src/icons/lock.js +14 -0
  112. package/packages/Icon/src/icons/map.js +18 -0
  113. package/packages/Icon/src/icons/more.js +19 -0
  114. package/packages/Icon/src/icons/move.js +14 -0
  115. package/packages/Icon/src/icons/org.js +18 -0
  116. package/packages/Icon/src/icons/palette.js +14 -0
  117. package/packages/Icon/src/icons/plan.js +17 -0
  118. package/packages/Icon/src/icons/ppt.js +18 -0
  119. package/packages/Icon/src/icons/question.js +18 -0
  120. package/packages/Icon/src/icons/radio.js +14 -0
  121. package/packages/Icon/src/icons/refresh.js +14 -0
  122. package/packages/Icon/src/icons/search.js +14 -0
  123. package/packages/Icon/src/icons/select.js +14 -0
  124. package/packages/Icon/src/icons/setting.js +18 -0
  125. package/packages/Icon/src/icons/simple-collapse.js +18 -0
  126. package/packages/Icon/src/icons/simple-expand.js +14 -0
  127. package/packages/Icon/src/icons/sort.js +22 -0
  128. package/packages/Icon/src/icons/sword.js +26 -0
  129. package/packages/Icon/src/icons/table.js +14 -0
  130. package/packages/Icon/src/icons/time.js +14 -0
  131. package/packages/Icon/src/icons/tree.js +14 -0
  132. package/packages/Icon/src/icons/typography.js +18 -0
  133. package/packages/Icon/src/icons/upload.js +18 -0
  134. package/packages/Icon/src/icons/user.js +14 -0
  135. package/packages/Icon/src/icons/users.js +30 -0
  136. package/packages/Icon/src/icons/video.js +14 -0
  137. package/packages/Icon/src/icons/word.js +18 -0
  138. package/packages/Icon/src/main.vue +432 -0
  139. package/packages/Image/index.js +7 -0
  140. package/packages/Image/src/main.vue +66 -0
  141. package/packages/Input/index.js +7 -0
  142. package/packages/Input/src/main.vue +552 -0
  143. package/packages/JobSelector/index.js +7 -0
  144. package/packages/JobSelector/src/main.vue +339 -0
  145. package/packages/JobSelectorInput/index.js +7 -0
  146. package/packages/JobSelectorInput/src/main.vue +87 -0
  147. package/packages/Map/index.js +7 -0
  148. package/packages/Map/src/Map.vue +427 -0
  149. package/packages/Milepost/index.js +7 -0
  150. package/packages/Milepost/src/main.vue +45 -0
  151. package/packages/OnlineForm/index.js +7 -0
  152. package/packages/OnlineForm/src/Form.vue +359 -0
  153. package/packages/OrgPostDialog/index.js +7 -0
  154. package/packages/OrgPostDialog/src/main.vue +244 -0
  155. package/packages/OrgSelector/index.js +7 -0
  156. package/packages/OrgSelector/src/main.vue +493 -0
  157. package/packages/OrgSelectorInput/index.js +7 -0
  158. package/packages/OrgSelectorInput/src/OrgSelectorInput.vue +216 -0
  159. package/packages/PostSelector/index.js +7 -0
  160. package/packages/PostSelector/src/main.vue +463 -0
  161. package/packages/PostSelectorInput/index.js +7 -0
  162. package/packages/PostSelectorInput/src/PostSelectorInput.vue +200 -0
  163. package/packages/Preview/index.js +7 -0
  164. package/packages/Preview/src/FillPage.vue +311 -0
  165. package/packages/Preview/src/FrameViewer.vue +135 -0
  166. package/packages/Preview/src/Loading.vue +126 -0
  167. package/packages/Preview/src/PdfViewer.vue +125 -0
  168. package/packages/Preview/src/TextViewer.vue +99 -0
  169. package/packages/Preview/src/main.vue +242 -0
  170. package/packages/Preview/src/watermark.js +124 -0
  171. package/packages/ProcessRecord/index.js +7 -0
  172. package/packages/ProcessRecord/src/main.vue +392 -0
  173. package/packages/Qrcode/index.js +7 -0
  174. package/packages/Qrcode/src/Qrcode.vue +105 -0
  175. package/packages/QuerySqlPreview/index.js +7 -0
  176. package/packages/QuerySqlPreview/src/QuerySqlPreview.vue +163 -0
  177. package/packages/Radio/index.js +7 -0
  178. package/packages/Radio/src/main.vue +172 -0
  179. package/packages/Rate/index.js +7 -0
  180. package/packages/Rate/src/main.vue +89 -0
  181. package/packages/ReadonlyInput/index.js +7 -0
  182. package/packages/ReadonlyInput/src/main.vue +92 -0
  183. package/packages/RelevantFlow/index.js +7 -0
  184. package/packages/RelevantFlow/src/main.vue +547 -0
  185. package/packages/RelevantFlow/src/relevantFlow.js +28 -0
  186. package/packages/RoleSelector/index.js +7 -0
  187. package/packages/RoleSelector/src/main.vue +358 -0
  188. package/packages/RoleSelectorInput/index.js +7 -0
  189. package/packages/RoleSelectorInput/src/main.vue +84 -0
  190. package/packages/SaveButton/index.js +7 -0
  191. package/packages/SaveButton/src/main.vue +73 -0
  192. package/packages/Select/index.js +7 -0
  193. package/packages/Select/src/main.vue +330 -0
  194. package/packages/SelectTree/index.js +7 -0
  195. package/packages/SelectTree/src/SelectTree.vue +352 -0
  196. package/packages/Selector/index.js +7 -0
  197. package/packages/Selector/src/main.vue +617 -0
  198. package/packages/SidebarDialog/index.js +7 -0
  199. package/packages/SidebarDialog/src/main.vue +156 -0
  200. package/packages/Slider/index.js +7 -0
  201. package/packages/Slider/src/main.vue +84 -0
  202. package/packages/Step/index.js +7 -0
  203. package/packages/StepLayout/index.js +7 -0
  204. package/packages/Steps/index.js +7 -0
  205. package/packages/Steps/src/Step.vue +122 -0
  206. package/packages/Steps/src/StepLayout.vue +35 -0
  207. package/packages/Steps/src/Steps.vue +65 -0
  208. package/packages/Subtable/index.js +33 -0
  209. package/packages/Subtable/src/SubDialog.vue +1926 -0
  210. package/packages/Subtable/src/SubExportDialog.vue +115 -0
  211. package/packages/Subtable/src/SubImportDialog.vue +316 -0
  212. package/packages/Subtable/src/SubPagination.vue +112 -0
  213. package/packages/Subtable/src/SubtableBackfill.vue +83 -0
  214. package/packages/Subtable/src/dialog.js +42 -0
  215. package/packages/Switch/index.js +7 -0
  216. package/packages/Switch/src/main.vue +83 -0
  217. package/packages/Table/index.js +7 -0
  218. package/packages/Table/src/CustomColumn.vue +351 -0
  219. package/packages/Table/src/Table.vue +979 -0
  220. package/packages/TableColumn/index.js +7 -0
  221. package/packages/TableColumn/src/main.vue +177 -0
  222. package/packages/TableSearchField/index.js +7 -0
  223. package/packages/TableSearchField/src/main.vue +334 -0
  224. package/packages/TableSearchPanel/index.js +7 -0
  225. package/packages/TableSearchPanel/src/main.vue +149 -0
  226. package/packages/Tabs/index.js +7 -0
  227. package/packages/Tabs/src/Tabs.vue +140 -0
  228. package/packages/Tag/index.js +7 -0
  229. package/packages/Tag/src/main.vue +264 -0
  230. package/packages/TemplateBatchUpdate/index.js +7 -0
  231. package/packages/TemplateBatchUpdate/src/TemplateBatchUpdateDialog.vue +174 -0
  232. package/packages/TemplateForm/index.js +7 -0
  233. package/packages/TemplateForm/src/main.vue +645 -0
  234. package/packages/TemplateFormDialog/index.js +7 -0
  235. package/packages/TemplateFormDialog/src/main.vue +61 -0
  236. package/packages/TemplateImportResult/index.js +7 -0
  237. package/packages/TemplateImportResult/src/main.vue +158 -0
  238. package/packages/TemplatePreview/index.js +19 -0
  239. package/packages/TemplatePreview/src/TemplatePreview.vue +169 -0
  240. package/packages/TemplatePreview/src/TemplatePreviewFile.vue +171 -0
  241. package/packages/TemplatePreview/src/TemplatePreviewImage.vue +83 -0
  242. package/packages/TemplateTaskCirculate/index.js +7 -0
  243. package/packages/TemplateTaskCirculate/src/main.vue +238 -0
  244. package/packages/Text/index.js +7 -0
  245. package/packages/Text/src/main.vue +57 -0
  246. package/packages/TimePicker/index.js +7 -0
  247. package/packages/TimePicker/src/main.vue +139 -0
  248. package/packages/TimeSelect/index.js +7 -0
  249. package/packages/TimeSelect/src/main.vue +96 -0
  250. package/packages/Tree/index.js +7 -0
  251. package/packages/Tree/src/main.vue +439 -0
  252. package/packages/TreeDialog/index.js +7 -0
  253. package/packages/TreeDialog/src/main.vue +293 -0
  254. package/packages/TreeListDialog/index.js +7 -0
  255. package/packages/TreeListDialog/src/main.vue +219 -0
  256. package/packages/Typography/index.js +8 -0
  257. package/packages/Typography/src/create-header.js +72 -0
  258. package/packages/UserDialog/index.js +7 -0
  259. package/packages/UserDialog/src/main.vue +250 -0
  260. package/packages/UserSelector/index.js +7 -0
  261. package/packages/UserSelector/src/main.vue +746 -0
  262. package/packages/UserSelectorInput/index.js +7 -0
  263. package/packages/UserSelectorInput/src/main.vue +319 -0
  264. package/packages/picture/index.js +7 -0
  265. package/packages/picture/src/main.vue +530 -0
  266. package/packages/plugins/Echarts.js +30 -0
  267. package/packages/plugins/Map.js +29 -0
  268. package/packages/plugins/Preview.js +49 -0
  269. package/packages/plugins/Qrcode.js +7 -0
  270. package/packages/plugins/XLSX.js +7 -0
  271. package/packages/plugins/wangeditor.js +19 -0
  272. package/src/assets/icon_found_img.png +0 -0
  273. package/src/assets/table-no-data.png +0 -0
  274. package/src/directive/badge.js +53 -0
  275. package/src/directive/copy.js +47 -0
  276. package/src/directive/ellipsis.js +6 -0
  277. package/src/directive/expandClick.js +23 -0
  278. package/src/directive/express.js +86 -0
  279. package/src/directive/form.js +122 -0
  280. package/src/directive/format.js +24 -0
  281. package/src/directive/formulas.js +708 -0
  282. package/src/directive/index.js +42 -0
  283. package/src/directive/permissionLine.js +59 -0
  284. package/src/directive/permissionLineLable.js +56 -0
  285. package/src/directive/permit.js +23 -0
  286. package/src/directive/popconfirm.js +86 -0
  287. package/src/directive/relatedQuery.js +61 -0
  288. package/src/directive/resize.js +18 -0
  289. package/src/directive/subSort.js +18 -0
  290. package/src/directive/tableDrag.js +25 -0
  291. package/src/directive/tooltip.js +37 -0
  292. package/src/filter/computerSize.js +23 -0
  293. package/src/filter/dateFormat.js +10 -0
  294. package/src/filter/index.js +10 -0
  295. package/src/index.js +267 -0
  296. package/src/locale/format.js +44 -0
  297. package/src/locale/index.js +48 -0
  298. package/src/locale/lang/en.js +59 -0
  299. package/src/locale/lang/zh-CN.js +58 -0
  300. package/src/locale/lang/zh-TW.js +57 -0
  301. package/src/locale/validate/dict.js +223 -0
  302. package/src/math.js +270 -0
  303. package/src/mixins/emitter.js +33 -0
  304. package/src/mixins/form.js +25 -0
  305. package/src/mixins/formDataUpdate.js +32 -0
  306. package/src/mixins/ganged.js +126 -0
  307. package/src/mixins/inputName.js +30 -0
  308. package/src/mixins/linkage.js +403 -0
  309. package/src/mixins/locale.js +9 -0
  310. package/src/mixins/mobileMode.js +27 -0
  311. package/src/mixins/onlineHottable.js +105 -0
  312. package/src/mixins/onlineSubtable.js +468 -0
  313. package/src/mixins/permission.js +84 -0
  314. package/src/mixins/querySqlPreview.js +747 -0
  315. package/src/mixins/regionValidator.js +70 -0
  316. package/src/mixins/script.js +35 -0
  317. package/src/mixins/templatePreview.js +3673 -0
  318. package/src/service.js +336 -0
  319. package/src/services/CustomQuery.js +199 -0
  320. package/src/services/SubPagination.js +132 -0
  321. package/src/styles/index.scss +7 -0
  322. package/src/styles/selector.scss +127 -0
  323. package/src/styles/variables.scss +71 -0
  324. package/src/util/base64.js +21 -0
  325. package/src/util/brower.js +15 -0
  326. package/src/util/clone.js +61 -0
  327. package/src/util/path.js +4 -0
  328. package/src/util/request.js +14 -0
  329. package/src/utils.js +1205 -0
  330. package/src/validate.js +184 -0
@@ -0,0 +1,200 @@
1
+ <template>
2
+ <!-- Global Query -->
3
+ <span />
4
+ </template>
5
+ <script>
6
+ import utils from '@/utils.js'
7
+ import CustomQuery from '@/services/CustomQuery.js'
8
+
9
+ export default {
10
+ name: 'ClGlobalQuery',
11
+ props: {
12
+ queryJson: {
13
+ type: Array,
14
+ default: () => {
15
+ return []
16
+ },
17
+ },
18
+ },
19
+ data() {
20
+ return {
21
+ formInst: null,
22
+ subOldValueMap: {},
23
+ }
24
+ },
25
+ mounted() {
26
+ if (!this.formInst) {
27
+ this.formInst = utils.getOnlineFormInstance(this.$parent)
28
+ }
29
+ if (this.queryJson.length > 0) {
30
+ let _this = this
31
+ this.queryJson.forEach((item) => {
32
+ if (item.triggerTime) {
33
+ let resultBind = {}
34
+ if (item.resultfield && item.resultfield.length > 0) {
35
+ item.resultfield.forEach((field) => {
36
+ resultBind[field.field] = field.fieldPath
37
+ })
38
+ }
39
+ if (item.triggerTime.indexOf('change') != -1 && item.triggerField) {
40
+ //值变化触发
41
+ if (item.entType === 'main') {
42
+ //主表
43
+ _this.formInst.$watch(
44
+ item.triggerField,
45
+ function(newVal, oldVal) {
46
+ if (
47
+ (newVal != '' || oldVal != undefined) &&
48
+ newVal !== oldVal
49
+ ) {
50
+ _this.doQuery(
51
+ item.alias,
52
+ item.conditionfield,
53
+ resultBind,
54
+ null
55
+ )
56
+ }
57
+ },
58
+ { immediate: true }
59
+ )
60
+ } else {
61
+ //子表
62
+ const triggerPath = item.triggerField.split('.')
63
+ const triggerField = triggerPath[triggerPath.length - 1]
64
+ _this.subOldValueMap[item.subPath] = []
65
+ _this.formInst.$watch(
66
+ 'data.' + item.subPath,
67
+ function(newVal) {
68
+ let myOldVal = _this.subOldValueMap[item.subPath]
69
+ if (newVal !== myOldVal) {
70
+ try {
71
+ if (
72
+ (newVal &&
73
+ newVal.length == 1 &&
74
+ (!newVal || newVal.length == 0)) ||
75
+ newVal.length > myOldVal.length
76
+ ) {
77
+ //新增
78
+ //取子表的最后一行
79
+ if (item.triggerTime.indexOf('load') != -1) {
80
+ //如果是初始化加载,新增时才触发
81
+ _this.doQuery(
82
+ item.alias,
83
+ item.conditionfield,
84
+ resultBind,
85
+ newVal.length - 1
86
+ )
87
+ }
88
+ } else if (myOldVal.length > newVal.length) {
89
+ //删除
90
+ //不用做处理
91
+ } else if (
92
+ newVal.length > 0 &&
93
+ myOldVal.length === newVal.length
94
+ ) {
95
+ //值变化
96
+ for (let i = 0; i < newVal.length; i++) {
97
+ if (
98
+ newVal[i][triggerField] !==
99
+ myOldVal[i][triggerField]
100
+ ) {
101
+ _this.doQuery(
102
+ item.alias,
103
+ item.conditionfield,
104
+ resultBind,
105
+ i
106
+ )
107
+ }
108
+ }
109
+ }
110
+ } catch (error) {
111
+ console.error('关联查询出错:' + error)
112
+ }
113
+ _this.subOldValueMap[item.subPath] = JSON.parse(
114
+ JSON.stringify(newVal)
115
+ )
116
+ }
117
+ },
118
+ { deep: true }
119
+ )
120
+ }
121
+ } else if (
122
+ item.triggerTime.indexOf('load') != -1 &&
123
+ item.entType === 'main'
124
+ ) {
125
+ //加载时触发 & 不包含子表
126
+ if (item.noValuabletrigger && item.noValuableField) {
127
+ //有值不触发
128
+ const val = utils.getValueByPath(
129
+ this.formInst,
130
+ item.noValuableField
131
+ )
132
+ if (val != '' && val != undefined && val != null) {
133
+ return
134
+ }
135
+ }
136
+ _this.doQuery(item.alias, item.conditionfield, resultBind, null)
137
+ }
138
+ }
139
+ })
140
+ }
141
+ },
142
+ methods: {
143
+ doQuery(alias, params, resultBind, index) {
144
+ try {
145
+ let _this = this
146
+ let queryParams = {}
147
+ if (params && params.length > 0) {
148
+ params.forEach((item) => {
149
+ queryParams[item.field] = null
150
+ if (!item.defaultValue && item.fieldPath) {
151
+ const val = utils.getValueByPath(
152
+ this.formInst,
153
+ item.fieldPath,
154
+ index
155
+ )
156
+ queryParams[item.field] = val
157
+ }
158
+ })
159
+ }
160
+ CustomQuery.load(alias, queryParams).then((data) => {
161
+ if (
162
+ data &&
163
+ data.constructor == Array &&
164
+ data.length > 0 &&
165
+ resultBind &&
166
+ resultBind.constructor == Object
167
+ ) {
168
+ // 关联查询值回绑时,默认获取返回的第一条记录
169
+ Object.keys(resultBind).forEach((k) => {
170
+ const path = resultBind[k]
171
+ const value = _this.getBindValue(data, k)
172
+ // 主表
173
+ if (index == null) {
174
+ utils.setValueByPath(this.formInst, path, value)
175
+ }
176
+ // 子表
177
+ else {
178
+ utils.setValueByPath(this.formInst, path, value, index)
179
+ }
180
+ })
181
+ }
182
+ })
183
+ } catch (error) {
184
+ console.error('获取关联查询出错:' + error)
185
+ }
186
+ },
187
+ getBindValue(data, key) {
188
+ //当系统接到触发请求要带出数据时,发现有多个查询结果,此时将多个结果以逗号分隔的模式全部都带出来
189
+ let value = ''
190
+ data.forEach((item) => {
191
+ if (value != '') {
192
+ value += ','
193
+ }
194
+ value += item[key]
195
+ })
196
+ return value
197
+ },
198
+ },
199
+ }
200
+ </script>
@@ -0,0 +1,69 @@
1
+ <template>
2
+ <div>
3
+ <slot></slot>
4
+ </div>
5
+ </template>
6
+ <script>
7
+ import utils from '@/utils.js'
8
+ import emitter from '@/mixins/emitter.js'
9
+ const { Base64 } = require('js-base64')
10
+ export default {
11
+ name: 'ClGlobalValidate',
12
+ componentName: 'ClGlobalValidate',
13
+ mixins: [emitter],
14
+ props: {
15
+ verificationJson: String,
16
+ data: Object,
17
+ },
18
+ data() {
19
+ return {
20
+ verificationList: [],
21
+ }
22
+ },
23
+ created() {
24
+ let _this = this
25
+ this.$on('global-validate', () => {
26
+ _this.validate()
27
+ })
28
+ },
29
+ mounted() {
30
+ if (this.verificationJson) {
31
+ this.verificationList = JSON.parse(Base64.decode(this.verificationJson))
32
+ }
33
+ },
34
+ methods: {
35
+ validate() {
36
+ let result = true
37
+ if (this.verificationList && this.verificationList.length > 0) {
38
+ let pInst = utils.getOnlineFormInstance(this)
39
+ let _this = this
40
+ let messages = []
41
+ this.verificationList.forEach((item) => {
42
+ _this.execFun(pInst, item, messages)
43
+ })
44
+ if (messages.length > 0) {
45
+ result = false
46
+ this.$notify.error({
47
+ title: this.$t('cl.common.warmTips'),
48
+ dangerouslyUseHTMLString: true,
49
+ message: messages.join('<br/>'),
50
+ })
51
+ }
52
+ }
53
+ this.dispatch('ClOnlineForm', 'global-validate-result', [result])
54
+ },
55
+ execFun(pInst, item, messages) {
56
+ let formulasDiyJs = item.formulasDiyJs
57
+ if (formulasDiyJs.indexOf('return') === -1) {
58
+ formulasDiyJs = 'return ' + formulasDiyJs
59
+ }
60
+ let Fn = Function('data', '_me', '$Formulas', formulasDiyJs) //一个变量指向Function,防止有些前端编译工具报错
61
+ let result = Fn(pInst.data, pInst, pInst.$Formulas)
62
+ if (!result) {
63
+ messages.push(item.tips)
64
+ }
65
+ },
66
+ },
67
+ }
68
+ </script>
69
+ <style lang="scss" scoped></style>
@@ -0,0 +1,7 @@
1
+ import Icon from './src/main.vue'
2
+
3
+ Icon.install = function(Vue) {
4
+ Vue.component(Icon.name, Icon)
5
+ }
6
+
7
+ export default Icon
@@ -0,0 +1,14 @@
1
+ import Icon from '../main.vue'
2
+
3
+ Icon.register({
4
+ ad: {
5
+ width: 512,
6
+ height: 512,
7
+ paths: [
8
+ {
9
+ d:
10
+ 'M157.52 272h36.96L176 218.78 157.52 272zM352 256c-13.23 0-24 10.77-24 24s10.77 24 24 24 24-10.77 24-24-10.77-24-24-24zM464 64H48C21.5 64 0 85.5 0 112v288c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48zM250.58 352h-16.94c-6.81 0-12.88-4.32-15.12-10.75L211.15 320h-70.29l-7.38 21.25A16 16 0 0 1 118.36 352h-16.94c-11.01 0-18.73-10.85-15.12-21.25L140 176.12A23.995 23.995 0 0 1 162.67 160h26.66A23.99 23.99 0 0 1 212 176.13l53.69 154.62c3.61 10.4-4.11 21.25-15.11 21.25zM424 336c0 8.84-7.16 16-16 16h-16c-4.85 0-9.04-2.27-11.98-5.68-8.62 3.66-18.09 5.68-28.02 5.68-39.7 0-72-32.3-72-72s32.3-72 72-72c8.46 0 16.46 1.73 24 4.42V176c0-8.84 7.16-16 16-16h16c8.84 0 16 7.16 16 16v160z',
11
+ },
12
+ ],
13
+ },
14
+ })
@@ -0,0 +1,14 @@
1
+ import Icon from '../main.vue'
2
+
3
+ Icon.register({
4
+ 'address-book': {
5
+ width: 448,
6
+ height: 512,
7
+ paths: [
8
+ {
9
+ d:
10
+ 'M436 160c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-20V48c0-26.5-21.5-48-48-48H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h320c26.5 0 48-21.5 48-48v-48h20c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-20v-64h20c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-20v-64h20zm-68 304H48V48h320v416zM208 256c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm-89.6 128h179.2c12.4 0 22.4-8.6 22.4-19.2v-19.2c0-31.8-30.1-57.6-67.2-57.6-10.8 0-18.7 8-44.8 8-26.9 0-33.4-8-44.8-8-37.1 0-67.2 25.8-67.2 57.6v19.2c0 10.6 10 19.2 22.4 19.2z',
11
+ },
12
+ ],
13
+ },
14
+ })
@@ -0,0 +1,14 @@
1
+ import Icon from '../main.vue'
2
+
3
+ Icon.register({
4
+ arrow: {
5
+ width: 1024,
6
+ height: 1024,
7
+ paths: [
8
+ {
9
+ d:
10
+ 'M689.9712 512h215.7568a34.133333 34.133333 0 0 1 24.1664 58.2656L559.342933 940.782933a68.266667 68.266667 0 0 1-96.529066 0L92.296533 570.2656A34.133333 34.133333 0 0 1 116.394667 512h215.722666V103.185067a68.266667 68.266667 0 0 1 68.266667-68.266667h221.2864a68.266667 68.266667 0 0 1 68.266667 68.266667V512z',
11
+ },
12
+ ],
13
+ },
14
+ })
@@ -0,0 +1,18 @@
1
+ import Icon from '../main.vue'
2
+
3
+ Icon.register({
4
+ attachment: {
5
+ width: 24,
6
+ height: 24,
7
+ paths: [
8
+ {
9
+ fill: 'none',
10
+ d: 'M0 0h24v24H0V0z',
11
+ },
12
+ {
13
+ d:
14
+ 'M16.5 6v11.5c0 2.21-1.79 4-4 4s-4-1.79-4-4V5c0-1.38 1.12-2.5 2.5-2.5s2.5 1.12 2.5 2.5v10.5c0 .55-.45 1-1 1s-1-.45-1-1V6H10v9.5c0 1.38 1.12 2.5 2.5 2.5s2.5-1.12 2.5-2.5V5c0-2.21-1.79-4-4-4S7 2.79 7 5v12.5c0 3.04 2.46 5.5 5.5 5.5s5.5-2.46 5.5-5.5V6h-1.5z',
15
+ },
16
+ ],
17
+ },
18
+ })
@@ -0,0 +1,14 @@
1
+ import Icon from '../main.vue'
2
+
3
+ Icon.register({
4
+ balance: {
5
+ width: 640,
6
+ height: 512,
7
+ paths: [
8
+ {
9
+ d:
10
+ 'M256 336h-.02c0-16.18 1.34-8.73-85.05-181.51-17.65-35.29-68.19-35.36-85.87 0C-2.06 328.75.02 320.33.02 336H0c0 44.18 57.31 80 128 80s128-35.82 128-80zM128 176l72 144H56l72-144zm511.98 160c0-16.18 1.34-8.73-85.05-181.51-17.65-35.29-68.19-35.36-85.87 0-87.12 174.26-85.04 165.84-85.04 181.51H384c0 44.18 57.31 80 128 80s128-35.82 128-80h-.02zM440 320l72-144 72 144H440zm88 128H352V153.25c23.51-10.29 41.16-31.48 46.39-57.25H528c8.84 0 16-7.16 16-16V48c0-8.84-7.16-16-16-16H383.64C369.04 12.68 346.09 0 320 0s-49.04 12.68-63.64 32H112c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h129.61c5.23 25.76 22.87 46.96 46.39 57.25V448H112c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h416c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16z',
11
+ },
12
+ ],
13
+ },
14
+ })
@@ -0,0 +1,14 @@
1
+ import Icon from '../main.vue'
2
+
3
+ Icon.register({
4
+ ban: {
5
+ width: 512,
6
+ height: 512,
7
+ paths: [
8
+ {
9
+ d:
10
+ 'M256 8c137 0 248 111 248 248s-111 248-248 248-248-111-248-248 111-248 248-248zM386.1 125.9c-65.4-65.4-165.4-70-235.6-20.7l256.3 256.3c49.3-70.2 44.8-170.2-20.7-235.6zM125.9 386.1c65.4 65.4 165.4 70 235.6 20.7l-256.3-256.3c-49.3 70.2-44.8 170.2 20.7 235.6z',
11
+ },
12
+ ],
13
+ },
14
+ })
@@ -0,0 +1,14 @@
1
+ import Icon from '../main.vue'
2
+
3
+ Icon.register({
4
+ bell: {
5
+ width: 1024,
6
+ height: 1024,
7
+ paths: [
8
+ {
9
+ d:
10
+ 'M512 960c-212.032 0-384-85.952-384-192 0-39.168 23.744-75.52 64-105.856L192 512c0-132.16 80.192-245.568 194.624-294.4C384.896 209.344 384 200.768 384 192c0-70.656 57.344-128 128-128s128 57.344 128 128c0 8.768-0.896 17.344-2.624 25.6C751.744 266.432 832 379.84 832 512l0 150.144c40.256 30.4 64 66.688 64 105.856C896 874.048 724.032 960 512 960zM512 640c-141.376 0-256 57.344-256 128s114.624 128 256 128 256-57.344 256-128S653.376 640 512 640zM512 832c-62.528 0-114.368-44.864-125.568-104.064C420.16 713.216 463.744 704 512 704s91.904 9.216 125.632 23.936C626.368 787.136 574.528 832 512 832z',
11
+ },
12
+ ],
13
+ },
14
+ })
@@ -0,0 +1,26 @@
1
+ import Icon from '../main.vue'
2
+
3
+ Icon.register({
4
+ block: {
5
+ width: 1024,
6
+ height: 1024,
7
+ paths: [
8
+ {
9
+ d:
10
+ 'M387.893367 0H51.804428A51.740428 51.740428 0 0 0 0.064 51.676472v335.833115a51.740428 51.740428 0 0 0 51.740428 51.676473h336.088939a51.740428 51.740428 0 0 0 51.740429-51.676473V51.676472A51.740428 51.740428 0 0 0 387.893367 0z m-34.4723 342.804322a10.232965 10.232965 0 0 1-10.232965 10.232965H96.509694a10.232965 10.232965 0 0 1-10.232965-10.232965V96.381738a10.232965 10.232965 0 0 1 10.232965-10.232965h246.742364a10.232965 10.232965 0 0 1 10.232965 10.232965z',
11
+ },
12
+ {
13
+ d:
14
+ 'M971.428187 0H635.46716a51.740428 51.740428 0 0 0-51.740428 51.676472v335.833115a51.740428 51.740428 0 0 0 51.740428 51.676473h335.961027a51.740428 51.740428 0 0 0 51.740429-51.676473V51.676472A51.740428 51.740428 0 0 0 971.428187 0z m-34.4723 342.804322a10.232965 10.232965 0 0 1-10.232965 10.232965h-246.550497a10.232965 10.232965 0 0 1-10.232964-10.232965V96.381738a10.232965 10.232965 0 0 1 10.232964-10.232965h246.486541a10.232965 10.232965 0 0 1 10.232965 10.232965z',
15
+ },
16
+ {
17
+ d:
18
+ 'M387.893367 584.110424H51.804428A51.740428 51.740428 0 0 0 0.064 635.786897v335.833114A51.740428 51.740428 0 0 0 51.804428 1023.296484h336.088939a51.740428 51.740428 0 0 0 51.740429-51.676473V635.786897a51.740428 51.740428 0 0 0-51.740429-51.676473z m-34.4723 342.804322a10.232965 10.232965 0 0 1-10.232965 10.232965H96.509694a10.232965 10.232965 0 0 1-10.232965-10.232965v-246.48654a10.232965 10.232965 0 0 1 10.232965-10.232965h246.742364a10.232965 10.232965 0 0 1 10.232965 10.232965z',
19
+ },
20
+ {
21
+ d:
22
+ 'M971.428187 584.110424H635.46716a51.740428 51.740428 0 0 0-51.740428 51.676473v335.833114a51.740428 51.740428 0 0 0 51.740428 51.676473h335.961027a51.740428 51.740428 0 0 0 51.740429-51.676473V635.786897a51.740428 51.740428 0 0 0-51.740429-51.676473z m-34.4723 342.804322a10.232965 10.232965 0 0 1-10.232965 10.232965h-246.550497a10.232965 10.232965 0 0 1-10.232964-10.232965v-246.48654a10.232965 10.232965 0 0 1 10.232964-10.232965h246.486541a10.232965 10.232965 0 0 1 10.232965 10.232965z',
23
+ },
24
+ ],
25
+ },
26
+ })
@@ -0,0 +1,14 @@
1
+ import Icon from '../main.vue'
2
+
3
+ Icon.register({
4
+ book: {
5
+ width: 1024,
6
+ height: 1024,
7
+ paths: [
8
+ {
9
+ d:
10
+ 'M973.142857 273.142857q22.857143 32.571429 10.285714 73.714286l-157.142857 517.714286q-10.857143 36.571429-43.714286 61.428571t-70 24.857143l-527.428571 0q-44 0-84.857143-30.571429t-56.857143-75.142857q-13.714286-38.285714-1.142857-72.571429 0-2.285714 1.714286-15.428571t2.285714-21.142857q0.571429-4.571429-1.714286-12.285714t-1.714286-11.142857q1.142857-6.285714 4.571429-12t9.428571-13.428571 9.428571-13.428571q13.142857-21.714286 25.714286-52.285714t17.142857-52.285714q1.714286-5.714286 2.857143-17.142857t2.857143-16q1.714286-6.285714 9.714286-16t9.714286-13.142857q12-20.571429 24-52.571429t14.285714-51.428571q0.571429-5.142857-1.428571-18.285714t2.857143-16q2.285714-7.428571 12.571429-17.428571t12.571429-12.857143q10.857143-14.857143 24.285714-48.285714t15.714286-55.142857q0.571429-4.571429-1.714286-14.571429t-1.142857-15.142857q1.142857-4.571429 5.142857-10.285714t10.285714-13.142857 9.714286-12q4.571429-6.857143 9.428571-17.428571t8.571429-20 9.142857-20.571429 11.142857-18.285714 15.142857-13.428571 20.571429-6.571429 27.142857 3.142857l-0.571429 1.714286q21.714286-5.142857 29.142857-5.142857l434.857143 0q42.285714 0 65.142857 32t10.285714 74.285714l-156.571429 517.714286q-20.571429 68-40.857143 87.714286t-73.428571 19.714286l-496.571429 0q-15.428571 0-21.714286 8.571429-6.285714 9.142857-0.571429 24.571429 13.714286 40 82.285714 40l527.428571 0q16.571429 0 32-8.857143t20-23.714286l171.428571-564q4-12.571429 2.857143-32.571429 21.714286 8.571429 33.714286 24.571429zm-608 1.142857q-2.285714 7.428571 1.142857 12.857143t11.428571 5.428571l347.428571 0q7.428571 0 14.571429-5.428571t9.428571-12.857143l12-36.571429q2.285714-7.428571-1.142857-12.857143t-11.428571-5.428571l-347.428571 0q-7.428571 0-14.571429 5.428571t-9.428571 12.857143zm-47.428571 146.285714q-2.285714 7.428571 1.142857 12.857143t11.428571 5.428571l347.428571 0q7.428571 0 14.571429-5.428571t9.428571-12.857143l12-36.571429q2.285714-7.428571-1.142857-12.857143t-11.428571-5.428571l-347.428571 0q-7.428571 0-14.571429 5.428571t-9.428571 12.857143z',
11
+ },
12
+ ],
13
+ },
14
+ })
@@ -0,0 +1,14 @@
1
+ import Icon from '../main.vue'
2
+
3
+ Icon.register({
4
+ bookmark: {
5
+ width: 1024,
6
+ height: 1024,
7
+ paths: [
8
+ {
9
+ d:
10
+ 'M853.333333 938.666667H277.333333A149.333333 149.333333 0 0 1 128 789.333333V213.333333a128 128 0 0 1 128-128h597.333333a42.666667 42.666667 0 0 1 42.666667 42.666667v768a42.666667 42.666667 0 0 1-42.666667 42.666667z m-42.666666-85.333334v-128H277.333333a64 64 0 0 0 0 128H810.666667zM426.666667 170.666667v341.333333l149.333333-85.333333 149.333333 85.333333V170.666667h-298.666666z',
11
+ },
12
+ ],
13
+ },
14
+ })
@@ -0,0 +1,22 @@
1
+ import Icon from '../main.vue'
2
+
3
+ Icon.register({
4
+ bug: {
5
+ width: 1024,
6
+ height: 1024,
7
+ paths: [
8
+ {
9
+ d:
10
+ 'M749.28 254.654C690.73 177.024 606.124 128 512 128s-178.73 49.024-237.28 126.654c12.708 31.28 31.666 60 56.26 84.594 48.352 48.352 112.638 74.98 181.02 74.98s132.668-26.628 181.02-74.98C717.614 314.654 736.572 285.932 749.28 254.654z',
11
+ },
12
+ {
13
+ d:
14
+ 'M253.672 285.648c-3.45 5.654-6.792 11.406-9.984 17.288-5.852-3.68-10.638-7.48-15.49-11.546-2.342-1.962-5.908-7.898-9.092-14.7 10.82-22.628 2.362-50.074-19.828-62.522-23.122-12.968-52.376-4.744-65.348 18.378-12.97 23.12-4.742 52.376 18.374 65.346 2.502 1.404 5.078 2.544 7.694 3.458 5.632 12.538 14.64 28.662 27.096 39.094 8.368 7.014 17.584 14.234 30.408 21.348-14.39 40.518-23.152 84.606-25.09 130.854-22.052 0.414-37.238 4.2-50.948 8.244-8.32 2.454-16.384 6.79-23.646 11.704-1.908-0.23-3.846-0.364-5.816-0.364-26.51 0-48 21.49-48 48s21.49 48 48 48c25.86 0 46.934-20.454 47.952-46.064 10.092-2.964 19.776-5.318 34.19-5.548 6.334 66.03 26.608 126.966 57.226 178.448-28.332 22.012-45.764 46.032-53.21 72.634 0 0-1.5 0.876-3.746 2.732-1.964 1.588-3.864 3.3-5.608 5.238-17.73 19.71-16.124 50.062 3.586 67.79 19.708 17.73 50.056 16.124 67.786-3.586 16.174-17.976 16.19-44.762 1.116-62.79 6.148-11.124 12.472-18.028 27.34-29.922C342.736 850.47 415.446 891.238 496 896L496 445.744C389.528 439.908 298.458 376.276 253.672 285.648z',
15
+ },
16
+ {
17
+ d:
18
+ 'M912 512.228c-1.97 0-3.908 0.132-5.816 0.364-7.262-4.914-15.326-9.25-23.646-11.704-13.708-4.042-28.894-7.83-50.948-8.244-1.938-46.25-10.7-90.336-25.09-130.854 12.824-7.114 22.042-14.334 30.408-21.348 12.456-10.432 21.462-26.556 27.096-39.094 2.616-0.916 5.192-2.056 7.694-3.458 23.116-12.97 31.344-42.228 18.374-65.346-12.97-23.122-42.226-31.346-65.348-18.378-22.19 12.45-30.648 39.894-19.828 62.522-3.184 6.802-6.75 12.738-9.092 14.7-4.852 4.066-9.638 7.866-15.49 11.546-3.192-5.882-6.536-11.634-9.984-17.288-44.786 90.628-135.856 154.26-242.328 160.096L528.002 896c80.554-4.762 153.264-45.53 207.372-108.84 14.868 11.894 21.192 18.798 27.34 29.922-15.074 18.028-15.058 44.812 1.116 62.79 17.728 19.71 48.076 21.316 67.786 3.586 19.708-17.726 21.316-48.078 3.586-67.79-1.744-1.938-3.642-3.65-5.608-5.238-2.246-1.858-3.746-2.732-3.746-2.732-7.448-26.604-24.878-50.624-53.21-72.634 30.62-51.48 50.892-112.418 57.226-178.448 14.414 0.23 24.098 2.584 34.19 5.548 1.018 25.612 22.092 46.064 47.952 46.064 26.51 0 48-21.49 48-48S938.51 512.228 912 512.228z',
19
+ },
20
+ ],
21
+ },
22
+ })
@@ -0,0 +1,14 @@
1
+ import Icon from '../main.vue'
2
+
3
+ Icon.register({
4
+ bullhorn: {
5
+ width: 1024,
6
+ height: 1024,
7
+ paths: [
8
+ {
9
+ d:
10
+ 'M1024.032 429.248c0-200.928-58.784-363.936-131.488-365.216 0.288 0 0.576-0.032 0.864-0.032l-82.944 0c0 0-194.816 146.336-475.232 203.744-8.576 45.28-14.016 99.264-14.016 161.504s5.472 116.192 14.016 161.504c280.416 57.408 475.232 203.744 475.232 203.744l82.944 0c-0.288 0-0.576-0.032-0.864-0.032 72.704-1.28 131.488-164.288 131.488-365.216zM864.864 739.264c-9.376 0-19.52-9.728-24.736-15.552-12.64-14.048-24.8-35.968-35.2-63.328-23.264-61.216-36.064-143.296-36.064-231.136s12.8-169.888 36.064-231.136c10.4-27.36 22.56-49.28 35.2-63.328 5.216-5.824 15.36-15.552 24.736-15.552s19.52 9.728 24.736 15.552c12.64 14.048 24.8 35.968 35.2 63.328 23.264 61.216 36.064 143.328 36.064 231.136s-12.8 169.888-36.064 231.136c-10.4 27.36-22.56 49.28-35.2 63.328-5.216 5.792-15.36 15.552-24.736 15.552zM251.84 429.248c0-51.936 3.808-102.432 11.04-149.088-47.36 6.56-88.928 10.336-140.352 10.336-67.072 0-67.072 0-67.072 0l-55.456 94.688 0 88.16 55.456 94.688c0 0 0 0 67.072 0 51.392 0 92.96 3.776 140.352 10.336-7.232-46.656-11.04-97.152-11.04-149.088zM368.192 642.176l-128-24.512 81.856 321.536c4.224 16.64 20.736 25.024 36.672 18.656l118.56-47.456c15.936-6.368 22.336-23.968 14.208-39.072l-123.296-229.152zM864.864 548.736c-3.616 0-7.52-3.744-9.536-5.984-4.864-5.408-9.568-13.856-13.568-24.416-8.96-23.616-13.888-55.232-13.888-89.088s4.928-65.472 13.888-89.088c4-10.56 8.704-18.976 13.568-24.416 2.016-2.24 5.92-5.984 9.536-5.984s7.52 3.744 9.536 5.984c4.864 5.408 9.568 13.856 13.568 24.416 8.96 23.584 13.888 55.232 13.888 89.088s-4.928 65.472-13.888 89.088c-4 10.56-8.704 18.976-13.568 24.416-2.016 2.24-5.92 5.984-9.536 5.984z',
11
+ },
12
+ ],
13
+ },
14
+ })
@@ -0,0 +1,14 @@
1
+ import Icon from '../main.vue'
2
+
3
+ Icon.register({
4
+ calc: {
5
+ width: 1024,
6
+ height: 1024,
7
+ paths: [
8
+ {
9
+ d:
10
+ 'M213.942857 369.142857H292.571429v78.628572c0 2.057143 2.057143 3.657143 4.571428 3.657142h54.857143c2.514286 0 4.571429-1.6 4.571429-3.771428V369.142857h78.628571c2.057143 0 3.657143-2.057143 3.657143-4.571428v-54.857143c0-2.514286-1.6-4.571429-3.771429-4.571429H356.571429v-78.628571c0-2.057143-2.057143-3.657143-4.571429-3.657143h-54.857143c-2.514286 0-4.571429 1.6-4.571428 3.657143V305.142857h-78.628572c-2.057143 0-3.657143 2.057143-3.657143 4.571429v54.857143c0 2.514286 1.6 4.571429 3.657143 4.571428z m374.857143 0h221.257143c2.057143 0 3.657143-2.057143 3.657143-4.571428v-54.857143c0-2.514286-1.6-4.571429-3.771429-4.571429H588.8c-2.057143 0-3.657143 2.057143-3.657143 4.571429v54.857143c0 2.514286 1.6 4.571429 3.657143 4.571428z m0 302.857143h221.257143c2.057143 0 3.657143-2.057143 3.657143-4.571429v-54.857142c0-2.514286-1.6-4.571429-3.771429-4.571429H588.8c-2.057143 0-3.657143 2.057143-3.657143 4.571429v54.857142c0 2.514286 1.6 4.571429 3.657143 4.571429z m0 118.857143h221.257143c2.057143 0 3.657143-2.057143 3.657143-4.571429v-54.857143c0-2.514286-1.6-4.571429-3.771429-4.571428H588.8c-2.057143 0-3.657143 2.057143-3.657143 4.571428v54.857143c0 2.514286 1.6 4.571429 3.657143 4.571429z m-223.657143-92.571429l69.942857-85.6c4.914286-5.942857 0.8-14.971429-6.742857-14.971428H370.285714c-2.628571 0-5.142857 1.142857-6.742857 3.314285l-38.857143 47.542858-38.857143-47.542858a8.971429 8.971429 0 0 0-6.742857-3.314285h-58.171428c-7.542857 0-11.657143 9.028571-6.742857 14.971428l69.942857 85.6-71.657143 87.771429c-5.028571 5.942857-0.914286 14.971429 6.628571 14.971428h58.057143c2.628571 0 5.142857-1.142857 6.742857-3.314285l40.571429-49.714286 40.571428 49.714286c1.714286 2.057143 4.228571 3.314286 6.742858 3.314285h58.057142c7.542857 0 11.657143-9.028571 6.742858-14.971428L365.142857 698.285714zM932.571429 54.857143H91.428571c-20.228571 0-36.571429 16.342857-36.571428 36.571428v841.142858c0 20.228571 16.342857 36.571429 36.571428 36.571428h841.142858c20.228571 0 36.571429-16.342857 36.571428-36.571428V91.428571c0-20.228571-16.342857-36.571429-36.571428-36.571428z m-41.142858 836.571428H132.571429V132.571429h758.857142v758.857142z',
11
+ },
12
+ ],
13
+ },
14
+ })
@@ -0,0 +1,14 @@
1
+ import Icon from '../main.vue'
2
+
3
+ Icon.register({
4
+ checkbox: {
5
+ width: 1024,
6
+ height: 1024,
7
+ paths: [
8
+ {
9
+ d:
10
+ 'M908.387097 88.086022a27.526882 27.526882 0 0 1 27.526881 27.526881v792.774194a27.526882 27.526882 0 0 1-27.526881 27.526881H115.612903a27.526882 27.526882 0 0 1-27.526881-27.526881V115.612903a27.526882 27.526882 0 0 1 27.526881-27.526881h792.774194z m-38.537635 66.064516H154.150538v715.698924h715.698924V154.150538z m-85.206709 119.648344l14.005677 32.845075a1145.008172 1145.008172 0 0 0-36.269419 35.080258l-8.880172 9.056344A1365.850839 1365.850839 0 0 0 697.861505 411.802151l-8.20301 9.639914-8.10942 9.683957-7.999312 9.716989-7.894709 9.755527c-3.919828 4.877763-7.795613 9.772043-11.63286 14.666322l-7.613936 9.794065-3.765677 4.899785-7.432258 9.79957c-2.460903 3.264688-4.899785 6.529376-7.322151 9.788559l-7.184516 9.777548-7.068903 9.755527-6.936775 9.728-3.413333 4.850237-6.733075 9.66744-6.600946 9.623398-6.457807 9.568344-6.314666 9.50228-6.171527 9.436215-3.027957 4.685075-5.951312 9.315097-2.91785 4.624516-5.720086 9.177462-5.56043 9.083871-5.406279 8.973764-5.241119 8.852645-5.075957 8.737032-4.910795 8.604904-2.389334 4.25015-4.652043 8.395699-4.475871 8.252559-4.305204 8.092903-4.118021 7.927742-3.936344 7.762581-3.749162 7.580903-3.567484 7.393721-1.706666 3.628043-3.275699 7.101935-1.563527 3.479398-2.978409 6.793634-2.780215 6.578925c-0.891871 2.158108-1.756215 4.277677-2.576516 6.35871l-1.211183 3.094021L249.56972 514.477419l59.028646-47.748129 133.422795 105.158194 5.681549-6.72757 8.258064-9.601376 6.705549-7.657979 7.123957-8.021333 4.987871-5.538409 7.828645-8.588387 5.450322-5.890753 8.522323-9.083871 8.924215-9.364645 6.177032-6.386236 9.595871-9.777549 6.622968-6.644989 6.788129-6.733075 10.515269-10.262022 7.223053-6.936774 7.393721-7.013849 7.558882-7.074409 7.729548-7.134968 7.89471-7.190021 8.059871-7.234065 8.219527-7.272602 4.167569-3.65557 8.467269-7.32215 8.62142-7.355183 4.371268-3.683097 8.858151-7.377204 4.486882-3.688602 9.094881-7.393721a1445.16129 1445.16129 0 0 1 9.249033-7.39372l9.397677-7.393721a1407.741247 1407.741247 0 0 1 19.252301-14.737892l9.854624-7.338667c26.458839-19.538581 54.49772-38.76886 83.990021-57.178838l5.543914-3.440861z',
11
+ },
12
+ ],
13
+ },
14
+ })
@@ -0,0 +1,14 @@
1
+ import Icon from '../main.vue'
2
+
3
+ Icon.register({
4
+ circle: {
5
+ width: 1024,
6
+ height: 1024,
7
+ paths: [
8
+ {
9
+ d:
10
+ 'M511.996587 1020.586667C231.103147 1020.586667 3.413333 792.84224 3.413333 512 3.413333 231.154347 231.103147 3.413333 511.996587 3.413333 792.89344 3.413333 1020.586667 231.10656 1020.586667 512s-227.7376 508.586667-508.59008 508.586667z m0-940.885334C273.24416 79.691093 79.68768 273.24416 79.68768 512c0 238.752427 193.55648 432.295253 432.308907 432.295253 238.75584 0 432.295253-193.55648 432.295253-432.295253 0-238.742187-193.55648-432.308907-432.295253-432.308907v0.01024z',
11
+ },
12
+ ],
13
+ },
14
+ })
@@ -0,0 +1,14 @@
1
+ import Icon from '../main.vue'
2
+
3
+ Icon.register({
4
+ close: {
5
+ width: 1024,
6
+ height: 1024,
7
+ paths: [
8
+ {
9
+ d:
10
+ 'M512 421.490332 331.092592 240.582924C306.351217 215.841549 265.464551 215.477441 240.470996 240.470996 215.303191 265.638801 215.527553 306.037221 240.582924 331.092592L421.490332 512 240.582925 692.907407C215.84155 717.648782 215.477441 758.535449 240.470996 783.529004 265.638801 808.696809 306.037222 808.472446 331.092593 783.417075L512 602.509668 692.907407 783.417075C717.648782 808.15845 758.535449 808.522559 783.529004 783.529004 808.696809 758.361199 808.472446 717.962778 783.417075 692.907407L602.509668 512 783.417076 331.092592C808.158451 306.351217 808.522559 265.464551 783.529004 240.470996 758.361199 215.303191 717.962779 215.527553 692.907408 240.582924L512 421.490332Z',
11
+ },
12
+ ],
13
+ },
14
+ })
@@ -0,0 +1,14 @@
1
+ import Icon from '../main.vue'
2
+
3
+ Icon.register({
4
+ 'cloud-sun': {
5
+ width: 1024,
6
+ height: 1024,
7
+ paths: [
8
+ {
9
+ d:
10
+ 'M658.029714 325.796571c16.274286 0 29.348571-13.44 29.348572-29.348571v-76.379429c0-16.274286-13.074286-29.348571-29.348572-29.348571s-29.348571 13.074286-29.348571 29.348571v76.379429c0 15.908571 13.092571 29.348571 29.348571 29.348571z m-205.074285 68.242286c11.666286 11.666286 30.756571 11.300571 41.728 0 10.953143-11.337143 11.300571-29.714286 0-41.033143l-54.454858-54.436571a29.129143 29.129143 0 0 0-41.380571 0c-11.318857 10.953143-11.318857 29.696 0 41.362286z m368.457142 0c10.953143 11.300571 30.043429 11.666286 41.691429 0l54.125714-54.107428c11.300571-11.666286 10.953143-30.409143 0-41.362286a29.129143 29.129143 0 0 0-41.380571 0l-54.454857 54.436571c-11.318857 11.337143-10.971429 29.714286 0 41.033143z m-72.502857 314.697143c51.968-35.017143 84.150857-89.106286 84.150857-151.350857a174.592 174.592 0 0 0-175.030857-175.36c-64 0-119.515429 34.285714-148.845714 85.558857 14.848 15.195429 27.574857 31.817143 38.180571 52.333714 116.662857 9.545143 192 82.029714 201.545143 188.818286zM146.742857 903.552h382.592c100.059429 0 177.846857-75.666286 177.846857-173.604571 0-97.590857-79.195429-171.154286-184.923428-171.849143-41.380571-78.848-114.925714-124.818286-200.484572-124.818286-114.925714 0-212.516571 89.453714-223.122285 205.44C38.546286 656.749714 0 707.657143 0 769.901714c0 79.195429 59.757714 133.668571 146.742857 133.668572z m771.547429-316.818286h76.361143c15.908571 0 29.001143-13.074286 29.348571-29.348571 0-16.274286-13.44-29.348571-29.348571-29.348572h-76.379429c-15.908571 0-29.348571 13.092571-29.348571 29.348572 0 16.274286 13.44 29.348571 29.348571 29.348571z m-42.422857 230.198857a29.44 29.44 0 0 0 41.344-0.365714c10.971429-11.300571 11.337143-30.043429 0-41.014857l-54.802286-54.454857c-11.300571-10.953143-29.696-11.300571-41.014857 0a29.878857 29.878857 0 0 0 0 41.728z',
11
+ },
12
+ ],
13
+ },
14
+ })
@@ -0,0 +1,14 @@
1
+ import Icon from '../main.vue'
2
+
3
+ Icon.register({
4
+ coffee: {
5
+ width: 1024,
6
+ height: 1024,
7
+ paths: [
8
+ {
9
+ d:
10
+ 'M192.8 960.2h503c24.7 0 44.7-21.1 44.7-47.2H148.1c0 26.1 20 47.2 44.7 47.2zM781.6 474c1.3-11.5 1.9-21.2 1.9-29.3 0-41.6-7-41.8-33.9-41.8H589.4c15.5-25.4 24.4-51.7 24.4-78.5 0-80.4-121.5-119.6-121.5-186.6 0-24.8 10.8-45.2 19.7-74-56.2 14.8-100.5 71-100.5 130.6 0 102.4 119.4 103.3 119.4 179.8 0 9.5-3 18-4.5 28.6H407.9c1.7-6.4 2.8-13.1 2.8-19.7 0-48.4-82.9-71.9-82.9-112 0-14.8 2.1-27.1 6.8-44.5-27.4 10.8-60 42.4-60 78 0 56.6 67.7 62.1 78 98.2H138.7c-26.9 0-33.9 0.2-33.9 41.8s16.3 130 60 235.4S259 832 294.6 862.9l0.2-0.4c10.8 9.8 25 15.5 40.7 15.5h217.2c15.7 0 29.9-5.7 40.7-15.5l0.2 0.4c19.1-16.5 42.4-37.8 66.6-69.8 10 4.2 20.8 7.8 32.7 10.6 17.8 4.2 35.6 6.4 52.6 6.4 50.9 0 96.7-19.5 128.9-54.7 28.4-31 44.7-73 44.7-114.9 0.1-82.5-59.3-151.5-137.5-166.5z m-36.1 268.9c-18.2 0-33.1-2.5-46.9-8.9 8.5-17 16.8-33.7 24.8-53.2 21.4-51.7 36.3-99.7 45.8-139.5 46.7 9.1 82.1 50.5 82.1 99.9 0 48-36.5 101.7-105.8 101.7z',
11
+ },
12
+ ],
13
+ },
14
+ })
@@ -0,0 +1,14 @@
1
+ import Icon from '../main.vue'
2
+
3
+ Icon.register({
4
+ component: {
5
+ width: 1024,
6
+ height: 1024,
7
+ paths: [
8
+ {
9
+ d:
10
+ 'M917.376 243.456L500.8 4.8a34.144 34.144 0 0 0-34.336 0.096l0.16-0.096L50.112 243.52a33.952 33.952 0 0 0-17.088 29.376v477.44c0 12.16 6.528 23.296 17.088 29.44l416.512 238.72a34.88 34.88 0 0 0 34.336-0.064l-0.16 0.096 416.576-238.72c10.272-5.952 17.088-16.896 17.088-29.44V272.928c0-12.544-6.816-23.488-16.928-29.344l-0.16-0.096z m-51.264 487.36l-382.4 219.136-382.336-219.136V292.48l382.336-219.136 382.4 219.136v438.272zM198.784 360.512a33.76 33.76 0 0 0 12.384 46.304l0.16 0.096 237.824 136.32V812.8c0 18.816 15.232 33.92 34.176 33.92h0.256a33.92 33.92 0 0 0 33.92-33.92v-269.184l238.656-136.832a33.92 33.92 0 0 0 12.48-46.528l0.096 0.16a34.4 34.4 0 0 0-46.88-12.32l0.16-0.096-238.272 136.512-238.208-136.512a34.464 34.464 0 0 0-46.624 12.384l-0.096 0.16z',
11
+ },
12
+ ],
13
+ },
14
+ })
@@ -0,0 +1,14 @@
1
+ import Icon from '../main.vue'
2
+
3
+ Icon.register({
4
+ compress: {
5
+ width: 1024,
6
+ height: 1024,
7
+ paths: [
8
+ {
9
+ d:
10
+ 'M275.14608 384H192.39408a32 32 0 0 0 0 64h192V256a32 32 0 0 0-64 0v82.752L55.01808 73.376A32 32 0 1 0 9.77008 118.624L275.14608 384zM749.64208 640H832.39408a32 32 0 0 0 0-64H640.39408v192a32 32 0 0 0 64 0v-82.752l265.376 265.376c6.24 6.256 14.432 9.376 22.624 9.376s16.384-3.12 22.624-9.376a32 32 0 0 0 0-45.248L749.64208 640zM32.39408 960a31.84 31.84 0 0 0 22.624-9.376L320.39408 685.248V768a32 32 0 0 0 64 0V576H192.39408a32 32 0 0 0 0 64h82.752L9.77008 905.376A32 32 0 0 0 32.39408 960zM969.77008 73.376L704.39408 338.752V256a32 32 0 0 0-64 0v192h192a32 32 0 0 0 0-64h-82.752L1015.01808 118.624a32 32 0 1 0-45.248-45.248z',
11
+ },
12
+ ],
13
+ },
14
+ })
@@ -0,0 +1,14 @@
1
+ import Icon from '../main.vue'
2
+
3
+ Icon.register({
4
+ copyright: {
5
+ width: 1024,
6
+ height: 1024,
7
+ paths: [
8
+ {
9
+ d:
10
+ 'M512 96C282.624 96 96 282.624 96 512s186.624 416 416 416 416-186.624 416-416S741.376 96 512 96z m0 64c194.752 0 352 157.248 352 352s-157.248 352-352 352S160 706.752 160 512 317.248 160 512 160z m-3.008 160c-106.368 0-192 85.632-192 192s85.632 192 192 192c76.768 0 142.4-46.016 172.992-111.008l-57.984-26.976C603.36 609.856 560.256 640 508.992 640c-72.864 0-128-55.136-128-128s55.136-128 128-128c51.264 0 94.4 30.112 115.008 74.016l58.016-27.008C651.36 366.016 585.76 320 508.96 320z',
11
+ },
12
+ ],
13
+ },
14
+ })