3h1-ui 1.0.100 → 1.0.102

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 CHANGED
@@ -1951,7 +1951,18 @@ const _sfc_main$13 = defineComponent({
1951
1951
  function handleChange(_, ...args) {
1952
1952
  emitData.value = args;
1953
1953
  }
1954
- return { state, attrs, getOptions, loading, handleFetch, handleChange };
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({
@@ -5547,6 +5560,22 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
5547
5560
  plain: true
5548
5561
  });
5549
5562
  }
5563
+ if (schema2.component === "Input") {
5564
+ const showCount = (componentProps == null ? void 0 : componentProps.showCount) === void 0 ? true : componentProps.showCount;
5565
+ const maxlength = (componentProps == null ? void 0 : componentProps.maxlength) === void 0 ? 100 : componentProps.maxlength;
5566
+ componentProps = Object.assign({}, componentProps, {
5567
+ showCount,
5568
+ maxlength
5569
+ });
5570
+ }
5571
+ if (schema2.component === "Select") {
5572
+ componentProps = Object.assign({}, componentProps, {
5573
+ showSearch: true,
5574
+ filterOption: (input, option) => {
5575
+ return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0;
5576
+ }
5577
+ });
5578
+ }
5550
5579
  return componentProps;
5551
5580
  });
5552
5581
  const getDisable = computed(() => {
@@ -12014,12 +12043,13 @@ const _sfc_main$k = defineComponent({
12014
12043
  const index_vue_vue_type_style_index_0_lang = "";
12015
12044
  const _hoisted_1$a = { class: "table-settings" };
12016
12045
  function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
12046
+ var _a2, _b, _c, _d, _e;
12017
12047
  const _component_ShowSearchSetting = resolveComponent("ShowSearchSetting");
12018
12048
  const _component_SizeSetting = resolveComponent("SizeSetting");
12019
12049
  const _component_ColumnSetting = resolveComponent("ColumnSetting");
12020
12050
  const _component_FullScreenSetting = resolveComponent("FullScreenSetting");
12021
12051
  return openBlock(), createElementBlock("div", _hoisted_1$a, [
12022
- _ctx.getBindValues.useSearchForm ? (openBlock(), createBlock(_component_ShowSearchSetting, {
12052
+ ((_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, {
12023
12053
  key: 0,
12024
12054
  getPopupContainer: _ctx.getTableContainer
12025
12055
  }, 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
- return { state, attrs, getOptions, loading, handleFetch, handleChange };
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({
@@ -5552,6 +5565,22 @@ const _sfc_main$K = /* @__PURE__ */ vue.defineComponent({
5552
5565
  plain: true
5553
5566
  });
5554
5567
  }
5568
+ if (schema2.component === "Input") {
5569
+ const showCount = (componentProps == null ? void 0 : componentProps.showCount) === void 0 ? true : componentProps.showCount;
5570
+ const maxlength = (componentProps == null ? void 0 : componentProps.maxlength) === void 0 ? 100 : componentProps.maxlength;
5571
+ componentProps = Object.assign({}, componentProps, {
5572
+ showCount,
5573
+ maxlength
5574
+ });
5575
+ }
5576
+ if (schema2.component === "Select") {
5577
+ componentProps = Object.assign({}, componentProps, {
5578
+ showSearch: true,
5579
+ filterOption: (input, option) => {
5580
+ return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0;
5581
+ }
5582
+ });
5583
+ }
5555
5584
  return componentProps;
5556
5585
  });
5557
5586
  const getDisable = vue.computed(() => {
@@ -12019,12 +12048,13 @@ const _sfc_main$k = vue.defineComponent({
12019
12048
  const index_vue_vue_type_style_index_0_lang = "";
12020
12049
  const _hoisted_1$a = { class: "table-settings" };
12021
12050
  function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
12051
+ var _a2, _b, _c, _d, _e;
12022
12052
  const _component_ShowSearchSetting = vue.resolveComponent("ShowSearchSetting");
12023
12053
  const _component_SizeSetting = vue.resolveComponent("SizeSetting");
12024
12054
  const _component_ColumnSetting = vue.resolveComponent("ColumnSetting");
12025
12055
  const _component_FullScreenSetting = vue.resolveComponent("FullScreenSetting");
12026
12056
  return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$a, [
12027
- _ctx.getBindValues.useSearchForm ? (vue.openBlock(), vue.createBlock(_component_ShowSearchSetting, {
12057
+ ((_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, {
12028
12058
  key: 0,
12029
12059
  getPopupContainer: _ctx.getTableContainer
12030
12060
  }, null, 8, ["getPopupContainer"])) : vue.createCommentVNode("", true),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "3h1-ui",
3
- "version": "1.0.100",
3
+ "version": "1.0.102",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",