deps.js 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.COMPONENT_DEPS_CSS = exports.API_DEPS_CSS = void 0;
  4. const constants_1 = require("./constants");
  5. const RESIZE_SENSOR_CSS = constants_1.BASE_COMPONENTS_STYLE_PATH + 'resize-sensor.css';
  6. exports.API_DEPS_CSS = {
  7. showModal: [`${constants_1.H5_API_STYLE_PATH}modal.css`],
  8. showToast: [`${constants_1.H5_API_STYLE_PATH}toast.css`],
  9. showActionSheet: [`${constants_1.H5_API_STYLE_PATH}action-sheet.css`],
  10. previewImage: [
  11. RESIZE_SENSOR_CSS,
  12. `${constants_1.BASE_COMPONENTS_STYLE_PATH}swiper.css`,
  13. `${constants_1.BASE_COMPONENTS_STYLE_PATH}swiper-item.css`,
  14. `${constants_1.BASE_COMPONENTS_STYLE_PATH}movable-area.css`,
  15. `${constants_1.BASE_COMPONENTS_STYLE_PATH}movable-view.css`,
  16. ],
  17. openLocation: [`${constants_1.H5_API_STYLE_PATH}location-view.css`],
  18. chooseLocation: [
  19. `${constants_1.H5_API_STYLE_PATH}/location-picker.css`,
  20. `${constants_1.BASE_COMPONENTS_STYLE_PATH}/input.css`,
  21. `${constants_1.H5_COMPONENTS_STYLE_PATH}/map.css`,
  22. `${constants_1.BASE_COMPONENTS_STYLE_PATH}/scroll-view.css`,
  23. ],
  24. };
  25. exports.COMPONENT_DEPS_CSS = {
  26. canvas: [RESIZE_SENSOR_CSS],
  27. image: [RESIZE_SENSOR_CSS],
  28. 'movable-area': [RESIZE_SENSOR_CSS],
  29. 'picker-view': [RESIZE_SENSOR_CSS],
  30. 'picker-view-column': [RESIZE_SENSOR_CSS],
  31. 'rich-text': [RESIZE_SENSOR_CSS],
  32. textarea: [RESIZE_SENSOR_CSS],
  33. 'web-view': [RESIZE_SENSOR_CSS],
  34. picker: [
  35. RESIZE_SENSOR_CSS,
  36. `${constants_1.BASE_COMPONENTS_STYLE_PATH}picker-view.css`,
  37. `${constants_1.BASE_COMPONENTS_STYLE_PATH}picker-view-column.css`,
  38. ],
  39. };