input.wxs 354 B

12345678910111213141516
  1. function getInputClass(classPrefix, suffix, align, disabled) {
  2. var className = [classPrefix + '__control'];
  3. if (align) {
  4. className.push(classPrefix + '__control--' + align);
  5. }
  6. if (disabled) {
  7. className.push(classPrefix + '__control--disabled');
  8. }
  9. return className.join(' ');
  10. }
  11. module.exports = {
  12. getInputClass: getInputClass,
  13. };