@hw-component/form 1.9.45 → 1.9.46
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/Select/index.js
CHANGED
|
@@ -12,7 +12,7 @@ import Index$2 from './components/AllSelect.js';
|
|
|
12
12
|
import { useMatchConfigProps, useChangeOptions, useClassName } from '../hooks/index.js';
|
|
13
13
|
import HFormConnect from '../Form/HFormConnect.js';
|
|
14
14
|
|
|
15
|
-
var _excluded = ["style", "mode", "options", "modeConfig", "value", "onChange", "fieldNames", "request", "manual", "optionLabelProp", "filterProvider", "optionFilterProp", "serviceSearch", "onSearch", "filterOption", "showSearch", "labelInValue", "noMatchItemRender", "allSelect", "addDispatchListener", "addFormat", "dispatch", "isList", "onPopupScroll", "addonBefore", "addonAfter"],
|
|
15
|
+
var _excluded = ["style", "mode", "options", "modeConfig", "value", "onChange", "fieldNames", "request", "manual", "optionLabelProp", "filterProvider", "optionFilterProp", "serviceSearch", "onSearch", "filterOption", "showSearch", "labelInValue", "noMatchItemRender", "allSelect", "addDispatchListener", "addFormat", "dispatch", "isList", "onPopupScroll", "addonBefore", "addonAfter", "className"],
|
|
16
16
|
_excluded2 = ["value", "label"];
|
|
17
17
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
18
18
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
@@ -51,6 +51,7 @@ var Index = function Index(_ref) {
|
|
|
51
51
|
propsOnPopupScroll = _ref.onPopupScroll,
|
|
52
52
|
addonBefore = _ref.addonBefore,
|
|
53
53
|
addonAfter = _ref.addonAfter,
|
|
54
|
+
className = _ref.className,
|
|
54
55
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
55
56
|
var _ref2 = (modeConfig === null || modeConfig === void 0 ? void 0 : modeConfig[mode || ""]) || {},
|
|
56
57
|
icon = _ref2.icon,
|
|
@@ -105,7 +106,7 @@ var Index = function Index(_ref) {
|
|
|
105
106
|
change = _useValueChange.change;
|
|
106
107
|
addDispatchListener === null || addDispatchListener === void 0 || addDispatchListener("reload", reload);
|
|
107
108
|
return jsxs("div", {
|
|
108
|
-
className: "".concat(boxClassName, " ").concat(addonBefore ? addonBeforeBoxClassName : "", " ").concat(addonAfter ? addonAfterBoxClassName : ""),
|
|
109
|
+
className: "".concat(boxClassName, " ").concat(addonBefore ? addonBeforeBoxClassName : "", " ").concat(addonAfter ? addonAfterBoxClassName : "", " ").concat(className),
|
|
109
110
|
style: style,
|
|
110
111
|
children: [addonBefore && jsx("div", {
|
|
111
112
|
className: "".concat(addonClassname, " ").concat(addonBeforeClassName),
|
package/lib/Select/index.js
CHANGED
|
@@ -15,7 +15,7 @@ var AllSelect = require('./components/AllSelect.js');
|
|
|
15
15
|
var index = require('../hooks/index.js');
|
|
16
16
|
var HFormConnect = require('../Form/HFormConnect.js');
|
|
17
17
|
|
|
18
|
-
var _excluded = ["style", "mode", "options", "modeConfig", "value", "onChange", "fieldNames", "request", "manual", "optionLabelProp", "filterProvider", "optionFilterProp", "serviceSearch", "onSearch", "filterOption", "showSearch", "labelInValue", "noMatchItemRender", "allSelect", "addDispatchListener", "addFormat", "dispatch", "isList", "onPopupScroll", "addonBefore", "addonAfter"],
|
|
18
|
+
var _excluded = ["style", "mode", "options", "modeConfig", "value", "onChange", "fieldNames", "request", "manual", "optionLabelProp", "filterProvider", "optionFilterProp", "serviceSearch", "onSearch", "filterOption", "showSearch", "labelInValue", "noMatchItemRender", "allSelect", "addDispatchListener", "addFormat", "dispatch", "isList", "onPopupScroll", "addonBefore", "addonAfter", "className"],
|
|
19
19
|
_excluded2 = ["value", "label"];
|
|
20
20
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
21
21
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
@@ -54,6 +54,7 @@ var Index = function Index(_ref) {
|
|
|
54
54
|
propsOnPopupScroll = _ref.onPopupScroll,
|
|
55
55
|
addonBefore = _ref.addonBefore,
|
|
56
56
|
addonAfter = _ref.addonAfter,
|
|
57
|
+
className = _ref.className,
|
|
57
58
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
58
59
|
var _ref2 = (modeConfig === null || modeConfig === void 0 ? void 0 : modeConfig[mode || ""]) || {},
|
|
59
60
|
icon = _ref2.icon,
|
|
@@ -108,7 +109,7 @@ var Index = function Index(_ref) {
|
|
|
108
109
|
change = _useValueChange.change;
|
|
109
110
|
addDispatchListener === null || addDispatchListener === void 0 || addDispatchListener("reload", reload);
|
|
110
111
|
return jsxRuntime.jsxs("div", {
|
|
111
|
-
className: "".concat(boxClassName, " ").concat(addonBefore ? addonBeforeBoxClassName : "", " ").concat(addonAfter ? addonAfterBoxClassName : ""),
|
|
112
|
+
className: "".concat(boxClassName, " ").concat(addonBefore ? addonBeforeBoxClassName : "", " ").concat(addonAfter ? addonAfterBoxClassName : "", " ").concat(className),
|
|
112
113
|
style: style,
|
|
113
114
|
children: [addonBefore && jsxRuntime.jsx("div", {
|
|
114
115
|
className: "".concat(addonClassname, " ").concat(addonBeforeClassName),
|
package/package.json
CHANGED
|
@@ -37,6 +37,7 @@ const Index: React.FC<HSelectProps> = ({
|
|
|
37
37
|
onPopupScroll: propsOnPopupScroll,
|
|
38
38
|
addonBefore,
|
|
39
39
|
addonAfter,
|
|
40
|
+
className,
|
|
40
41
|
...props
|
|
41
42
|
}) => {
|
|
42
43
|
const { icon, render } = modeConfig?.[mode || ""] || {};
|
|
@@ -82,7 +83,7 @@ const Index: React.FC<HSelectProps> = ({
|
|
|
82
83
|
});
|
|
83
84
|
addDispatchListener?.("reload", reload);
|
|
84
85
|
return (
|
|
85
|
-
<div className={`${boxClassName} ${addonBefore?addonBeforeBoxClassName:""} ${addonAfter?addonAfterBoxClassName:""}`} style={style}>
|
|
86
|
+
<div className={`${boxClassName} ${addonBefore?addonBeforeBoxClassName:""} ${addonAfter?addonAfterBoxClassName:""} ${className}`} style={style}>
|
|
86
87
|
{addonBefore&& <div className={`${addonClassname} ${addonBeforeClassName}`}>
|
|
87
88
|
{addonBefore}
|
|
88
89
|
</div>}
|