jmash-diy-mp 0.1.4 → 0.1.6

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.
Files changed (58) hide show
  1. package/lib/api/diy/types.d.ts +8 -1
  2. package/lib/api/diy/types.js +9 -0
  3. package/lib/index.js +1 -1
  4. package/lib/node_modules/.pnpm/@mpxjs+mpx-cube-ui@1.4.15/node_modules/@mpxjs/mpx-cube-ui/src/common/helper/config-provider.d.ts +6 -0
  5. package/lib/node_modules/.pnpm/@mpxjs+mpx-cube-ui@1.4.15/node_modules/@mpxjs/mpx-cube-ui/src/common/helper/confirm-button-group.d.ts +53 -0
  6. package/lib/node_modules/.pnpm/@mpxjs+mpx-cube-ui@1.4.15/node_modules/@mpxjs/mpx-cube-ui/src/common/helper/create-component.d.ts +28 -0
  7. package/lib/node_modules/.pnpm/@mpxjs+mpx-cube-ui@1.4.15/node_modules/@mpxjs/mpx-cube-ui/src/common/helper/utils.d.ts +15 -0
  8. package/lib/node_modules/.pnpm/@mpxjs+mpx-cube-ui@1.4.15/node_modules/@mpxjs/mpx-cube-ui/src/common/mixins/common/config-provider.d.ts +2 -0
  9. package/lib/node_modules/.pnpm/@mpxjs+mpx-cube-ui@1.4.15/node_modules/@mpxjs/mpx-cube-ui/src/common/mixins/common/options.d.ts +7 -0
  10. package/lib/node_modules/.pnpm/@mpxjs+mpx-cube-ui@1.4.15/node_modules/@mpxjs/mpx-cube-ui/src/common/mixins/common/theme-props.d.ts +13 -0
  11. package/lib/node_modules/.pnpm/@mpxjs+mpx-cube-ui@1.4.15/node_modules/@mpxjs/mpx-cube-ui/src/common/mixins/confirm-button-group.d.ts +43 -0
  12. package/lib/node_modules/.pnpm/@mpxjs+mpx-cube-ui@1.4.15/node_modules/@mpxjs/mpx-cube-ui/src/common/mixins/form/checkbox-group.d.ts +62 -0
  13. package/lib/node_modules/.pnpm/@mpxjs+mpx-cube-ui@1.4.15/node_modules/@mpxjs/mpx-cube-ui/src/common/mixins/form/form-item.d.ts +33 -0
  14. package/lib/node_modules/.pnpm/@mpxjs+mpx-cube-ui@1.4.15/node_modules/@mpxjs/mpx-cube-ui/src/common/mixins/form/radio-group.d.ts +51 -0
  15. package/lib/node_modules/.pnpm/@mpxjs+mpx-cube-ui@1.4.15/node_modules/@mpxjs/mpx-cube-ui/src/common/mixins/index.d.ts +21 -0
  16. package/lib/node_modules/.pnpm/@mpxjs+mpx-cube-ui@1.4.15/node_modules/@mpxjs/mpx-cube-ui/src/common/mixins/mask.d.ts +18 -0
  17. package/lib/node_modules/.pnpm/@mpxjs+mpx-cube-ui@1.4.15/node_modules/@mpxjs/mpx-cube-ui/src/common/mixins/methods.d.ts +10 -0
  18. package/lib/node_modules/.pnpm/@mpxjs+mpx-cube-ui@1.4.15/node_modules/@mpxjs/mpx-cube-ui/src/common/mixins/modal/props.d.ts +50 -0
  19. package/lib/node_modules/.pnpm/@mpxjs+mpx-cube-ui@1.4.15/node_modules/@mpxjs/mpx-cube-ui/src/common/mixins/picker/date-picker.d.ts +37 -0
  20. package/lib/node_modules/.pnpm/@mpxjs+mpx-cube-ui@1.4.15/node_modules/@mpxjs/mpx-cube-ui/src/common/mixins/picker/picker-common.d.ts +20 -0
  21. package/lib/node_modules/.pnpm/@mpxjs+mpx-cube-ui@1.4.15/node_modules/@mpxjs/mpx-cube-ui/src/common/mixins/picker/picker.d.ts +20 -0
  22. package/lib/node_modules/.pnpm/@mpxjs+mpx-cube-ui@1.4.15/node_modules/@mpxjs/mpx-cube-ui/src/common/mixins/picker/time-picker.d.ts +85 -0
  23. package/lib/node_modules/.pnpm/@mpxjs+mpx-cube-ui@1.4.15/node_modules/@mpxjs/mpx-cube-ui/src/common/mixins/picker-modal/picker-modal-base.d.ts +57 -0
  24. package/lib/node_modules/.pnpm/@mpxjs+mpx-cube-ui@1.4.15/node_modules/@mpxjs/mpx-cube-ui/src/common/mixins/picker-popup/index.d.ts +24 -0
  25. package/lib/node_modules/.pnpm/@mpxjs+mpx-cube-ui@1.4.15/node_modules/@mpxjs/mpx-cube-ui/src/common/mixins/picker-popup/picker-popup-base.d.ts +27 -0
  26. package/lib/node_modules/.pnpm/@mpxjs+mpx-cube-ui@1.4.15/node_modules/@mpxjs/mpx-cube-ui/src/common/mixins/popup.d.ts +30 -0
  27. package/lib/node_modules/.pnpm/@mpxjs+mpx-cube-ui@1.4.15/node_modules/@mpxjs/mpx-cube-ui/src/common/mixins/transition.d.ts +30 -0
  28. package/lib/node_modules/.pnpm/@mpxjs+mpx-cube-ui@1.4.15/node_modules/@mpxjs/mpx-cube-ui/src/common/mixins/var-context.d.ts +8 -0
  29. package/lib/node_modules/.pnpm/@mpxjs+mpx-cube-ui@1.4.15/node_modules/@mpxjs/mpx-cube-ui/src/common/mixins/visibility.d.ts +21 -0
  30. package/lib/node_modules/.pnpm/@mpxjs+mpx-cube-ui@1.4.15/node_modules/@mpxjs/mpx-cube-ui/src/components/icon/icon.d.ts +1 -0
  31. package/lib/node_modules/.pnpm/@mpxjs+mpx-cube-ui@1.4.15/node_modules/@mpxjs/mpx-cube-ui/src/components/picker/picker.d.ts +10 -0
  32. package/lib/node_modules/.pnpm/@mpxjs+mpx-cube-ui@1.4.15/node_modules/@mpxjs/mpx-cube-ui/src/types/form-item.d.ts +48 -0
  33. package/lib/node_modules/.pnpm/jmash-core-mp@0.1.15_typescript@4.9.5/node_modules/jmash-core-mp/src/api/auth/index.d.ts +21 -0
  34. package/lib/node_modules/.pnpm/jmash-core-mp@0.1.15_typescript@4.9.5/node_modules/jmash-core-mp/src/api/auth/types.d.ts +86 -0
  35. package/lib/node_modules/.pnpm/jmash-core-mp@0.1.15_typescript@4.9.5/node_modules/jmash-core-mp/src/api/cms/index.d.ts +20 -0
  36. package/lib/node_modules/.pnpm/jmash-core-mp@0.1.15_typescript@4.9.5/node_modules/jmash-core-mp/src/api/cms/types.d.ts +200 -0
  37. package/lib/node_modules/.pnpm/jmash-core-mp@0.1.15_typescript@4.9.5/node_modules/jmash-core-mp/src/api/files/index.d.ts +25 -0
  38. package/lib/node_modules/.pnpm/jmash-core-mp@0.1.15_typescript@4.9.5/node_modules/jmash-core-mp/src/api/files/types.d.ts +38 -0
  39. package/lib/node_modules/.pnpm/jmash-core-mp@0.1.15_typescript@4.9.5/node_modules/jmash-core-mp/src/api/types.d.ts +41 -0
  40. package/lib/node_modules/.pnpm/jmash-core-mp@0.1.15_typescript@4.9.5/node_modules/jmash-core-mp/src/components/auth-user/jmash-update-user.mpx.d.ts +1 -0
  41. package/lib/node_modules/.pnpm/jmash-core-mp@0.1.15_typescript@4.9.5/node_modules/jmash-core-mp/src/components/cms/jmash-cms-article.mpx.d.ts +1 -0
  42. package/lib/node_modules/.pnpm/jmash-core-mp@0.1.15_typescript@4.9.5/node_modules/jmash-core-mp/src/components/core/jmash-login.mpx.d.ts +1 -0
  43. package/lib/node_modules/.pnpm/jmash-core-mp@0.1.15_typescript@4.9.5/node_modules/jmash-core-mp/src/packages/pages/cms/cms-article-list.mpx.d.ts +1 -0
  44. package/lib/node_modules/.pnpm/jmash-core-mp@0.1.15_typescript@4.9.5/node_modules/jmash-core-mp/src/store/user.d.ts +31 -0
  45. package/lib/node_modules/.pnpm/jmash-core-mp@0.1.15_typescript@4.9.5/node_modules/jmash-core-mp/src/utils/config.d.ts +3 -0
  46. package/lib/node_modules/.pnpm/jmash-core-mp@0.1.15_typescript@4.9.5/node_modules/jmash-core-mp/src/utils/db.d.ts +21 -0
  47. package/lib/node_modules/.pnpm/jmash-core-mp@0.1.15_typescript@4.9.5/node_modules/jmash-core-mp/src/utils/grpc.d.ts +5 -0
  48. package/lib/node_modules/.pnpm/jmash-core-mp@0.1.15_typescript@4.9.5/node_modules/jmash-core-mp/src/utils/net.d.ts +7 -0
  49. package/lib/src/api/diy/types.d.ts +8 -1
  50. package/package.json +2 -2
  51. package/src/api/diy/comp/index.ts +1 -1
  52. package/src/api/diy/types.ts +5 -1
  53. package/src/components/basic/basic-title-view.mpx +23 -12
  54. package/src/components/custom/custom-view-list.mpx +1 -0
  55. package/src/components/custom/custom-view.mpx +1 -0
  56. package/src/components/custom/organ-custom-view.mpx +1 -0
  57. package/src/components/organ/organ-notice-view.mpx +1 -0
  58. package/src/pages/custom.mpx +1 -0
