action-sheet.wxs 456 B

12345678910111213141516171819
  1. var getListThemeItemClass = function (props) {
  2. var classPrefix = props.classPrefix;
  3. var item = props.item;
  4. var prefix = props.prefix;
  5. var classList = [classPrefix + '__list-item'];
  6. if (item.disabled) {
  7. classList.push(prefix + '-is-disabled');
  8. }
  9. return classList.join(' ');
  10. };
  11. var isImage = function (name) {
  12. return name.indexOf('/') !== -1;
  13. };
  14. module.exports = {
  15. getListThemeItemClass: getListThemeItemClass,
  16. isImage: isImage,
  17. };