@jetlinks-web/components 2.0.2 → 2.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/AMap/Map.js +124 -0
- package/es/AMap/index.js +2 -0
- package/es/AMap/util.js +56 -0
- package/es/BadgeStatus/Badge.js +54 -0
- package/es/BadgeStatus/color.js +21 -0
- package/es/BadgeStatus/index.js +3 -0
- package/es/CardSelect/CardSelect.js +123 -0
- package/es/CardSelect/index.js +2 -0
- package/es/CheckButton/CheckButton.js +121 -0
- package/es/CheckButton/index.js +2 -0
- package/es/ConfigProvider/context.js +12 -0
- package/es/ConfigProvider/index.js +31 -0
- package/es/Echarts/Echarts.js +47 -0
- package/es/Echarts/index.js +2 -0
- package/es/Ellipsis/Ellipsis.js +189 -0
- package/es/Ellipsis/index.js +2 -0
- package/es/Empty/Empty.js +56 -0
- package/es/Empty/image.js +2 -0
- package/es/Empty/index.js +2 -0
- package/es/FullPage/FullPage.js +31 -0
- package/es/FullPage/index.js +2 -0
- package/es/Icon/icon.js +42 -0
- package/{src/Icon/index.ts → es/Icon/index.js} +2 -3
- package/es/MonacoEditor/Monaco.js +238 -0
- package/es/MonacoEditor/index.js +2 -0
- package/es/PermissionButton/index.js +117 -0
- package/es/ProLayout/Basic/BasicLayout.js +259 -0
- package/es/ProLayout/Basic/Header.js +97 -0
- package/es/ProLayout/PageContainer/index.js +324 -0
- package/es/ProLayout/PageContainer/typings.js +1 -0
- package/es/ProLayout/RouteContext.js +22 -0
- package/es/ProLayout/SiderMenu/BaseMenu.js +285 -0
- package/es/ProLayout/SiderMenu/SiderMenu.js +278 -0
- package/es/ProLayout/SiderMenu/index.js +2 -0
- package/es/ProLayout/SiderMenu/typings.js +1 -0
- package/es/ProLayout/TopHeader/index.js +163 -0
- package/es/ProLayout/defaultSettings.js +66 -0
- package/{src/ProLayout/index.ts → es/ProLayout/index.js} +4 -6
- package/{src → es}/ProLayout/style/default.less +4 -4
- package/es/ProLayout/style/index.js +1 -0
- package/es/ProLayout/typings.js +1 -0
- package/es/ProLayout/util.js +61 -0
- package/es/ProTable/index.js +411 -0
- package/es/ProTable/proTableTypes.js +11 -0
- package/es/ProTable/style/index.css +65 -0
- package/es/ProTable/style/index.js +1 -0
- package/es/Scrollbar/Bar.js +114 -0
- package/es/Scrollbar/Scrollbar.js +212 -0
- package/es/Scrollbar/Thumb.js +189 -0
- package/es/Scrollbar/constants.js +1 -0
- package/es/Scrollbar/index.js +2 -0
- package/es/Scrollbar/scrollbarProps.js +100 -0
- package/es/Scrollbar/thumbProps.js +10 -0
- package/es/Scrollbar/util.js +30 -0
- package/es/Search/Advanced/History.js +183 -0
- package/es/Search/Advanced/SaveHistory.js +153 -0
- package/es/Search/Advanced/index.js +520 -0
- package/es/Search/Item.js +497 -0
- package/es/Search/Search.js +249 -0
- package/es/Search/hooks/index.js +1 -0
- package/es/Search/hooks/useSearchItems.js +40 -0
- package/es/Search/index.js +4 -0
- package/es/Search/setting.js +91 -0
- package/es/Search/style/Item.less +33 -0
- package/es/Search/style/Search.less +179 -0
- package/es/Search/style/index.js +2 -0
- package/es/Search/typing.js +1 -0
- package/es/Search/util.js +234 -0
- package/es/ValueItem/ValueItem.js +233 -0
- package/es/ValueItem/index.js +2 -0
- package/es/ValueItem/util.js +16 -0
- package/es/index.js +24 -0
- package/es/style/index.js +3 -0
- package/es/style/variable.css +0 -0
- package/{src → es}/style/variable.less +0 -2
- package/es/style.js +3 -0
- package/lib/AMap/Map.js +124 -0
- package/lib/AMap/index.js +9 -0
- package/lib/AMap/util.js +62 -0
- package/lib/BadgeStatus/Badge.js +54 -0
- package/lib/BadgeStatus/color.js +27 -0
- package/lib/BadgeStatus/index.js +22 -0
- package/lib/CardSelect/CardSelect.js +123 -0
- package/lib/CardSelect/index.js +9 -0
- package/lib/CheckButton/CheckButton.js +121 -0
- package/lib/CheckButton/index.js +9 -0
- package/lib/ConfigProvider/context.js +19 -0
- package/lib/ConfigProvider/index.js +37 -0
- package/lib/Echarts/Echarts.js +47 -0
- package/lib/Echarts/index.js +9 -0
- package/lib/Ellipsis/Ellipsis.js +189 -0
- package/lib/Ellipsis/index.js +9 -0
- package/lib/Empty/Empty.js +56 -0
- package/lib/Empty/image.js +8 -0
- package/lib/Empty/index.js +9 -0
- package/lib/FullPage/FullPage.js +31 -0
- package/lib/FullPage/index.js +9 -0
- package/lib/Icon/icon.js +52 -0
- package/lib/Icon/index.js +9 -0
- package/lib/MonacoEditor/Monaco.js +238 -0
- package/lib/MonacoEditor/index.js +9 -0
- package/lib/PermissionButton/index.js +124 -0
- package/lib/ProLayout/Basic/BasicLayout.js +268 -0
- package/lib/ProLayout/Basic/BasicLayout.less +66 -0
- package/lib/ProLayout/Basic/Header.js +103 -0
- package/lib/ProLayout/Basic/Header.less +8 -0
- package/lib/ProLayout/PageContainer/index.js +327 -0
- package/lib/ProLayout/PageContainer/index.less +103 -0
- package/lib/ProLayout/PageContainer/typings.js +5 -0
- package/lib/ProLayout/RouteContext.js +28 -0
- package/lib/ProLayout/SiderMenu/BaseMenu.js +290 -0
- package/lib/ProLayout/SiderMenu/SiderMenu.js +287 -0
- package/lib/ProLayout/SiderMenu/index.js +20 -0
- package/lib/ProLayout/SiderMenu/index.less +212 -0
- package/lib/ProLayout/SiderMenu/typings.js +5 -0
- package/lib/ProLayout/TopHeader/index.js +168 -0
- package/lib/ProLayout/TopHeader/index.less +174 -0
- package/lib/ProLayout/defaultSettings.js +72 -0
- package/lib/ProLayout/index.js +16 -0
- package/lib/ProLayout/style/default.less +4 -0
- package/lib/ProLayout/style/index.js +3 -0
- package/lib/ProLayout/style/style.less +7 -0
- package/lib/ProLayout/typings.js +5 -0
- package/lib/ProLayout/util.js +72 -0
- package/lib/ProTable/index.js +417 -0
- package/lib/ProTable/proTableTypes.js +17 -0
- package/lib/ProTable/style/index.css +65 -0
- package/lib/ProTable/style/index.js +3 -0
- package/lib/ProTable/style/index.less +92 -0
- package/lib/Scrollbar/Bar.js +114 -0
- package/lib/Scrollbar/Scrollbar.js +212 -0
- package/lib/Scrollbar/Thumb.js +189 -0
- package/lib/Scrollbar/constants.js +7 -0
- package/lib/Scrollbar/index.js +9 -0
- package/{src/Scrollbar/scrollbar.ts → lib/Scrollbar/scrollbarProps.js} +106 -108
- package/lib/Scrollbar/thumbProps.js +16 -0
- package/lib/Scrollbar/util.js +37 -0
- package/lib/Search/Advanced/History.js +183 -0
- package/lib/Search/Advanced/SaveHistory.js +153 -0
- package/lib/Search/Advanced/index.js +520 -0
- package/lib/Search/Item.js +497 -0
- package/lib/Search/Search.js +249 -0
- package/lib/Search/hooks/index.js +16 -0
- package/lib/Search/hooks/useSearchItems.js +47 -0
- package/lib/Search/index.js +16 -0
- package/lib/Search/setting.js +97 -0
- package/lib/Search/style/Item.less +33 -0
- package/lib/Search/style/Search.less +179 -0
- package/lib/Search/style/index.js +4 -0
- package/lib/Search/typing.js +5 -0
- package/lib/Search/util.js +241 -0
- package/lib/ValueItem/ValueItem.js +233 -0
- package/lib/ValueItem/index.js +9 -0
- package/lib/ValueItem/util.js +22 -0
- package/lib/index.js +158 -0
- package/lib/style/components.less +1 -0
- package/lib/style/index.js +4 -0
- package/lib/style/variable.css +0 -0
- package/lib/style/variable.less +2 -0
- package/lib/style.js +5 -0
- package/package.json +122 -13
- package/index.ts +0 -64
- package/src/AMap/Map.vue +0 -110
- package/src/AMap/index.ts +0 -1
- package/src/AMap/util.ts +0 -56
- package/src/BadgeStatus/Badge.vue +0 -41
- package/src/BadgeStatus/color.ts +0 -25
- package/src/BadgeStatus/index.ts +0 -4
- package/src/CardSelect/CardSelect.vue +0 -136
- package/src/CardSelect/index.ts +0 -3
- package/src/CheckButton/CheckButton.vue +0 -146
- package/src/CheckButton/index.md +0 -27
- package/src/CheckButton/index.ts +0 -3
- package/src/ConfigProvider/context.ts +0 -17
- package/src/ConfigProvider/index.tsx +0 -42
- package/src/Echarts/Echarts.vue +0 -43
- package/src/Echarts/index.ts +0 -3
- package/src/Ellipsis/Ellipsis.vue +0 -182
- package/src/Ellipsis/index.ts +0 -3
- package/src/Empty/Empty.vue +0 -43
- package/src/Empty/image.ts +0 -3
- package/src/Empty/index.ts +0 -2
- package/src/FullPage/FullPage.vue +0 -30
- package/src/FullPage/index.ts +0 -3
- package/src/Icon/icon.tsx +0 -40
- package/src/MonacoEditor/Monaco.vue +0 -242
- package/src/MonacoEditor/index.md +0 -26
- package/src/MonacoEditor/index.ts +0 -2
- package/src/PermissionButton/index.tsx +0 -110
- package/src/ProLayout/Basic/BasicLayout.tsx +0 -392
- package/src/ProLayout/Basic/Header.tsx +0 -115
- package/src/ProLayout/PageContainer/index.tsx +0 -441
- package/src/ProLayout/PageContainer/typings.ts +0 -56
- package/src/ProLayout/RouteContext.ts +0 -87
- package/src/ProLayout/SiderMenu/BaseMenu.tsx +0 -296
- package/src/ProLayout/SiderMenu/SiderMenu.tsx +0 -320
- package/src/ProLayout/SiderMenu/index.ts +0 -2
- package/src/ProLayout/SiderMenu/typings.ts +0 -49
- package/src/ProLayout/TopHeader/index.tsx +0 -210
- package/src/ProLayout/defaultSettings.ts +0 -106
- package/src/ProLayout/style/index.ts +0 -1
- package/src/ProLayout/typings.ts +0 -87
- package/src/ProLayout/util.ts +0 -64
- package/src/ProTable/index.md +0 -53
- package/src/ProTable/index.tsx +0 -551
- package/src/ProTable/proTableTypes.ts +0 -70
- package/src/ProTable/style/index.ts +0 -1
- package/src/Scrollbar/Bar.vue +0 -75
- package/src/Scrollbar/Scrollbar.vue +0 -260
- package/src/Scrollbar/Thumb.vue +0 -163
- package/src/Scrollbar/constants.ts +0 -10
- package/src/Scrollbar/index.ts +0 -4
- package/src/Scrollbar/thumb.ts +0 -16
- package/src/Scrollbar/util.ts +0 -38
- package/src/Search/Advanced/History.vue +0 -140
- package/src/Search/Advanced/SaveHistory.vue +0 -108
- package/src/Search/Advanced/index.vue +0 -435
- package/src/Search/Item.vue +0 -525
- package/src/Search/Search.vue +0 -398
- package/src/Search/hooks/index.ts +0 -1
- package/src/Search/hooks/useSearchItems.ts +0 -68
- package/src/Search/index.md +0 -57
- package/src/Search/index.ts +0 -5
- package/src/Search/setting.ts +0 -55
- package/src/Search/typing.ts +0 -76
- package/src/Search/util.ts +0 -263
- package/src/ValueItem/ValueItem.vue +0 -192
- package/src/ValueItem/index.ts +0 -3
- package/src/ValueItem/util.ts +0 -16
- package/src/style/index.ts +0 -3
- /package/{src → es}/ProLayout/Basic/BasicLayout.less +0 -0
- /package/{src → es}/ProLayout/Basic/Header.less +0 -0
- /package/{src → es}/ProLayout/PageContainer/index.less +0 -0
- /package/{src → es}/ProLayout/SiderMenu/index.less +0 -0
- /package/{src → es}/ProLayout/TopHeader/index.less +0 -0
- /package/{src → es}/ProLayout/style/style.less +0 -0
- /package/{src → es}/ProTable/style/index.less +0 -0
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.termsParamsFormat = exports.hasExpand = exports.handleQData = exports.handleParamsToString = exports.handleLikeValue = exports.getTermTypes = exports.getTermTypeFn = exports.getTermOptions = exports.filterTreeSelectNode = exports.filterSelectNode = exports.compatibleOldTerms = void 0;
|
|
8
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
|
+
var _extends3 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
|
+
var _lodashEs = require("lodash");
|
|
11
|
+
var _setting = require("./setting");
|
|
12
|
+
require("./typing");
|
|
13
|
+
/**
|
|
14
|
+
* 处理like,nlike特殊值
|
|
15
|
+
* @param v
|
|
16
|
+
*/
|
|
17
|
+
var handleLikeValue = exports.handleLikeValue = function handleLikeValue(v) {
|
|
18
|
+
if ((0, _lodashEs.isString)(v)) {
|
|
19
|
+
return v.split('').reduce(function (pre, next) {
|
|
20
|
+
var _next = next;
|
|
21
|
+
if (next === '\\') {
|
|
22
|
+
_next = '\\\\';
|
|
23
|
+
} else if (next === '%') {
|
|
24
|
+
_next = '\\%';
|
|
25
|
+
}
|
|
26
|
+
return pre + _next;
|
|
27
|
+
}, '');
|
|
28
|
+
}
|
|
29
|
+
return v;
|
|
30
|
+
};
|
|
31
|
+
var handleItemValue = function handleItemValue(item, columnOptionMap) {
|
|
32
|
+
var _item = columnOptionMap.get(item.column);
|
|
33
|
+
if (!_item) return item;
|
|
34
|
+
if (_item.rename) {
|
|
35
|
+
item.column = _item.rename;
|
|
36
|
+
}
|
|
37
|
+
if (_item.handleValue && (0, _lodashEs.isFunction)(_item.handleValue)) {
|
|
38
|
+
item.value = _item.handleValue(item.value, item);
|
|
39
|
+
}
|
|
40
|
+
if (['like', 'nlike'].includes(item.termType) && !!item.value) {
|
|
41
|
+
item.value = "%".concat(handleLikeValue(item.value), "%");
|
|
42
|
+
}
|
|
43
|
+
return item;
|
|
44
|
+
};
|
|
45
|
+
var isEmpty = function isEmpty(v) {
|
|
46
|
+
return v === undefined || v === null || v === '' || (0, _lodashEs.isArray)(v) && v.length === 0;
|
|
47
|
+
};
|
|
48
|
+
var handleArrayToTerms = function handleArrayToTerms(terms, columnOptionMap) {
|
|
49
|
+
return terms.map(function (item) {
|
|
50
|
+
if (item.terms) {
|
|
51
|
+
var filterTerms = item.terms.filter(function (filterItem) {
|
|
52
|
+
return filterItem && !isEmpty(filterItem.value) && filterItem.termType !== undefined && filterItem.column !== undefined;
|
|
53
|
+
});
|
|
54
|
+
item.terms = filterTerms.map(function (result) {
|
|
55
|
+
return handleItemValue(result, columnOptionMap);
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
return item;
|
|
59
|
+
}).filter(function (item) {
|
|
60
|
+
var _item$terms;
|
|
61
|
+
return (_item$terms = item.terms) === null || _item$terms === void 0 ? void 0 : _item$terms.length;
|
|
62
|
+
});
|
|
63
|
+
};
|
|
64
|
+
/**
|
|
65
|
+
* 处理为外部使用
|
|
66
|
+
* @terms {Array} 表单数据
|
|
67
|
+
* @columnOptionMap {Map} column的Map对象
|
|
68
|
+
*/
|
|
69
|
+
var termsParamsFormat = exports.termsParamsFormat = function termsParamsFormat(terms, columnOptionMap) {
|
|
70
|
+
var type = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'adv';
|
|
71
|
+
var searchType = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 'terms';
|
|
72
|
+
// 过滤掉terms中value无效的item
|
|
73
|
+
var cloneParams = (0, _lodashEs.cloneDeep)(terms);
|
|
74
|
+
if (searchType === 'terms') {
|
|
75
|
+
return type === 'adv' ? {
|
|
76
|
+
terms: handleArrayToTerms(cloneParams.terms, columnOptionMap)
|
|
77
|
+
} : cloneParams.filter(function (item) {
|
|
78
|
+
return item && !isEmpty(item.value) && item.column !== undefined;
|
|
79
|
+
}).map(function (item) {
|
|
80
|
+
return handleItemValue(item, columnOptionMap);
|
|
81
|
+
});
|
|
82
|
+
} else if (searchType == 'object') {
|
|
83
|
+
var result = {};
|
|
84
|
+
cloneParams.filter(function (item) {
|
|
85
|
+
return item && item.value !== undefined && item.value !== '';
|
|
86
|
+
}).forEach(function (item) {
|
|
87
|
+
(0, _extends3.default)(result, (0, _defineProperty2.default)({}, item.column, item.value));
|
|
88
|
+
});
|
|
89
|
+
return result;
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
/**
|
|
93
|
+
* TreeSelect过滤
|
|
94
|
+
* @param value 过滤值
|
|
95
|
+
* @param treeNode
|
|
96
|
+
* @param key
|
|
97
|
+
*/
|
|
98
|
+
var filterTreeSelectNode = exports.filterTreeSelectNode = function filterTreeSelectNode(value, treeNode) {
|
|
99
|
+
var _treeNode$key;
|
|
100
|
+
var key = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'name';
|
|
101
|
+
return (_treeNode$key = treeNode[key]) === null || _treeNode$key === void 0 ? void 0 : _treeNode$key.includes(value);
|
|
102
|
+
};
|
|
103
|
+
/**
|
|
104
|
+
* Select过滤
|
|
105
|
+
* @param value 过滤值
|
|
106
|
+
* @param option
|
|
107
|
+
* @param key
|
|
108
|
+
*/
|
|
109
|
+
var filterSelectNode = exports.filterSelectNode = function filterSelectNode(value, option) {
|
|
110
|
+
var _option$key;
|
|
111
|
+
var key = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'label';
|
|
112
|
+
return (_option$key = option[key]) === null || _option$key === void 0 ? void 0 : _option$key.includes(value);
|
|
113
|
+
};
|
|
114
|
+
var handleQData = exports.handleQData = function handleQData(terms) {
|
|
115
|
+
// 排序, null 往后放
|
|
116
|
+
terms.terms.forEach(function (a) {
|
|
117
|
+
for (var i = 0; i < a.terms.length; i++) {
|
|
118
|
+
for (var j = 0; j < a.terms.length - i - 1; j++) {
|
|
119
|
+
if (!a.terms[j] && a.terms[j + 1]) {
|
|
120
|
+
var temp = a.terms[j];
|
|
121
|
+
a.terms[j] = a.terms[j + 1];
|
|
122
|
+
a.terms[j + 1] = temp;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
});
|
|
127
|
+
return terms;
|
|
128
|
+
};
|
|
129
|
+
var hasExpand = exports.hasExpand = function hasExpand(terms) {
|
|
130
|
+
var itemCount = 0;
|
|
131
|
+
terms.forEach(function (a) {
|
|
132
|
+
a.terms.forEach(function (b) {
|
|
133
|
+
if (b) {
|
|
134
|
+
itemCount += 1;
|
|
135
|
+
}
|
|
136
|
+
});
|
|
137
|
+
});
|
|
138
|
+
return itemCount >= 2;
|
|
139
|
+
};
|
|
140
|
+
var compatibleOldTerms = exports.compatibleOldTerms = function compatibleOldTerms(q) {
|
|
141
|
+
var _terms = [{
|
|
142
|
+
terms: [null, null, null]
|
|
143
|
+
}, {
|
|
144
|
+
terms: [null, null, null],
|
|
145
|
+
type: 'and'
|
|
146
|
+
}];
|
|
147
|
+
try {
|
|
148
|
+
var _terms$terms;
|
|
149
|
+
var terms = JSON.parse(q || '{}');
|
|
150
|
+
(_terms$terms = terms.terms) === null || _terms$terms === void 0 ? void 0 : _terms$terms.forEach(function (a, aIndex) {
|
|
151
|
+
var _a$terms;
|
|
152
|
+
a === null || a === void 0 ? void 0 : (_a$terms = a.terms) === null || _a$terms === void 0 ? void 0 : _a$terms.forEach(function (b, bIndex) {
|
|
153
|
+
_terms[aIndex].terms[bIndex] = b;
|
|
154
|
+
});
|
|
155
|
+
if (a.type) {
|
|
156
|
+
_terms[aIndex].type = a.type;
|
|
157
|
+
}
|
|
158
|
+
});
|
|
159
|
+
return {
|
|
160
|
+
terms: _terms
|
|
161
|
+
};
|
|
162
|
+
} catch (e) {
|
|
163
|
+
return {
|
|
164
|
+
terms: _terms
|
|
165
|
+
};
|
|
166
|
+
}
|
|
167
|
+
};
|
|
168
|
+
var handleParamsToString = exports.handleParamsToString = function handleParamsToString() {
|
|
169
|
+
var terms = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
170
|
+
var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'and';
|
|
171
|
+
var _terms = [{
|
|
172
|
+
terms: [null, null, null]
|
|
173
|
+
}, {
|
|
174
|
+
terms: [null, null, null],
|
|
175
|
+
type: type
|
|
176
|
+
}];
|
|
177
|
+
var termsIndex = 0;
|
|
178
|
+
var termsStar = 0;
|
|
179
|
+
terms.forEach(function (item, index) {
|
|
180
|
+
if (index > 2) {
|
|
181
|
+
termsIndex = 1;
|
|
182
|
+
termsStar = 4;
|
|
183
|
+
}
|
|
184
|
+
_terms[termsIndex].terms[index - termsStar] = item;
|
|
185
|
+
});
|
|
186
|
+
return JSON.stringify({
|
|
187
|
+
terms: _terms
|
|
188
|
+
});
|
|
189
|
+
};
|
|
190
|
+
var getTermTypeFn = exports.getTermTypeFn = function getTermTypeFn(type) {
|
|
191
|
+
// if (column?.includes('id') && type === 'string') {
|
|
192
|
+
// // 默认id为 eq
|
|
193
|
+
// return 'eq';
|
|
194
|
+
// }
|
|
195
|
+
switch (type) {
|
|
196
|
+
case 'select':
|
|
197
|
+
case 'treeSelect':
|
|
198
|
+
case 'number':
|
|
199
|
+
return 'eq';
|
|
200
|
+
case 'date':
|
|
201
|
+
case 'time':
|
|
202
|
+
return 'gt';
|
|
203
|
+
case 'timeRange':
|
|
204
|
+
case 'rangePicker':
|
|
205
|
+
return 'btw';
|
|
206
|
+
default:
|
|
207
|
+
return 'like';
|
|
208
|
+
}
|
|
209
|
+
};
|
|
210
|
+
var getTermTypes = exports.getTermTypes = function getTermTypes(types) {
|
|
211
|
+
return _setting.termType.filter(function (item) {
|
|
212
|
+
return types.includes(item.value);
|
|
213
|
+
});
|
|
214
|
+
};
|
|
215
|
+
var getTermOptions = exports.getTermOptions = function getTermOptions(type, column) {
|
|
216
|
+
var keys = [];
|
|
217
|
+
switch (type) {
|
|
218
|
+
case 'select':
|
|
219
|
+
case 'treeSelect':
|
|
220
|
+
keys = ['not', 'eq', 'in', 'nin'];
|
|
221
|
+
break;
|
|
222
|
+
case 'time':
|
|
223
|
+
case 'date':
|
|
224
|
+
keys = ['gt', 'lt', 'gte', 'lte'];
|
|
225
|
+
break;
|
|
226
|
+
case 'timeRange':
|
|
227
|
+
case 'rangePicker':
|
|
228
|
+
keys = ['btw', 'nbtw'];
|
|
229
|
+
break;
|
|
230
|
+
case 'number':
|
|
231
|
+
keys = ['eq', 'not', 'gt', 'lt', 'gte', 'lte'];
|
|
232
|
+
break;
|
|
233
|
+
default:
|
|
234
|
+
keys = ['like', 'nlike'];
|
|
235
|
+
// column?.includes('id') && type === 'string'
|
|
236
|
+
// ? ['eq']
|
|
237
|
+
// : ['like', 'nlike'];
|
|
238
|
+
break;
|
|
239
|
+
}
|
|
240
|
+
return keys.length ? getTermTypes(keys) : _setting.termType;
|
|
241
|
+
};
|
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) {
|
|
2
|
+
const op = ops[i];
|
|
3
|
+
const fn = ops[i + 1];
|
|
4
|
+
i += 2;
|
|
5
|
+
if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) {
|
|
6
|
+
return undefined;
|
|
7
|
+
}
|
|
8
|
+
if (op === 'access' || op === 'optionalAccess') {
|
|
9
|
+
lastAccessLHS = value;
|
|
10
|
+
value = fn(value);
|
|
11
|
+
}
|
|
12
|
+
else if (op === 'call' || op === 'optionalCall') {
|
|
13
|
+
value = fn((...args) => value.call(lastAccessLHS, ...args));
|
|
14
|
+
lastAccessLHS = undefined;
|
|
15
|
+
}
|
|
16
|
+
} return value; }
|
|
17
|
+
/* Analyzed bindings: {
|
|
18
|
+
"modelValue": "props",
|
|
19
|
+
"itemType": "props",
|
|
20
|
+
"mode": "props",
|
|
21
|
+
"placeholder": "props",
|
|
22
|
+
"options": "props",
|
|
23
|
+
"style": "props",
|
|
24
|
+
"class": "props",
|
|
25
|
+
"valueFormat": "props",
|
|
26
|
+
"action": "props",
|
|
27
|
+
"headers": "props",
|
|
28
|
+
"CSSProperties": "setup-const",
|
|
29
|
+
"PropType": "setup-const",
|
|
30
|
+
"ref": "setup-const",
|
|
31
|
+
"watch": "setup-const",
|
|
32
|
+
"componentsType": "setup-maybe-ref",
|
|
33
|
+
"MonacoEditor": "setup-maybe-ref",
|
|
34
|
+
"Select": "setup-maybe-ref",
|
|
35
|
+
"DatePicker": "setup-maybe-ref",
|
|
36
|
+
"TimePicker": "setup-maybe-ref",
|
|
37
|
+
"Input": "setup-maybe-ref",
|
|
38
|
+
"InputNumber": "setup-maybe-ref",
|
|
39
|
+
"InputPassword": "setup-maybe-ref",
|
|
40
|
+
"Upload": "setup-maybe-ref",
|
|
41
|
+
"Modal": "setup-maybe-ref",
|
|
42
|
+
"emit": "setup-const",
|
|
43
|
+
"props": "setup-reactive-const",
|
|
44
|
+
"typeMap": "setup-maybe-ref",
|
|
45
|
+
"myValue": "setup-ref",
|
|
46
|
+
"modalVisible": "setup-ref",
|
|
47
|
+
"objectValue": "setup-ref",
|
|
48
|
+
"handleItemModalSubmit": "setup-const",
|
|
49
|
+
"onChange": "setup-const",
|
|
50
|
+
"handleFileChange": "setup-const"
|
|
51
|
+
} */
|
|
52
|
+
import { defineComponent as _defineComponent } from 'vue';
|
|
53
|
+
import { unref as _unref, mergeProps as _mergeProps, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, resolveComponent as _resolveComponent, createVNode as _createVNode, withCtx as _withCtx, createElementVNode as _createElementVNode, createElementBlock as _createElementBlock } from "vue";
|
|
54
|
+
const _hoisted_1 = { class: "value-item-warp" };
|
|
55
|
+
const _hoisted_2 = { style: { "width": "100%", "height": "300px" } };
|
|
56
|
+
import { ref, watch } from 'vue';
|
|
57
|
+
import { componentsType } from './util';
|
|
58
|
+
import { MonacoEditor } from '../../';
|
|
59
|
+
import { Select, DatePicker, TimePicker, Input, InputNumber, InputPassword, Upload, Modal, } from 'ant-design-vue';
|
|
60
|
+
const __sfc_main__ = _defineComponent({
|
|
61
|
+
props: {
|
|
62
|
+
// 组件双向绑定的值
|
|
63
|
+
modelValue: {
|
|
64
|
+
type: [Number, String],
|
|
65
|
+
default: '',
|
|
66
|
+
},
|
|
67
|
+
// 组件类型
|
|
68
|
+
itemType: {
|
|
69
|
+
type: String,
|
|
70
|
+
default: () => 'string',
|
|
71
|
+
},
|
|
72
|
+
// 多选框
|
|
73
|
+
mode: {
|
|
74
|
+
type: String,
|
|
75
|
+
default: '',
|
|
76
|
+
},
|
|
77
|
+
placeholder: String,
|
|
78
|
+
options: Array,
|
|
79
|
+
style: Object,
|
|
80
|
+
class: String,
|
|
81
|
+
valueFormat: String,
|
|
82
|
+
action: [String, Promise],
|
|
83
|
+
headers: Object,
|
|
84
|
+
},
|
|
85
|
+
emits: ["update:modelValue", "change"],
|
|
86
|
+
setup(__props, { emit: __emit }) {
|
|
87
|
+
const emit = __emit;
|
|
88
|
+
const props = __props;
|
|
89
|
+
const typeMap = new Map(Object.entries(componentsType));
|
|
90
|
+
const myValue = ref(undefined);
|
|
91
|
+
const modalVisible = ref(false);
|
|
92
|
+
const objectValue = ref('');
|
|
93
|
+
const handleItemModalSubmit = () => {
|
|
94
|
+
myValue.value = objectValue.value.replace(/[\r\n]\s*/g, '');
|
|
95
|
+
modalVisible.value = false;
|
|
96
|
+
emit('update:modelValue', objectValue.value);
|
|
97
|
+
emit('change', objectValue.value);
|
|
98
|
+
};
|
|
99
|
+
const onChange = (e) => {
|
|
100
|
+
emit('update:modelValue', myValue.value);
|
|
101
|
+
emit('change', e);
|
|
102
|
+
};
|
|
103
|
+
const handleFileChange = (info) => {
|
|
104
|
+
if (info.file.status === 'done') {
|
|
105
|
+
const url = _optionalChain([info, 'access', _2 => _2.file, 'access', _3 => _3.response, 'optionalAccess', _4 => _4.result]);
|
|
106
|
+
myValue.value = url;
|
|
107
|
+
emit('update:modelValue', url);
|
|
108
|
+
emit('change', url);
|
|
109
|
+
}
|
|
110
|
+
};
|
|
111
|
+
watch(() => props.modelValue, () => {
|
|
112
|
+
myValue.value = props.modelValue;
|
|
113
|
+
if (props.itemType === 'object') {
|
|
114
|
+
objectValue.value = props.modelValue;
|
|
115
|
+
}
|
|
116
|
+
}, { immediate: true });
|
|
117
|
+
return (_ctx, _cache) => {
|
|
118
|
+
const _component_AIcon = _resolveComponent("AIcon");
|
|
119
|
+
return (_openBlock(), _createElementBlock("div", _hoisted_1, [
|
|
120
|
+
(_unref(typeMap).get(__props.itemType) === 'select')
|
|
121
|
+
? (_openBlock(), _createBlock(_unref(Select), _mergeProps({
|
|
122
|
+
key: 0,
|
|
123
|
+
value: myValue.value,
|
|
124
|
+
"onUpdate:value": _cache[0] || (_cache[0] = ($event) => ((myValue).value = $event)),
|
|
125
|
+
allowClear: ""
|
|
126
|
+
}, props, {
|
|
127
|
+
onChange: _cache[1] || (_cache[1] = (_, options) => onChange(options))
|
|
128
|
+
}), null, 16 /* FULL_PROPS */, ["value"]))
|
|
129
|
+
: (_unref(typeMap).get(__props.itemType) === 'date')
|
|
130
|
+
? (_openBlock(), _createBlock(_unref(DatePicker), _mergeProps({
|
|
131
|
+
key: 1,
|
|
132
|
+
value: myValue.value,
|
|
133
|
+
"onUpdate:value": _cache[2] || (_cache[2] = ($event) => ((myValue).value = $event)),
|
|
134
|
+
valueFormat: __props.valueFormat || 'YYYY-MM-DD HH:mm:ss',
|
|
135
|
+
allowClear: "",
|
|
136
|
+
showTime: ""
|
|
137
|
+
}, props, { onChange: onChange }), null, 16 /* FULL_PROPS */, ["value", "valueFormat"]))
|
|
138
|
+
: (_unref(typeMap).get(__props.itemType) === 'time')
|
|
139
|
+
? (_openBlock(), _createBlock(_unref(TimePicker), _mergeProps({
|
|
140
|
+
key: 2,
|
|
141
|
+
value: myValue.value,
|
|
142
|
+
"onUpdate:value": _cache[3] || (_cache[3] = ($event) => ((myValue).value = $event)),
|
|
143
|
+
valueFormat: __props.valueFormat || 'HH:mm:ss',
|
|
144
|
+
allowClear: ""
|
|
145
|
+
}, props, { onChange: onChange }), null, 16 /* FULL_PROPS */, ["value", "valueFormat"]))
|
|
146
|
+
: (_unref(typeMap).get(__props.itemType) === 'inputNumber')
|
|
147
|
+
? (_openBlock(), _createBlock(_unref(InputNumber), _mergeProps({
|
|
148
|
+
key: 3,
|
|
149
|
+
value: myValue.value,
|
|
150
|
+
"onUpdate:value": _cache[4] || (_cache[4] = ($event) => ((myValue).value = $event)),
|
|
151
|
+
allowClear: ""
|
|
152
|
+
}, props, { onChange: onChange }), null, 16 /* FULL_PROPS */, ["value"]))
|
|
153
|
+
: (_unref(typeMap).get(__props.itemType) === 'object')
|
|
154
|
+
? (_openBlock(), _createBlock(_unref(Input), _mergeProps({
|
|
155
|
+
key: 4,
|
|
156
|
+
value: myValue.value,
|
|
157
|
+
"onUpdate:value": _cache[6] || (_cache[6] = ($event) => ((myValue).value = $event)),
|
|
158
|
+
allowClear: ""
|
|
159
|
+
}, props, { onChange: onChange }), {
|
|
160
|
+
addonAfter: _withCtx(() => [
|
|
161
|
+
_createVNode(_component_AIcon, {
|
|
162
|
+
type: "FormOutlined",
|
|
163
|
+
onClick: _cache[5] || (_cache[5] = ($event) => (modalVisible.value = true))
|
|
164
|
+
})
|
|
165
|
+
]),
|
|
166
|
+
_: 1 /* STABLE */
|
|
167
|
+
}, 16 /* FULL_PROPS */, ["value"]))
|
|
168
|
+
: (_unref(typeMap).get(__props.itemType) === 'file')
|
|
169
|
+
? (_openBlock(), _createBlock(_unref(Input), _mergeProps({
|
|
170
|
+
key: 5,
|
|
171
|
+
value: myValue.value,
|
|
172
|
+
"onUpdate:value": _cache[7] || (_cache[7] = ($event) => ((myValue).value = $event)),
|
|
173
|
+
allowClear: "",
|
|
174
|
+
placeholder: "请输入链接"
|
|
175
|
+
}, props, { onChange: onChange }), {
|
|
176
|
+
addonAfter: _withCtx(() => [
|
|
177
|
+
_createVNode(_unref(Upload), {
|
|
178
|
+
action: __props.action,
|
|
179
|
+
headers: __props.headers,
|
|
180
|
+
showUploadList: false,
|
|
181
|
+
name: "file",
|
|
182
|
+
onChange: handleFileChange
|
|
183
|
+
}, {
|
|
184
|
+
default: _withCtx(() => [
|
|
185
|
+
_createVNode(_component_AIcon, { type: "UploadOutlined" })
|
|
186
|
+
]),
|
|
187
|
+
_: 1 /* STABLE */
|
|
188
|
+
}, 8 /* PROPS */, ["action", "headers"])
|
|
189
|
+
]),
|
|
190
|
+
_: 1 /* STABLE */
|
|
191
|
+
}, 16 /* FULL_PROPS */, ["value"]))
|
|
192
|
+
: (_unref(typeMap).get(__props.itemType) === 'password')
|
|
193
|
+
? (_openBlock(), _createBlock(_unref(InputPassword), _mergeProps({
|
|
194
|
+
key: 6,
|
|
195
|
+
value: myValue.value,
|
|
196
|
+
"onUpdate:value": _cache[8] || (_cache[8] = ($event) => ((myValue).value = $event)),
|
|
197
|
+
allowClear: "",
|
|
198
|
+
type: "password"
|
|
199
|
+
}, props, { onChange: onChange }), null, 16 /* FULL_PROPS */, ["value"]))
|
|
200
|
+
: (_openBlock(), _createBlock(_unref(Input), _mergeProps({
|
|
201
|
+
key: 7,
|
|
202
|
+
value: myValue.value,
|
|
203
|
+
"onUpdate:value": _cache[9] || (_cache[9] = ($event) => ((myValue).value = $event)),
|
|
204
|
+
allowClear: "",
|
|
205
|
+
type: "text"
|
|
206
|
+
}, props, { onChange: onChange }), null, 16 /* FULL_PROPS */, ["value"])),
|
|
207
|
+
_createCommentVNode(" 代码编辑器弹窗 "),
|
|
208
|
+
_createVNode(_unref(Modal), {
|
|
209
|
+
visible: modalVisible.value,
|
|
210
|
+
"onUpdate:visible": _cache[11] || (_cache[11] = ($event) => ((modalVisible).value = $event)),
|
|
211
|
+
zIndex: 1100,
|
|
212
|
+
"cancel-text": "取消",
|
|
213
|
+
"ok-text": "确认",
|
|
214
|
+
title: "编辑",
|
|
215
|
+
width: "700px",
|
|
216
|
+
onCancel: _cache[12] || (_cache[12] = ($event) => (modalVisible.value = false)),
|
|
217
|
+
onOk: handleItemModalSubmit
|
|
218
|
+
}, {
|
|
219
|
+
default: _withCtx(() => [
|
|
220
|
+
_createElementVNode("div", _hoisted_2, [
|
|
221
|
+
_createVNode(_unref(MonacoEditor), {
|
|
222
|
+
modelValue: objectValue.value,
|
|
223
|
+
"onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => ((objectValue).value = $event))
|
|
224
|
+
}, null, 8 /* PROPS */, ["modelValue"])
|
|
225
|
+
])
|
|
226
|
+
]),
|
|
227
|
+
_: 1 /* STABLE */
|
|
228
|
+
}, 8 /* PROPS */, ["visible"])
|
|
229
|
+
]));
|
|
230
|
+
};
|
|
231
|
+
}
|
|
232
|
+
});
|
|
233
|
+
export default __sfc_main__;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.default = void 0;
|
|
8
|
+
var _ValueItem = _interopRequireDefault(require("./ValueItem.js"));
|
|
9
|
+
var _default = exports.default = _ValueItem.default;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.componentsType = void 0;
|
|
7
|
+
var componentsType = exports.componentsType = {
|
|
8
|
+
int: 'inputNumber',
|
|
9
|
+
long: 'inputNumber',
|
|
10
|
+
float: 'inputNumber',
|
|
11
|
+
double: 'inputNumber',
|
|
12
|
+
string: 'input',
|
|
13
|
+
array: 'input',
|
|
14
|
+
password: 'password',
|
|
15
|
+
enum: 'select',
|
|
16
|
+
boolean: 'select',
|
|
17
|
+
date: 'date',
|
|
18
|
+
time: 'time',
|
|
19
|
+
object: 'object',
|
|
20
|
+
geoPoint: 'geoPoint',
|
|
21
|
+
file: 'file'
|
|
22
|
+
};
|
package/lib/index.js
ADDED
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
var _exportNames = {
|
|
9
|
+
BadgeStatus: true,
|
|
10
|
+
CardSelect: true,
|
|
11
|
+
CheckButton: true,
|
|
12
|
+
ConfigProvider: true,
|
|
13
|
+
Echarts: true,
|
|
14
|
+
Ellipsis: true,
|
|
15
|
+
Empty: true,
|
|
16
|
+
FullPage: true,
|
|
17
|
+
AIcon: true,
|
|
18
|
+
MonacoEditor: true,
|
|
19
|
+
PermissionButton: true,
|
|
20
|
+
ProTable: true,
|
|
21
|
+
Scrollbar: true,
|
|
22
|
+
Search: true,
|
|
23
|
+
AdvancedSearch: true,
|
|
24
|
+
ValueItem: true
|
|
25
|
+
};
|
|
26
|
+
Object.defineProperty(exports, "AIcon", {
|
|
27
|
+
enumerable: true,
|
|
28
|
+
get: function get() {
|
|
29
|
+
return _Icon.default;
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
Object.defineProperty(exports, "AdvancedSearch", {
|
|
33
|
+
enumerable: true,
|
|
34
|
+
get: function get() {
|
|
35
|
+
return _Search.AdvancedSearch;
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
Object.defineProperty(exports, "BadgeStatus", {
|
|
39
|
+
enumerable: true,
|
|
40
|
+
get: function get() {
|
|
41
|
+
return _BadgeStatus.default;
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
Object.defineProperty(exports, "CardSelect", {
|
|
45
|
+
enumerable: true,
|
|
46
|
+
get: function get() {
|
|
47
|
+
return _CardSelect.default;
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
Object.defineProperty(exports, "CheckButton", {
|
|
51
|
+
enumerable: true,
|
|
52
|
+
get: function get() {
|
|
53
|
+
return _CheckButton.default;
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
Object.defineProperty(exports, "ConfigProvider", {
|
|
57
|
+
enumerable: true,
|
|
58
|
+
get: function get() {
|
|
59
|
+
return _ConfigProvider.default;
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
Object.defineProperty(exports, "Echarts", {
|
|
63
|
+
enumerable: true,
|
|
64
|
+
get: function get() {
|
|
65
|
+
return _Echarts.default;
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
Object.defineProperty(exports, "Ellipsis", {
|
|
69
|
+
enumerable: true,
|
|
70
|
+
get: function get() {
|
|
71
|
+
return _Ellipsis.default;
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
Object.defineProperty(exports, "Empty", {
|
|
75
|
+
enumerable: true,
|
|
76
|
+
get: function get() {
|
|
77
|
+
return _Empty.default;
|
|
78
|
+
}
|
|
79
|
+
});
|
|
80
|
+
Object.defineProperty(exports, "FullPage", {
|
|
81
|
+
enumerable: true,
|
|
82
|
+
get: function get() {
|
|
83
|
+
return _FullPage.default;
|
|
84
|
+
}
|
|
85
|
+
});
|
|
86
|
+
Object.defineProperty(exports, "MonacoEditor", {
|
|
87
|
+
enumerable: true,
|
|
88
|
+
get: function get() {
|
|
89
|
+
return _MonacoEditor.default;
|
|
90
|
+
}
|
|
91
|
+
});
|
|
92
|
+
Object.defineProperty(exports, "PermissionButton", {
|
|
93
|
+
enumerable: true,
|
|
94
|
+
get: function get() {
|
|
95
|
+
return _PermissionButton.default;
|
|
96
|
+
}
|
|
97
|
+
});
|
|
98
|
+
Object.defineProperty(exports, "ProTable", {
|
|
99
|
+
enumerable: true,
|
|
100
|
+
get: function get() {
|
|
101
|
+
return _ProTable.default;
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
Object.defineProperty(exports, "Scrollbar", {
|
|
105
|
+
enumerable: true,
|
|
106
|
+
get: function get() {
|
|
107
|
+
return _Scrollbar.default;
|
|
108
|
+
}
|
|
109
|
+
});
|
|
110
|
+
Object.defineProperty(exports, "Search", {
|
|
111
|
+
enumerable: true,
|
|
112
|
+
get: function get() {
|
|
113
|
+
return _Search.default;
|
|
114
|
+
}
|
|
115
|
+
});
|
|
116
|
+
Object.defineProperty(exports, "ValueItem", {
|
|
117
|
+
enumerable: true,
|
|
118
|
+
get: function get() {
|
|
119
|
+
return _ValueItem.default;
|
|
120
|
+
}
|
|
121
|
+
});
|
|
122
|
+
exports.default = void 0;
|
|
123
|
+
var _AMap = _interopRequireDefault(require("./AMap"));
|
|
124
|
+
var _BadgeStatus = _interopRequireDefault(require("./BadgeStatus"));
|
|
125
|
+
var _CardSelect = _interopRequireDefault(require("./CardSelect"));
|
|
126
|
+
var _CheckButton = _interopRequireDefault(require("./CheckButton"));
|
|
127
|
+
var _ConfigProvider = _interopRequireDefault(require("./ConfigProvider"));
|
|
128
|
+
var _Echarts = _interopRequireDefault(require("./Echarts"));
|
|
129
|
+
var _Ellipsis = _interopRequireDefault(require("./Ellipsis"));
|
|
130
|
+
var _Empty = _interopRequireDefault(require("./Empty"));
|
|
131
|
+
var _FullPage = _interopRequireDefault(require("./FullPage"));
|
|
132
|
+
var _Icon = _interopRequireDefault(require("./Icon"));
|
|
133
|
+
var _MonacoEditor = _interopRequireDefault(require("./MonacoEditor"));
|
|
134
|
+
var _PermissionButton = _interopRequireDefault(require("./PermissionButton"));
|
|
135
|
+
var _ProLayout = _interopRequireWildcard(require("./ProLayout"));
|
|
136
|
+
var _ProTable = _interopRequireDefault(require("./ProTable"));
|
|
137
|
+
var _Scrollbar = _interopRequireDefault(require("./Scrollbar"));
|
|
138
|
+
var _Search = _interopRequireWildcard(require("./Search"));
|
|
139
|
+
var _ValueItem = _interopRequireDefault(require("./ValueItem"));
|
|
140
|
+
var _style = require("./style");
|
|
141
|
+
Object.keys(_style).forEach(function (key) {
|
|
142
|
+
if (key === "default" || key === "__esModule") return;
|
|
143
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
144
|
+
if (key in exports && exports[key] === _style[key]) return;
|
|
145
|
+
Object.defineProperty(exports, key, {
|
|
146
|
+
enumerable: true,
|
|
147
|
+
get: function get() {
|
|
148
|
+
return _style[key];
|
|
149
|
+
}
|
|
150
|
+
});
|
|
151
|
+
});
|
|
152
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
153
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
154
|
+
var _default = exports.default = {
|
|
155
|
+
install: function install(app) {
|
|
156
|
+
app.component('JAMap', _AMap.default).component('JBadgeStatus', _BadgeStatus.default).component('JCardSelect', _CardSelect.default).component('JCheckButton', _CheckButton.default).component('JConfigProvider', _ConfigProvider.default).component('JEcharts', _Echarts.default).component('JEllipsis', _Ellipsis.default).component('JEmpty', _Empty.default).component('JFullPage', _FullPage.default).component('AIcon', _Icon.default).component('JMonacoEditor', _MonacoEditor.default).component('JPermissionButton', _PermissionButton.default).component('JProLayout', _ProLayout.default).component('JPageContainer', _ProLayout.PageContainer).component('JProTable', _ProTable.default).component('JScrollbar', _Scrollbar.default).component('JSearch', _Search.default).component('JAdvancedSearch', _Search.AdvancedSearch).component('JValueItem', _ValueItem.default);
|
|
157
|
+
}
|
|
158
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import "../ProTable/style/index-pure.less";
|
|
File without changes
|