@cmstops/pro-compo 3.9.1-harbin.1 → 3.9.1-harbin.2

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 (227) hide show
  1. package/README.md +107 -107
  2. package/dist/gif.worker.js +3 -3
  3. package/dist/index.js.map +1 -1
  4. package/dist/index.min.js.map +1 -1
  5. package/es/appCenter/style/index.less +120 -120
  6. package/es/baseFilter/components/FilterGroup.js +1 -1
  7. package/es/baseFilter/style/filterGroup.less +53 -53
  8. package/es/baseFilter/style/index.less +45 -45
  9. package/es/colorPalette/style/index.less +44 -44
  10. package/es/contentDetailList/components/ShowQRCode/QrcodeView/index.js +2 -2
  11. package/es/contentDetailList/style/ComoItem.less +99 -99
  12. package/es/contentDetailList/style/Content.less +49 -49
  13. package/es/contentDetailList/style/ContentListItem.less +132 -132
  14. package/es/contentDetailList/style/CustomItem.less +25 -25
  15. package/es/contentDetailList/style/Doc.less +3 -3
  16. package/es/contentDetailList/style/DocItem.less +152 -152
  17. package/es/contentDetailList/style/DocMpItem.less +135 -135
  18. package/es/contentDetailList/style/GroupPieceItem.less +108 -108
  19. package/es/contentDetailList/style/KongoNavItem.less +104 -104
  20. package/es/contentDetailList/style/LiveItem.less +108 -108
  21. package/es/contentDetailList/style/MaccountItem.less +111 -111
  22. package/es/contentDetailList/style/MatrixItem.less +214 -214
  23. package/es/contentDetailList/style/QrCodeView.less +93 -93
  24. package/es/contentDetailList/style/ShowQRCode.less +3 -3
  25. package/es/contentDetailList/style/courseItem.less +108 -108
  26. package/es/contentDetailList/style/funhdItem.less +108 -108
  27. package/es/contentDetailList/style/index.less +30 -30
  28. package/es/contentModal/component.js +8 -8
  29. package/es/contentModal/components/ViewAllColumn/MediaFilter/index.js +177 -6
  30. package/es/contentModal/components/ViewAllColumn/columnTree/index.js +151 -0
  31. package/es/contentModal/components/storeBox/index.js +2 -2
  32. package/es/contentModal/script/api.js +7 -1
  33. package/es/contentModal/style/MediaFilter.less +47 -47
  34. package/es/contentModal/style/ViewAllColumn.less +68 -68
  35. package/es/contentModal/style/columnTree.less +32 -32
  36. package/es/contentModal/style/index.less +23 -23
  37. package/es/contentModal/style/storeBox.less +55 -55
  38. package/es/dataTags/component.js +5 -5
  39. package/es/dataTags/style/index.less +73 -73
  40. package/es/docHistory/component.js +1 -1
  41. package/es/docHistory/style/docDiffPanel.less +43 -43
  42. package/es/docHistory/style/docHistoryList.less +58 -58
  43. package/es/docHistory/style/index.less +37 -37
  44. package/es/docPreview/component.js +5 -5
  45. package/es/docPreview/style/index.less +140 -140
  46. package/es/docPreview/style/previewIframe.less +36 -36
  47. package/es/editMetaInfo/components/metaInfoForm.js +2 -2
  48. package/es/editMetaInfo/style/index.less +60 -60
  49. package/es/emptyData/style/index.less +34 -34
  50. package/es/gif.worker.js +3 -3
  51. package/es/imageCrop/component.js +2 -2
  52. package/es/imageCrop/style/cropper.less +291 -291
  53. package/es/imageCrop/style/imageCropper.less +133 -133
  54. package/es/imageCrop/style/index.less +2 -2
  55. package/es/importData/component.js +4 -4
  56. package/es/importData/style/index.less +48 -48
  57. package/es/index.less +30 -30
  58. package/es/mediaFilter/components/DocFilter.js +1 -1
  59. package/es/mediaFilter/components/FilterGroup.js +1 -1
  60. package/es/mediaFilter/style/index.less +115 -115
  61. package/es/mediaView/style/index.less +71 -71
  62. package/es/messageBox/component.js +1 -1
  63. package/es/messageBox/list.js +1 -1
  64. package/es/messageBox/style/index.less +76 -76
  65. package/es/previousVersion/style/index.less +209 -209
  66. package/es/resourceGridList/component.js +1 -1
  67. package/es/resourceGridList/style/FileTypeThumb.less +96 -96
  68. package/es/resourceGridList/style/index.less +233 -233
  69. package/es/resourceModal/component.js +1 -1
  70. package/es/resourceModal/components/MediaSelection/MainContent/index.js +1 -1
  71. package/es/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceFilter.js +1 -1
  72. package/es/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceList.js +1 -1
  73. package/es/resourceModal/components/MediaSelection/ToolbarSearch/index.js +1 -1
  74. package/es/resourceModal/style/DocAiMediaSelected.less +55 -55
  75. package/es/resourceModal/style/FileTypeThumb.less +205 -205
  76. package/es/resourceModal/style/MainContent.less +222 -222
  77. package/es/resourceModal/style/MediaPreviewer.less +71 -71
  78. package/es/resourceModal/style/MediaSelection.less +69 -69
  79. package/es/resourceModal/style/SystemResourceSelected.less +154 -154
  80. package/es/resourceModal/style/ToolbarSearch.less +53 -53
  81. package/es/resourceModal/style/index.less +18 -18
  82. package/es/selectAddTo/component.js +1 -1
  83. package/es/selectAddTo/components/SelectAddToView.js +3 -3
  84. package/es/selectAddTo/components/ViewAllColumn/index.js +1 -1
  85. package/es/selectAddTo/style/index.less +3 -3
  86. package/es/selectAvatarList/style/index.less +4 -4
  87. package/es/selectGategory/component.js +1 -1
  88. package/es/selectGategory/style/ColumnSelection.less +190 -190
  89. package/es/selectGategory/style/index.less +40 -40
  90. package/es/selectResourceModal/component.js +5 -5
  91. package/es/selectResourceModal/components/List/ListLocal/Upload.js +2 -2
  92. package/es/selectResourceModal/components/List/ListLocal/index.js +1 -1
  93. package/es/selectResourceModal/components/List/ListNormal/Filter.js +5 -5
  94. package/es/selectResourceModal/components/List/ListSystem/Filter.js +1 -1
  95. package/es/selectResourceModal/components/List/ListSystem/SubList.js +1 -1
  96. package/es/selectResourceModal/style/index.less +55 -55
  97. package/es/selectResourceModal/style/list.less +203 -203
  98. package/es/selectResourceModal/style/listCardWrapper.less +97 -97
  99. package/es/selectResourceModal/style/listSelected.less +94 -94
  100. package/es/selectThumb/component.js +8 -8
  101. package/es/selectThumb/style/card.less +95 -95
  102. package/es/selectThumb/style/colorPalette.less +30 -30
  103. package/es/selectThumb/style/index.less +62 -62
  104. package/es/style/index.less +1 -1
  105. package/es/style.css +14 -14
  106. package/es/thumbCard/style/index.less +90 -90
  107. package/es/thumbCard/style/thumbUploading.less +26 -26
  108. package/es/typeIcons/style/index.less +6 -6
  109. package/es/uploadBefore/components/UploadBefore.js +1 -1
  110. package/es/uploadBefore/style/index.less +144 -144
  111. package/es/uploadStep/style/index.less +152 -152
  112. package/es/userAvater/component.js +1 -1
  113. package/es/userAvater/style/index.less +54 -54
  114. package/es/userDirector/component.js +1 -1
  115. package/es/userDirector/style/index.less +96 -96
  116. package/es/videoThumb/style/index.less +77 -77
  117. package/lib/appCenter/style/index.less +120 -120
  118. package/lib/baseFilter/components/FilterGroup.js +1 -1
  119. package/lib/baseFilter/style/filterGroup.less +53 -53
  120. package/lib/baseFilter/style/index.less +45 -45
  121. package/lib/colorPalette/style/index.less +44 -44
  122. package/lib/contentDetailList/components/ShowQRCode/QrcodeView/index.js +2 -2
  123. package/lib/contentDetailList/style/ComoItem.less +99 -99
  124. package/lib/contentDetailList/style/Content.less +49 -49
  125. package/lib/contentDetailList/style/ContentListItem.less +132 -132
  126. package/lib/contentDetailList/style/CustomItem.less +25 -25
  127. package/lib/contentDetailList/style/Doc.less +3 -3
  128. package/lib/contentDetailList/style/DocItem.less +152 -152
  129. package/lib/contentDetailList/style/DocMpItem.less +135 -135
  130. package/lib/contentDetailList/style/GroupPieceItem.less +108 -108
  131. package/lib/contentDetailList/style/KongoNavItem.less +104 -104
  132. package/lib/contentDetailList/style/LiveItem.less +108 -108
  133. package/lib/contentDetailList/style/MaccountItem.less +111 -111
  134. package/lib/contentDetailList/style/MatrixItem.less +214 -214
  135. package/lib/contentDetailList/style/QrCodeView.less +93 -93
  136. package/lib/contentDetailList/style/ShowQRCode.less +3 -3
  137. package/lib/contentDetailList/style/courseItem.less +108 -108
  138. package/lib/contentDetailList/style/funhdItem.less +108 -108
  139. package/lib/contentDetailList/style/index.less +30 -30
  140. package/lib/contentModal/component.js +8 -8
  141. package/lib/contentModal/components/ViewAllColumn/MediaFilter/index.js +176 -5
  142. package/lib/contentModal/components/ViewAllColumn/columnTree/index.js +152 -0
  143. package/lib/contentModal/components/storeBox/index.js +2 -2
  144. package/lib/contentModal/script/api.js +7 -0
  145. package/lib/contentModal/style/MediaFilter.less +47 -47
  146. package/lib/contentModal/style/ViewAllColumn.less +68 -68
  147. package/lib/contentModal/style/columnTree.less +32 -32
  148. package/lib/contentModal/style/index.less +23 -23
  149. package/lib/contentModal/style/storeBox.less +55 -55
  150. package/lib/dataTags/component.js +5 -5
  151. package/lib/dataTags/style/index.less +73 -73
  152. package/lib/docHistory/component.js +1 -1
  153. package/lib/docHistory/style/docDiffPanel.less +43 -43
  154. package/lib/docHistory/style/docHistoryList.less +58 -58
  155. package/lib/docHistory/style/index.less +37 -37
  156. package/lib/docPreview/component.js +5 -5
  157. package/lib/docPreview/style/index.less +140 -140
  158. package/lib/docPreview/style/previewIframe.less +36 -36
  159. package/lib/editMetaInfo/components/metaInfoForm.js +2 -2
  160. package/lib/editMetaInfo/style/index.less +60 -60
  161. package/lib/emptyData/style/index.less +34 -34
  162. package/lib/imageCrop/component.js +2 -2
  163. package/lib/imageCrop/style/cropper.less +291 -291
  164. package/lib/imageCrop/style/imageCropper.less +133 -133
  165. package/lib/imageCrop/style/index.less +2 -2
  166. package/lib/importData/component.js +4 -4
  167. package/lib/importData/style/index.less +48 -48
  168. package/lib/index.less +30 -30
  169. package/lib/mediaFilter/components/DocFilter.js +1 -1
  170. package/lib/mediaFilter/components/FilterGroup.js +1 -1
  171. package/lib/mediaFilter/style/index.less +115 -115
  172. package/lib/mediaView/style/index.less +71 -71
  173. package/lib/messageBox/component.js +1 -1
  174. package/lib/messageBox/list.js +1 -1
  175. package/lib/messageBox/style/index.less +76 -76
  176. package/lib/previousVersion/style/index.less +209 -209
  177. package/lib/resourceGridList/component.js +1 -1
  178. package/lib/resourceGridList/style/FileTypeThumb.less +96 -96
  179. package/lib/resourceGridList/style/index.less +233 -233
  180. package/lib/resourceModal/component.js +1 -1
  181. package/lib/resourceModal/components/MediaSelection/MainContent/index.js +1 -1
  182. package/lib/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceFilter.js +1 -1
  183. package/lib/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceList.js +1 -1
  184. package/lib/resourceModal/components/MediaSelection/ToolbarSearch/index.js +1 -1
  185. package/lib/resourceModal/style/DocAiMediaSelected.less +55 -55
  186. package/lib/resourceModal/style/FileTypeThumb.less +205 -205
  187. package/lib/resourceModal/style/MainContent.less +222 -222
  188. package/lib/resourceModal/style/MediaPreviewer.less +71 -71
  189. package/lib/resourceModal/style/MediaSelection.less +69 -69
  190. package/lib/resourceModal/style/SystemResourceSelected.less +154 -154
  191. package/lib/resourceModal/style/ToolbarSearch.less +53 -53
  192. package/lib/resourceModal/style/index.less +18 -18
  193. package/lib/selectAddTo/component.js +1 -1
  194. package/lib/selectAddTo/components/SelectAddToView.js +3 -3
  195. package/lib/selectAddTo/components/ViewAllColumn/index.js +1 -1
  196. package/lib/selectAddTo/style/index.less +3 -3
  197. package/lib/selectAvatarList/style/index.less +4 -4
  198. package/lib/selectGategory/component.js +1 -1
  199. package/lib/selectGategory/style/ColumnSelection.less +190 -190
  200. package/lib/selectGategory/style/index.less +40 -40
  201. package/lib/selectResourceModal/component.js +5 -5
  202. package/lib/selectResourceModal/components/List/ListLocal/Upload.js +2 -2
  203. package/lib/selectResourceModal/components/List/ListLocal/index.js +1 -1
  204. package/lib/selectResourceModal/components/List/ListNormal/Filter.js +5 -5
  205. package/lib/selectResourceModal/components/List/ListSystem/Filter.js +1 -1
  206. package/lib/selectResourceModal/components/List/ListSystem/SubList.js +1 -1
  207. package/lib/selectResourceModal/style/index.less +55 -55
  208. package/lib/selectResourceModal/style/list.less +203 -203
  209. package/lib/selectResourceModal/style/listCardWrapper.less +97 -97
  210. package/lib/selectResourceModal/style/listSelected.less +94 -94
  211. package/lib/selectThumb/component.js +8 -8
  212. package/lib/selectThumb/style/card.less +95 -95
  213. package/lib/selectThumb/style/colorPalette.less +30 -30
  214. package/lib/selectThumb/style/index.less +62 -62
  215. package/lib/style/index.less +1 -1
  216. package/lib/thumbCard/style/index.less +90 -90
  217. package/lib/thumbCard/style/thumbUploading.less +26 -26
  218. package/lib/typeIcons/style/index.less +6 -6
  219. package/lib/uploadBefore/components/UploadBefore.js +1 -1
  220. package/lib/uploadBefore/style/index.less +144 -144
  221. package/lib/uploadStep/style/index.less +152 -152
  222. package/lib/userAvater/component.js +1 -1
  223. package/lib/userAvater/style/index.less +54 -54
  224. package/lib/userDirector/component.js +1 -1
  225. package/lib/userDirector/style/index.less +96 -96
  226. package/lib/videoThumb/style/index.less +77 -77
  227. package/package.json +138 -138
