3h1-ui 1.0.101 → 1.0.103
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/index.js +57 -12
- package/lib/index.js +57 -12
- package/package.json +1 -1
package/es/index.js
CHANGED
|
@@ -1951,7 +1951,18 @@ const _sfc_main$13 = defineComponent({
|
|
|
1951
1951
|
function handleChange(_, ...args) {
|
|
1952
1952
|
emitData.value = args;
|
|
1953
1953
|
}
|
|
1954
|
-
|
|
1954
|
+
const filterOption = (input, option) => {
|
|
1955
|
+
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
1956
|
+
};
|
|
1957
|
+
return {
|
|
1958
|
+
state,
|
|
1959
|
+
attrs,
|
|
1960
|
+
getOptions,
|
|
1961
|
+
loading,
|
|
1962
|
+
handleFetch,
|
|
1963
|
+
handleChange,
|
|
1964
|
+
filterOption
|
|
1965
|
+
};
|
|
1955
1966
|
}
|
|
1956
1967
|
});
|
|
1957
1968
|
function _sfc_render$J(_ctx, _cache, $props, $setup, $data, $options) {
|
|
@@ -1961,7 +1972,9 @@ function _sfc_render$J(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1961
1972
|
onChange: _ctx.handleChange,
|
|
1962
1973
|
options: _ctx.getOptions,
|
|
1963
1974
|
value: _ctx.state,
|
|
1964
|
-
"onUpdate:value": _cache[0] || (_cache[0] = ($event) => _ctx.state = $event)
|
|
1975
|
+
"onUpdate:value": _cache[0] || (_cache[0] = ($event) => _ctx.state = $event),
|
|
1976
|
+
"filter-option": _ctx.filterOption,
|
|
1977
|
+
"show-search": ""
|
|
1965
1978
|
}), createSlots({ _: 2 }, [
|
|
1966
1979
|
renderList(Object.keys(_ctx.$slots), (item) => {
|
|
1967
1980
|
return {
|
|
@@ -1991,7 +2004,7 @@ function _sfc_render$J(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1991
2004
|
]),
|
|
1992
2005
|
key: "1"
|
|
1993
2006
|
} : void 0
|
|
1994
|
-
]), 1040, ["onDropdownVisibleChange", "onChange", "options", "value"]);
|
|
2007
|
+
]), 1040, ["onDropdownVisibleChange", "onChange", "options", "value", "filter-option"]);
|
|
1995
2008
|
}
|
|
1996
2009
|
const ApiSelect = /* @__PURE__ */ _export_sfc(_sfc_main$13, [["render", _sfc_render$J]]);
|
|
1997
2010
|
const _sfc_main$12 = defineComponent({
|
|
@@ -2149,13 +2162,32 @@ const _sfc_main$11 = defineComponent({
|
|
|
2149
2162
|
isFirstLoaded.value = true;
|
|
2150
2163
|
emit("options-change", treeData.value);
|
|
2151
2164
|
}
|
|
2152
|
-
|
|
2165
|
+
const filterTreeNode = (input, node) => {
|
|
2166
|
+
if (typeof node.label === "string") {
|
|
2167
|
+
if (node.label.indexOf(input) !== -1) {
|
|
2168
|
+
return true;
|
|
2169
|
+
} else {
|
|
2170
|
+
return false;
|
|
2171
|
+
}
|
|
2172
|
+
} else {
|
|
2173
|
+
if (node.label.indexOf(input) !== -1) {
|
|
2174
|
+
return true;
|
|
2175
|
+
} else {
|
|
2176
|
+
return false;
|
|
2177
|
+
}
|
|
2178
|
+
}
|
|
2179
|
+
};
|
|
2180
|
+
return { getAttrs, loading, handleChange, filterTreeNode };
|
|
2153
2181
|
}
|
|
2154
2182
|
});
|
|
2155
2183
|
function _sfc_render$H(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2156
2184
|
const _component_LoadingOutlined = resolveComponent("LoadingOutlined");
|
|
2157
2185
|
const _component_a_tree_select = resolveComponent("a-tree-select");
|
|
2158
|
-
return openBlock(), createBlock(_component_a_tree_select, mergeProps(_ctx.getAttrs, {
|
|
2186
|
+
return openBlock(), createBlock(_component_a_tree_select, mergeProps(_ctx.getAttrs, {
|
|
2187
|
+
onChange: _ctx.handleChange,
|
|
2188
|
+
"show-search": "",
|
|
2189
|
+
filterTreeNode: _ctx.filterTreeNode
|
|
2190
|
+
}), createSlots({ _: 2 }, [
|
|
2159
2191
|
renderList(Object.keys(_ctx.$slots), (item) => {
|
|
2160
2192
|
return {
|
|
2161
2193
|
name: item,
|
|
@@ -2171,7 +2203,7 @@ function _sfc_render$H(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2171
2203
|
]),
|
|
2172
2204
|
key: "0"
|
|
2173
2205
|
} : void 0
|
|
2174
|
-
]), 1040, ["onChange"]);
|
|
2206
|
+
]), 1040, ["onChange", "filterTreeNode"]);
|
|
2175
2207
|
}
|
|
2176
2208
|
const ApiTreeSelect = /* @__PURE__ */ _export_sfc(_sfc_main$11, [["render", _sfc_render$H]]);
|
|
2177
2209
|
const _sfc_main$10 = defineComponent({
|
|
@@ -5547,11 +5579,23 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
5547
5579
|
plain: true
|
|
5548
5580
|
});
|
|
5549
5581
|
}
|
|
5550
|
-
|
|
5551
|
-
|
|
5552
|
-
|
|
5553
|
-
|
|
5554
|
-
|
|
5582
|
+
if (schema2.component === "Input") {
|
|
5583
|
+
const showCount = (componentProps == null ? void 0 : componentProps.showCount) === void 0 ? true : componentProps.showCount;
|
|
5584
|
+
const maxlength = (componentProps == null ? void 0 : componentProps.maxlength) === void 0 ? 100 : componentProps.maxlength;
|
|
5585
|
+
componentProps = Object.assign({}, componentProps, {
|
|
5586
|
+
showCount,
|
|
5587
|
+
maxlength
|
|
5588
|
+
});
|
|
5589
|
+
}
|
|
5590
|
+
if (schema2.component === "Select") {
|
|
5591
|
+
componentProps = Object.assign({}, componentProps, {
|
|
5592
|
+
showSearch: true,
|
|
5593
|
+
filterOption: (input, option) => {
|
|
5594
|
+
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
5595
|
+
}
|
|
5596
|
+
});
|
|
5597
|
+
}
|
|
5598
|
+
return componentProps;
|
|
5555
5599
|
});
|
|
5556
5600
|
const getDisable = computed(() => {
|
|
5557
5601
|
const {
|
|
@@ -12018,12 +12062,13 @@ const _sfc_main$k = defineComponent({
|
|
|
12018
12062
|
const index_vue_vue_type_style_index_0_lang = "";
|
|
12019
12063
|
const _hoisted_1$a = { class: "table-settings" };
|
|
12020
12064
|
function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
12065
|
+
var _a2, _b, _c, _d, _e;
|
|
12021
12066
|
const _component_ShowSearchSetting = resolveComponent("ShowSearchSetting");
|
|
12022
12067
|
const _component_SizeSetting = resolveComponent("SizeSetting");
|
|
12023
12068
|
const _component_ColumnSetting = resolveComponent("ColumnSetting");
|
|
12024
12069
|
const _component_FullScreenSetting = resolveComponent("FullScreenSetting");
|
|
12025
12070
|
return openBlock(), createElementBlock("div", _hoisted_1$a, [
|
|
12026
|
-
_ctx.getBindValues.
|
|
12071
|
+
((_b = (_a2 = _ctx.getBindValues) == null ? void 0 : _a2.formConfig) == null ? void 0 : _b.schemas) && ((_e = (_d = (_c = _ctx.getBindValues) == null ? void 0 : _c.formConfig) == null ? void 0 : _d.schemas) == null ? void 0 : _e.length) !== 0 ? (openBlock(), createBlock(_component_ShowSearchSetting, {
|
|
12027
12072
|
key: 0,
|
|
12028
12073
|
getPopupContainer: _ctx.getTableContainer
|
|
12029
12074
|
}, null, 8, ["getPopupContainer"])) : createCommentVNode("", true),
|
package/lib/index.js
CHANGED
|
@@ -1956,7 +1956,18 @@ const _sfc_main$13 = vue.defineComponent({
|
|
|
1956
1956
|
function handleChange(_, ...args) {
|
|
1957
1957
|
emitData.value = args;
|
|
1958
1958
|
}
|
|
1959
|
-
|
|
1959
|
+
const filterOption = (input, option) => {
|
|
1960
|
+
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
1961
|
+
};
|
|
1962
|
+
return {
|
|
1963
|
+
state,
|
|
1964
|
+
attrs,
|
|
1965
|
+
getOptions,
|
|
1966
|
+
loading,
|
|
1967
|
+
handleFetch,
|
|
1968
|
+
handleChange,
|
|
1969
|
+
filterOption
|
|
1970
|
+
};
|
|
1960
1971
|
}
|
|
1961
1972
|
});
|
|
1962
1973
|
function _sfc_render$J(_ctx, _cache, $props, $setup, $data, $options) {
|
|
@@ -1966,7 +1977,9 @@ function _sfc_render$J(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1966
1977
|
onChange: _ctx.handleChange,
|
|
1967
1978
|
options: _ctx.getOptions,
|
|
1968
1979
|
value: _ctx.state,
|
|
1969
|
-
"onUpdate:value": _cache[0] || (_cache[0] = ($event) => _ctx.state = $event)
|
|
1980
|
+
"onUpdate:value": _cache[0] || (_cache[0] = ($event) => _ctx.state = $event),
|
|
1981
|
+
"filter-option": _ctx.filterOption,
|
|
1982
|
+
"show-search": ""
|
|
1970
1983
|
}), vue.createSlots({ _: 2 }, [
|
|
1971
1984
|
vue.renderList(Object.keys(_ctx.$slots), (item) => {
|
|
1972
1985
|
return {
|
|
@@ -1996,7 +2009,7 @@ function _sfc_render$J(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1996
2009
|
]),
|
|
1997
2010
|
key: "1"
|
|
1998
2011
|
} : void 0
|
|
1999
|
-
]), 1040, ["onDropdownVisibleChange", "onChange", "options", "value"]);
|
|
2012
|
+
]), 1040, ["onDropdownVisibleChange", "onChange", "options", "value", "filter-option"]);
|
|
2000
2013
|
}
|
|
2001
2014
|
const ApiSelect = /* @__PURE__ */ _export_sfc(_sfc_main$13, [["render", _sfc_render$J]]);
|
|
2002
2015
|
const _sfc_main$12 = vue.defineComponent({
|
|
@@ -2154,13 +2167,32 @@ const _sfc_main$11 = vue.defineComponent({
|
|
|
2154
2167
|
isFirstLoaded.value = true;
|
|
2155
2168
|
emit("options-change", treeData.value);
|
|
2156
2169
|
}
|
|
2157
|
-
|
|
2170
|
+
const filterTreeNode = (input, node) => {
|
|
2171
|
+
if (typeof node.label === "string") {
|
|
2172
|
+
if (node.label.indexOf(input) !== -1) {
|
|
2173
|
+
return true;
|
|
2174
|
+
} else {
|
|
2175
|
+
return false;
|
|
2176
|
+
}
|
|
2177
|
+
} else {
|
|
2178
|
+
if (node.label.indexOf(input) !== -1) {
|
|
2179
|
+
return true;
|
|
2180
|
+
} else {
|
|
2181
|
+
return false;
|
|
2182
|
+
}
|
|
2183
|
+
}
|
|
2184
|
+
};
|
|
2185
|
+
return { getAttrs, loading, handleChange, filterTreeNode };
|
|
2158
2186
|
}
|
|
2159
2187
|
});
|
|
2160
2188
|
function _sfc_render$H(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2161
2189
|
const _component_LoadingOutlined = vue.resolveComponent("LoadingOutlined");
|
|
2162
2190
|
const _component_a_tree_select = vue.resolveComponent("a-tree-select");
|
|
2163
|
-
return vue.openBlock(), vue.createBlock(_component_a_tree_select, vue.mergeProps(_ctx.getAttrs, {
|
|
2191
|
+
return vue.openBlock(), vue.createBlock(_component_a_tree_select, vue.mergeProps(_ctx.getAttrs, {
|
|
2192
|
+
onChange: _ctx.handleChange,
|
|
2193
|
+
"show-search": "",
|
|
2194
|
+
filterTreeNode: _ctx.filterTreeNode
|
|
2195
|
+
}), vue.createSlots({ _: 2 }, [
|
|
2164
2196
|
vue.renderList(Object.keys(_ctx.$slots), (item) => {
|
|
2165
2197
|
return {
|
|
2166
2198
|
name: item,
|
|
@@ -2176,7 +2208,7 @@ function _sfc_render$H(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2176
2208
|
]),
|
|
2177
2209
|
key: "0"
|
|
2178
2210
|
} : void 0
|
|
2179
|
-
]), 1040, ["onChange"]);
|
|
2211
|
+
]), 1040, ["onChange", "filterTreeNode"]);
|
|
2180
2212
|
}
|
|
2181
2213
|
const ApiTreeSelect = /* @__PURE__ */ _export_sfc(_sfc_main$11, [["render", _sfc_render$H]]);
|
|
2182
2214
|
const _sfc_main$10 = vue.defineComponent({
|
|
@@ -5552,11 +5584,23 @@ const _sfc_main$K = /* @__PURE__ */ vue.defineComponent({
|
|
|
5552
5584
|
plain: true
|
|
5553
5585
|
});
|
|
5554
5586
|
}
|
|
5555
|
-
|
|
5556
|
-
|
|
5557
|
-
|
|
5558
|
-
|
|
5559
|
-
|
|
5587
|
+
if (schema2.component === "Input") {
|
|
5588
|
+
const showCount = (componentProps == null ? void 0 : componentProps.showCount) === void 0 ? true : componentProps.showCount;
|
|
5589
|
+
const maxlength = (componentProps == null ? void 0 : componentProps.maxlength) === void 0 ? 100 : componentProps.maxlength;
|
|
5590
|
+
componentProps = Object.assign({}, componentProps, {
|
|
5591
|
+
showCount,
|
|
5592
|
+
maxlength
|
|
5593
|
+
});
|
|
5594
|
+
}
|
|
5595
|
+
if (schema2.component === "Select") {
|
|
5596
|
+
componentProps = Object.assign({}, componentProps, {
|
|
5597
|
+
showSearch: true,
|
|
5598
|
+
filterOption: (input, option) => {
|
|
5599
|
+
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
5600
|
+
}
|
|
5601
|
+
});
|
|
5602
|
+
}
|
|
5603
|
+
return componentProps;
|
|
5560
5604
|
});
|
|
5561
5605
|
const getDisable = vue.computed(() => {
|
|
5562
5606
|
const {
|
|
@@ -12023,12 +12067,13 @@ const _sfc_main$k = vue.defineComponent({
|
|
|
12023
12067
|
const index_vue_vue_type_style_index_0_lang = "";
|
|
12024
12068
|
const _hoisted_1$a = { class: "table-settings" };
|
|
12025
12069
|
function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
12070
|
+
var _a2, _b, _c, _d, _e;
|
|
12026
12071
|
const _component_ShowSearchSetting = vue.resolveComponent("ShowSearchSetting");
|
|
12027
12072
|
const _component_SizeSetting = vue.resolveComponent("SizeSetting");
|
|
12028
12073
|
const _component_ColumnSetting = vue.resolveComponent("ColumnSetting");
|
|
12029
12074
|
const _component_FullScreenSetting = vue.resolveComponent("FullScreenSetting");
|
|
12030
12075
|
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$a, [
|
|
12031
|
-
_ctx.getBindValues.
|
|
12076
|
+
((_b = (_a2 = _ctx.getBindValues) == null ? void 0 : _a2.formConfig) == null ? void 0 : _b.schemas) && ((_e = (_d = (_c = _ctx.getBindValues) == null ? void 0 : _c.formConfig) == null ? void 0 : _d.schemas) == null ? void 0 : _e.length) !== 0 ? (vue.openBlock(), vue.createBlock(_component_ShowSearchSetting, {
|
|
12032
12077
|
key: 0,
|
|
12033
12078
|
getPopupContainer: _ctx.getTableContainer
|
|
12034
12079
|
}, null, 8, ["getPopupContainer"])) : vue.createCommentVNode("", true),
|