@vtx/components 3.1.8 → 3.1.11
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.
- package/CHANGELOG.md +1097 -0
- package/README.md +19 -19
- package/lib/_util/filterSpecialCharacters.js +6 -6
- package/lib/_util/filterSpecialCharacters.js.map +1 -1
- package/lib/_util/getComponentProps.js +1 -1
- package/lib/_util/getComponentProps.js.map +1 -1
- package/lib/_util/getUrlParam.js.map +1 -1
- package/lib/_util/isFunction.js.map +1 -1
- package/lib/_util/isObject.js.map +1 -1
- package/lib/_util/useColSize.js.map +1 -1
- package/lib/_util/useInterval.js.map +1 -1
- package/lib/_util/useSet.js +2 -2
- package/lib/_util/useSet.js.map +1 -1
- package/lib/config.js.map +1 -1
- package/lib/index.js +58 -42
- package/lib/index.js.map +1 -1
- package/lib/style/index.css +0 -0
- package/lib/style/index.less +2 -0
- package/lib/style/themes/compact.css +0 -0
- package/lib/style/themes/compact.less +1 -0
- package/lib/style/themes/dark.css +0 -0
- package/lib/style/themes/dark.less +7 -0
- package/lib/style/themes/default.css +0 -0
- package/lib/style/themes/default.less +5 -0
- package/lib/style/themes/index.css +0 -0
- package/lib/style/themes/index.less +1 -0
- package/lib/style/themes/variable.css +0 -0
- package/lib/style/themes/variable.less +5 -0
- package/lib/vtx-color-picker/index.js +2 -2
- package/lib/vtx-color-picker/index.js.map +1 -1
- package/lib/vtx-color-picker/style/css.js.map +1 -1
- package/lib/vtx-color-picker/style/index.js.map +1 -1
- package/lib/vtx-color-picker/style/index.less +12 -12
- package/lib/vtx-combogrid/Combogrid.js +4 -4
- package/lib/vtx-combogrid/Combogrid.js.map +1 -1
- package/lib/vtx-combogrid/index.js +2 -2
- package/lib/vtx-combogrid/index.js.map +1 -1
- package/lib/vtx-combogrid/style/css.js.map +1 -1
- package/lib/vtx-combogrid/style/index.js.map +1 -1
- package/lib/vtx-combogrid/style/index.less +29 -29
- package/lib/vtx-datagrid/Alert.js.map +1 -1
- package/lib/vtx-datagrid/ColumnSetting.js +1 -1
- package/lib/vtx-datagrid/ColumnSetting.js.map +1 -1
- package/lib/vtx-datagrid/ResizeableTitle.js.map +1 -1
- package/lib/vtx-datagrid/index.js +4 -4
- package/lib/vtx-datagrid/index.js.map +1 -1
- package/lib/vtx-datagrid/renderColumnButtons.js +1 -1
- package/lib/vtx-datagrid/renderColumnButtons.js.map +1 -1
- package/lib/vtx-datagrid/style/css.js.map +1 -1
- package/lib/vtx-datagrid/style/index.css +3 -3
- package/lib/vtx-datagrid/style/index.js.map +1 -1
- package/lib/vtx-datagrid/style/index.less +193 -198
- package/lib/vtx-date-picker/QdatePicker.js +2 -2
- package/lib/vtx-date-picker/QdatePicker.js.map +1 -1
- package/lib/vtx-date-picker/generatePicker.js +11 -11
- package/lib/vtx-date-picker/generatePicker.js.map +1 -1
- package/lib/vtx-date-picker/index.js.map +1 -1
- package/lib/vtx-date-picker/style/css.js.map +1 -1
- package/lib/vtx-date-picker/style/index.js.map +1 -1
- package/lib/vtx-date-picker/style/index.less +38 -38
- package/lib/vtx-editor/index.js +2 -2
- package/lib/vtx-editor/index.js.map +1 -1
- package/lib/vtx-editor/style/css.js.map +1 -1
- package/lib/vtx-editor/style/index.js.map +1 -1
- package/lib/vtx-editor/style/index.less +8 -8
- package/lib/vtx-ellipsis-text/index.js +3 -3
- package/lib/vtx-ellipsis-text/index.js.map +1 -1
- package/lib/vtx-ellipsis-text/style/css.js.map +1 -1
- package/lib/vtx-ellipsis-text/style/index.js.map +1 -1
- package/lib/vtx-ellipsis-text/style/index.less +13 -13
- package/lib/vtx-export/index.js +8 -8
- package/lib/vtx-export/index.js.map +1 -1
- package/lib/vtx-export/style/css.js.map +1 -1
- package/lib/vtx-export/style/index.js.map +1 -1
- package/lib/vtx-export/style/index.less +6 -6
- package/lib/vtx-form-layout/Card.js +1 -1
- package/lib/vtx-form-layout/Card.js.map +1 -1
- package/lib/vtx-form-layout/Divider.js.map +1 -1
- package/lib/vtx-form-layout/FormItem.js +2 -2
- package/lib/vtx-form-layout/FormItem.js.map +1 -1
- package/lib/vtx-form-layout/Pane.js.map +1 -1
- package/lib/vtx-form-layout/Row.js.map +1 -1
- package/lib/vtx-form-layout/context.js.map +1 -1
- package/lib/vtx-form-layout/demo/Modal.less +43 -43
- package/lib/vtx-form-layout/index.js.map +1 -1
- package/lib/vtx-form-layout/style/css.js.map +1 -1
- package/lib/vtx-form-layout/style/index.js.map +1 -1
- package/lib/vtx-form-layout/style/index.less +211 -211
- package/lib/vtx-image/Image.js +1 -1
- package/lib/vtx-image/Image.js.map +1 -1
- package/lib/vtx-image/Preview.js +3 -3
- package/lib/vtx-image/Preview.js.map +1 -1
- package/lib/vtx-image/PreviewGroup.js +2 -2
- package/lib/vtx-image/PreviewGroup.js.map +1 -1
- package/lib/vtx-image/index.js +1 -1
- package/lib/vtx-image/index.js.map +1 -1
- package/lib/vtx-image/style/css.js.map +1 -1
- package/lib/vtx-image/style/index.js.map +1 -1
- package/lib/vtx-image/style/index.less +63 -63
- package/lib/vtx-import/index.js +2 -2
- package/lib/vtx-import/index.js.map +1 -1
- package/lib/vtx-import/result.js +1 -1
- package/lib/vtx-import/result.js.map +1 -1
- package/lib/vtx-import/style/css.js.map +1 -1
- package/lib/vtx-import/style/index.js.map +1 -1
- package/lib/vtx-import/style/index.less +8 -8
- package/lib/vtx-import2/CheckResult.js +46 -0
- package/lib/vtx-import2/CheckResult.js.map +1 -0
- package/lib/vtx-import2/Content.js +110 -0
- package/lib/vtx-import2/Content.js.map +1 -0
- package/lib/vtx-import2/DownloadSvg.js +51 -0
- package/lib/vtx-import2/DownloadSvg.js.map +1 -0
- package/lib/vtx-import2/ImportResult.js +52 -0
- package/lib/vtx-import2/ImportResult.js.map +1 -0
- package/lib/vtx-import2/UploadSvg.js +51 -0
- package/lib/vtx-import2/UploadSvg.js.map +1 -0
- package/lib/vtx-import2/index.js +223 -0
- package/lib/vtx-import2/index.js.map +1 -0
- package/lib/vtx-import2/style/css.js +10 -0
- package/lib/vtx-import2/style/css.js.map +1 -0
- package/lib/vtx-import2/style/index.css +125 -0
- package/lib/vtx-import2/style/index.js +10 -0
- package/lib/vtx-import2/style/index.js.map +1 -0
- package/lib/vtx-import2/style/index.less +102 -0
- package/lib/vtx-input/TextArea.js +2 -2
- package/lib/vtx-input/TextArea.js.map +1 -1
- package/lib/vtx-input/index.js +4 -4
- package/lib/vtx-input/index.js.map +1 -1
- package/lib/vtx-input/style/css.js.map +1 -1
- package/lib/vtx-input/style/index.js.map +1 -1
- package/lib/vtx-input/style/index.less +24 -24
- package/lib/vtx-input/useLength.js.map +1 -1
- package/lib/vtx-modal/Title.js.map +1 -1
- package/lib/vtx-modal/index.js +5 -5
- package/lib/vtx-modal/index.js.map +1 -1
- package/lib/vtx-modal/style/css.js.map +1 -1
- package/lib/vtx-modal/style/index.js.map +1 -1
- package/lib/vtx-modal/style/index.less +95 -95
- package/lib/vtx-page-layout/Basic.js +2 -2
- package/lib/vtx-page-layout/Basic.js.map +1 -1
- package/lib/vtx-page-layout/Content.js +2 -2
- package/lib/vtx-page-layout/Content.js.map +1 -1
- package/lib/vtx-page-layout/Pane.js.map +1 -1
- package/lib/vtx-page-layout/TableLayout.js +13 -13
- package/lib/vtx-page-layout/TableLayout.js.map +1 -1
- package/lib/vtx-page-layout/TableWrap.js +2 -2
- package/lib/vtx-page-layout/TableWrap.js.map +1 -1
- package/lib/vtx-page-layout/container.js +12 -12
- package/lib/vtx-page-layout/container.js.map +1 -1
- package/lib/vtx-page-layout/index.js.map +1 -1
- package/lib/vtx-page-layout/style/css.js.map +1 -1
- package/lib/vtx-page-layout/style/index.js.map +1 -1
- package/lib/vtx-page-layout/style/index.less +138 -138
- package/lib/vtx-rps-frame/index.js +9 -6
- package/lib/vtx-rps-frame/index.js.map +1 -1
- package/lib/vtx-rps-frame/style/css.js.map +1 -1
- package/lib/vtx-rps-frame/style/index.js.map +1 -1
- package/lib/vtx-rps-frame/style/index.less +8 -8
- package/lib/vtx-scrollable-row/index.js +4 -4
- package/lib/vtx-scrollable-row/index.js.map +1 -1
- package/lib/vtx-scrollable-row/style/css.js.map +1 -1
- package/lib/vtx-scrollable-row/style/index.js.map +1 -1
- package/lib/vtx-scrollable-row/style/index.less +113 -113
- package/lib/vtx-search/VtxCol.js +2 -2
- package/lib/vtx-search/VtxCol.js.map +1 -1
- package/lib/vtx-search/VtxRow.js.map +1 -1
- package/lib/vtx-search/index.js +3 -3
- package/lib/vtx-search/index.js.map +1 -1
- package/lib/vtx-search/style/css.js.map +1 -1
- package/lib/vtx-search/style/index.js.map +1 -1
- package/lib/vtx-search/style/index.less +83 -83
- package/lib/vtx-search-map-input/index.js +13 -7
- package/lib/vtx-search-map-input/index.js.map +1 -1
- package/lib/vtx-search-map-input/style/css.js.map +1 -1
- package/lib/vtx-search-map-input/style/index.js.map +1 -1
- package/lib/vtx-select/index.js +4 -4
- package/lib/vtx-select/index.js.map +1 -1
- package/lib/vtx-select/style/css.js.map +1 -1
- package/lib/vtx-select/style/index.js.map +1 -1
- package/lib/vtx-select/style/index.less +68 -68
- package/lib/vtx-signature/index.js +1 -1
- package/lib/vtx-signature/index.js.map +1 -1
- package/lib/vtx-signature/style/css.js.map +1 -1
- package/lib/vtx-signature/style/index.js.map +1 -1
- package/lib/vtx-signature/style/index.less +33 -33
- package/lib/vtx-split-pane/Pane.js +3 -3
- package/lib/vtx-split-pane/Pane.js.map +1 -1
- package/lib/vtx-split-pane/Resizer.js +4 -4
- package/lib/vtx-split-pane/Resizer.js.map +1 -1
- package/lib/vtx-split-pane/SplitPane.js +5 -5
- package/lib/vtx-split-pane/SplitPane.js.map +1 -1
- package/lib/vtx-split-pane/index.js.map +1 -1
- package/lib/vtx-split-pane/style/css.js.map +1 -1
- package/lib/vtx-split-pane/style/index.js.map +1 -1
- package/lib/vtx-split-pane/style/index.less +76 -76
- package/lib/vtx-statistics-column/Back.js +1 -1
- package/lib/vtx-statistics-column/Back.js.map +1 -1
- package/lib/vtx-statistics-column/Item.js +3 -3
- package/lib/vtx-statistics-column/Item.js.map +1 -1
- package/lib/vtx-statistics-column/Total.js +3 -3
- package/lib/vtx-statistics-column/Total.js.map +1 -1
- package/lib/vtx-statistics-column/context.js.map +1 -1
- package/lib/vtx-statistics-column/index.js.map +1 -1
- package/lib/vtx-statistics-column/style/css.js.map +1 -1
- package/lib/vtx-statistics-column/style/index.js.map +1 -1
- package/lib/vtx-statistics-column/style/index.less +59 -59
- package/lib/vtx-time-picker/index.js +1 -1
- package/lib/vtx-time-picker/index.js.map +1 -1
- package/lib/vtx-time-picker/style/css.js.map +1 -1
- package/lib/vtx-time-picker/style/index.js.map +1 -1
- package/lib/vtx-upload/FilePreview.js +2 -2
- package/lib/vtx-upload/FilePreview.js.map +1 -1
- package/lib/vtx-upload/index.js +17 -6
- package/lib/vtx-upload/index.js.map +1 -1
- package/lib/vtx-upload/style/css.js.map +1 -1
- package/lib/vtx-upload/style/index.js.map +1 -1
- package/lib/vtx-upload/style/index.less +61 -61
- package/lib/vtx-ztree/index.js +10 -10
- package/lib/vtx-ztree/index.js.map +1 -1
- package/lib/vtx-ztree/style/css.js.map +1 -1
- package/lib/vtx-ztree/style/index.js.map +1 -1
- package/lib/vtx-ztree/style/index.less +45 -45
- package/lib/vtx-ztree-select/index.js +8 -8
- package/lib/vtx-ztree-select/index.js.map +1 -1
- package/lib/vtx-ztree-select/style/css.js.map +1 -1
- package/lib/vtx-ztree-select/style/index.js.map +1 -1
- package/lib/vtx-ztree-select/style/index.less +74 -74
- package/package.json +123 -123
package/README.md
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
# @vtx/components
|
|
2
|
-
|
|
3
|
-
> 公司 PC 端基础组件库
|
|
4
|
-
|
|
5
|
-
## 安装
|
|
6
|
-
|
|
7
|
-
```shell
|
|
8
|
-
$ yarn add @vtx/components -S
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
## 使用
|
|
12
|
-
|
|
13
|
-
```js
|
|
14
|
-
import { VtxDatePicker } from '@vtx/components';
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
## Doc
|
|
18
|
-
|
|
19
|
-
[在线示例文档](http://front-end.pages.cloudhw.cn:8000/react-components/)
|
|
1
|
+
# @vtx/components
|
|
2
|
+
|
|
3
|
+
> 公司 PC 端基础组件库
|
|
4
|
+
|
|
5
|
+
## 安装
|
|
6
|
+
|
|
7
|
+
```shell
|
|
8
|
+
$ yarn add @vtx/components -S
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## 使用
|
|
12
|
+
|
|
13
|
+
```js
|
|
14
|
+
import { VtxDatePicker } from '@vtx/components';
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Doc
|
|
18
|
+
|
|
19
|
+
[在线示例文档](http://front-end.pages.cloudhw.cn:8000/react-components/)
|
|
@@ -24,12 +24,12 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
24
24
|
function isNotEmpty(value) {
|
|
25
25
|
return Array.isArray(value) && value.length > 0;
|
|
26
26
|
}
|
|
27
|
-
/**
|
|
28
|
-
* 过滤特殊字符
|
|
29
|
-
* @param {String} value 值
|
|
30
|
-
* @param {Object} option
|
|
31
|
-
* @param {Array} [option.include] 新增
|
|
32
|
-
* @param {Array} [option.exclude] 排除
|
|
27
|
+
/**
|
|
28
|
+
* 过滤特殊字符
|
|
29
|
+
* @param {String} value 值
|
|
30
|
+
* @param {Object} option
|
|
31
|
+
* @param {Array} [option.include] 新增
|
|
32
|
+
* @param {Array} [option.exclude] 排除
|
|
33
33
|
*/
|
|
34
34
|
|
|
35
35
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"filterSpecialCharacters.js","names":["isNotEmpty","value","Array","isArray","length","filterSpecialCharacters","include","exclude","specialCharacter","from","Set","difference","replace","RegExp","join"],"sources":["_util/filterSpecialCharacters.js"],"sourcesContent":["import difference from 'lodash.difference';\r\n\r\nfunction isNotEmpty(value) {\r\n return Array.isArray(value) && value.length > 0;\r\n}\r\n\r\n/**\r\n * 过滤特殊字符\r\n * @param {String} value 值\r\n * @param {Object} option\r\n * @param {Array} [option.include] 新增\r\n * @param {Array} [option.exclude] 排除\r\n */\r\nexport default function filterSpecialCharacters(value, { include = [], exclude = [] } = {}) {\r\n // 特殊符号,- _ 排除\r\n let specialCharacter = [\r\n // 小括号\r\n '(',\r\n ')',\r\n '(',\r\n ')',\r\n // 中括号\r\n '\\\\[',\r\n '\\\\]',\r\n '[',\r\n ']',\r\n // 大括号\r\n '{',\r\n '}',\r\n '{',\r\n '}',\r\n // 方头括号\r\n '【',\r\n '】',\r\n // 尖括号\r\n '<',\r\n '>',\r\n // 书名号\r\n '《',\r\n '》',\r\n // 斜杠\r\n '/',\r\n // 反斜杠\r\n '\\\\\\\\',\r\n // 逗号\r\n ',',\r\n ',',\r\n // 句号\r\n '.',\r\n '。',\r\n // 冒号\r\n ':',\r\n ':',\r\n // 分号\r\n ';',\r\n ';',\r\n // 顿号\r\n '、',\r\n // 破折号\r\n '——',\r\n // 感叹号\r\n '!',\r\n '!',\r\n // 问号\r\n '?',\r\n '?',\r\n // 加减等于\r\n '+',\r\n '=',\r\n // 单引号\r\n \"'\",\r\n '‘',\r\n '’',\r\n // 双引号\r\n '\"',\r\n '“',\r\n '”',\r\n // 金钱\r\n '$',\r\n '¥',\r\n // 百分号\r\n '%',\r\n '%',\r\n // 其它\r\n '@',\r\n '#',\r\n '`',\r\n '~',\r\n '*',\r\n '^',\r\n '……',\r\n '|',\r\n '&',\r\n ];\r\n\r\n // 新增\r\n if (isNotEmpty(include)) {\r\n specialCharacter = Array.from(new Set([...specialCharacter, ...include]));\r\n }\r\n\r\n // 移除\r\n if (isNotEmpty(exclude)) {\r\n specialCharacter = difference(specialCharacter, exclude);\r\n }\r\n\r\n return value.replace(new RegExp(`[${specialCharacter.join('')}]`, 'g'), '');\r\n}\r\n"],"mappings":";;;;;;;AAAA;;;;;;;;;;;;;;;;AAEA,SAASA,UAAT,CAAoBC,KAApB,EAA2B;EACvB,OAAOC,KAAK,CAACC,OAAN,CAAcF,KAAd,KAAwBA,KAAK,CAACG,MAAN,GAAe,CAA9C;AACH;AAED;AACA;AACA;AACA;AACA;AACA;AACA;;;AACe,SAASC,uBAAT,CAAiCJ,KAAjC,EAA6E;EAAA,+EAAJ,EAAI;EAAA,wBAAnCK,OAAmC;EAAA,IAAnCA,OAAmC,6BAAzB,EAAyB;EAAA,wBAArBC,OAAqB;EAAA,IAArBA,OAAqB,6BAAX,EAAW;;EACxF;EACA,IAAIC,gBAAgB,GAAG,CACnB;EACA,GAFmB,EAGnB,GAHmB,EAInB,GAJmB,EAKnB,GALmB,EAMnB;EACA,KAPmB,EAQnB,KARmB,EASnB,GATmB,EAUnB,GAVmB,EAWnB;EACA,GAZmB,EAanB,GAbmB,EAcnB,GAdmB,EAenB,GAfmB,EAgBnB;EACA,GAjBmB,EAkBnB,GAlBmB,EAmBnB;EACA,GApBmB,EAqBnB,GArBmB,EAsBnB;EACA,GAvBmB,EAwBnB,GAxBmB,EAyBnB;EACA,GA1BmB,EA2BnB;EACA,MA5BmB,EA6BnB;EACA,GA9BmB,EA+BnB,GA/BmB,EAgCnB;EACA,GAjCmB,EAkCnB,GAlCmB,EAmCnB;EACA,GApCmB,EAqCnB,GArCmB,EAsCnB;EACA,GAvCmB,EAwCnB,GAxCmB,EAyCnB;EACA,GA1CmB,EA2CnB;EACA,IA5CmB,EA6CnB;EACA,GA9CmB,EA+CnB,GA/CmB,EAgDnB;EACA,GAjDmB,EAkDnB,GAlDmB,EAmDnB;EACA,GApDmB,EAqDnB,GArDmB,EAsDnB;EACA,GAvDmB,EAwDnB,GAxDmB,EAyDnB,GAzDmB,EA0DnB;EACA,GA3DmB,EA4DnB,GA5DmB,EA6DnB,GA7DmB,EA8DnB;EACA,GA/DmB,EAgEnB,GAhEmB,EAiEnB;EACA,GAlEmB,EAmEnB,GAnEmB,EAoEnB;EACA,GArEmB,EAsEnB,GAtEmB,EAuEnB,GAvEmB,EAwEnB,GAxEmB,EAyEnB,GAzEmB,EA0EnB,GA1EmB,EA2EnB,IA3EmB,EA4EnB,GA5EmB,EA6EnB,GA7EmB,CAAvB,CAFwF,CAkFxF;;EACA,IAAIR,UAAU,CAACM,OAAD,CAAd,EAAyB;IACrBE,gBAAgB,GAAGN,KAAK,CAACO,IAAN,CAAW,IAAIC,GAAJ,8BAAYF,gBAAZ,sBAAiCF,OAAjC,GAAX,CAAnB;EACH,CArFuF,CAuFxF;;;EACA,IAAIN,UAAU,CAACO,OAAD,CAAd,EAAyB;IACrBC,gBAAgB,GAAG,IAAAG,kBAAA,EAAWH,gBAAX,EAA6BD,OAA7B,CAAnB;EACH;;EAED,OAAON,KAAK,CAACW,OAAN,CAAc,IAAIC,MAAJ,YAAeL,gBAAgB,CAACM,IAAjB,CAAsB,EAAtB,CAAf,QAA6C,GAA7C,CAAd,EAAiE,EAAjE,CAAP;AACH"}
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = getComponentProps;
|
|
7
7
|
|
|
8
|
-
function _typeof(obj) { "@babel/helpers - typeof";
|
|
8
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
9
9
|
|
|
10
10
|
function getComponentProps(prop) {
|
|
11
11
|
if (prop && _typeof(prop) === 'object') {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"getComponentProps.js","names":["getComponentProps","prop"],"sources":["_util/getComponentProps.js"],"sourcesContent":["export default function getComponentProps(prop) {\r\n if (prop && typeof prop === 'object') {\r\n return prop;\r\n }\r\n return {};\r\n}\r\n"],"mappings":";;;;;;;;;AAAe,SAASA,iBAAT,CAA2BC,IAA3B,EAAiC;EAC5C,IAAIA,IAAI,IAAI,QAAOA,IAAP,MAAgB,QAA5B,EAAsC;IAClC,OAAOA,IAAP;EACH;;EACD,OAAO,EAAP;AACH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"getUrlParam.js","names":["getUrlParam","key","href","window","location","params","qs","parse","split"],"sources":["_util/getUrlParam.js"],"sourcesContent":["import qs from 'querystring';\r\n\r\nconst getUrlParam = (key, href = window.location.href) => {\r\n const params = qs.parse(href.split('?')[1]);\r\n return key ? params[key] : params;\r\n};\r\n\r\nexport default getUrlParam;\r\n"],"mappings":";;;;;;;AAAA;;;;AAEA,IAAMA,WAAW,GAAG,SAAdA,WAAc,CAACC,GAAD,EAAsC;EAAA,IAAhCC,IAAgC,uEAAzBC,MAAM,CAACC,QAAP,CAAgBF,IAAS;;EACtD,IAAMG,MAAM,GAAGC,uBAAA,CAAGC,KAAH,CAASL,IAAI,CAACM,KAAL,CAAW,GAAX,EAAgB,CAAhB,CAAT,CAAf;;EACA,OAAOP,GAAG,GAAGI,MAAM,CAACJ,GAAD,CAAT,GAAiBI,MAA3B;AACH,CAHD;;eAKeL,W"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"isFunction.js","names":["isFunction","fn","Object","prototype","toString","call"],"sources":["_util/isFunction.js"],"sourcesContent":["export default function isFunction(fn) {\r\n return Object.prototype.toString.call(fn) === '[object Function]';\r\n}\r\n"],"mappings":";;;;;;;AAAe,SAASA,UAAT,CAAoBC,EAApB,EAAwB;EACnC,OAAOC,MAAM,CAACC,SAAP,CAAiBC,QAAjB,CAA0BC,IAA1B,CAA+BJ,EAA/B,MAAuC,mBAA9C;AACH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"isObject.js","names":["isObject","x","Object","prototype","toString","call"],"sources":["_util/isObject.js"],"sourcesContent":["export default function isObject(x) {\r\n return Object.prototype.toString.call(x) === '[object Object]';\r\n}\r\n"],"mappings":";;;;;;;AAAe,SAASA,QAAT,CAAkBC,CAAlB,EAAqB;EAChC,OAAOC,MAAM,CAACC,SAAP,CAAiBC,QAAjB,CAA0BC,IAA1B,CAA+BJ,CAA/B,MAAsC,iBAA7C;AACH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"useColSize.js","names":["COL_SIZE","lg","md","sm","ref","dom","current","document","querySelector","useSize","width","size"],"sources":["_util/useColSize.js"],"sourcesContent":["import useSize from 'ahooks/lib/useSize';\r\n\r\nconst COL_SIZE = {\r\n lg: 'lg',\r\n md: 'md',\r\n sm: 'sm',\r\n};\r\n\r\nexport default ref => {\r\n const dom = ref?.current || document.querySelector('body');\r\n const { width } = useSize(dom) || {};\r\n let size = COL_SIZE.lg;\r\n if (width >= 1370) {\r\n size = COL_SIZE.lg;\r\n } else if (width >= 992) {\r\n size = COL_SIZE.md;\r\n } else {\r\n size = COL_SIZE.sm;\r\n }\r\n return size;\r\n};\r\n"],"mappings":";;;;;;;AAAA;;;;AAEA,IAAMA,QAAQ,GAAG;EACbC,EAAE,EAAE,IADS;EAEbC,EAAE,EAAE,IAFS;EAGbC,EAAE,EAAE;AAHS,CAAjB;;eAMe,kBAAAC,GAAG,EAAI;EAClB,IAAMC,GAAG,GAAG,CAAAD,GAAG,SAAH,IAAAA,GAAG,WAAH,YAAAA,GAAG,CAAEE,OAAL,KAAgBC,QAAQ,CAACC,aAAT,CAAuB,MAAvB,CAA5B;;EACA,WAAkB,IAAAC,mBAAA,EAAQJ,GAAR,KAAgB,EAAlC;EAAA,IAAQK,KAAR,QAAQA,KAAR;;EACA,IAAIC,IAAI,GAAGX,QAAQ,CAACC,EAApB;;EACA,IAAIS,KAAK,IAAI,IAAb,EAAmB;IACfC,IAAI,GAAGX,QAAQ,CAACC,EAAhB;EACH,CAFD,MAEO,IAAIS,KAAK,IAAI,GAAb,EAAkB;IACrBC,IAAI,GAAGX,QAAQ,CAACE,EAAhB;EACH,CAFM,MAEA;IACHS,IAAI,GAAGX,QAAQ,CAACG,EAAhB;EACH;;EACD,OAAOQ,IAAP;AACH,C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"useInterval.js","names":["useInterval","callback","delay","useEffect","id","setInterval","clearInterval","undefined"],"sources":["_util/useInterval.js"],"sourcesContent":["import { useEffect } from 'react';\r\n\r\nexport default function useInterval(callback, delay) {\r\n useEffect(() => {\r\n if (delay !== null) {\r\n let id = setInterval(callback, delay);\r\n return () => clearInterval(id);\r\n }\r\n return undefined;\r\n }, [callback, delay]);\r\n}\r\n"],"mappings":";;;;;;;AAAA;;AAEe,SAASA,WAAT,CAAqBC,QAArB,EAA+BC,KAA/B,EAAsC;EACjD,IAAAC,gBAAA,EAAU,YAAM;IACZ,IAAID,KAAK,KAAK,IAAd,EAAoB;MAChB,IAAIE,EAAE,GAAGC,WAAW,CAACJ,QAAD,EAAWC,KAAX,CAApB;MACA,OAAO;QAAA,OAAMI,aAAa,CAACF,EAAD,CAAnB;MAAA,CAAP;IACH;;IACD,OAAOG,SAAP;EACH,CAND,EAMG,CAACN,QAAD,EAAWC,KAAX,CANH;AAOH"}
|
package/lib/_util/useSet.js
CHANGED
|
@@ -7,9 +7,9 @@ exports["default"] = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _react = require("react");
|
|
9
9
|
|
|
10
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
10
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
11
11
|
|
|
12
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
12
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
13
13
|
|
|
14
14
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
15
15
|
|
package/lib/_util/useSet.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"useSet.js","names":["useSet","initState","useReducer","state","newState","action","payload","result","setState"],"sources":["_util/useSet.js"],"sourcesContent":["import { useReducer } from 'react';\r\n\r\n// 类似于class component的setState\r\nconst useSet = initState => {\r\n const [state, setState] = useReducer((state, newState) => {\r\n let action = newState;\r\n if (typeof newState === 'function') {\r\n action = action(state);\r\n }\r\n if (newState.action && newState.payload) {\r\n action = newState.payload;\r\n if (typeof action === 'function') {\r\n action = action(state);\r\n }\r\n }\r\n const result = { ...state, ...action };\r\n return result;\r\n }, initState);\r\n return [\r\n state,\r\n state => {\r\n setState(state);\r\n },\r\n ];\r\n};\r\n\r\nexport default useSet;\r\n"],"mappings":";;;;;;;AAAA;;;;;;;;;;;;;;;;;;;;AAEA;AACA,IAAMA,MAAM,GAAG,SAATA,MAAS,CAAAC,SAAS,EAAI;EACxB,kBAA0B,IAAAC,iBAAA,EAAW,UAACC,KAAD,EAAQC,QAAR,EAAqB;IACtD,IAAIC,MAAM,GAAGD,QAAb;;IACA,IAAI,OAAOA,QAAP,KAAoB,UAAxB,EAAoC;MAChCC,MAAM,GAAGA,MAAM,CAACF,KAAD,CAAf;IACH;;IACD,IAAIC,QAAQ,CAACC,MAAT,IAAmBD,QAAQ,CAACE,OAAhC,EAAyC;MACrCD,MAAM,GAAGD,QAAQ,CAACE,OAAlB;;MACA,IAAI,OAAOD,MAAP,KAAkB,UAAtB,EAAkC;QAC9BA,MAAM,GAAGA,MAAM,CAACF,KAAD,CAAf;MACH;IACJ;;IACD,IAAMI,MAAM,mCAAQJ,KAAR,GAAkBE,MAAlB,CAAZ;;IACA,OAAOE,MAAP;EACH,CAbyB,EAavBN,SAbuB,CAA1B;EAAA;EAAA,IAAOE,KAAP;EAAA,IAAcK,QAAd;;EAcA,OAAO,CACHL,KADG,EAEH,UAAAA,KAAK,EAAI;IACLK,QAAQ,CAACL,KAAD,CAAR;EACH,CAJE,CAAP;AAMH,CArBD;;eAuBeH,M"}
|
package/lib/config.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"config.js","names":["globalCfg","window","VtxPublicServiceAddress","ztreeServer"],"sources":["config.js"],"sourcesContent":["const globalCfg = window.VtxPublicServiceAddress || {};\r\n\r\nexport default {\r\n // ztree文件地址\r\n ztreeServer: globalCfg.ztreeServer ? globalCfg.ztreeServer : '//vortexplugin.cloudhw.cn/ztree',\r\n};\r\n"],"mappings":";;;;;;AAAA,IAAMA,SAAS,GAAGC,MAAM,CAACC,uBAAP,IAAkC,EAApD;eAEe;EACX;EACAC,WAAW,EAAEH,SAAS,CAACG,WAAV,GAAwBH,SAAS,CAACG,WAAlC,GAAgD;AAFlD,C"}
|
package/lib/index.js
CHANGED
|
@@ -3,70 +3,70 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
Object.defineProperty(exports, "
|
|
6
|
+
Object.defineProperty(exports, "VtxColorPicker", {
|
|
7
7
|
enumerable: true,
|
|
8
8
|
get: function get() {
|
|
9
|
-
return
|
|
9
|
+
return _vtxColorPicker["default"];
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
|
-
Object.defineProperty(exports, "
|
|
12
|
+
Object.defineProperty(exports, "VtxCombogrid", {
|
|
13
13
|
enumerable: true,
|
|
14
14
|
get: function get() {
|
|
15
|
-
return
|
|
15
|
+
return _vtxCombogrid["default"];
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
|
-
Object.defineProperty(exports, "
|
|
18
|
+
Object.defineProperty(exports, "VtxDatagrid", {
|
|
19
19
|
enumerable: true,
|
|
20
20
|
get: function get() {
|
|
21
|
-
return
|
|
21
|
+
return _vtxDatagrid["default"];
|
|
22
22
|
}
|
|
23
23
|
});
|
|
24
|
-
Object.defineProperty(exports, "
|
|
24
|
+
Object.defineProperty(exports, "VtxDatePicker", {
|
|
25
25
|
enumerable: true,
|
|
26
26
|
get: function get() {
|
|
27
|
-
return
|
|
27
|
+
return _vtxDatePicker["default"];
|
|
28
28
|
}
|
|
29
29
|
});
|
|
30
|
-
Object.defineProperty(exports, "
|
|
30
|
+
Object.defineProperty(exports, "VtxEditor", {
|
|
31
31
|
enumerable: true,
|
|
32
32
|
get: function get() {
|
|
33
|
-
return
|
|
33
|
+
return _vtxEditor["default"];
|
|
34
34
|
}
|
|
35
35
|
});
|
|
36
|
-
Object.defineProperty(exports, "
|
|
36
|
+
Object.defineProperty(exports, "VtxEllipsisText", {
|
|
37
37
|
enumerable: true,
|
|
38
38
|
get: function get() {
|
|
39
|
-
return
|
|
39
|
+
return _vtxEllipsisText["default"];
|
|
40
40
|
}
|
|
41
41
|
});
|
|
42
|
-
Object.defineProperty(exports, "
|
|
42
|
+
Object.defineProperty(exports, "VtxExport", {
|
|
43
43
|
enumerable: true,
|
|
44
44
|
get: function get() {
|
|
45
|
-
return
|
|
45
|
+
return _vtxExport["default"];
|
|
46
46
|
}
|
|
47
47
|
});
|
|
48
|
-
Object.defineProperty(exports, "
|
|
48
|
+
Object.defineProperty(exports, "VtxFormLayout", {
|
|
49
49
|
enumerable: true,
|
|
50
50
|
get: function get() {
|
|
51
|
-
return
|
|
51
|
+
return _vtxFormLayout["default"];
|
|
52
52
|
}
|
|
53
53
|
});
|
|
54
|
-
Object.defineProperty(exports, "
|
|
54
|
+
Object.defineProperty(exports, "VtxImage", {
|
|
55
55
|
enumerable: true,
|
|
56
56
|
get: function get() {
|
|
57
|
-
return
|
|
57
|
+
return _vtxImage["default"];
|
|
58
58
|
}
|
|
59
59
|
});
|
|
60
|
-
Object.defineProperty(exports, "
|
|
60
|
+
Object.defineProperty(exports, "VtxImport", {
|
|
61
61
|
enumerable: true,
|
|
62
62
|
get: function get() {
|
|
63
|
-
return
|
|
63
|
+
return _vtxImport["default"];
|
|
64
64
|
}
|
|
65
65
|
});
|
|
66
|
-
Object.defineProperty(exports, "
|
|
66
|
+
Object.defineProperty(exports, "VtxImport2", {
|
|
67
67
|
enumerable: true,
|
|
68
68
|
get: function get() {
|
|
69
|
-
return
|
|
69
|
+
return _vtxImport2["default"];
|
|
70
70
|
}
|
|
71
71
|
});
|
|
72
72
|
Object.defineProperty(exports, "VtxInput", {
|
|
@@ -75,64 +75,76 @@ Object.defineProperty(exports, "VtxInput", {
|
|
|
75
75
|
return _vtxInput["default"];
|
|
76
76
|
}
|
|
77
77
|
});
|
|
78
|
-
Object.defineProperty(exports, "
|
|
78
|
+
Object.defineProperty(exports, "VtxModal", {
|
|
79
79
|
enumerable: true,
|
|
80
80
|
get: function get() {
|
|
81
|
-
return
|
|
81
|
+
return _vtxModal["default"];
|
|
82
82
|
}
|
|
83
83
|
});
|
|
84
|
-
Object.defineProperty(exports, "
|
|
84
|
+
Object.defineProperty(exports, "VtxPageLayout", {
|
|
85
85
|
enumerable: true,
|
|
86
86
|
get: function get() {
|
|
87
|
-
return
|
|
87
|
+
return _vtxPageLayout["default"];
|
|
88
88
|
}
|
|
89
89
|
});
|
|
90
|
-
Object.defineProperty(exports, "
|
|
90
|
+
Object.defineProperty(exports, "VtxRpsFrame", {
|
|
91
91
|
enumerable: true,
|
|
92
92
|
get: function get() {
|
|
93
|
-
return
|
|
93
|
+
return _vtxRpsFrame["default"];
|
|
94
94
|
}
|
|
95
95
|
});
|
|
96
|
-
Object.defineProperty(exports, "
|
|
96
|
+
Object.defineProperty(exports, "VtxSearch", {
|
|
97
97
|
enumerable: true,
|
|
98
98
|
get: function get() {
|
|
99
|
-
return
|
|
99
|
+
return _vtxSearch["default"];
|
|
100
100
|
}
|
|
101
101
|
});
|
|
102
|
-
Object.defineProperty(exports, "
|
|
102
|
+
Object.defineProperty(exports, "VtxSearchMapInput", {
|
|
103
103
|
enumerable: true,
|
|
104
104
|
get: function get() {
|
|
105
|
-
return
|
|
105
|
+
return _vtxSearchMapInput["default"];
|
|
106
106
|
}
|
|
107
107
|
});
|
|
108
|
-
Object.defineProperty(exports, "
|
|
108
|
+
Object.defineProperty(exports, "VtxSelect", {
|
|
109
109
|
enumerable: true,
|
|
110
110
|
get: function get() {
|
|
111
|
-
return
|
|
111
|
+
return _vtxSelect["default"];
|
|
112
112
|
}
|
|
113
113
|
});
|
|
114
|
-
Object.defineProperty(exports, "
|
|
114
|
+
Object.defineProperty(exports, "VtxSplitPane", {
|
|
115
115
|
enumerable: true,
|
|
116
116
|
get: function get() {
|
|
117
|
-
return
|
|
117
|
+
return _vtxSplitPane["default"];
|
|
118
118
|
}
|
|
119
119
|
});
|
|
120
|
-
Object.defineProperty(exports, "
|
|
120
|
+
Object.defineProperty(exports, "VtxStatisticsColumn", {
|
|
121
121
|
enumerable: true,
|
|
122
122
|
get: function get() {
|
|
123
|
-
return
|
|
123
|
+
return _vtxStatisticsColumn["default"];
|
|
124
124
|
}
|
|
125
125
|
});
|
|
126
|
-
Object.defineProperty(exports, "
|
|
126
|
+
Object.defineProperty(exports, "VtxTimePicker", {
|
|
127
127
|
enumerable: true,
|
|
128
128
|
get: function get() {
|
|
129
|
-
return
|
|
129
|
+
return _vtxTimePicker["default"];
|
|
130
130
|
}
|
|
131
131
|
});
|
|
132
|
-
Object.defineProperty(exports, "
|
|
132
|
+
Object.defineProperty(exports, "VtxUpload", {
|
|
133
133
|
enumerable: true,
|
|
134
134
|
get: function get() {
|
|
135
|
-
return
|
|
135
|
+
return _vtxUpload["default"];
|
|
136
|
+
}
|
|
137
|
+
});
|
|
138
|
+
Object.defineProperty(exports, "VtxZtree", {
|
|
139
|
+
enumerable: true,
|
|
140
|
+
get: function get() {
|
|
141
|
+
return _vtxZtree["default"];
|
|
142
|
+
}
|
|
143
|
+
});
|
|
144
|
+
Object.defineProperty(exports, "VtxZtreeSelect", {
|
|
145
|
+
enumerable: true,
|
|
146
|
+
get: function get() {
|
|
147
|
+
return _vtxZtreeSelect["default"];
|
|
136
148
|
}
|
|
137
149
|
});
|
|
138
150
|
|
|
@@ -154,6 +166,8 @@ var _vtxExport = _interopRequireDefault(require("./vtx-export"));
|
|
|
154
166
|
|
|
155
167
|
var _vtxImport = _interopRequireDefault(require("./vtx-import"));
|
|
156
168
|
|
|
169
|
+
var _vtxImport2 = _interopRequireDefault(require("./vtx-import2"));
|
|
170
|
+
|
|
157
171
|
var _vtxSearchMapInput = _interopRequireDefault(require("./vtx-search-map-input"));
|
|
158
172
|
|
|
159
173
|
var _vtxSelect = _interopRequireDefault(require("./vtx-select"));
|
|
@@ -174,6 +188,8 @@ var _vtxImage = _interopRequireDefault(require("./vtx-image"));
|
|
|
174
188
|
|
|
175
189
|
var _vtxRpsFrame = _interopRequireDefault(require("./vtx-rps-frame"));
|
|
176
190
|
|
|
191
|
+
var _vtxStatisticsColumn = _interopRequireDefault(require("./vtx-statistics-column"));
|
|
192
|
+
|
|
177
193
|
var _vtxZtree = _interopRequireDefault(require("./vtx-ztree"));
|
|
178
194
|
|
|
179
195
|
var _vtxSplitPane = _interopRequireDefault(require("./vtx-split-pane"));
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["index.js"],"sourcesContent":["// layout\r\nexport { default as VtxFormLayout } from './vtx-form-layout';\r\nexport { default as VtxPageLayout } from './vtx-page-layout';\r\nexport { default as VtxSearch } from './vtx-search';\r\n\r\n// data entry\r\nexport { default as VtxColorPicker } from './vtx-color-picker';\r\nexport { default as VtxCombogrid } from './vtx-combogrid';\r\nexport { default as VtxDatePicker } from './vtx-date-picker';\r\nexport { default as VtxEditor } from './vtx-editor';\r\nexport { default as VtxExport } from './vtx-export';\r\nexport { default as VtxImport } from './vtx-import';\r\nexport { default as VtxImport2 } from './vtx-import2';\r\nexport { default as VtxSearchMapInput } from './vtx-search-map-input';\r\nexport { default as VtxSelect } from './vtx-select';\r\nexport { default as VtxInput } from './vtx-input';\r\nexport { default as VtxTimePicker } from './vtx-time-picker';\r\nexport { default as VtxUpload } from './vtx-upload';\r\nexport { default as VtxZtreeSelect } from './vtx-ztree-select';\r\n\r\n// data display\r\nexport { default as VtxDatagrid } from './vtx-datagrid';\r\nexport { default as VtxEllipsisText } from './vtx-ellipsis-text';\r\nexport { default as VtxImage } from './vtx-image';\r\nexport { default as VtxRpsFrame } from './vtx-rps-frame';\r\nexport { default as VtxStatisticsColumn } from './vtx-statistics-column';\r\nexport { default as VtxZtree } from './vtx-ztree';\r\nexport { default as VtxSplitPane } from './vtx-split-pane';\r\n\r\n// feedback\r\nexport { default as VtxModal } from './vtx-modal';\r\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA;;AACA;;AACA;;AAGA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AAGA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AAGA"}
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import './default.less';
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import './@{root-entry-name}.less';
|
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof";
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
4
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
@@ -25,7 +25,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
25
25
|
|
|
26
26
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
27
27
|
|
|
28
|
-
function _extends() { _extends = Object.assign
|
|
28
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
29
29
|
|
|
30
30
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
31
31
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"index.js","names":["VtxColorPicker","forwardRef","props","ref","value","onChange","className","style","disabled","rest","onPickerChange","e","color","classnames","propTypes","PropTypes","string","func","bool","object"],"sources":["vtx-color-picker/index.jsx"],"sourcesContent":["import React, { forwardRef } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport ColorPicker from 'rc-color-picker';\r\nimport Input from 'antd/lib/input';\r\nimport classnames from 'classnames';\r\n\r\nconst VtxColorPicker = forwardRef((props, ref) => {\r\n const { value, onChange, className, style, disabled, ...rest } = props;\r\n\r\n const onPickerChange = e => {\r\n onChange && onChange(e.color);\r\n };\r\n\r\n return (\r\n <Input\r\n ref={ref}\r\n value={value}\r\n placeholder=\"请选择\"\r\n readOnly\r\n disabled={disabled}\r\n className={classnames('vtx-color-picker', className)}\r\n style={style}\r\n addonAfter={\r\n disabled ? null : (\r\n <ColorPicker\r\n defaultColor=\"#fff\"\r\n {...rest}\r\n animation=\"slide-up\"\r\n color={value}\r\n onChange={onPickerChange}\r\n />\r\n )\r\n }\r\n />\r\n );\r\n});\r\n\r\nVtxColorPicker.propTypes = {\r\n value: PropTypes.string,\r\n onChange: PropTypes.func,\r\n disabled: PropTypes.bool,\r\n className: PropTypes.string,\r\n style: PropTypes.object,\r\n};\r\n\r\nexport default VtxColorPicker;\r\n"],"mappings":";;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;;;;;;;AAEA,IAAMA,cAAc,gBAAG,IAAAC,iBAAA,EAAW,UAACC,KAAD,EAAQC,GAAR,EAAgB;EAC9C,IAAQC,KAAR,GAAiEF,KAAjE,CAAQE,KAAR;EAAA,IAAeC,QAAf,GAAiEH,KAAjE,CAAeG,QAAf;EAAA,IAAyBC,SAAzB,GAAiEJ,KAAjE,CAAyBI,SAAzB;EAAA,IAAoCC,KAApC,GAAiEL,KAAjE,CAAoCK,KAApC;EAAA,IAA2CC,QAA3C,GAAiEN,KAAjE,CAA2CM,QAA3C;EAAA,IAAwDC,IAAxD,4BAAiEP,KAAjE;;EAEA,IAAMQ,cAAc,GAAG,SAAjBA,cAAiB,CAAAC,CAAC,EAAI;IACxBN,QAAQ,IAAIA,QAAQ,CAACM,CAAC,CAACC,KAAH,CAApB;EACH,CAFD;;EAIA,oBACI,gCAAC,iBAAD;IACI,GAAG,EAAET,GADT;IAEI,KAAK,EAAEC,KAFX;IAGI,WAAW,EAAC,oBAHhB;IAII,QAAQ,MAJZ;IAKI,QAAQ,EAAEI,QALd;IAMI,SAAS,EAAE,IAAAK,sBAAA,EAAW,kBAAX,EAA+BP,SAA/B,CANf;IAOI,KAAK,EAAEC,KAPX;IAQI,UAAU,EACNC,QAAQ,GAAG,IAAH,gBACJ,gCAAC,yBAAD;MACI,YAAY,EAAC;IADjB,GAEQC,IAFR;MAGI,SAAS,EAAC,UAHd;MAII,KAAK,EAAEL,KAJX;MAKI,QAAQ,EAAEM;IALd;EAVZ,EADJ;AAsBH,CA7BsB,CAAvB;AA+BAV,cAAc,CAACc,SAAf,GAA2B;EACvBV,KAAK,EAAEW,qBAAA,CAAUC,MADM;EAEvBX,QAAQ,EAAEU,qBAAA,CAAUE,IAFG;EAGvBT,QAAQ,EAAEO,qBAAA,CAAUG,IAHG;EAIvBZ,SAAS,EAAES,qBAAA,CAAUC,MAJE;EAKvBT,KAAK,EAAEQ,qBAAA,CAAUI;AALM,CAA3B;eAQenB,c"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"css.js","names":[],"sources":["vtx-color-picker/style/index.js"],"sourcesContent":["import 'antd/lib/input/style';\r\nimport 'rc-color-picker/assets/index.css';\r\nimport './index.less';\r\n"],"mappings":";;AAAA;;AACA;;AACA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["vtx-color-picker/style/index.js"],"sourcesContent":["import 'antd/lib/input/style';\r\nimport 'rc-color-picker/assets/index.css';\r\nimport './index.less';\r\n"],"mappings":";;AAAA;;AACA;;AACA"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
.vtx-color-picker {
|
|
2
|
-
.ant-input-group-addon {
|
|
3
|
-
width: 37px;
|
|
4
|
-
}
|
|
5
|
-
.rc-color-picker-wrap {
|
|
6
|
-
position: absolute;
|
|
7
|
-
top: 50%;
|
|
8
|
-
left: 50%;
|
|
9
|
-
line-height: 0;
|
|
10
|
-
transform: translate(-50%, -50%);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
1
|
+
.vtx-color-picker {
|
|
2
|
+
.ant-input-group-addon {
|
|
3
|
+
width: 37px;
|
|
4
|
+
}
|
|
5
|
+
.rc-color-picker-wrap {
|
|
6
|
+
position: absolute;
|
|
7
|
+
top: 50%;
|
|
8
|
+
left: 50%;
|
|
9
|
+
line-height: 0;
|
|
10
|
+
transform: translate(-50%, -50%);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof";
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
4
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
@@ -31,11 +31,11 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
31
31
|
|
|
32
32
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
33
33
|
|
|
34
|
-
function _extends() { _extends = Object.assign
|
|
34
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
35
35
|
|
|
36
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
36
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
37
37
|
|
|
38
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
38
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
39
39
|
|
|
40
40
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
41
41
|
|