@@ -7,12 +7,19 @@ export interface Comp {
7
7
  export interface CompData {
8
8
  showTitle: boolean;
9
9
  titleStyle: TitleStyle;
10
+ titleImage?: string;
10
11
  init: boolean;
11
12
  style?: any;
12
13
  showMore?: boolean;
14
+ showButton?: boolean;
13
15
  }
14
16
  export type CompType = "BASIC" | "VCARD" | "ORGAN" | "MALL" | "OTHER";
15
- export type TitleStyle = "left" | "center" | "right";
17
+ export declare enum TitleStyle {
18
+ style1 = 0,
19
+ style2 = 1,
20
+ style3 = 2,
21
+ style4 = 3
22
+ }
16
23
  export interface ImageComp extends CompData {
17
24
  style: ImageStyle;
18
25
  imageUrls: Array<string>;
@@ -1,3 +1,12 @@
1
+ // 标题样式
2
+ export var TitleStyle;
3
+ (function (TitleStyle) {
4
+ TitleStyle[TitleStyle["style1"] = 0] = "style1";
5
+ TitleStyle[TitleStyle["style2"] = 1] = "style2";
6
+ TitleStyle[TitleStyle["style3"] = 2] = "style3";
7
+ TitleStyle[TitleStyle["style4"] = 3] = "style4";
8
+ })(TitleStyle || (TitleStyle = {}));
9
+ ;
1
10
  // 图片样式
2
11
  export var ImageStyle;
3
12
  (function (ImageStyle) {
package/lib/index.js CHANGED
@@ -1,3 +1,3 @@
1
- export { Edition, ThemeStyle, ImageStyle, } from "./api/diy/types";
1
+ export { Edition, ThemeStyle, ImageStyle, TitleStyle, } from "./api/diy/types";
2
2
  export { diyCompApi } from "./api/diy/comp";
3
3
  export { diyPageApi } from "./api/diy/page";
@@ -0,0 +1,6 @@
1
+ interface ConfigProviderConfig {
2
+ global?: any;
3
+ }
4
+ declare const transformProperties: ConfigProviderConfig;
5
+ declare const configProvider: (config: ConfigProviderConfig) => void;
6
+ export { transformProperties, configProvider };
@@ -0,0 +1,53 @@
1
+ type FunctionOptions = Partial<{
2
+ openType: string;
3
+ appParameter: string;
4
+ lang: string;
5
+ sessionFrom: string;
6
+ sendMessageTitle: string;
7
+ sendMessagePath: string;
8
+ sendMessageImg: string;
9
+ showMessageCard: boolean;
10
+ formType: string;
11
+ scope: string;
12
+ }>;
13
+ type OptionBtn = {
14
+ text: string;
15
+ disabled?: boolean;
16
+ customStyle?: Record<string, any>;
17
+ type?: string;
18
+ [index: string]: any;
19
+ };
20
+ export type BtnOptions = {
21
+ text: string;
22
+ disabled?: boolean;
23
+ } & FunctionOptions;
24
+ export declare const defConfirmBtn: {
25
+ openType?: string | undefined;
26
+ appParameter?: string | undefined;
27
+ lang?: string | undefined;
28
+ sessionFrom?: string | undefined;
29
+ sendMessageTitle?: string | undefined;
30
+ sendMessagePath?: string | undefined;
31
+ sendMessageImg?: string | undefined;
32
+ showMessageCard?: boolean | undefined;
33
+ formType?: string | undefined;
34
+ scope?: string | undefined;
35
+ text: string;
36
+ disabled: boolean;
37
+ };
38
+ export declare const defCancelBtn: {
39
+ openType?: string | undefined;
40
+ appParameter?: string | undefined;
41
+ lang?: string | undefined;
42
+ sessionFrom?: string | undefined;
43
+ sendMessageTitle?: string | undefined;
44
+ sendMessagePath?: string | undefined;
45
+ sendMessageImg?: string | undefined;
46
+ showMessageCard?: boolean | undefined;
47
+ formType?: string | undefined;
48
+ scope?: string | undefined;
49
+ text: string;
50
+ disabled: boolean;
51
+ };
52
+ export declare function parseBtn(btn: string | OptionBtn, defBtn: OptionBtn): OptionBtn;
53
+ export {};
@@ -0,0 +1,28 @@
1
+ import { createComponent as _createComponent } from '@mpxjs/core';
2
+ type ComponentOptions = Parameters<typeof _createComponent>[0];
3
+ type CreateComponentReturnType = ReturnType<typeof _createComponent>;
4
+ /**
5
+ * TODO:
6
+ *
7
+ * 1. 组件分类:
8
+ * 1.1 common(基础公共): Button/Icon...
9
+ * 1.2 popup(弹出层): Modal/Picker/Dialog...
10
+ * 1.3 form(表单类): Radio/Checkbox/Textarea...
11
+ * 1.4 layout(布局类组件) Divider...
12
+ *
13
+ */
14
+ export declare function createComponent(options: ComponentOptions): CreateComponentReturnType;
15
+ export declare function createPopupComponent(options: ComponentOptions): CreateComponentReturnType;
16
+ export declare function createSelectComponent(options: ComponentOptions): CreateComponentReturnType;
17
+ export declare function createOptionButtonsComponent(options: ComponentOptions): CreateComponentReturnType;
18
+ export declare function createModalComponent(options: ComponentOptions): CreateComponentReturnType;
19
+ export declare function createPickerComponent(options: ComponentOptions): CreateComponentReturnType;
20
+ export declare function createPickerPopupBaseComponent(options: ComponentOptions): CreateComponentReturnType;
21
+ export declare function createPickerPopupComponent(options: ComponentOptions): CreateComponentReturnType;
22
+ export declare function createDatePickerComponent(options: ComponentOptions): CreateComponentReturnType;
23
+ export declare function createTimePickerComponent(options: ComponentOptions): CreateComponentReturnType;
24
+ export declare function createTimePickerPopupComponent(options: ComponentOptions): CreateComponentReturnType;
25
+ export declare function createPickerModalBaseComponent(options: ComponentOptions): CreateComponentReturnType;
26
+ export declare function createPickerModalComponent(options: ComponentOptions): CreateComponentReturnType;
27
+ export declare function createTimePickerModalComponent(options: ComponentOptions): CreateComponentReturnType;
28
+ export {};
@@ -0,0 +1,15 @@
1
+ type Func = (...args: any[]) => any;
2
+ type Obj = Record<string, any>;
3
+ declare const isFunc: (o: any) => o is Func;
4
+ declare const isUndef: (o: any) => o is undefined;
5
+ declare const isArray: (o: any) => o is any[];
6
+ declare const isString: (o: any) => o is string;
7
+ declare const isObject: (o: any) => o is Obj;
8
+ declare const isNumber: (o: any) => o is number;
9
+ declare const isDate: (o: any) => o is Date;
10
+ declare function deepAssign(to: Obj, from: Obj): void;
11
+ declare function findIndex<T>(ary: Array<T>, fn: (a: T, b: number, c: Array<T>) => boolean): number;
12
+ declare const isWeb: boolean;
13
+ declare const isWx: boolean;
14
+ declare const isAli: boolean;
15
+ export { isFunc, isUndef, isArray, isString, isObject, isNumber, isDate, deepAssign, findIndex, isWeb, isWx, isAli };
@@ -0,0 +1,2 @@
1
+ declare let configProviderMixin: any;
2
+ export { configProviderMixin };
@@ -0,0 +1,7 @@
1
+ export declare const optionsMixin: {
2
+ [index: string]: any;
3
+ data: {};
4
+ properties: {};
5
+ computed: {};
6
+ methods: {};
7
+ };
@@ -0,0 +1,13 @@
1
+ declare const _default: {
2
+ [index: string]: any;
3
+ data: {};
4
+ properties: {
5
+ themeType: {
6
+ type: StringConstructor;
7
+ value: string;
8
+ };
9
+ };
10
+ computed: {};
11
+ methods: {};
12
+ };
13
+ export default _default;
@@ -0,0 +1,43 @@
1
+ import type { BtnOptions } from '../helper/confirm-button-group';
2
+ declare const _default: {
3
+ [index: string]: any;
4
+ data: {};
5
+ properties: {
6
+ /**
7
+ * @description 按钮类型
8
+ * @optional optional/confirm
9
+ */
10
+ type: {
11
+ type: StringConstructor;
12
+ value: string;
13
+ };
14
+ /**
15
+ * @description 按钮方向
16
+ * @optional vertical/horizontal
17
+ */
18
+ direction: {
19
+ type: StringConstructor;
20
+ value: string;
21
+ };
22
+ /**
23
+ * @description 确定按钮
24
+ * @optional vertical/horizontal
25
+ */
26
+ confirmBtn: {
27
+ type: ObjectConstructor;
28
+ optionalTypes: StringConstructor[];
29
+ value: BtnOptions;
30
+ };
31
+ /**
32
+ * @description 取消按钮
33
+ */
34
+ cancelBtn: {
35
+ type: ObjectConstructor;
36
+ optionalTypes: StringConstructor[];
37
+ value: BtnOptions;
38
+ };
39
+ };
40
+ computed: {};
41
+ methods: {};
42
+ };
43
+ export default _default;
@@ -0,0 +1,62 @@
1
+ import { Value, ExtendOption } from '../../../types/form-item';
2
+ declare const _default: {
3
+ [index: string]: any;
4
+ data: {};
5
+ properties: {
6
+ /**
7
+ * @description 配置项数组
8
+ * @ali true
9
+ * @wx true
10
+ * @web true
11
+ */
12
+ options: {
13
+ type: ArrayConstructor;
14
+ value: ExtendOption[];
15
+ };
16
+ /**
17
+ * @description 选中值
18
+ * @optional
19
+ * @ali true
20
+ * @wx true
21
+ * @web true
22
+ */
23
+ values: {
24
+ type: ArrayConstructor;
25
+ value: Value[];
26
+ };
27
+ /**
28
+ * @description 选择框形状
29
+ * @optional round/square
30
+ * @ali true
31
+ * @wx true
32
+ * @web true
33
+ */
34
+ shape: {
35
+ type: StringConstructor;
36
+ value: string;
37
+ };
38
+ /**
39
+ * @description 是否表现为行内元素
40
+ * @ali true
41
+ * @wx true
42
+ * @web true
43
+ */
44
+ inline: {
45
+ type: BooleanConstructor;
46
+ value: false;
47
+ };
48
+ /**
49
+ * @description 控制每行展示的个数
50
+ * @ali true
51
+ * @wx true
52
+ * @web true
53
+ */
54
+ colNum: {
55
+ type: NumberConstructor;
56
+ value: number;
57
+ };
58
+ };
59
+ computed: {};
60
+ methods: {};
61
+ };
62
+ export default _default;
@@ -0,0 +1,33 @@
1
+ import { Option } from '../../../types/form-item';
2
+ declare const _default: {
3
+ [index: string]: any;
4
+ data: {};
5
+ properties: {
6
+ /**
7
+ * @description 配置项
8
+ * @optional Option
9
+ * @ali true
10
+ * @wx true
11
+ * @web true
12
+ */
13
+ option: {
14
+ type: ObjectConstructor;
15
+ value: Option;
16
+ };
17
+ /**
18
+ * @description 双向绑定属性值
19
+ * @optional String/Number
20
+ * @ali true
21
+ * @wx true
22
+ * @web true
23
+ */
24
+ value: {
25
+ type: StringConstructor;
26
+ optionalTypes: NumberConstructor[];
27
+ value: string;
28
+ };
29
+ };
30
+ computed: {};
31
+ methods: {};
32
+ };
33
+ export default _default;
@@ -0,0 +1,51 @@
1
+ import { ExtendOption } from '../../../types/form-item';
2
+ declare const _default: {
3
+ [index: string]: any;
4
+ data: {};
5
+ properties: {
6
+ /**
7
+ * @description 选项数据
8
+ * @ali true
9
+ * @wx true
10
+ * @web true
11
+ */
12
+ options: {
13
+ type: ArrayConstructor;
14
+ value: ExtendOption[];
15
+ };
16
+ /**
17
+ * @description 选中值
18
+ * @ali true
19
+ * @wx true
20
+ * @web true
21
+ */
22
+ value: {
23
+ type: StringConstructor;
24
+ optionalTypes: NumberConstructor[];
25
+ value: string;
26
+ };
27
+ /**
28
+ * @description 是否行内展示
29
+ * @ali true
30
+ * @wx true
31
+ * @web true
32
+ */
33
+ inline: {
34
+ type: BooleanConstructor;
35
+ value: false;
36
+ };
37
+ /**
38
+ * @description 控制每行展示的个数
39
+ * @ali true
40
+ * @wx true
41
+ * @web true
42
+ */
43
+ colNum: {
44
+ type: NumberConstructor;
45
+ value: number;
46
+ };
47
+ };
48
+ computed: {};
49
+ methods: {};
50
+ };
51
+ export default _default;
@@ -0,0 +1,21 @@
1
+ export { default as popupMixin } from './popup';
2
+ export { default as visibilityMixin } from './visibility';
3
+ export { default as methodsMixin } from './methods';
4
+ export { default as transitionMixin } from './transition';
5
+ export { default as confirmButtonGroupMixin } from './confirm-button-group';
6
+ export { default as maskMixin } from './mask';
7
+ export { default as radioGroupMixin } from './form/radio-group';
8
+ export { default as checkboxGroupMixin } from './form/checkbox-group';
9
+ export { default as formItemMixin } from './form/form-item';
10
+ export { default as modalPropsMixin } from './modal/props';
11
+ export { default as pickerMixin } from './picker/picker';
12
+ export { default as pickerCommonMixin } from './picker/picker-common';
13
+ export { default as datePickerMixin } from './picker/date-picker';
14
+ export { default as timePickerMixin } from './picker/time-picker';
15
+ export { default as pickerPopupBaseMixin } from './picker-popup/picker-popup-base';
16
+ export { default as pickerModalBaseMixin } from './picker-modal/picker-modal-base';
17
+ export { default as pickerPopupMixin } from './picker-popup';
18
+ export { default as themePropsMixin } from './common/theme-props';
19
+ export * from './common/options';
20
+ export * from './common/config-provider';
21
+ export { default as varContextMixin } from './var-context';
@@ -0,0 +1,18 @@
1
+ declare const _default: {
2
+ [index: string]: any;
3
+ data: {};
4
+ properties: {
5
+ /**
6
+ * @description 是否点击蒙层隐藏
7
+ */
8
+ maskClosable: {
9
+ type: BooleanConstructor;
10
+ value: false;
11
+ };
12
+ };
13
+ computed: {};
14
+ methods: {
15
+ onMaskClick(): void;
16
+ };
17
+ };
18
+ export default _default;
@@ -0,0 +1,10 @@
1
+ declare const _default: {
2
+ [index: string]: any;
3
+ data: {};
4
+ properties: {};
5
+ computed: {};
6
+ methods: {
7
+ preventTouchMove(): void;
8
+ };
9
+ };
10
+ export default _default;
@@ -0,0 +1,50 @@
1
+ declare const _default: {
2
+ [index: string]: any;
3
+ data: {};
4
+ properties: {
5
+ /**
6
+ * @description 标题
7
+ */
8
+ title: {
9
+ type: StringConstructor;
10
+ value: string;
11
+ };
12
+ /**
13
+ * @description 顶部取消按钮文案配置
14
+ */
15
+ cancelText: {
16
+ type: StringConstructor;
17
+ value: string;
18
+ };
19
+ /**
20
+ * @description 顶部取消按钮对齐方式
21
+ * @optional left/right
22
+ */
23
+ cancelBtnAlign: {
24
+ type: StringConstructor;
25
+ value: string;
26
+ };
27
+ /**
28
+ * @description 是否展示关闭按钮X
29
+ */
30
+ showCloseIcon: {
31
+ type: BooleanConstructor;
32
+ value: false;
33
+ };
34
+ hideOnConfirm: {
35
+ type: BooleanConstructor;
36
+ value: true;
37
+ };
38
+ hideOnCancel: {
39
+ type: BooleanConstructor;
40
+ value: true;
41
+ };
42
+ hideOnClose: {
43
+ type: BooleanConstructor;
44
+ value: true;
45
+ };
46
+ };
47
+ computed: {};
48
+ methods: {};
49
+ };
50
+ export default _default;
@@ -0,0 +1,37 @@
1
+ declare const _default: {
2
+ [index: string]: any;
3
+ data: {};
4
+ properties: {
5
+ min: {
6
+ type: null;
7
+ value: number[];
8
+ };
9
+ max: {
10
+ type: null;
11
+ value: number[];
12
+ };
13
+ startColumn: {
14
+ type: StringConstructor;
15
+ value: string;
16
+ };
17
+ columnCount: {
18
+ type: NumberConstructor;
19
+ value: number;
20
+ };
21
+ format: {
22
+ type: ObjectConstructor;
23
+ value: {};
24
+ };
25
+ value: {
26
+ type: null;
27
+ value: number;
28
+ };
29
+ columnOrder: {
30
+ type: ArrayConstructor;
31
+ value: string[];
32
+ };
33
+ };
34
+ computed: {};
35
+ methods: {};
36
+ };
37
+ export default _default;
@@ -0,0 +1,20 @@
1
+ declare const _default: {
2
+ [index: string]: any;
3
+ data: {};
4
+ properties: {
5
+ indicatorStyle: {
6
+ type: StringConstructor;
7
+ value: string;
8
+ };
9
+ immediateChange: {
10
+ type: BooleanConstructor;
11
+ value: false;
12
+ };
13
+ };
14
+ computed: {};
15
+ methods: {
16
+ onPickstart(e: any): void;
17
+ onPickend(e: any): void;
18
+ };
19
+ };
20
+ export default _default;
@@ -0,0 +1,20 @@
1
+ import { PickerColumn } from '../../../components/picker/picker';
2
+ declare const _default: {
3
+ [index: string]: any;
4
+ data: {};
5
+ properties: {
6
+ list: {
7
+ type: ArrayConstructor;
8
+ value: PickerColumn[];
9
+ };
10
+ selectedIndex: {
11
+ type: ArrayConstructor;
12
+ value: number[];
13
+ };
14
+ };
15
+ computed: {
16
+ merge(): any[][];
17
+ };
18
+ methods: {};
19
+ };
20
+ export default _default;
@@ -0,0 +1,85 @@
1
+ type NowConfig = {
2
+ text?: string;
3
+ };
4
+ export type MinuteStepConfig = {
5
+ rule?: string;
6
+ step?: number;
7
+ };
8
+ type DayConfig = {
9
+ len?: number;
10
+ filter?: Array<string>;
11
+ format?: string;
12
+ };
13
+ type HourSpan = Array<number>;
14
+ declare const _default: {
15
+ [index: string]: any;
16
+ data: {};
17
+ properties: {
18
+ /**
19
+ * @description 将当前时间向后推算的分钟数,决定了最小可选时间(注:仅当未设置 min 时有效)
20
+ */
21
+ delay: {
22
+ type: NumberConstructor;
23
+ value: number;
24
+ };
25
+ /**
26
+ * @description 日期配置
27
+ */
28
+ day: {
29
+ type: ObjectConstructor;
30
+ value: DayConfig;
31
+ };
32
+ /**
33
+ * @description 是否显示现在(需当前时间在可选范围内);以及现在选项的文案
34
+ */
35
+ showNow: {
36
+ type: null;
37
+ value: boolean | NowConfig;
38
+ };
39
+ minuteStep: {
40
+ type: null;
41
+ value: number | MinuteStepConfig;
42
+ };
43
+ /**
44
+ * @description 时间格式
45
+ */
46
+ format: {
47
+ type: StringConstructor;
48
+ value: string;
49
+ };
50
+ /**
51
+ * @description 最小可选时间
52
+ */
53
+ min: {
54
+ type: NumberConstructor;
55
+ value: number;
56
+ };
57
+ /**
58
+ * @description 最大可选时间
59
+ */
60
+ max: {
61
+ type: NumberConstructor;
62
+ value: number;
63
+ };
64
+ /**
65
+ * 小时范围 [0, 24],右开区间
66
+ * 最小值0,最大值24
67
+ */
68
+ hourSpan: {
69
+ type: ArrayConstructor;
70
+ value: HourSpan;
71
+ };
72
+ immediateChange: {
73
+ type: BooleanConstructor;
74
+ value: false;
75
+ };
76
+ };
77
+ computed: {
78
+ _hourSpan(): {
79
+ min: number;
80
+ max: number;
81
+ };
82
+ };
83
+ methods: {};
84
+ };
85
+ export default _default;