@jetlinks-web/components 3.1.3 → 3.1.5
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/Search/Advanced/index.js +5 -29
- package/es/Search/Item.js +3 -2
- package/es/Search/hooks/index.js +3 -2
- package/es/Search/setting.js +25 -16
- package/lib/Search/Advanced/index.js +5 -29
- package/lib/Search/Item.js +3 -2
- package/lib/Search/hooks/index.js +3 -2
- package/lib/Search/setting.js +26 -16
- package/package.json +3 -3
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
"useAttrs": "setup-const",
|
|
20
20
|
"inject": "setup-const",
|
|
21
21
|
"computed": "setup-const",
|
|
22
|
+
"toRefs": "setup-const",
|
|
22
23
|
"SaveHistory": "setup-const",
|
|
23
24
|
"History": "setup-const",
|
|
24
25
|
"compatibleOldTerms": "setup-maybe-ref",
|
|
@@ -59,7 +60,6 @@
|
|
|
59
60
|
"reset": "setup-const",
|
|
60
61
|
"historyItemClick": "setup-const",
|
|
61
62
|
"handleUrlParams": "setup-const",
|
|
62
|
-
"completeTerms": "setup-const",
|
|
63
63
|
"handleDefaultValues": "setup-const",
|
|
64
64
|
"clearValue": "setup-const"
|
|
65
65
|
} */
|
|
@@ -86,13 +86,13 @@ const _hoisted_12 = { class: "JSearch-footer--btns" };
|
|
|
86
86
|
import SearchItem from '../Item.js';
|
|
87
87
|
import { typeOptions } from '../setting';
|
|
88
88
|
import { useHandleColumns, useOptionMapContent, useRouteQuery } from '../hooks';
|
|
89
|
-
import { ref, reactive, watch, useAttrs, inject, computed } from 'vue';
|
|
89
|
+
import { ref, reactive, watch, useAttrs, inject, computed, } from 'vue';
|
|
90
90
|
import SaveHistory from './SaveHistory.js';
|
|
91
91
|
import History from './History.js';
|
|
92
92
|
import { compatibleOldTerms, getItemDefaultValue, termsParamsFormat, } from '../util';
|
|
93
93
|
import { Select, Button, Form, FormItemRest } from 'ant-design-vue';
|
|
94
|
-
import { AIcon } from '
|
|
95
|
-
import { useLocaleReceiver } from "../../LocaleReciver
|
|
94
|
+
import { AIcon } from '../../components';
|
|
95
|
+
import { useLocaleReceiver } from "../../LocaleReciver";
|
|
96
96
|
import { SearchConfig } from "../../utils/constants";
|
|
97
97
|
import { isObject } from "lodash-es";
|
|
98
98
|
import useSearchStyle from '../style';
|
|
@@ -154,7 +154,7 @@ const __sfc_main__ = _defineComponent({
|
|
|
154
154
|
const attrs = useAttrs();
|
|
155
155
|
const q = useRouteQuery('q');
|
|
156
156
|
const target = useRouteQuery('target');
|
|
157
|
-
const { initValues, columnsMap, defaultCacheValues } = useHandleColumns(
|
|
157
|
+
const { initValues, columnsMap, defaultCacheValues } = useHandleColumns(props, terms, { mode: 'advanced' });
|
|
158
158
|
useOptionMapContent(columnsOptionMap);
|
|
159
159
|
const expandChange = () => {
|
|
160
160
|
expand.value = !expand.value;
|
|
@@ -228,30 +228,6 @@ const __sfc_main__ = _defineComponent({
|
|
|
228
228
|
historyItemClick(params);
|
|
229
229
|
}
|
|
230
230
|
};
|
|
231
|
-
/**
|
|
232
|
-
* 递归补全 terms 数组
|
|
233
|
-
* @param data 原始 terms 对象
|
|
234
|
-
* @param callback 补全函数,返回一个 term 对象
|
|
235
|
-
*/
|
|
236
|
-
function completeTerms(data, callback) {
|
|
237
|
-
const fillTerms = (terms) => {
|
|
238
|
-
const completed = terms.map(term => {
|
|
239
|
-
if (Array.isArray(term.terms)) {
|
|
240
|
-
// 递归补全子 terms
|
|
241
|
-
term.terms = fillTerms(term.terms);
|
|
242
|
-
}
|
|
243
|
-
return term;
|
|
244
|
-
});
|
|
245
|
-
// 补足到长度为 3
|
|
246
|
-
while (completed.length < 3) {
|
|
247
|
-
completed.push(callback());
|
|
248
|
-
}
|
|
249
|
-
return completed;
|
|
250
|
-
};
|
|
251
|
-
return {
|
|
252
|
-
terms: fillTerms(data.terms),
|
|
253
|
-
};
|
|
254
|
-
}
|
|
255
231
|
/**
|
|
256
232
|
* 处理传入的默认值
|
|
257
233
|
*/
|
package/es/Search/Item.js
CHANGED
|
@@ -272,11 +272,12 @@ const __sfc_main__ = _defineComponent({
|
|
|
272
272
|
"allow-clear": "",
|
|
273
273
|
style: { "width": "100%", "min-width": "80px" }
|
|
274
274
|
}, targetComponents.value.props, {
|
|
275
|
-
options: valueOptions.value,
|
|
275
|
+
options: !['treeSelect', 'tree'].includes(targetComponents.value.type) && valueOptions.value,
|
|
276
|
+
treeData: ['treeSelect', 'tree'].includes(targetComponents.value.type) && valueOptions.value,
|
|
276
277
|
value: termsModel.value,
|
|
277
278
|
"onUpdate:value": _cache[3] || (_cache[3] = ($event) => ((termsModel.value) = $event)),
|
|
278
279
|
onChange: onValueChange
|
|
279
|
-
}), null, 16 /* FULL_PROPS */, ["options", "value"]))
|
|
280
|
+
}), null, 16 /* FULL_PROPS */, ["options", "treeData", "value"]))
|
|
280
281
|
])
|
|
281
282
|
], 2 /* CLASS */));
|
|
282
283
|
};
|
package/es/Search/hooks/index.js
CHANGED
|
@@ -24,7 +24,7 @@ export var useColumnsMap = function useColumnsMap() {
|
|
|
24
24
|
export var useDefaultValue = function useDefaultValue() {
|
|
25
25
|
return inject(columnsValues);
|
|
26
26
|
};
|
|
27
|
-
export var useHandleColumns = function useHandleColumns(props, terms) {
|
|
27
|
+
export var useHandleColumns = function useHandleColumns(props, terms, options) {
|
|
28
28
|
var columnsMap = ref({}); // 存储每个column
|
|
29
29
|
var defaultCacheValues = ref({});
|
|
30
30
|
useColumnsMapContent(columnsMap);
|
|
@@ -72,7 +72,8 @@ export var useHandleColumns = function useHandleColumns(props, terms) {
|
|
|
72
72
|
};
|
|
73
73
|
var initValues = function initValues() {
|
|
74
74
|
var arr = Object.values(columnsMap.value);
|
|
75
|
-
if (
|
|
75
|
+
if (!arr.length) return;
|
|
76
|
+
if (options.mode === 'advanced') {
|
|
76
77
|
// 设置第一位
|
|
77
78
|
terms.terms = [getItemDefaultValue(arr[0], defaultCacheValues.value)];
|
|
78
79
|
} else {
|
package/es/Search/setting.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
1
3
|
import { TreeSelect, Select, Input, InputNumber, DatePicker, TimePicker, InputPassword, RangePicker, TimeRangePicker } from 'ant-design-vue';
|
|
2
4
|
import { filterSelectNode, filterTreeSelectNode } from "./util";
|
|
3
5
|
export var optionsMapKey = Symbol('searchOptionsMap');
|
|
@@ -123,61 +125,65 @@ export var componentType = {
|
|
|
123
125
|
};
|
|
124
126
|
export var componentProps = function componentProps(record) {
|
|
125
127
|
var type = record.type;
|
|
128
|
+
var _props = record.componentProps || {};
|
|
126
129
|
switch (type) {
|
|
127
130
|
case 'string':
|
|
128
131
|
case componentType.input:
|
|
129
132
|
return {
|
|
130
133
|
type: type,
|
|
131
|
-
name: Input
|
|
134
|
+
name: Input,
|
|
135
|
+
props: _props
|
|
132
136
|
};
|
|
133
137
|
case componentType.inputNumber:
|
|
134
138
|
return {
|
|
135
139
|
type: type,
|
|
136
|
-
name: InputNumber
|
|
140
|
+
name: InputNumber,
|
|
141
|
+
props: _props
|
|
137
142
|
};
|
|
138
143
|
case componentType.password:
|
|
139
144
|
return {
|
|
140
145
|
type: type,
|
|
141
|
-
name: InputPassword
|
|
146
|
+
name: InputPassword,
|
|
147
|
+
props: _props
|
|
142
148
|
};
|
|
143
149
|
case componentType.time:
|
|
144
150
|
return {
|
|
145
151
|
type: type,
|
|
146
152
|
name: TimePicker,
|
|
147
|
-
props: {
|
|
153
|
+
props: _objectSpread({
|
|
148
154
|
valueFormat: 'HH:mm:ss'
|
|
149
|
-
}
|
|
155
|
+
}, _props)
|
|
150
156
|
};
|
|
151
157
|
case componentType.date:
|
|
152
158
|
return {
|
|
153
159
|
type: type,
|
|
154
160
|
name: DatePicker,
|
|
155
|
-
props: {
|
|
161
|
+
props: _objectSpread({
|
|
156
162
|
valueFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
157
|
-
}
|
|
163
|
+
}, _props)
|
|
158
164
|
};
|
|
159
165
|
case componentType.timeRange:
|
|
160
166
|
return {
|
|
161
167
|
type: type,
|
|
162
168
|
name: TimeRangePicker,
|
|
163
|
-
props: {
|
|
169
|
+
props: _objectSpread({
|
|
164
170
|
valueFormat: 'HH:mm:ss'
|
|
165
|
-
}
|
|
171
|
+
}, _props)
|
|
166
172
|
};
|
|
167
173
|
case componentType.rangePicker:
|
|
168
174
|
return {
|
|
169
175
|
type: type,
|
|
170
176
|
name: RangePicker,
|
|
171
|
-
props: {
|
|
177
|
+
props: _objectSpread({
|
|
172
178
|
valueFormat: 'YYYY-MM-DD HH:mm:ss',
|
|
173
179
|
showTime: true
|
|
174
|
-
}
|
|
180
|
+
}, _props)
|
|
175
181
|
};
|
|
176
182
|
case componentType.treeSelect:
|
|
177
183
|
return {
|
|
178
184
|
type: type,
|
|
179
185
|
name: TreeSelect,
|
|
180
|
-
props: {
|
|
186
|
+
props: _objectSpread(_defineProperty({
|
|
181
187
|
showSearch: true,
|
|
182
188
|
height: 350,
|
|
183
189
|
fieldNames: {
|
|
@@ -187,13 +193,15 @@ export var componentProps = function componentProps(record) {
|
|
|
187
193
|
filterTreeNode: function filterTreeNode(v, option) {
|
|
188
194
|
return filterTreeSelectNode(v, option);
|
|
189
195
|
}
|
|
190
|
-
}
|
|
196
|
+
}, "filterTreeNode", function filterTreeNode(v, option) {
|
|
197
|
+
return filterTreeSelectNode(v, option);
|
|
198
|
+
}), _props)
|
|
191
199
|
};
|
|
192
200
|
case componentType.select:
|
|
193
201
|
return {
|
|
194
202
|
type: type,
|
|
195
203
|
name: Select,
|
|
196
|
-
props: {
|
|
204
|
+
props: _objectSpread({
|
|
197
205
|
showSearch: true,
|
|
198
206
|
// mode: isBtw ? 'multiple' : 'combobox',
|
|
199
207
|
filterOption: function filterOption(v, option) {
|
|
@@ -203,12 +211,13 @@ export var componentProps = function componentProps(record) {
|
|
|
203
211
|
width: '100%',
|
|
204
212
|
minWidth: '80px'
|
|
205
213
|
}
|
|
206
|
-
}
|
|
214
|
+
}, _props)
|
|
207
215
|
};
|
|
208
216
|
case componentType.component:
|
|
209
217
|
return {
|
|
210
218
|
type: type,
|
|
211
|
-
name: record.components
|
|
219
|
+
name: record.components,
|
|
220
|
+
props: _props
|
|
212
221
|
};
|
|
213
222
|
default:
|
|
214
223
|
return {};
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
"useAttrs": "setup-const",
|
|
20
20
|
"inject": "setup-const",
|
|
21
21
|
"computed": "setup-const",
|
|
22
|
+
"toRefs": "setup-const",
|
|
22
23
|
"SaveHistory": "setup-const",
|
|
23
24
|
"History": "setup-const",
|
|
24
25
|
"compatibleOldTerms": "setup-maybe-ref",
|
|
@@ -59,7 +60,6 @@
|
|
|
59
60
|
"reset": "setup-const",
|
|
60
61
|
"historyItemClick": "setup-const",
|
|
61
62
|
"handleUrlParams": "setup-const",
|
|
62
|
-
"completeTerms": "setup-const",
|
|
63
63
|
"handleDefaultValues": "setup-const",
|
|
64
64
|
"clearValue": "setup-const"
|
|
65
65
|
} */
|
|
@@ -86,13 +86,13 @@ const _hoisted_12 = { class: "JSearch-footer--btns" };
|
|
|
86
86
|
import SearchItem from '../Item.js';
|
|
87
87
|
import { typeOptions } from '../setting';
|
|
88
88
|
import { useHandleColumns, useOptionMapContent, useRouteQuery } from '../hooks';
|
|
89
|
-
import { ref, reactive, watch, useAttrs, inject, computed } from 'vue';
|
|
89
|
+
import { ref, reactive, watch, useAttrs, inject, computed, } from 'vue';
|
|
90
90
|
import SaveHistory from './SaveHistory.js';
|
|
91
91
|
import History from './History.js';
|
|
92
92
|
import { compatibleOldTerms, getItemDefaultValue, termsParamsFormat, } from '../util';
|
|
93
93
|
import { Select, Button, Form, FormItemRest } from 'ant-design-vue';
|
|
94
|
-
import { AIcon } from '
|
|
95
|
-
import { useLocaleReceiver } from "../../LocaleReciver
|
|
94
|
+
import { AIcon } from '../../components';
|
|
95
|
+
import { useLocaleReceiver } from "../../LocaleReciver";
|
|
96
96
|
import { SearchConfig } from "../../utils/constants";
|
|
97
97
|
import { isObject } from "lodash-es";
|
|
98
98
|
import useSearchStyle from '../style';
|
|
@@ -154,7 +154,7 @@ const __sfc_main__ = _defineComponent({
|
|
|
154
154
|
const attrs = useAttrs();
|
|
155
155
|
const q = useRouteQuery('q');
|
|
156
156
|
const target = useRouteQuery('target');
|
|
157
|
-
const { initValues, columnsMap, defaultCacheValues } = useHandleColumns(
|
|
157
|
+
const { initValues, columnsMap, defaultCacheValues } = useHandleColumns(props, terms, { mode: 'advanced' });
|
|
158
158
|
useOptionMapContent(columnsOptionMap);
|
|
159
159
|
const expandChange = () => {
|
|
160
160
|
expand.value = !expand.value;
|
|
@@ -228,30 +228,6 @@ const __sfc_main__ = _defineComponent({
|
|
|
228
228
|
historyItemClick(params);
|
|
229
229
|
}
|
|
230
230
|
};
|
|
231
|
-
/**
|
|
232
|
-
* 递归补全 terms 数组
|
|
233
|
-
* @param data 原始 terms 对象
|
|
234
|
-
* @param callback 补全函数,返回一个 term 对象
|
|
235
|
-
*/
|
|
236
|
-
function completeTerms(data, callback) {
|
|
237
|
-
const fillTerms = (terms) => {
|
|
238
|
-
const completed = terms.map(term => {
|
|
239
|
-
if (Array.isArray(term.terms)) {
|
|
240
|
-
// 递归补全子 terms
|
|
241
|
-
term.terms = fillTerms(term.terms);
|
|
242
|
-
}
|
|
243
|
-
return term;
|
|
244
|
-
});
|
|
245
|
-
// 补足到长度为 3
|
|
246
|
-
while (completed.length < 3) {
|
|
247
|
-
completed.push(callback());
|
|
248
|
-
}
|
|
249
|
-
return completed;
|
|
250
|
-
};
|
|
251
|
-
return {
|
|
252
|
-
terms: fillTerms(data.terms),
|
|
253
|
-
};
|
|
254
|
-
}
|
|
255
231
|
/**
|
|
256
232
|
* 处理传入的默认值
|
|
257
233
|
*/
|
package/lib/Search/Item.js
CHANGED
|
@@ -272,11 +272,12 @@ const __sfc_main__ = _defineComponent({
|
|
|
272
272
|
"allow-clear": "",
|
|
273
273
|
style: { "width": "100%", "min-width": "80px" }
|
|
274
274
|
}, targetComponents.value.props, {
|
|
275
|
-
options: valueOptions.value,
|
|
275
|
+
options: !['treeSelect', 'tree'].includes(targetComponents.value.type) && valueOptions.value,
|
|
276
|
+
treeData: ['treeSelect', 'tree'].includes(targetComponents.value.type) && valueOptions.value,
|
|
276
277
|
value: termsModel.value,
|
|
277
278
|
"onUpdate:value": _cache[3] || (_cache[3] = ($event) => ((termsModel.value) = $event)),
|
|
278
279
|
onChange: onValueChange
|
|
279
|
-
}), null, 16 /* FULL_PROPS */, ["options", "value"]))
|
|
280
|
+
}), null, 16 /* FULL_PROPS */, ["options", "treeData", "value"]))
|
|
280
281
|
])
|
|
281
282
|
], 2 /* CLASS */));
|
|
282
283
|
};
|
|
@@ -72,7 +72,7 @@ var useColumnsMap = exports.useColumnsMap = function useColumnsMap() {
|
|
|
72
72
|
var useDefaultValue = exports.useDefaultValue = function useDefaultValue() {
|
|
73
73
|
return (0, _vue.inject)(columnsValues);
|
|
74
74
|
};
|
|
75
|
-
var useHandleColumns = exports.useHandleColumns = function useHandleColumns(props, terms) {
|
|
75
|
+
var useHandleColumns = exports.useHandleColumns = function useHandleColumns(props, terms, options) {
|
|
76
76
|
var columnsMap = (0, _vue.ref)({}); // 存储每个column
|
|
77
77
|
var defaultCacheValues = (0, _vue.ref)({});
|
|
78
78
|
useColumnsMapContent(columnsMap);
|
|
@@ -120,7 +120,8 @@ var useHandleColumns = exports.useHandleColumns = function useHandleColumns(prop
|
|
|
120
120
|
};
|
|
121
121
|
var initValues = function initValues() {
|
|
122
122
|
var arr = Object.values(columnsMap.value);
|
|
123
|
-
if (
|
|
123
|
+
if (!arr.length) return;
|
|
124
|
+
if (options.mode === 'advanced') {
|
|
124
125
|
// 设置第一位
|
|
125
126
|
terms.terms = [(0, _util.getItemDefaultValue)(arr[0], defaultCacheValues.value)];
|
|
126
127
|
} else {
|
package/lib/Search/setting.js
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
3
4
|
Object.defineProperty(exports, "__esModule", {
|
|
4
5
|
value: true
|
|
5
6
|
});
|
|
6
7
|
exports.typeOptions = exports.termType = exports.searchProps = exports.optionsMapKey = exports.componentType = exports.componentProps = exports.TermTypeMap = void 0;
|
|
8
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
|
+
var _objectSpread3 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
7
10
|
var _antDesignVue = require("ant-design-vue");
|
|
8
11
|
var _util = require("./util");
|
|
9
12
|
var optionsMapKey = exports.optionsMapKey = Symbol('searchOptionsMap');
|
|
@@ -129,61 +132,65 @@ var componentType = exports.componentType = {
|
|
|
129
132
|
};
|
|
130
133
|
var componentProps = exports.componentProps = function componentProps(record) {
|
|
131
134
|
var type = record.type;
|
|
135
|
+
var _props = record.componentProps || {};
|
|
132
136
|
switch (type) {
|
|
133
137
|
case 'string':
|
|
134
138
|
case componentType.input:
|
|
135
139
|
return {
|
|
136
140
|
type: type,
|
|
137
|
-
name: _antDesignVue.Input
|
|
141
|
+
name: _antDesignVue.Input,
|
|
142
|
+
props: _props
|
|
138
143
|
};
|
|
139
144
|
case componentType.inputNumber:
|
|
140
145
|
return {
|
|
141
146
|
type: type,
|
|
142
|
-
name: _antDesignVue.InputNumber
|
|
147
|
+
name: _antDesignVue.InputNumber,
|
|
148
|
+
props: _props
|
|
143
149
|
};
|
|
144
150
|
case componentType.password:
|
|
145
151
|
return {
|
|
146
152
|
type: type,
|
|
147
|
-
name: _antDesignVue.InputPassword
|
|
153
|
+
name: _antDesignVue.InputPassword,
|
|
154
|
+
props: _props
|
|
148
155
|
};
|
|
149
156
|
case componentType.time:
|
|
150
157
|
return {
|
|
151
158
|
type: type,
|
|
152
159
|
name: _antDesignVue.TimePicker,
|
|
153
|
-
props: {
|
|
160
|
+
props: (0, _objectSpread3.default)({
|
|
154
161
|
valueFormat: 'HH:mm:ss'
|
|
155
|
-
}
|
|
162
|
+
}, _props)
|
|
156
163
|
};
|
|
157
164
|
case componentType.date:
|
|
158
165
|
return {
|
|
159
166
|
type: type,
|
|
160
167
|
name: _antDesignVue.DatePicker,
|
|
161
|
-
props: {
|
|
168
|
+
props: (0, _objectSpread3.default)({
|
|
162
169
|
valueFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
163
|
-
}
|
|
170
|
+
}, _props)
|
|
164
171
|
};
|
|
165
172
|
case componentType.timeRange:
|
|
166
173
|
return {
|
|
167
174
|
type: type,
|
|
168
175
|
name: _antDesignVue.TimeRangePicker,
|
|
169
|
-
props: {
|
|
176
|
+
props: (0, _objectSpread3.default)({
|
|
170
177
|
valueFormat: 'HH:mm:ss'
|
|
171
|
-
}
|
|
178
|
+
}, _props)
|
|
172
179
|
};
|
|
173
180
|
case componentType.rangePicker:
|
|
174
181
|
return {
|
|
175
182
|
type: type,
|
|
176
183
|
name: _antDesignVue.RangePicker,
|
|
177
|
-
props: {
|
|
184
|
+
props: (0, _objectSpread3.default)({
|
|
178
185
|
valueFormat: 'YYYY-MM-DD HH:mm:ss',
|
|
179
186
|
showTime: true
|
|
180
|
-
}
|
|
187
|
+
}, _props)
|
|
181
188
|
};
|
|
182
189
|
case componentType.treeSelect:
|
|
183
190
|
return {
|
|
184
191
|
type: type,
|
|
185
192
|
name: _antDesignVue.TreeSelect,
|
|
186
|
-
props: {
|
|
193
|
+
props: (0, _objectSpread3.default)((0, _defineProperty2.default)({
|
|
187
194
|
showSearch: true,
|
|
188
195
|
height: 350,
|
|
189
196
|
fieldNames: {
|
|
@@ -193,13 +200,15 @@ var componentProps = exports.componentProps = function componentProps(record) {
|
|
|
193
200
|
filterTreeNode: function filterTreeNode(v, option) {
|
|
194
201
|
return (0, _util.filterTreeSelectNode)(v, option);
|
|
195
202
|
}
|
|
196
|
-
}
|
|
203
|
+
}, "filterTreeNode", function filterTreeNode(v, option) {
|
|
204
|
+
return (0, _util.filterTreeSelectNode)(v, option);
|
|
205
|
+
}), _props)
|
|
197
206
|
};
|
|
198
207
|
case componentType.select:
|
|
199
208
|
return {
|
|
200
209
|
type: type,
|
|
201
210
|
name: _antDesignVue.Select,
|
|
202
|
-
props: {
|
|
211
|
+
props: (0, _objectSpread3.default)({
|
|
203
212
|
showSearch: true,
|
|
204
213
|
// mode: isBtw ? 'multiple' : 'combobox',
|
|
205
214
|
filterOption: function filterOption(v, option) {
|
|
@@ -209,12 +218,13 @@ var componentProps = exports.componentProps = function componentProps(record) {
|
|
|
209
218
|
width: '100%',
|
|
210
219
|
minWidth: '80px'
|
|
211
220
|
}
|
|
212
|
-
}
|
|
221
|
+
}, _props)
|
|
213
222
|
};
|
|
214
223
|
case componentType.component:
|
|
215
224
|
return {
|
|
216
225
|
type: type,
|
|
217
|
-
name: record.components
|
|
226
|
+
name: record.components,
|
|
227
|
+
props: _props
|
|
218
228
|
};
|
|
219
229
|
default:
|
|
220
230
|
return {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jetlinks-web/components",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.5",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -154,9 +154,9 @@
|
|
|
154
154
|
"webpack-dev-server": "^4.0.0",
|
|
155
155
|
"webpack-merge": "^5.0.0",
|
|
156
156
|
"webpackbar": "^5.0.2",
|
|
157
|
-
"@jetlinks-web/
|
|
157
|
+
"@jetlinks-web/hooks": "^1.1.1",
|
|
158
158
|
"@jetlinks-web/constants": "^1.0.9",
|
|
159
|
-
"@jetlinks-web/
|
|
159
|
+
"@jetlinks-web/utils": "^1.2.12"
|
|
160
160
|
},
|
|
161
161
|
"publishConfig": {
|
|
162
162
|
"registry": "https://registry.npmjs.org/",
|