unika-components 1.0.5 → 1.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,20 +1,21 @@
1
1
  import { PropType } from 'vue';
2
- import { ComponentData, PageData } from '../../defaultProps';
2
+ import { ComponentData, WorkData } from '../../defaultProps';
3
+ import 'swiper/swiper-bundle.css';
3
4
  declare const _default: import("vue").DefineComponent<{
4
- page: {
5
- type: PropType<PageData>;
5
+ work: {
6
+ type: PropType<WorkData>;
7
+ require: boolean;
6
8
  };
7
9
  components: {
8
10
  type: PropType<ComponentData[]>;
9
- required: true;
10
11
  };
11
- }, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
12
- page: {
13
- type: PropType<PageData>;
12
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
13
+ work: {
14
+ type: PropType<WorkData>;
15
+ require: boolean;
14
16
  };
15
17
  components: {
16
18
  type: PropType<ComponentData[]>;
17
- required: true;
18
19
  };
19
20
  }>>, {}, {}>;
20
21
  export default _default;
@@ -0,0 +1,14 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ [x: string]: any;
3
+ }, {
4
+ styleProps: import("vue").ComputedRef<Pick<any, string>>;
5
+ isPlaying: import("vue").Ref<boolean>;
6
+ showButton: import("vue").Ref<boolean>;
7
+ handleClick: () => void;
8
+ playOrPauseVideo: () => void;
9
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
10
+ [x: string]: any;
11
+ }>>, {
12
+ [x: string]: any;
13
+ }, {}>;
14
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import UniVideo from './UniVideo.vue';
2
+ export default UniVideo;
@@ -26,6 +26,7 @@ export interface WorkData {
26
26
  [key: string]: any;
27
27
  };
28
28
  type?: string;
29
+ effect?: 'slide' | 'fade' | 'cube' | 'coverflow' | 'flip' | undefined;
29
30
  width?: string;
30
31
  height?: string;
31
32
  pageMode?: string;
@@ -190,6 +191,28 @@ export declare const musicDefaultProps: {
190
191
  name: string;
191
192
  isPlaying: boolean;
192
193
  };
194
+ export declare const videoDefaultProps: {
195
+ actionType: string;
196
+ url: string;
197
+ height: string;
198
+ width: string;
199
+ paddingLeft: string;
200
+ paddingRight: string;
201
+ paddingTop: string;
202
+ paddingBottom: string;
203
+ borderStyle: string;
204
+ borderColor: string;
205
+ borderWidth: string;
206
+ borderRadius: string;
207
+ boxShadow: string;
208
+ opacity: number;
209
+ position: string;
210
+ left: string;
211
+ top: string;
212
+ right: string;
213
+ videoSrc: string;
214
+ isPlaying: boolean;
215
+ };
193
216
  export declare const componentsDefaultProps: {
194
217
  'uni-text': {
195
218
  props: {
@@ -307,6 +330,30 @@ export declare const componentsDefaultProps: {
307
330
  isPlaying: boolean;
308
331
  };
309
332
  };
333
+ 'uni-video': {
334
+ props: {
335
+ actionType: string;
336
+ url: string;
337
+ height: string;
338
+ width: string;
339
+ paddingLeft: string;
340
+ paddingRight: string;
341
+ paddingTop: string;
342
+ paddingBottom: string;
343
+ borderStyle: string;
344
+ borderColor: string;
345
+ borderWidth: string;
346
+ borderRadius: string;
347
+ boxShadow: string;
348
+ opacity: number;
349
+ position: string;
350
+ left: string;
351
+ top: string;
352
+ right: string;
353
+ videoSrc: string;
354
+ isPlaying: boolean;
355
+ };
356
+ };
310
357
  };
311
358
  export declare const isEditingProp: {
312
359
  isEditing: {
@@ -6,8 +6,9 @@ import LongPage from './components/LongPage';
6
6
  import SwiperPage from './components/SwiperPage';
7
7
  import UniBackground from './components/UniBackground';
8
8
  import UniMusic from './components/UniMusic';
9
+ import UniVideo from './components/UniVideo';
9
10
  declare const install: (app: App) => void;
10
- export { UniText, UniImage, UniShape, LongPage, SwiperPage, UniBackground, UniMusic, install };
11
+ export { UniText, UniImage, UniShape, LongPage, SwiperPage, UniBackground, UniMusic, UniVideo, install };
11
12
  declare const _default: {
12
13
  install: (app: App<any>) => void;
13
14
  };