package/README.md CHANGED
@@ -1,107 +1,107 @@
1
- # Arco 物料项目
2
-
3
- [物料平台文档中心](https://arco.design/docs/material/guide)
4
-
5
- ## 快速开始
6
-
7
- **在 `npm run dev` 前,请运行 `npm run add:component -- ComponentName` 创建第一个组件,否则 dev 将会因缺少 Story 入口而报错。**
8
-
9
- ```
10
- # 添加组件
11
- npm run add:component -- YourComponentName
12
-
13
- # 开发
14
- npm run dev
15
-
16
- # 构建
17
- npm run build
18
-
19
- # 发布前预览
20
- npm run prepublishOnly && arco preview
21
-
22
- # 发布至物料平台(需先发布 NPM 包)
23
- arco sync
24
- ```
25
-
26
-
27
- ## 提供 Demo
28
-
29
- Demo 目录位于 `src/demo`。你可以在此目录中加入多个 Demo,它们将被展示在物料平台的预览页。在 `src/demo/index.js` 中,通过 JSDoc 的语法提供物料及各个 Demo 的相关信息。
30
-
31
- ```javascript
32
- // src/demo/index.js
33
-
34
- /**
35
- * @file
36
- * @title 组件名
37
- * @memberOf 组件类型,例如:数据输入
38
- * @description 描述你的组件。
39
- */
40
-
41
- /**
42
- * @title 基本用法
43
- * @description 描述你的例子
44
- */
45
- import Basic from './basic.vue';
46
-
47
- export const BasicDemo = () => Basic;
48
- ```
49
-
50
- ## API 文档
51
-
52
- **为了帮助他人更好地使用你的组件,请提供详细的 API 文档。**
53
-
54
- ### 书写注释
55
-
56
- 我们使用了 [Vue Styleguidist](https://vue-styleguidist.github.io/) 来提取组件 Props 的注释,然后自动生成组件的 API 文档。为此,如果你想对外暴露一个 Property,请参照Vue Styleguidist 的规则书写注释:
57
-
58
- ```vue
59
- // ✅ 可以被正确提取的注释
60
- props: {
61
- /**
62
- * 提示文字
63
- */
64
- tip: String,
65
- /**
66
- * 按钮组件Props
67
- */
68
- buttonProps: {
69
- // 如果使用PropType,请使用对象的形式定义
70
- type: Object as PropType<Record<string, any>>,
71
- },
72
- },
73
-
74
- // ❌ 没有书写注释的属性会被忽略
75
- props: {
76
- disabled: Boolean,
77
- },
78
- ```
79
-
80
- ### 扩展 TEMPLATE.md
81
-
82
- `TEMPLATE.md` 是用于自动文档生成的模板,你可以修改此文件添加更多组件的使用帮助信息,但请不要删除其原有的内容,否则可能导致内容替换失败。
83
-
84
- ```markdown
85
- // TEMPLATE.md
86
- ---
87
- file: index
88
- ---
89
-
90
- # TooltipButton
91
-
92
- ## 属性/Props
93
-
94
- %%Props%%
95
-
96
- ### OtherProps
97
-
98
- 在这里你可以书写更多组件帮助文档。
99
-
100
- ## Demos
101
-
102
- %%Demos%%
103
- ```
104
-
105
- ## 测试
106
-
107
- 测试目录位于 `src/__test__`。你可以在 `index.test.tsx` 中编写你的测试用例,在 `demo.test.tsx` 中可以进行基于 Demo 的快照测试。
1
+ # Arco 物料项目
2
+
3
+ [物料平台文档中心](https://arco.design/docs/material/guide)
4
+
5
+ ## 快速开始
6
+
7
+ **在 `npm run dev` 前,请运行 `npm run add:component -- ComponentName` 创建第一个组件,否则 dev 将会因缺少 Story 入口而报错。**
8
+
9
+ ```
10
+ # 添加组件
11
+ npm run add:component -- YourComponentName
12
+
13
+ # 开发
14
+ npm run dev
15
+
16
+ # 构建
17
+ npm run build
18
+
19
+ # 发布前预览
20
+ npm run prepublishOnly && arco preview
21
+
22
+ # 发布至物料平台(需先发布 NPM 包)
23
+ arco sync
24
+ ```
25
+
26
+
27
+ ## 提供 Demo
28
+
29
+ Demo 目录位于 `src/demo`。你可以在此目录中加入多个 Demo,它们将被展示在物料平台的预览页。在 `src/demo/index.js` 中,通过 JSDoc 的语法提供物料及各个 Demo 的相关信息。
30
+
31
+ ```javascript
32
+ // src/demo/index.js
33
+
34
+ /**
35
+ * @file
36
+ * @title 组件名
37
+ * @memberOf 组件类型,例如:数据输入
38
+ * @description 描述你的组件。
39
+ */
40
+
41
+ /**
42
+ * @title 基本用法
43
+ * @description 描述你的例子
44
+ */
45
+ import Basic from './basic.vue';
46
+
47
+ export const BasicDemo = () => Basic;
48
+ ```
49
+
50
+ ## API 文档
51
+
52
+ **为了帮助他人更好地使用你的组件,请提供详细的 API 文档。**
53
+
54
+ ### 书写注释
55
+
56
+ 我们使用了 [Vue Styleguidist](https://vue-styleguidist.github.io/) 来提取组件 Props 的注释,然后自动生成组件的 API 文档。为此,如果你想对外暴露一个 Property,请参照Vue Styleguidist 的规则书写注释:
57
+
58
+ ```vue
59
+ // ✅ 可以被正确提取的注释
60
+ props: {
61
+ /**
62
+ * 提示文字
63
+ */
64
+ tip: String,
65
+ /**
66
+ * 按钮组件Props
67
+ */
68
+ buttonProps: {
69
+ // 如果使用PropType,请使用对象的形式定义
70
+ type: Object as PropType<Record<string, any>>,
71
+ },
72
+ },
73
+
74
+ // ❌ 没有书写注释的属性会被忽略
75
+ props: {
76
+ disabled: Boolean,
77
+ },
78
+ ```
79
+
80
+ ### 扩展 TEMPLATE.md
81
+
82
+ `TEMPLATE.md` 是用于自动文档生成的模板,你可以修改此文件添加更多组件的使用帮助信息,但请不要删除其原有的内容,否则可能导致内容替换失败。
83
+
84
+ ```markdown
85
+ // TEMPLATE.md
86
+ ---
87
+ file: index
88
+ ---
89
+
90
+ # TooltipButton
91
+
92
+ ## 属性/Props
93
+
94
+ %%Props%%
95
+
96
+ ### OtherProps
97
+
98
+ 在这里你可以书写更多组件帮助文档。
99
+
100
+ ## Demos
101
+
102
+ %%Demos%%
103
+ ```
104
+
105
+ ## 测试
106
+
107
+ 测试目录位于 `src/__test__`。你可以在 `index.test.tsx` 中编写你的测试用例,在 `demo.test.tsx` 中可以进行基于 Demo 的快照测试。
@@ -1,3 +1,3 @@
1
- // gif.worker.js 0.2.0 - https://github.com/jnordberg/gif.js
2
- (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){var NeuQuant=require("./TypedNeuQuant.js");var LZWEncoder=require("./LZWEncoder.js");function ByteArray(){this.page=-1;this.pages=[];this.newPage()}ByteArray.pageSize=4096;ByteArray.charMap={};for(var i=0;i<256;i++)ByteArray.charMap[i]=String.fromCharCode(i);ByteArray.prototype.newPage=function(){this.pages[++this.page]=new Uint8Array(ByteArray.pageSize);this.cursor=0};ByteArray.prototype.getData=function(){var rv="";for(var p=0;p<this.pages.length;p++){for(var i=0;i<ByteArray.pageSize;i++){rv+=ByteArray.charMap[this.pages[p][i]]}}return rv};ByteArray.prototype.writeByte=function(val){if(this.cursor>=ByteArray.pageSize)this.newPage();this.pages[this.page][this.cursor++]=val};ByteArray.prototype.writeUTFBytes=function(string){for(var l=string.length,i=0;i<l;i++)this.writeByte(string.charCodeAt(i))};ByteArray.prototype.writeBytes=function(array,offset,length){for(var l=length||array.length,i=offset||0;i<l;i++)this.writeByte(array[i])};function GIFEncoder(width,height){this.width=~~width;this.height=~~height;this.transparent=null;this.transIndex=0;this.repeat=-1;this.delay=0;this.image=null;this.pixels=null;this.indexedPixels=null;this.colorDepth=null;this.colorTab=null;this.neuQuant=null;this.usedEntry=new Array;this.palSize=7;this.dispose=-1;this.firstFrame=true;this.sample=10;this.dither=false;this.globalPalette=false;this.out=new ByteArray}GIFEncoder.prototype.setDelay=function(milliseconds){this.delay=Math.round(milliseconds/10)};GIFEncoder.prototype.setFrameRate=function(fps){this.delay=Math.round(100/fps)};GIFEncoder.prototype.setDispose=function(disposalCode){if(disposalCode>=0)this.dispose=disposalCode};GIFEncoder.prototype.setRepeat=function(repeat){this.repeat=repeat};GIFEncoder.prototype.setTransparent=function(color){this.transparent=color};GIFEncoder.prototype.addFrame=function(imageData){this.image=imageData;this.colorTab=this.globalPalette&&this.globalPalette.slice?this.globalPalette:null;this.getImagePixels();this.analyzePixels();if(this.globalPalette===true)this.globalPalette=this.colorTab;if(this.firstFrame){this.writeLSD();this.writePalette();if(this.repeat>=0){this.writeNetscapeExt()}}this.writeGraphicCtrlExt();this.writeImageDesc();if(!this.firstFrame&&!this.globalPalette)this.writePalette();this.writePixels();this.firstFrame=false};GIFEncoder.prototype.finish=function(){this.out.writeByte(59)};GIFEncoder.prototype.setQuality=function(quality){if(quality<1)quality=1;this.sample=quality};GIFEncoder.prototype.setDither=function(dither){if(dither===true)dither="FloydSteinberg";this.dither=dither};GIFEncoder.prototype.setGlobalPalette=function(palette){this.globalPalette=palette};GIFEncoder.prototype.getGlobalPalette=function(){return this.globalPalette&&this.globalPalette.slice&&this.globalPalette.slice(0)||this.globalPalette};GIFEncoder.prototype.writeHeader=function(){this.out.writeUTFBytes("GIF89a")};GIFEncoder.prototype.analyzePixels=function(){if(!this.colorTab){this.neuQuant=new NeuQuant(this.pixels,this.sample);this.neuQuant.buildColormap();this.colorTab=this.neuQuant.getColormap()}if(this.dither){this.ditherPixels(this.dither.replace("-serpentine",""),this.dither.match(/-serpentine/)!==null)}else{this.indexPixels()}this.pixels=null;this.colorDepth=8;this.palSize=7;if(this.transparent!==null){this.transIndex=this.findClosest(this.transparent,true)}};GIFEncoder.prototype.indexPixels=function(imgq){var nPix=this.pixels.length/3;this.indexedPixels=new Uint8Array(nPix);var k=0;for(var j=0;j<nPix;j++){var index=this.findClosestRGB(this.pixels[k++]&255,this.pixels[k++]&255,this.pixels[k++]&255);this.usedEntry[index]=true;this.indexedPixels[j]=index}};GIFEncoder.prototype.ditherPixels=function(kernel,serpentine){var kernels={FalseFloydSteinberg:[[3/8,1,0],[3/8,0,1],[2/8,1,1]],FloydSteinberg:[[7/16,1,0],[3/16,-1,1],[5/16,0,1],[1/16,1,1]],Stucki:[[8/42,1,0],[4/42,2,0],[2/42,-2,1],[4/42,-1,1],[8/42,0,1],[4/42,1,1],[2/42,2,1],[1/42,-2,2],[2/42,-1,2],[4/42,0,2],[2/42,1,2],[1/42,2,2]],Atkinson:[[1/8,1,0],[1/8,2,0],[1/8,-1,1],[1/8,0,1],[1/8,1,1],[1/8,0,2]]};if(!kernel||!kernels[kernel]){throw"Unknown dithering kernel: "+kernel}var ds=kernels[kernel];var index=0,height=this.height,width=this.width,data=this.pixels;var direction=serpentine?-1:1;this.indexedPixels=new Uint8Array(this.pixels.length/3);for(var y=0;y<height;y++){if(serpentine)direction=direction*-1;for(var x=direction==1?0:width-1,xend=direction==1?width:0;x!==xend;x+=direction){index=y*width+x;var idx=index*3;var r1=data[idx];var g1=data[idx+1];var b1=data[idx+2];idx=this.findClosestRGB(r1,g1,b1);this.usedEntry[idx]=true;this.indexedPixels[index]=idx;idx*=3;var r2=this.colorTab[idx];var g2=this.colorTab[idx+1];var b2=this.colorTab[idx+2];var er=r1-r2;var eg=g1-g2;var eb=b1-b2;for(var i=direction==1?0:ds.length-1,end=direction==1?ds.length:0;i!==end;i+=direction){var x1=ds[i][1];var y1=ds[i][2];if(x1+x>=0&&x1+x<width&&y1+y>=0&&y1+y<height){var d=ds[i][0];idx=index+x1+y1*width;idx*=3;data[idx]=Math.max(0,Math.min(255,data[idx]+er*d));data[idx+1]=Math.max(0,Math.min(255,data[idx+1]+eg*d));data[idx+2]=Math.max(0,Math.min(255,data[idx+2]+eb*d))}}}}};GIFEncoder.prototype.findClosest=function(c,used){return this.findClosestRGB((c&16711680)>>16,(c&65280)>>8,c&255,used)};GIFEncoder.prototype.findClosestRGB=function(r,g,b,used){if(this.colorTab===null)return-1;if(this.neuQuant&&!used){return this.neuQuant.lookupRGB(r,g,b)}var c=b|g<<8|r<<16;var minpos=0;var dmin=256*256*256;var len=this.colorTab.length;for(var i=0,index=0;i<len;index++){var dr=r-(this.colorTab[i++]&255);var dg=g-(this.colorTab[i++]&255);var db=b-(this.colorTab[i++]&255);var d=dr*dr+dg*dg+db*db;if((!used||this.usedEntry[index])&&d<dmin){dmin=d;minpos=index}}return minpos};GIFEncoder.prototype.getImagePixels=function(){var w=this.width;var h=this.height;this.pixels=new Uint8Array(w*h*3);var data=this.image;var srcPos=0;var count=0;for(var i=0;i<h;i++){for(var j=0;j<w;j++){this.pixels[count++]=data[srcPos++];this.pixels[count++]=data[srcPos++];this.pixels[count++]=data[srcPos++];srcPos++}}};GIFEncoder.prototype.writeGraphicCtrlExt=function(){this.out.writeByte(33);this.out.writeByte(249);this.out.writeByte(4);var transp,disp;if(this.transparent===null){transp=0;disp=0}else{transp=1;disp=2}if(this.dispose>=0){disp=dispose&7}disp<<=2;this.out.writeByte(0|disp|0|transp);this.writeShort(this.delay);this.out.writeByte(this.transIndex);this.out.writeByte(0)};GIFEncoder.prototype.writeImageDesc=function(){this.out.writeByte(44);this.writeShort(0);this.writeShort(0);this.writeShort(this.width);this.writeShort(this.height);if(this.firstFrame||this.globalPalette){this.out.writeByte(0)}else{this.out.writeByte(128|0|0|0|this.palSize)}};GIFEncoder.prototype.writeLSD=function(){this.writeShort(this.width);this.writeShort(this.height);this.out.writeByte(128|112|0|this.palSize);this.out.writeByte(0);this.out.writeByte(0)};GIFEncoder.prototype.writeNetscapeExt=function(){this.out.writeByte(33);this.out.writeByte(255);this.out.writeByte(11);this.out.writeUTFBytes("NETSCAPE2.0");this.out.writeByte(3);this.out.writeByte(1);this.writeShort(this.repeat);this.out.writeByte(0)};GIFEncoder.prototype.writePalette=function(){this.out.writeBytes(this.colorTab);var n=3*256-this.colorTab.length;for(var i=0;i<n;i++)this.out.writeByte(0)};GIFEncoder.prototype.writeShort=function(pValue){this.out.writeByte(pValue&255);this.out.writeByte(pValue>>8&255)};GIFEncoder.prototype.writePixels=function(){var enc=new LZWEncoder(this.width,this.height,this.indexedPixels,this.colorDepth);enc.encode(this.out)};GIFEncoder.prototype.stream=function(){return this.out};module.exports=GIFEncoder},{"./LZWEncoder.js":2,"./TypedNeuQuant.js":3}],2:[function(require,module,exports){var EOF=-1;var BITS=12;var HSIZE=5003;var masks=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535];function LZWEncoder(width,height,pixels,colorDepth){var initCodeSize=Math.max(2,colorDepth);var accum=new Uint8Array(256);var htab=new Int32Array(HSIZE);var codetab=new Int32Array(HSIZE);var cur_accum,cur_bits=0;var a_count;var free_ent=0;var maxcode;var clear_flg=false;var g_init_bits,ClearCode,EOFCode;function char_out(c,outs){accum[a_count++]=c;if(a_count>=254)flush_char(outs)}function cl_block(outs){cl_hash(HSIZE);free_ent=ClearCode+2;clear_flg=true;output(ClearCode,outs)}function cl_hash(hsize){for(var i=0;i<hsize;++i)htab[i]=-1}function compress(init_bits,outs){var fcode,c,i,ent,disp,hsize_reg,hshift;g_init_bits=init_bits;clear_flg=false;n_bits=g_init_bits;maxcode=MAXCODE(n_bits);ClearCode=1<<init_bits-1;EOFCode=ClearCode+1;free_ent=ClearCode+2;a_count=0;ent=nextPixel();hshift=0;for(fcode=HSIZE;fcode<65536;fcode*=2)++hshift;hshift=8-hshift;hsize_reg=HSIZE;cl_hash(hsize_reg);output(ClearCode,outs);outer_loop:while((c=nextPixel())!=EOF){fcode=(c<<BITS)+ent;i=c<<hshift^ent;if(htab[i]===fcode){ent=codetab[i];continue}else if(htab[i]>=0){disp=hsize_reg-i;if(i===0)disp=1;do{if((i-=disp)<0)i+=hsize_reg;if(htab[i]===fcode){ent=codetab[i];continue outer_loop}}while(htab[i]>=0)}output(ent,outs);ent=c;if(free_ent<1<<BITS){codetab[i]=free_ent++;htab[i]=fcode}else{cl_block(outs)}}output(ent,outs);output(EOFCode,outs)}function encode(outs){outs.writeByte(initCodeSize);remaining=width*height;curPixel=0;compress(initCodeSize+1,outs);outs.writeByte(0)}function flush_char(outs){if(a_count>0){outs.writeByte(a_count);outs.writeBytes(accum,0,a_count);a_count=0}}function MAXCODE(n_bits){return(1<<n_bits)-1}function nextPixel(){if(remaining===0)return EOF;--remaining;var pix=pixels[curPixel++];return pix&255}function output(code,outs){cur_accum&=masks[cur_bits];if(cur_bits>0)cur_accum|=code<<cur_bits;else cur_accum=code;cur_bits+=n_bits;while(cur_bits>=8){char_out(cur_accum&255,outs);cur_accum>>=8;cur_bits-=8}if(free_ent>maxcode||clear_flg){if(clear_flg){maxcode=MAXCODE(n_bits=g_init_bits);clear_flg=false}else{++n_bits;if(n_bits==BITS)maxcode=1<<BITS;else maxcode=MAXCODE(n_bits)}}if(code==EOFCode){while(cur_bits>0){char_out(cur_accum&255,outs);cur_accum>>=8;cur_bits-=8}flush_char(outs)}}this.encode=encode}module.exports=LZWEncoder},{}],3:[function(require,module,exports){var ncycles=100;var netsize=256;var maxnetpos=netsize-1;var netbiasshift=4;var intbiasshift=16;var intbias=1<<intbiasshift;var gammashift=10;var gamma=1<<gammashift;var betashift=10;var beta=intbias>>betashift;var betagamma=intbias<<gammashift-betashift;var initrad=netsize>>3;var radiusbiasshift=6;var radiusbias=1<<radiusbiasshift;var initradius=initrad*radiusbias;var radiusdec=30;var alphabiasshift=10;var initalpha=1<<alphabiasshift;var alphadec;var radbiasshift=8;var radbias=1<<radbiasshift;var alpharadbshift=alphabiasshift+radbiasshift;var alpharadbias=1<<alpharadbshift;var prime1=499;var prime2=491;var prime3=487;var prime4=503;var minpicturebytes=3*prime4;function NeuQuant(pixels,samplefac){var network;var netindex;var bias;var freq;var radpower;function init(){network=[];netindex=new Int32Array(256);bias=new Int32Array(netsize);freq=new Int32Array(netsize);radpower=new Int32Array(netsize>>3);var i,v;for(i=0;i<netsize;i++){v=(i<<netbiasshift+8)/netsize;network[i]=new Float64Array([v,v,v,0]);freq[i]=intbias/netsize;bias[i]=0}}function unbiasnet(){for(var i=0;i<netsize;i++){network[i][0]>>=netbiasshift;network[i][1]>>=netbiasshift;network[i][2]>>=netbiasshift;network[i][3]=i}}function altersingle(alpha,i,b,g,r){network[i][0]-=alpha*(network[i][0]-b)/initalpha;network[i][1]-=alpha*(network[i][1]-g)/initalpha;network[i][2]-=alpha*(network[i][2]-r)/initalpha}function alterneigh(radius,i,b,g,r){var lo=Math.abs(i-radius);var hi=Math.min(i+radius,netsize);var j=i+1;var k=i-1;var m=1;var p,a;while(j<hi||k>lo){a=radpower[m++];if(j<hi){p=network[j++];p[0]-=a*(p[0]-b)/alpharadbias;p[1]-=a*(p[1]-g)/alpharadbias;p[2]-=a*(p[2]-r)/alpharadbias}if(k>lo){p=network[k--];p[0]-=a*(p[0]-b)/alpharadbias;p[1]-=a*(p[1]-g)/alpharadbias;p[2]-=a*(p[2]-r)/alpharadbias}}}function contest(b,g,r){var bestd=~(1<<31);var bestbiasd=bestd;var bestpos=-1;var bestbiaspos=bestpos;var i,n,dist,biasdist,betafreq;for(i=0;i<netsize;i++){n=network[i];dist=Math.abs(n[0]-b)+Math.abs(n[1]-g)+Math.abs(n[2]-r);if(dist<bestd){bestd=dist;bestpos=i}biasdist=dist-(bias[i]>>intbiasshift-netbiasshift);if(biasdist<bestbiasd){bestbiasd=biasdist;bestbiaspos=i}betafreq=freq[i]>>betashift;freq[i]-=betafreq;bias[i]+=betafreq<<gammashift}freq[bestpos]+=beta;bias[bestpos]-=betagamma;return bestbiaspos}function inxbuild(){var i,j,p,q,smallpos,smallval,previouscol=0,startpos=0;for(i=0;i<netsize;i++){p=network[i];smallpos=i;smallval=p[1];for(j=i+1;j<netsize;j++){q=network[j];if(q[1]<smallval){smallpos=j;smallval=q[1]}}q=network[smallpos];if(i!=smallpos){j=q[0];q[0]=p[0];p[0]=j;j=q[1];q[1]=p[1];p[1]=j;j=q[2];q[2]=p[2];p[2]=j;j=q[3];q[3]=p[3];p[3]=j}if(smallval!=previouscol){netindex[previouscol]=startpos+i>>1;for(j=previouscol+1;j<smallval;j++)netindex[j]=i;previouscol=smallval;startpos=i}}netindex[previouscol]=startpos+maxnetpos>>1;for(j=previouscol+1;j<256;j++)netindex[j]=maxnetpos}function inxsearch(b,g,r){var a,p,dist;var bestd=1e3;var best=-1;var i=netindex[g];var j=i-1;while(i<netsize||j>=0){if(i<netsize){p=network[i];dist=p[1]-g;if(dist>=bestd)i=netsize;else{i++;if(dist<0)dist=-dist;a=p[0]-b;if(a<0)a=-a;dist+=a;if(dist<bestd){a=p[2]-r;if(a<0)a=-a;dist+=a;if(dist<bestd){bestd=dist;best=p[3]}}}}if(j>=0){p=network[j];dist=g-p[1];if(dist>=bestd)j=-1;else{j--;if(dist<0)dist=-dist;a=p[0]-b;if(a<0)a=-a;dist+=a;if(dist<bestd){a=p[2]-r;if(a<0)a=-a;dist+=a;if(dist<bestd){bestd=dist;best=p[3]}}}}}return best}function learn(){var i;var lengthcount=pixels.length;var alphadec=30+(samplefac-1)/3;var samplepixels=lengthcount/(3*samplefac);var delta=~~(samplepixels/ncycles);var alpha=initalpha;var radius=initradius;var rad=radius>>radiusbiasshift;if(rad<=1)rad=0;for(i=0;i<rad;i++)radpower[i]=alpha*((rad*rad-i*i)*radbias/(rad*rad));var step;if(lengthcount<minpicturebytes){samplefac=1;step=3}else if(lengthcount%prime1!==0){step=3*prime1}else if(lengthcount%prime2!==0){step=3*prime2}else if(lengthcount%prime3!==0){step=3*prime3}else{step=3*prime4}var b,g,r,j;var pix=0;i=0;while(i<samplepixels){b=(pixels[pix]&255)<<netbiasshift;g=(pixels[pix+1]&255)<<netbiasshift;r=(pixels[pix+2]&255)<<netbiasshift;j=contest(b,g,r);altersingle(alpha,j,b,g,r);if(rad!==0)alterneigh(rad,j,b,g,r);pix+=step;if(pix>=lengthcount)pix-=lengthcount;i++;if(delta===0)delta=1;if(i%delta===0){alpha-=alpha/alphadec;radius-=radius/radiusdec;rad=radius>>radiusbiasshift;if(rad<=1)rad=0;for(j=0;j<rad;j++)radpower[j]=alpha*((rad*rad-j*j)*radbias/(rad*rad))}}}function buildColormap(){init();learn();unbiasnet();inxbuild()}this.buildColormap=buildColormap;function getColormap(){var map=[];var index=[];for(var i=0;i<netsize;i++)index[network[i][3]]=i;var k=0;for(var l=0;l<netsize;l++){var j=index[l];map[k++]=network[j][0];map[k++]=network[j][1];map[k++]=network[j][2]}return map}this.getColormap=getColormap;this.lookupRGB=inxsearch}module.exports=NeuQuant},{}],4:[function(require,module,exports){var GIFEncoder,renderFrame;GIFEncoder=require("./GIFEncoder.js");renderFrame=function(frame){var encoder,page,stream,transfer;encoder=new GIFEncoder(frame.width,frame.height);if(frame.index===0){encoder.writeHeader()}else{encoder.firstFrame=false}encoder.setTransparent(frame.transparent);encoder.setRepeat(frame.repeat);encoder.setDelay(frame.delay);encoder.setQuality(frame.quality);encoder.setDither(frame.dither);encoder.setGlobalPalette(frame.globalPalette);encoder.addFrame(frame.data);if(frame.last){encoder.finish()}if(frame.globalPalette===true){frame.globalPalette=encoder.getGlobalPalette()}stream=encoder.stream();frame.data=stream.pages;frame.cursor=stream.cursor;frame.pageSize=stream.constructor.pageSize;if(frame.canTransfer){transfer=function(){var i,len,ref,results;ref=frame.data;results=[];for(i=0,len=ref.length;i<len;i++){page=ref[i];results.push(page.buffer)}return results}();return self.postMessage(frame,transfer)}else{return self.postMessage(frame)}};self.onmessage=function(event){return renderFrame(event.data)}},{"./GIFEncoder.js":1}]},{},[4]);
3
- //# sourceMappingURL=gif.worker.js.map
1
+ // gif.worker.js 0.2.0 - https://github.com/jnordberg/gif.js
2
+ (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){var NeuQuant=require("./TypedNeuQuant.js");var LZWEncoder=require("./LZWEncoder.js");function ByteArray(){this.page=-1;this.pages=[];this.newPage()}ByteArray.pageSize=4096;ByteArray.charMap={};for(var i=0;i<256;i++)ByteArray.charMap[i]=String.fromCharCode(i);ByteArray.prototype.newPage=function(){this.pages[++this.page]=new Uint8Array(ByteArray.pageSize);this.cursor=0};ByteArray.prototype.getData=function(){var rv="";for(var p=0;p<this.pages.length;p++){for(var i=0;i<ByteArray.pageSize;i++){rv+=ByteArray.charMap[this.pages[p][i]]}}return rv};ByteArray.prototype.writeByte=function(val){if(this.cursor>=ByteArray.pageSize)this.newPage();this.pages[this.page][this.cursor++]=val};ByteArray.prototype.writeUTFBytes=function(string){for(var l=string.length,i=0;i<l;i++)this.writeByte(string.charCodeAt(i))};ByteArray.prototype.writeBytes=function(array,offset,length){for(var l=length||array.length,i=offset||0;i<l;i++)this.writeByte(array[i])};function GIFEncoder(width,height){this.width=~~width;this.height=~~height;this.transparent=null;this.transIndex=0;this.repeat=-1;this.delay=0;this.image=null;this.pixels=null;this.indexedPixels=null;this.colorDepth=null;this.colorTab=null;this.neuQuant=null;this.usedEntry=new Array;this.palSize=7;this.dispose=-1;this.firstFrame=true;this.sample=10;this.dither=false;this.globalPalette=false;this.out=new ByteArray}GIFEncoder.prototype.setDelay=function(milliseconds){this.delay=Math.round(milliseconds/10)};GIFEncoder.prototype.setFrameRate=function(fps){this.delay=Math.round(100/fps)};GIFEncoder.prototype.setDispose=function(disposalCode){if(disposalCode>=0)this.dispose=disposalCode};GIFEncoder.prototype.setRepeat=function(repeat){this.repeat=repeat};GIFEncoder.prototype.setTransparent=function(color){this.transparent=color};GIFEncoder.prototype.addFrame=function(imageData){this.image=imageData;this.colorTab=this.globalPalette&&this.globalPalette.slice?this.globalPalette:null;this.getImagePixels();this.analyzePixels();if(this.globalPalette===true)this.globalPalette=this.colorTab;if(this.firstFrame){this.writeLSD();this.writePalette();if(this.repeat>=0){this.writeNetscapeExt()}}this.writeGraphicCtrlExt();this.writeImageDesc();if(!this.firstFrame&&!this.globalPalette)this.writePalette();this.writePixels();this.firstFrame=false};GIFEncoder.prototype.finish=function(){this.out.writeByte(59)};GIFEncoder.prototype.setQuality=function(quality){if(quality<1)quality=1;this.sample=quality};GIFEncoder.prototype.setDither=function(dither){if(dither===true)dither="FloydSteinberg";this.dither=dither};GIFEncoder.prototype.setGlobalPalette=function(palette){this.globalPalette=palette};GIFEncoder.prototype.getGlobalPalette=function(){return this.globalPalette&&this.globalPalette.slice&&this.globalPalette.slice(0)||this.globalPalette};GIFEncoder.prototype.writeHeader=function(){this.out.writeUTFBytes("GIF89a")};GIFEncoder.prototype.analyzePixels=function(){if(!this.colorTab){this.neuQuant=new NeuQuant(this.pixels,this.sample);this.neuQuant.buildColormap();this.colorTab=this.neuQuant.getColormap()}if(this.dither){this.ditherPixels(this.dither.replace("-serpentine",""),this.dither.match(/-serpentine/)!==null)}else{this.indexPixels()}this.pixels=null;this.colorDepth=8;this.palSize=7;if(this.transparent!==null){this.transIndex=this.findClosest(this.transparent,true)}};GIFEncoder.prototype.indexPixels=function(imgq){var nPix=this.pixels.length/3;this.indexedPixels=new Uint8Array(nPix);var k=0;for(var j=0;j<nPix;j++){var index=this.findClosestRGB(this.pixels[k++]&255,this.pixels[k++]&255,this.pixels[k++]&255);this.usedEntry[index]=true;this.indexedPixels[j]=index}};GIFEncoder.prototype.ditherPixels=function(kernel,serpentine){var kernels={FalseFloydSteinberg:[[3/8,1,0],[3/8,0,1],[2/8,1,1]],FloydSteinberg:[[7/16,1,0],[3/16,-1,1],[5/16,0,1],[1/16,1,1]],Stucki:[[8/42,1,0],[4/42,2,0],[2/42,-2,1],[4/42,-1,1],[8/42,0,1],[4/42,1,1],[2/42,2,1],[1/42,-2,2],[2/42,-1,2],[4/42,0,2],[2/42,1,2],[1/42,2,2]],Atkinson:[[1/8,1,0],[1/8,2,0],[1/8,-1,1],[1/8,0,1],[1/8,1,1],[1/8,0,2]]};if(!kernel||!kernels[kernel]){throw"Unknown dithering kernel: "+kernel}var ds=kernels[kernel];var index=0,height=this.height,width=this.width,data=this.pixels;var direction=serpentine?-1:1;this.indexedPixels=new Uint8Array(this.pixels.length/3);for(var y=0;y<height;y++){if(serpentine)direction=direction*-1;for(var x=direction==1?0:width-1,xend=direction==1?width:0;x!==xend;x+=direction){index=y*width+x;var idx=index*3;var r1=data[idx];var g1=data[idx+1];var b1=data[idx+2];idx=this.findClosestRGB(r1,g1,b1);this.usedEntry[idx]=true;this.indexedPixels[index]=idx;idx*=3;var r2=this.colorTab[idx];var g2=this.colorTab[idx+1];var b2=this.colorTab[idx+2];var er=r1-r2;var eg=g1-g2;var eb=b1-b2;for(var i=direction==1?0:ds.length-1,end=direction==1?ds.length:0;i!==end;i+=direction){var x1=ds[i][1];var y1=ds[i][2];if(x1+x>=0&&x1+x<width&&y1+y>=0&&y1+y<height){var d=ds[i][0];idx=index+x1+y1*width;idx*=3;data[idx]=Math.max(0,Math.min(255,data[idx]+er*d));data[idx+1]=Math.max(0,Math.min(255,data[idx+1]+eg*d));data[idx+2]=Math.max(0,Math.min(255,data[idx+2]+eb*d))}}}}};GIFEncoder.prototype.findClosest=function(c,used){return this.findClosestRGB((c&16711680)>>16,(c&65280)>>8,c&255,used)};GIFEncoder.prototype.findClosestRGB=function(r,g,b,used){if(this.colorTab===null)return-1;if(this.neuQuant&&!used){return this.neuQuant.lookupRGB(r,g,b)}var c=b|g<<8|r<<16;var minpos=0;var dmin=256*256*256;var len=this.colorTab.length;for(var i=0,index=0;i<len;index++){var dr=r-(this.colorTab[i++]&255);var dg=g-(this.colorTab[i++]&255);var db=b-(this.colorTab[i++]&255);var d=dr*dr+dg*dg+db*db;if((!used||this.usedEntry[index])&&d<dmin){dmin=d;minpos=index}}return minpos};GIFEncoder.prototype.getImagePixels=function(){var w=this.width;var h=this.height;this.pixels=new Uint8Array(w*h*3);var data=this.image;var srcPos=0;var count=0;for(var i=0;i<h;i++){for(var j=0;j<w;j++){this.pixels[count++]=data[srcPos++];this.pixels[count++]=data[srcPos++];this.pixels[count++]=data[srcPos++];srcPos++}}};GIFEncoder.prototype.writeGraphicCtrlExt=function(){this.out.writeByte(33);this.out.writeByte(249);this.out.writeByte(4);var transp,disp;if(this.transparent===null){transp=0;disp=0}else{transp=1;disp=2}if(this.dispose>=0){disp=dispose&7}disp<<=2;this.out.writeByte(0|disp|0|transp);this.writeShort(this.delay);this.out.writeByte(this.transIndex);this.out.writeByte(0)};GIFEncoder.prototype.writeImageDesc=function(){this.out.writeByte(44);this.writeShort(0);this.writeShort(0);this.writeShort(this.width);this.writeShort(this.height);if(this.firstFrame||this.globalPalette){this.out.writeByte(0)}else{this.out.writeByte(128|0|0|0|this.palSize)}};GIFEncoder.prototype.writeLSD=function(){this.writeShort(this.width);this.writeShort(this.height);this.out.writeByte(128|112|0|this.palSize);this.out.writeByte(0);this.out.writeByte(0)};GIFEncoder.prototype.writeNetscapeExt=function(){this.out.writeByte(33);this.out.writeByte(255);this.out.writeByte(11);this.out.writeUTFBytes("NETSCAPE2.0");this.out.writeByte(3);this.out.writeByte(1);this.writeShort(this.repeat);this.out.writeByte(0)};GIFEncoder.prototype.writePalette=function(){this.out.writeBytes(this.colorTab);var n=3*256-this.colorTab.length;for(var i=0;i<n;i++)this.out.writeByte(0)};GIFEncoder.prototype.writeShort=function(pValue){this.out.writeByte(pValue&255);this.out.writeByte(pValue>>8&255)};GIFEncoder.prototype.writePixels=function(){var enc=new LZWEncoder(this.width,this.height,this.indexedPixels,this.colorDepth);enc.encode(this.out)};GIFEncoder.prototype.stream=function(){return this.out};module.exports=GIFEncoder},{"./LZWEncoder.js":2,"./TypedNeuQuant.js":3}],2:[function(require,module,exports){var EOF=-1;var BITS=12;var HSIZE=5003;var masks=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535];function LZWEncoder(width,height,pixels,colorDepth){var initCodeSize=Math.max(2,colorDepth);var accum=new Uint8Array(256);var htab=new Int32Array(HSIZE);var codetab=new Int32Array(HSIZE);var cur_accum,cur_bits=0;var a_count;var free_ent=0;var maxcode;var clear_flg=false;var g_init_bits,ClearCode,EOFCode;function char_out(c,outs){accum[a_count++]=c;if(a_count>=254)flush_char(outs)}function cl_block(outs){cl_hash(HSIZE);free_ent=ClearCode+2;clear_flg=true;output(ClearCode,outs)}function cl_hash(hsize){for(var i=0;i<hsize;++i)htab[i]=-1}function compress(init_bits,outs){var fcode,c,i,ent,disp,hsize_reg,hshift;g_init_bits=init_bits;clear_flg=false;n_bits=g_init_bits;maxcode=MAXCODE(n_bits);ClearCode=1<<init_bits-1;EOFCode=ClearCode+1;free_ent=ClearCode+2;a_count=0;ent=nextPixel();hshift=0;for(fcode=HSIZE;fcode<65536;fcode*=2)++hshift;hshift=8-hshift;hsize_reg=HSIZE;cl_hash(hsize_reg);output(ClearCode,outs);outer_loop:while((c=nextPixel())!=EOF){fcode=(c<<BITS)+ent;i=c<<hshift^ent;if(htab[i]===fcode){ent=codetab[i];continue}else if(htab[i]>=0){disp=hsize_reg-i;if(i===0)disp=1;do{if((i-=disp)<0)i+=hsize_reg;if(htab[i]===fcode){ent=codetab[i];continue outer_loop}}while(htab[i]>=0)}output(ent,outs);ent=c;if(free_ent<1<<BITS){codetab[i]=free_ent++;htab[i]=fcode}else{cl_block(outs)}}output(ent,outs);output(EOFCode,outs)}function encode(outs){outs.writeByte(initCodeSize);remaining=width*height;curPixel=0;compress(initCodeSize+1,outs);outs.writeByte(0)}function flush_char(outs){if(a_count>0){outs.writeByte(a_count);outs.writeBytes(accum,0,a_count);a_count=0}}function MAXCODE(n_bits){return(1<<n_bits)-1}function nextPixel(){if(remaining===0)return EOF;--remaining;var pix=pixels[curPixel++];return pix&255}function output(code,outs){cur_accum&=masks[cur_bits];if(cur_bits>0)cur_accum|=code<<cur_bits;else cur_accum=code;cur_bits+=n_bits;while(cur_bits>=8){char_out(cur_accum&255,outs);cur_accum>>=8;cur_bits-=8}if(free_ent>maxcode||clear_flg){if(clear_flg){maxcode=MAXCODE(n_bits=g_init_bits);clear_flg=false}else{++n_bits;if(n_bits==BITS)maxcode=1<<BITS;else maxcode=MAXCODE(n_bits)}}if(code==EOFCode){while(cur_bits>0){char_out(cur_accum&255,outs);cur_accum>>=8;cur_bits-=8}flush_char(outs)}}this.encode=encode}module.exports=LZWEncoder},{}],3:[function(require,module,exports){var ncycles=100;var netsize=256;var maxnetpos=netsize-1;var netbiasshift=4;var intbiasshift=16;var intbias=1<<intbiasshift;var gammashift=10;var gamma=1<<gammashift;var betashift=10;var beta=intbias>>betashift;var betagamma=intbias<<gammashift-betashift;var initrad=netsize>>3;var radiusbiasshift=6;var radiusbias=1<<radiusbiasshift;var initradius=initrad*radiusbias;var radiusdec=30;var alphabiasshift=10;var initalpha=1<<alphabiasshift;var alphadec;var radbiasshift=8;var radbias=1<<radbiasshift;var alpharadbshift=alphabiasshift+radbiasshift;var alpharadbias=1<<alpharadbshift;var prime1=499;var prime2=491;var prime3=487;var prime4=503;var minpicturebytes=3*prime4;function NeuQuant(pixels,samplefac){var network;var netindex;var bias;var freq;var radpower;function init(){network=[];netindex=new Int32Array(256);bias=new Int32Array(netsize);freq=new Int32Array(netsize);radpower=new Int32Array(netsize>>3);var i,v;for(i=0;i<netsize;i++){v=(i<<netbiasshift+8)/netsize;network[i]=new Float64Array([v,v,v,0]);freq[i]=intbias/netsize;bias[i]=0}}function unbiasnet(){for(var i=0;i<netsize;i++){network[i][0]>>=netbiasshift;network[i][1]>>=netbiasshift;network[i][2]>>=netbiasshift;network[i][3]=i}}function altersingle(alpha,i,b,g,r){network[i][0]-=alpha*(network[i][0]-b)/initalpha;network[i][1]-=alpha*(network[i][1]-g)/initalpha;network[i][2]-=alpha*(network[i][2]-r)/initalpha}function alterneigh(radius,i,b,g,r){var lo=Math.abs(i-radius);var hi=Math.min(i+radius,netsize);var j=i+1;var k=i-1;var m=1;var p,a;while(j<hi||k>lo){a=radpower[m++];if(j<hi){p=network[j++];p[0]-=a*(p[0]-b)/alpharadbias;p[1]-=a*(p[1]-g)/alpharadbias;p[2]-=a*(p[2]-r)/alpharadbias}if(k>lo){p=network[k--];p[0]-=a*(p[0]-b)/alpharadbias;p[1]-=a*(p[1]-g)/alpharadbias;p[2]-=a*(p[2]-r)/alpharadbias}}}function contest(b,g,r){var bestd=~(1<<31);var bestbiasd=bestd;var bestpos=-1;var bestbiaspos=bestpos;var i,n,dist,biasdist,betafreq;for(i=0;i<netsize;i++){n=network[i];dist=Math.abs(n[0]-b)+Math.abs(n[1]-g)+Math.abs(n[2]-r);if(dist<bestd){bestd=dist;bestpos=i}biasdist=dist-(bias[i]>>intbiasshift-netbiasshift);if(biasdist<bestbiasd){bestbiasd=biasdist;bestbiaspos=i}betafreq=freq[i]>>betashift;freq[i]-=betafreq;bias[i]+=betafreq<<gammashift}freq[bestpos]+=beta;bias[bestpos]-=betagamma;return bestbiaspos}function inxbuild(){var i,j,p,q,smallpos,smallval,previouscol=0,startpos=0;for(i=0;i<netsize;i++){p=network[i];smallpos=i;smallval=p[1];for(j=i+1;j<netsize;j++){q=network[j];if(q[1]<smallval){smallpos=j;smallval=q[1]}}q=network[smallpos];if(i!=smallpos){j=q[0];q[0]=p[0];p[0]=j;j=q[1];q[1]=p[1];p[1]=j;j=q[2];q[2]=p[2];p[2]=j;j=q[3];q[3]=p[3];p[3]=j}if(smallval!=previouscol){netindex[previouscol]=startpos+i>>1;for(j=previouscol+1;j<smallval;j++)netindex[j]=i;previouscol=smallval;startpos=i}}netindex[previouscol]=startpos+maxnetpos>>1;for(j=previouscol+1;j<256;j++)netindex[j]=maxnetpos}function inxsearch(b,g,r){var a,p,dist;var bestd=1e3;var best=-1;var i=netindex[g];var j=i-1;while(i<netsize||j>=0){if(i<netsize){p=network[i];dist=p[1]-g;if(dist>=bestd)i=netsize;else{i++;if(dist<0)dist=-dist;a=p[0]-b;if(a<0)a=-a;dist+=a;if(dist<bestd){a=p[2]-r;if(a<0)a=-a;dist+=a;if(dist<bestd){bestd=dist;best=p[3]}}}}if(j>=0){p=network[j];dist=g-p[1];if(dist>=bestd)j=-1;else{j--;if(dist<0)dist=-dist;a=p[0]-b;if(a<0)a=-a;dist+=a;if(dist<bestd){a=p[2]-r;if(a<0)a=-a;dist+=a;if(dist<bestd){bestd=dist;best=p[3]}}}}}return best}function learn(){var i;var lengthcount=pixels.length;var alphadec=30+(samplefac-1)/3;var samplepixels=lengthcount/(3*samplefac);var delta=~~(samplepixels/ncycles);var alpha=initalpha;var radius=initradius;var rad=radius>>radiusbiasshift;if(rad<=1)rad=0;for(i=0;i<rad;i++)radpower[i]=alpha*((rad*rad-i*i)*radbias/(rad*rad));var step;if(lengthcount<minpicturebytes){samplefac=1;step=3}else if(lengthcount%prime1!==0){step=3*prime1}else if(lengthcount%prime2!==0){step=3*prime2}else if(lengthcount%prime3!==0){step=3*prime3}else{step=3*prime4}var b,g,r,j;var pix=0;i=0;while(i<samplepixels){b=(pixels[pix]&255)<<netbiasshift;g=(pixels[pix+1]&255)<<netbiasshift;r=(pixels[pix+2]&255)<<netbiasshift;j=contest(b,g,r);altersingle(alpha,j,b,g,r);if(rad!==0)alterneigh(rad,j,b,g,r);pix+=step;if(pix>=lengthcount)pix-=lengthcount;i++;if(delta===0)delta=1;if(i%delta===0){alpha-=alpha/alphadec;radius-=radius/radiusdec;rad=radius>>radiusbiasshift;if(rad<=1)rad=0;for(j=0;j<rad;j++)radpower[j]=alpha*((rad*rad-j*j)*radbias/(rad*rad))}}}function buildColormap(){init();learn();unbiasnet();inxbuild()}this.buildColormap=buildColormap;function getColormap(){var map=[];var index=[];for(var i=0;i<netsize;i++)index[network[i][3]]=i;var k=0;for(var l=0;l<netsize;l++){var j=index[l];map[k++]=network[j][0];map[k++]=network[j][1];map[k++]=network[j][2]}return map}this.getColormap=getColormap;this.lookupRGB=inxsearch}module.exports=NeuQuant},{}],4:[function(require,module,exports){var GIFEncoder,renderFrame;GIFEncoder=require("./GIFEncoder.js");renderFrame=function(frame){var encoder,page,stream,transfer;encoder=new GIFEncoder(frame.width,frame.height);if(frame.index===0){encoder.writeHeader()}else{encoder.firstFrame=false}encoder.setTransparent(frame.transparent);encoder.setRepeat(frame.repeat);encoder.setDelay(frame.delay);encoder.setQuality(frame.quality);encoder.setDither(frame.dither);encoder.setGlobalPalette(frame.globalPalette);encoder.addFrame(frame.data);if(frame.last){encoder.finish()}if(frame.globalPalette===true){frame.globalPalette=encoder.getGlobalPalette()}stream=encoder.stream();frame.data=stream.pages;frame.cursor=stream.cursor;frame.pageSize=stream.constructor.pageSize;if(frame.canTransfer){transfer=function(){var i,len,ref,results;ref=frame.data;results=[];for(i=0,len=ref.length;i<len;i++){page=ref[i];results.push(page.buffer)}return results}();return self.postMessage(frame,transfer)}else{return self.postMessage(frame)}};self.onmessage=function(event){return renderFrame(event.data)}},{"./GIFEncoder.js":1}]},{},[4]);
3
+ //# sourceMappingURL=gif.worker.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../components/components.ts"],"sourcesContent":["import type { App, Plugin } from 'vue';\r\n// import your Component\r\n\r\nconst components: Record<string, Plugin> = {\r\n // Add your Component\r\n};\r\n\r\nconst install = (app: App) => {\r\n for (const key of Object.keys(components)) {\r\n app.use(components[key]);\r\n }\r\n};\r\n\r\nconst Components = {\r\n ...components,\r\n install,\r\n};\r\n\r\nexport default Components;\r\n"],"names":[],"mappings":";;;;AAGA,QAAM,aAAqC,CAAA;AAI3C,QAAM,UAAU,CAAC,QAAa;AAC5B,eAAW,OAAO,OAAO,KAAK,UAAU,GAAG;AACrC,UAAA,IAAI,WAAW,IAAI;AAAA,IACzB;AAAA,EACF;AAEA,QAAM,aAAa;AAAA,IACjB,GAAG;AAAA,IACH;AAAA,EACF;;;"}
1
+ {"version":3,"file":"index.js","sources":["../components/components.ts"],"sourcesContent":["import type { App, Plugin } from 'vue';\n// import your Component\n\nconst components: Record<string, Plugin> = {\n // Add your Component\n};\n\nconst install = (app: App) => {\n for (const key of Object.keys(components)) {\n app.use(components[key]);\n }\n};\n\nconst Components = {\n ...components,\n install,\n};\n\nexport default Components;\n"],"names":[],"mappings":";;;;AAGA,QAAM,aAAqC,CAAA;AAI3C,QAAM,UAAU,CAAC,QAAa;AAC5B,eAAW,OAAO,OAAO,KAAK,UAAU,GAAG;AACrC,UAAA,IAAI,WAAW,IAAI;AAAA,IACzB;AAAA,EACF;AAEA,QAAM,aAAa;AAAA,IACjB,GAAG;AAAA,IACH;AAAA,EACF;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.min.js","sources":["../components/components.ts"],"sourcesContent":["import type { App, Plugin } from 'vue';\r\n// import your Component\r\n\r\nconst components: Record<string, Plugin> = {\r\n // Add your Component\r\n};\r\n\r\nconst install = (app: App) => {\r\n for (const key of Object.keys(components)) {\r\n app.use(components[key]);\r\n }\r\n};\r\n\r\nconst Components = {\r\n ...components,\r\n install,\r\n};\r\n\r\nexport default Components;\r\n"],"names":["components","install","app","key","Object","keys","use"],"mappings":";;;;AAGA,QAAMA,IAAqC,CAAA;SAUxB,EACdA,GAAAA,GACHC,SAReC,OACf;AAAA,eAAWC,KAAOC,OAAOC,KAAKL,CACxBE;AAAAA,QAAAI,IAAIN,EAAWG;;;"}
1
+ {"version":3,"file":"index.min.js","sources":["../components/components.ts"],"sourcesContent":["import type { App, Plugin } from 'vue';\n// import your Component\n\nconst components: Record<string, Plugin> = {\n // Add your Component\n};\n\nconst install = (app: App) => {\n for (const key of Object.keys(components)) {\n app.use(components[key]);\n }\n};\n\nconst Components = {\n ...components,\n install,\n};\n\nexport default Components;\n"],"names":["components","install","app","key","Object","keys","use"],"mappings":";;;;AAGA,QAAMA,IAAqC,CAAA;SAUxB,EACdA,GAAAA,GACHC,SAReC,OACf;AAAA,eAAWC,KAAOC,OAAOC,KAAKL,CACxBE;AAAAA,QAAAI,IAAIN,EAAWG;;;"}
@@ -1,120 +1,120 @@
1
- .reference-btn {
2
- padding: 12px 16px;
3
- color: #5f5f5f;
4
- border: none;
5
- border-radius: 4px;
6
- }
7
-
8
- .apps-box-popover {
9
- position: relative;
10
- max-height: 600px;
11
- padding: 10px;
12
- overflow-y: scroll;
13
- }
14
-
15
- .app-title {
16
- padding: 0 15px;
17
- font-weight: bold;
18
- font-size: 16px;
19
- }
20
-
21
- .ul-list {
22
- width: 435px !important;
23
- margin: 0;
24
- padding: 0;
25
- overflow: hidden;
26
- text-align: center;
27
- list-style: none;
28
-
29
- .li_item {
30
- position: relative;
31
- float: left;
32
- width: 85px;
33
- height: 90px;
34
- // margin-left: 16px;
35
- margin: 13px 0;
36
- text-align: center;
37
-
38
- .icon-logo {
39
- .svg-icon {
40
- width: 4em;
41
- height: 3.5em;
42
- }
43
- }
44
-
45
- &:hover {
46
- // transition: ease-out 0.2s;
47
- // transform: scale(1.1);
48
- background: rgba(0, 0, 0, 0.05);
49
- border-radius: 4px;
50
- cursor: pointer;
51
-
52
- .icon-gengduo {
53
- display: block;
54
- }
55
- }
56
-
57
- .wrap_icon {
58
- display: inline-block;
59
- width: 70px;
60
- margin-top: 6px;
61
-
62
- .wrap_ {
63
- .icon-logo {
64
- width: 70px;
65
- height: 50px;
66
- margin-bottom: 4px;
67
-
68
- img {
69
- width: 50px;
70
- max-width: 100%;
71
- height: 50px;
72
- max-height: 100%;
73
- border-radius: 50%;
74
- }
75
- }
76
-
77
- .shortcut-logo {
78
- line-height: 77px;
79
-
80
- img {
81
- width: 35px;
82
- height: 35px;
83
- }
84
- }
85
-
86
- .icon_title {
87
- width: 73px;
88
- height: 20px;
89
- overflow: hidden;
90
- white-space: nowrap;
91
- text-overflow: ellipsis;
92
- }
93
- }
94
-
95
- .quick-add {
96
- .icon-logo {
97
- width: 40px;
98
- height: 40px;
99
- margin: 5px auto 9px;
100
- text-align: center;
101
- background-color: rgba(0, 0, 0, 0.12);
102
- border-radius: 50%;
103
-
104
- i {
105
- color: rgba(0, 0, 0, 0.85);
106
- font-size: 14px;
107
- line-height: 40px;
108
- }
109
- }
110
- }
111
- }
112
-
113
- .icon-gengduo {
114
- position: absolute;
115
- top: 2px;
116
- right: 4px;
117
- display: none;
118
- }
119
- }
120
- }
1
+ .reference-btn {
2
+ padding: 12px 16px;
3
+ color: #5f5f5f;
4
+ border: none;
5
+ border-radius: 4px;
6
+ }
7
+
8
+ .apps-box-popover {
9
+ position: relative;
10
+ max-height: 600px;
11
+ padding: 10px;
12
+ overflow-y: scroll;
13
+ }
14
+
15
+ .app-title {
16
+ padding: 0 15px;
17
+ font-weight: bold;
18
+ font-size: 16px;
19
+ }
20
+
21
+ .ul-list {
22
+ width: 435px !important;
23
+ margin: 0;
24
+ padding: 0;
25
+ overflow: hidden;
26
+ text-align: center;
27
+ list-style: none;
28
+
29
+ .li_item {
30
+ position: relative;
31
+ float: left;
32
+ width: 85px;
33
+ height: 90px;
34
+ // margin-left: 16px;
35
+ margin: 13px 0;
36
+ text-align: center;
37
+
38
+ .icon-logo {
39
+ .svg-icon {
40
+ width: 4em;
41
+ height: 3.5em;
42
+ }
43
+ }
44
+
45
+ &:hover {
46
+ // transition: ease-out 0.2s;
47
+ // transform: scale(1.1);
48
+ background: rgba(0, 0, 0, 0.05);
49
+ border-radius: 4px;
50
+ cursor: pointer;
51
+
52
+ .icon-gengduo {
53
+ display: block;
54
+ }
55
+ }
56
+
57
+ .wrap_icon {
58
+ display: inline-block;
59
+ width: 70px;
60
+ margin-top: 6px;
61
+
62
+ .wrap_ {
63
+ .icon-logo {
64
+ width: 70px;
65
+ height: 50px;
66
+ margin-bottom: 4px;
67
+
68
+ img {
69
+ width: 50px;
70
+ max-width: 100%;
71
+ height: 50px;
72
+ max-height: 100%;
73
+ border-radius: 50%;
74
+ }
75
+ }
76
+
77
+ .shortcut-logo {
78
+ line-height: 77px;
79
+
80
+ img {
81
+ width: 35px;
82
+ height: 35px;
83
+ }
84
+ }
85
+
86
+ .icon_title {
87
+ width: 73px;
88
+ height: 20px;
89
+ overflow: hidden;
90
+ white-space: nowrap;
91
+ text-overflow: ellipsis;
92
+ }
93
+ }
94
+
95
+ .quick-add {
96
+ .icon-logo {
97
+ width: 40px;
98
+ height: 40px;
99
+ margin: 5px auto 9px;
100
+ text-align: center;
101
+ background-color: rgba(0, 0, 0, 0.12);
102
+ border-radius: 50%;
103
+
104
+ i {
105
+ color: rgba(0, 0, 0, 0.85);
106
+ font-size: 14px;
107
+ line-height: 40px;
108
+ }
109
+ }
110
+ }
111
+ }
112
+
113
+ .icon-gengduo {
114
+ position: absolute;
115
+ top: 2px;
116
+ right: 4px;
117
+ display: none;
118
+ }
119
+ }
120
+ }
@@ -115,7 +115,7 @@ const _sfc_main = defineComponent({
115
115
  }, {
116
116
  default: withCtx(() => [
117
117
  createElementVNode("span", _hoisted_3, [
118
- _cache[1] || (_cache[1] = createTextVNode(" \u66F4\u591A\u7B5B\u9009 ", -1)),
118
+ _cache[1] || (_cache[1] = createTextVNode(" \u66F4\u591A\u7B5B\u9009 ")),
119
119
  createVNode(unref(IconCaretDown))
120
120
  ])
121
121
  ]),
@@ -1,53 +1,53 @@
1
- // FilterGroup 内部样式
2
- .filter-view-container {
3
- display: flex;
4
- // gap: 10px;
5
- align-items: center;
6
- justify-content: space-between;
7
- width: 100%;
8
- margin-bottom: 10px;
9
- font-size: 14px;
10
-
11
- .more-btn {
12
- .right-prefix {
13
- display: flex;
14
- gap: 10px;
15
- align-items: center;
16
- }
17
-
18
- .filter-pannel {
19
- z-index: 1002;
20
- display: flex;
21
- gap: 10px;
22
- padding: 10px;
23
- background-color: white;
24
- border-radius: 6px;
25
- box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
26
- }
27
- }
28
-
29
- .filter-content {
30
- display: flex;
31
- flex: 1;
32
- align-items: center;
33
- justify-content: space-between;
34
-
35
- .left {
36
- display: flex;
37
- flex: 1;
38
- gap: 10px;
39
- width: 100px;
40
- overflow: hidden;
41
- background-color: #fff;
42
- }
43
-
44
- .right {
45
- display: flex;
46
- flex-wrap: nowrap;
47
- align-items: center;
48
- height: 100%;
49
- padding-left: 20px;
50
- background: white;
51
- }
52
- }
53
- }
1
+ // FilterGroup 内部样式
2
+ .filter-view-container {
3
+ display: flex;
4
+ // gap: 10px;
5
+ align-items: center;
6
+ justify-content: space-between;
7
+ width: 100%;
8
+ margin-bottom: 10px;
9
+ font-size: 14px;
10
+
11
+ .more-btn {
12
+ .right-prefix {
13
+ display: flex;
14
+ gap: 10px;
15
+ align-items: center;
16
+ }
17
+
18
+ .filter-pannel {
19
+ z-index: 1002;
20
+ display: flex;
21
+ gap: 10px;
22
+ padding: 10px;
23
+ background-color: white;
24
+ border-radius: 6px;
25
+ box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
26
+ }
27
+ }
28
+
29
+ .filter-content {
30
+ display: flex;
31
+ flex: 1;
32
+ align-items: center;
33
+ justify-content: space-between;
34
+
35
+ .left {
36
+ display: flex;
37
+ flex: 1;
38
+ gap: 10px;
39
+ width: 100px;
40
+ overflow: hidden;
41
+ background-color: #fff;
42
+ }
43
+
44
+ .right {
45
+ display: flex;
46
+ flex-wrap: nowrap;
47
+ align-items: center;
48
+ height: 100%;
49
+ padding-left: 20px;
50
+ background: white;
51
+ }
52
+ }
53
+ }