UNPKG

react-form-ui-y

Version:

88 lines (80 loc) 2.86 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.inputSty = undefined; var _react = require("react"); var _react2 = _interopRequireDefault(_react); var _reactUtilsY = require("react-utils-y"); var _formStyle = require("../formStyle"); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var inputSty = function inputSty(_theme, _this) { var publicSty = (0, _formStyle.defaultPublic)(_theme, _this); var sty = { inputBox: { padding: "0", margin: "0", width: "100%", border: "none", outline: "none", textOverflow: "ellipsis", color: "" + (_theme.publicForm.valueColor || '#666666'), fontWeight: "initial", fontFamily: "Microsoft YaHei", display: "block", height: "2rem", lineHeight: "2rem", wordBreak: "keep-all", overflow: "hidden", background: "rgba(0, 0, 0, 0)", paddingLeft: "0.625rem", paddingRight: "0.625rem", boxSizing: "border-box", textAlign: _this.props.valueAlign, fontSize: "" + (_theme.publicForm.textFontSize || "") }, inputBoxFocus: { padding: "0", margin: "0", width: "100%", border: "none", outline: "none", textOverflow: "ellipsis", color: "" + (_theme.publicForm.focusColor || '#666666'), fontWeight: "initial", fontFamily: "Microsoft YaHei", display: "block", height: "2rem", lineHeight: "2rem", wordBreak: "keep-all", overflow: "hidden", background: "rgba(0, 0, 0, 0)", paddingLeft: "0.625rem", paddingRight: "0.625rem", boxSizing: "border-box", textAlign: _this.props.valueAlign, fontSize: "" + (_theme.publicForm.textFontSize || "") }, //input禁用样式 inputBoxDis: { width: "100%", textOverflow: "ellipsis", color: "" + (_theme.publicForm.disValueColor || '#000'), fontWeight: "initial", fontFamily: "Microsoft YaHei", display: "block", height: "2rem", lineHeight: "2rem", wordBreak: "keep-all", overflow: "hidden", paddingLeft: "0.625rem", paddingRight: "0.625rem", boxSizing: "border-box", textAlign: _this.props.valueAlign, fontSize: "" + (_theme.publicForm.textFontSize || "") } }; return _reactUtilsY._Object.merge(publicSty, sty); }; exports.inputSty = inputSty; //# sourceMappingURL=inputStyle.js.map