deps.ts 963 字节
Newer Older
fxy060608's avatar
fxy060608 已提交
1 2
import { BASE_COMPONENTS_STYLE_PATH, H5_API_STYLE_PATH } from './constants'

3
export const API_DEPS_CSS = {
fxy060608's avatar
fxy060608 已提交
4 5 6 7 8 9
  showModal: [`${H5_API_STYLE_PATH}/modal.css`],
  showToast: [`${H5_API_STYLE_PATH}/toast.css`],
  showActionSheet: [`${H5_API_STYLE_PATH}/action-sheet.css`],
  previewImage: [
    `${BASE_COMPONENTS_STYLE_PATH}/swiper.css`,
    `${BASE_COMPONENTS_STYLE_PATH}/swiper-item.css`,
Q
qiang 已提交
10 11
    `${BASE_COMPONENTS_STYLE_PATH}/movable-area.css`,
    `${BASE_COMPONENTS_STYLE_PATH}/movable-view.css`,
fxy060608's avatar
fxy060608 已提交
12
  ],
Q
qiang 已提交
13
  openLocation: [`${H5_API_STYLE_PATH}/location-view.css`],
fxy060608's avatar
fxy060608 已提交
14
}
15 16 17 18 19 20 21 22 23 24 25 26 27

const RESIZE_SENSOR_CSS = BASE_COMPONENTS_STYLE_PATH + 'resize-sensor.css'

export const COMPONENT_DEPS_CSS = {
  canvas: [RESIZE_SENSOR_CSS],
  image: [RESIZE_SENSOR_CSS],
  'movable-area': [RESIZE_SENSOR_CSS],
  'picker-view': [RESIZE_SENSOR_CSS],
  'picker-view-column': [RESIZE_SENSOR_CSS],
  'rich-text': [RESIZE_SENSOR_CSS],
  textarea: [RESIZE_SENSOR_CSS],
  'web-view': [RESIZE_SENSOR_CSS],
}