tenghui-ui 2.0.21 → 2.0.23
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/dist/style.css +1 -1
- package/dist/tenghui-ui.es.js +10 -5
- package/dist/tenghui-ui.es.js.map +1 -1
- package/dist/tenghui-ui.umd.js +4 -4
- package/dist/tenghui-ui.umd.js.map +1 -1
- package/package.json +1 -1
- package/packages/form-item/src/index.vue +2 -1
- package/packages/search/src/DefaultItem.vue +7 -1
- package/packages/search/src/index.vue +2 -1
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
</slot>
|
|
9
9
|
</div>
|
|
10
10
|
<div class="ui-item__main" :class="inlineLabel ? 'inline_form' : ''">
|
|
11
|
-
<template v-if="type === 'input'">
|
|
11
|
+
<template v-if="type === 'input' || type == 'password'">
|
|
12
12
|
<span v-if="inlineLabel" class="inline_label" :style="{ width: labelWidth }">{{ inlineLabel }}</span>
|
|
13
13
|
<div class="flex">
|
|
14
14
|
<div :class="{ 'ui-item-prepend': !!$slots.mprepend }">
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
<el-input
|
|
18
18
|
:class="{ inline_content: inlineLabel }"
|
|
19
19
|
:ref="type"
|
|
20
|
+
:type="type"
|
|
20
21
|
v-on="$listeners"
|
|
21
22
|
v-model="modelForm"
|
|
22
23
|
v-bind="setDefaultAttrs(polyfillAttrs($attrs))"
|
|
@@ -12,12 +12,18 @@ export default {
|
|
|
12
12
|
render(h) {
|
|
13
13
|
const vnode = this._props.vnode;
|
|
14
14
|
const prepend = vnode.$slots.prepend;
|
|
15
|
+
const append = vnode.$slots.append;
|
|
15
16
|
return h(this._props.vnode.constructor, {
|
|
16
17
|
on: vnode.$listeners,
|
|
17
18
|
props: vnode.$options.propsData,
|
|
18
19
|
attrs: vnode.$attrs,
|
|
19
20
|
staticStyle: vnode.staticStyle
|
|
20
|
-
},
|
|
21
|
+
},
|
|
22
|
+
[
|
|
23
|
+
prepend ? [h('div', { slot: 'prepend' }, prepend)] : [],
|
|
24
|
+
append ? [h('div', { slot: 'append' }, append)] : []
|
|
25
|
+
]
|
|
26
|
+
);
|
|
21
27
|
},
|
|
22
28
|
};
|
|
23
29
|
</script>
|
|
@@ -176,8 +176,9 @@ export default {
|
|
|
176
176
|
}, []);
|
|
177
177
|
|
|
178
178
|
const queryFn = this.$parent.handleQuery;
|
|
179
|
+
const SearchConfig = this.$UICONFIG.searchConfig;
|
|
179
180
|
if (queryFn) {
|
|
180
|
-
queryFn();
|
|
181
|
+
queryFn({ ...(SearchConfig.defaultParams || {}) });
|
|
181
182
|
} else {
|
|
182
183
|
this.$emit('query');
|
|
183
184
|
}
|