dfish-widget 1.1.13 → 2.0.0-beta.1

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 (124) hide show
  1. package/README.md +26 -28
  2. package/css/style.css +1 -1
  3. package/lib/assets/entity.d.ts +1 -0
  4. package/lib/dfish.d.ts +22 -0
  5. package/lib/directive/dialog-move.d.ts +5 -0
  6. package/lib/directive/form-ignore.d.ts +6 -0
  7. package/lib/directive/index.d.ts +1 -0
  8. package/lib/directive/label-width.d.ts +6 -0
  9. package/lib/directive/tip.d.ts +4 -0
  10. package/lib/index.cjs.js +46 -1
  11. package/lib/index.d.ts +6 -0
  12. package/lib/index.esm.js +10870 -1
  13. package/lib/template/TemplateAlert.vue.d.ts +41 -0
  14. package/lib/template/TemplateConfirm.vue.d.ts +43 -0
  15. package/lib/template/TemplateDateSheet.vue.d.ts +59 -0
  16. package/lib/template/TemplateJigsaw.vue.d.ts +20 -0
  17. package/lib/template/TemplatePreviewMedia.vue.d.ts +14 -0
  18. package/lib/template/TemplateTip.vue.d.ts +23 -0
  19. package/lib/util/browser.d.ts +44 -0
  20. package/lib/util/css.d.ts +2 -0
  21. package/lib/util/date.d.ts +10 -0
  22. package/lib/util/elem.d.ts +8 -0
  23. package/lib/util/event.d.ts +18 -0
  24. package/lib/util/json.d.ts +3 -0
  25. package/lib/util/loc/zh-CN.d.ts +155 -0
  26. package/lib/util/mime.d.ts +1 -0
  27. package/lib/util/number.d.ts +9 -0
  28. package/lib/util/range.d.ts +6 -0
  29. package/lib/util/snap.d.ts +5 -0
  30. package/lib/util/str.d.ts +14 -0
  31. package/lib/util/uid.d.ts +1 -0
  32. package/lib/util/v-directive.d.ts +8 -0
  33. package/lib/widgets/Album.vue.d.ts +167 -0
  34. package/lib/widgets/Alert.vue.d.ts +334 -0
  35. package/lib/widgets/AlignParent.vue.d.ts +20 -0
  36. package/lib/widgets/Button.vue.d.ts +150 -0
  37. package/lib/widgets/ButtonAbs.vue.d.ts +171 -0
  38. package/lib/widgets/ButtonBar.vue.d.ts +177 -0
  39. package/lib/widgets/Calendar.vue.d.ts +202 -0
  40. package/lib/widgets/CheckBox.vue.d.ts +293 -0
  41. package/lib/widgets/CheckBoxGroup.vue.d.ts +254 -0
  42. package/lib/widgets/ComboBox.vue.d.ts +296 -0
  43. package/lib/widgets/Confirm.vue.d.ts +338 -0
  44. package/lib/widgets/DatePicker.vue.d.ts +353 -0
  45. package/lib/widgets/Dialog.vue.d.ts +331 -0
  46. package/lib/widgets/DialogTarget.vue.d.ts +17 -0
  47. package/lib/widgets/DocView.vue.d.ts +129 -0
  48. package/lib/widgets/DropBox.vue.d.ts +254 -0
  49. package/lib/widgets/FileUpload.vue.d.ts +324 -0
  50. package/lib/widgets/Form.vue.d.ts +226 -0
  51. package/lib/widgets/FormBase.vue.d.ts +232 -0
  52. package/lib/widgets/FormGroup.vue.d.ts +241 -0
  53. package/lib/widgets/Grid.vue.d.ts +168 -0
  54. package/lib/widgets/Hidden.vue.d.ts +210 -0
  55. package/lib/widgets/Horizontal.vue.d.ts +153 -0
  56. package/lib/widgets/Html.vue.d.ts +97 -0
  57. package/lib/widgets/ImageUpload.vue.d.ts +328 -0
  58. package/lib/widgets/Img.vue.d.ts +136 -0
  59. package/lib/widgets/Jigsaw.vue.d.ts +255 -0
  60. package/lib/widgets/Label.vue.d.ts +108 -0
  61. package/lib/widgets/Leaf.vue.d.ts +158 -0
  62. package/lib/widgets/LinkBox.vue.d.ts +295 -0
  63. package/lib/widgets/Loading.vue.d.ts +306 -0
  64. package/lib/widgets/MediaUpload.vue.d.ts +326 -0
  65. package/lib/widgets/MediaUploadItem.vue.d.ts +27 -0
  66. package/lib/widgets/Menu.vue.d.ts +318 -0
  67. package/lib/widgets/MenuButton.vue.d.ts +163 -0
  68. package/lib/widgets/Option.vue.d.ts +93 -0
  69. package/lib/widgets/PageBar.vue.d.ts +248 -0
  70. package/lib/widgets/Password.vue.d.ts +267 -0
  71. package/lib/widgets/PickBox.vue.d.ts +261 -0
  72. package/lib/widgets/Progress.vue.d.ts +93 -0
  73. package/lib/widgets/PubParent.vue.d.ts +18 -0
  74. package/lib/widgets/Radio.vue.d.ts +297 -0
  75. package/lib/widgets/RadioGroup.vue.d.ts +239 -0
  76. package/lib/widgets/Range.vue.d.ts +223 -0
  77. package/lib/widgets/Rate.vue.d.ts +246 -0
  78. package/lib/widgets/Scroll.vue.d.ts +129 -0
  79. package/lib/widgets/SlidePicker.vue.d.ts +125 -0
  80. package/lib/widgets/Slider.vue.d.ts +238 -0
  81. package/lib/widgets/SlotDefault.vue.d.ts +17 -0
  82. package/lib/widgets/Spinner.vue.d.ts +317 -0
  83. package/lib/widgets/Split.vue.d.ts +110 -0
  84. package/lib/widgets/SrcParent.vue.d.ts +24 -0
  85. package/lib/widgets/Swiper.vue.d.ts +117 -0
  86. package/lib/widgets/SwiperItem.vue.d.ts +91 -0
  87. package/lib/widgets/Switch.vue.d.ts +236 -0
  88. package/lib/widgets/Tab.vue.d.ts +2 -0
  89. package/lib/widgets/TabBar.vue.d.ts +235 -0
  90. package/lib/widgets/TabButton.vue.d.ts +151 -0
  91. package/lib/widgets/Table.vue.d.ts +109 -0
  92. package/lib/widgets/TableColumn.vue.d.ts +13 -0
  93. package/lib/widgets/TableColumns.vue.d.ts +2 -0
  94. package/lib/widgets/TableTBody.vue.d.ts +246 -0
  95. package/lib/widgets/TableTD.vue.d.ts +34 -0
  96. package/lib/widgets/TableTH.vue.d.ts +125 -0
  97. package/lib/widgets/TableTHead.vue.d.ts +112 -0
  98. package/lib/widgets/TableTR.vue.d.ts +130 -0
  99. package/lib/widgets/TableV2.vue.d.ts +85 -0
  100. package/lib/widgets/Tabs.vue.d.ts +115 -0
  101. package/lib/widgets/Text.vue.d.ts +262 -0
  102. package/lib/widgets/Textarea.vue.d.ts +252 -0
  103. package/lib/widgets/Timeline.vue.d.ts +147 -0
  104. package/lib/widgets/TimelineItem.vue.d.ts +101 -0
  105. package/lib/widgets/Tip.vue.d.ts +328 -0
  106. package/lib/widgets/Toggle.vue.d.ts +120 -0
  107. package/lib/widgets/Tree.vue.d.ts +163 -0
  108. package/lib/widgets/TreeV2.vue.d.ts +75 -0
  109. package/lib/widgets/TreeV2Wrap.vue.d.ts +155 -0
  110. package/lib/widgets/TripleBox.vue.d.ts +304 -0
  111. package/lib/widgets/Vertical.vue.d.ts +150 -0
  112. package/lib/widgets/Video.vue.d.ts +94 -0
  113. package/lib/widgets/View.vue.d.ts +197 -0
  114. package/lib/widgets/ViewAbs.vue.d.ts +48 -0
  115. package/lib/widgets/WidgetAbs.vue.d.ts +87 -0
  116. package/lib/widgets/WidgetBase.vue.d.ts +72 -0
  117. package/lib/widgets/index.d.ts +2 -0
  118. package/package.json +11 -25
  119. package/css/f/iconfont.ttf +0 -0
  120. package/css/f/iconfont.woff +0 -0
  121. package/css/f/iconfont.woff2 +0 -0
  122. package/css/g/f.png +0 -0
  123. package/css/g/i.png +0 -0
  124. package/css/reset.css +0 -32
@@ -0,0 +1,41 @@
1
+ declare function __VLS_template(): {
2
+ attrs: Partial<{}>;
3
+ slots: {
4
+ default?(_: {
5
+ width: string;
6
+ }): any;
7
+ };
8
+ refs: {};
9
+ rootEl: any;
10
+ };
11
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
12
+ declare const __VLS_component: import('vue').DefineComponent<{
13
+ text?: any;
14
+ button?: any;
15
+ title?: any;
16
+ escape?: any;
17
+ icon?: any;
18
+ showButton?: any;
19
+ yesText?: any;
20
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
21
+ close: (...args: any[]) => void;
22
+ save: (...args: any[]) => void;
23
+ }, string, import('vue').PublicProps, Readonly<{
24
+ text?: any;
25
+ button?: any;
26
+ title?: any;
27
+ escape?: any;
28
+ icon?: any;
29
+ showButton?: any;
30
+ yesText?: any;
31
+ }> & Readonly<{
32
+ onClose?: (...args: any[]) => any;
33
+ onSave?: (...args: any[]) => any;
34
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
35
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
36
+ export default _default;
37
+ type __VLS_WithTemplateSlots<T, S> = T & {
38
+ new (): {
39
+ $slots: S;
40
+ };
41
+ };
@@ -0,0 +1,43 @@
1
+ declare function __VLS_template(): {
2
+ attrs: Partial<{}>;
3
+ slots: {
4
+ default?(_: {
5
+ width: string;
6
+ }): any;
7
+ };
8
+ refs: {};
9
+ rootEl: any;
10
+ };
11
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
12
+ declare const __VLS_component: import('vue').DefineComponent<{
13
+ text?: any;
14
+ button?: any;
15
+ title?: any;
16
+ escape?: any;
17
+ icon?: any;
18
+ showButton?: any;
19
+ yesText?: any;
20
+ noText?: any;
21
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
22
+ close: (...args: any[]) => void;
23
+ save: (...args: any[]) => void;
24
+ }, string, import('vue').PublicProps, Readonly<{
25
+ text?: any;
26
+ button?: any;
27
+ title?: any;
28
+ escape?: any;
29
+ icon?: any;
30
+ showButton?: any;
31
+ yesText?: any;
32
+ noText?: any;
33
+ }> & Readonly<{
34
+ onClose?: (...args: any[]) => any;
35
+ onSave?: (...args: any[]) => any;
36
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
37
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
38
+ export default _default;
39
+ type __VLS_WithTemplateSlots<T, S> = T & {
40
+ new (): {
41
+ $slots: S;
42
+ };
43
+ };
@@ -0,0 +1,59 @@
1
+ declare const _default: import('vue').DefineComponent<{
2
+ data?: any;
3
+ }, {}, {
4
+ focusYear: any;
5
+ focusMonth: any;
6
+ focusDate: any;
7
+ focusHour: any;
8
+ focusMinute: any;
9
+ focusSecond: any;
10
+ startYear: any;
11
+ endYear: any;
12
+ monthDays: number;
13
+ focusWeek: any;
14
+ weekFirst: any;
15
+ weekLast: any;
16
+ minTime: any;
17
+ maxTime: any;
18
+ format: any;
19
+ }, {
20
+ dfish(): import('../dfish').Dfish;
21
+ yearList(): any[];
22
+ monthList(): number[];
23
+ dateList(): number[];
24
+ hourList(): number[];
25
+ minuteList(): number[];
26
+ secondList(): number[];
27
+ weekList(): {
28
+ value: number;
29
+ text: string;
30
+ }[];
31
+ hasYear(): any;
32
+ hasMonth(): any;
33
+ hasDate(): any;
34
+ hasHour(): any;
35
+ hasMinute(): any;
36
+ hasSecond(): any;
37
+ hasWeek(): any;
38
+ minYear(): any;
39
+ maxYear(): any;
40
+ minMonth(): any;
41
+ maxMonth(): any;
42
+ minDate(): any;
43
+ maxDate(): any;
44
+ minHour(): any;
45
+ maxHour(): any;
46
+ minMinute(): any;
47
+ maxMinute(): any;
48
+ minSecond(): any;
49
+ maxSecond(): any;
50
+ minWeek(): void;
51
+ maxWeek(): void;
52
+ }, {
53
+ weekText(w: any): void;
54
+ clickCancel(): void;
55
+ clickOK(e: any): void;
56
+ }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
57
+ data?: any;
58
+ }> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
59
+ export default _default;
@@ -0,0 +1,20 @@
1
+ declare const _default: import('vue').DefineComponent<{
2
+ width?: any;
3
+ height?: any;
4
+ context?: any;
5
+ }, {}, {
6
+ smallLeft: number;
7
+ }, {
8
+ bigSrc(): any;
9
+ smallSrc(): any;
10
+ smallWidth(): number;
11
+ }, {
12
+ refresh(e: any): void;
13
+ dragstart(e: any): void;
14
+ mousedown(e: any): void;
15
+ }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
16
+ width?: any;
17
+ height?: any;
18
+ context?: any;
19
+ }> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
20
+ export default _default;
@@ -0,0 +1,14 @@
1
+ declare const _default: import('vue').DefineComponent<{
2
+ data?: any;
3
+ }, {}, {
4
+ rotate: {};
5
+ current: any;
6
+ }, {
7
+ loc(): any;
8
+ }, {
9
+ close(): void;
10
+ rot(a: any): void;
11
+ }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
12
+ data?: any;
13
+ }> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
14
+ export default _default;
@@ -0,0 +1,23 @@
1
+ declare function __VLS_template(): {
2
+ attrs: Partial<{}>;
3
+ slots: {
4
+ text?(_: {}): any;
5
+ };
6
+ refs: {};
7
+ rootEl: HTMLDivElement;
8
+ };
9
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
10
+ declare const __VLS_component: import('vue').DefineComponent<{
11
+ text?: any;
12
+ escape?: any;
13
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
14
+ text?: any;
15
+ escape?: any;
16
+ }> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
17
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
18
+ export default _default;
19
+ type __VLS_WithTemplateSlots<T, S> = T & {
20
+ new (): {
21
+ $slots: S;
22
+ };
23
+ };
@@ -0,0 +1,44 @@
1
+ /**
2
+ * 浏览器 / 运行环境探测模块。
3
+ * 在模块加载时根据 userAgent 一次性计算浏览器类型、版本、兼容性等信息,
4
+ * 供全局 `$` 对象与各组件在运行期判断环境(移动端、微信、低版本内核等)使用。
5
+ */
6
+ /** 浏览器环境探测结果 */
7
+ interface BrowserInfo {
8
+ /** 完整 userAgent 字符串 */
9
+ agent: string;
10
+ /** Chrome 主版本号(非 Chrome 内核为 null) */
11
+ chrome: number | null;
12
+ /** Firefox 主版本号(非 Firefox 为 null) */
13
+ firefox: number | null;
14
+ /** 是否为 Safari(且非 Chrome) */
15
+ safari: boolean;
16
+ /** IE 文档模式(非 IE 为 falsy) */
17
+ ie: any;
18
+ /** 兼容性标记(如低版本内核的 gap 间距问题) */
19
+ compat: {
20
+ gap: boolean;
21
+ };
22
+ /** 是否为移动端 */
23
+ mobile?: boolean;
24
+ /** 是否为本地 file:// 协议(移动端 App 打包产物) */
25
+ app?: boolean;
26
+ /** 微信内置浏览器版本信息 */
27
+ wechat?: {
28
+ version: string;
29
+ };
30
+ /** 是否为 Android */
31
+ android?: boolean;
32
+ /** 系统/内核版本号 */
33
+ version?: string;
34
+ /** 是否为低版本 Android 内核 */
35
+ isBadAndroid?: boolean;
36
+ /** 是否为 iOS */
37
+ ios?: boolean;
38
+ /** 是否为 iPhone */
39
+ iphone?: boolean;
40
+ /** 是否为 iPad */
41
+ ipad?: boolean;
42
+ }
43
+ declare const r: BrowserInfo;
44
+ export default r;
@@ -0,0 +1,2 @@
1
+ declare const css: (o: any, s: any, n?: any) => any;
2
+ export { css };
@@ -0,0 +1,10 @@
1
+ declare const dateFormat: (a: any, b?: string) => string;
2
+ declare const dateParse: (a: any, b?: string) => Date;
3
+ declare const dateAdd: (a: Date, b: string, c: any) => Date;
4
+ declare const dateWeek: (a: Date) => [number, number, Date, Date];
5
+ declare const dateWeekFirst: (year: any) => any;
6
+ declare const dateWeekLast: (year: any) => any;
7
+ declare const dateValid: (a: any, b?: string) => boolean;
8
+ declare const dateDiff: (a: any, b?: any, c?: string) => number;
9
+ declare const dateSheet: (...args: any[]) => any;
10
+ export { dateFormat, dateParse, dateAdd, dateValid, dateDiff, dateSheet, dateWeek, dateWeekFirst, dateWeekLast, };
@@ -0,0 +1,8 @@
1
+ declare const el: (o: any) => any;
2
+ declare const html: (o: any, s: any, r: any) => any;
3
+ declare const append: (o: any, s: any) => any;
4
+ declare const prepend: (o: any, s: any) => any;
5
+ declare const before: (o: any, s: any) => any;
6
+ declare const after: (o: any, s: any) => any;
7
+ declare const replaceWith: (o: any, s: any) => any;
8
+ export { el, html, append, prepend, before, after, replaceWith };
@@ -0,0 +1,18 @@
1
+ /**
2
+ * 事件监听器封装,仿 jQuery 的命名空间事件(type.namespace)。
3
+ * 支持按类型/命名空间批量绑定、触发与移除事件。
4
+ */
5
+ declare class EventListener {
6
+ /** 绑定事件的目标对象(widget 实例等) */
7
+ ctx: any;
8
+ constructor(ctx: any);
9
+ hasEvent(type: string): any;
10
+ addEvent(type: string, fn: any, one?: boolean): this;
11
+ addEventOnce(type: string, fn: any): this;
12
+ fireEvent(e: any, r?: any[]): any;
13
+ removeEvent(a?: string, b?: any): this;
14
+ }
15
+ declare const eventX: (e: any) => any;
16
+ declare const eventY: (e: any) => any;
17
+ declare const moveup: (moveCB: any, upCB: any, downEv: any) => void;
18
+ export { EventListener, eventX, eventY, moveup };
@@ -0,0 +1,3 @@
1
+ declare const jsonArray: (a: any, b: any, ...args: any[]) => any;
2
+ declare const jsonChain: (a: any, b: any, ...args: any[]) => any;
3
+ export { jsonArray, jsonChain };
@@ -0,0 +1,155 @@
1
+ declare const _default: {
2
+ yes: string;
3
+ no: string;
4
+ none: string;
5
+ to: string;
6
+ jump: string;
7
+ confirm: string;
8
+ search: string;
9
+ query: string;
10
+ choose: string;
11
+ save: string;
12
+ remove: string;
13
+ cancel: string;
14
+ create: string;
15
+ add: string;
16
+ edit: string;
17
+ finish: string;
18
+ refresh: string;
19
+ operfail: string;
20
+ opertip: string;
21
+ nodata: string;
22
+ more: string;
23
+ field: string;
24
+ close: string;
25
+ restore: string;
26
+ rotate_left: string;
27
+ rotate_right: string;
28
+ dialog_max: string;
29
+ dialog_min: string;
30
+ detect_zoom: string;
31
+ no_tip_anymore: string;
32
+ loading: string;
33
+ wait: string;
34
+ submiting: string;
35
+ uploading: string;
36
+ click_preview: string;
37
+ toomuch_wait: string;
38
+ toomuch_wait_countdown: string;
39
+ preview_orginal_image: string;
40
+ auth_success: string;
41
+ auth_fail: string;
42
+ choose_image: string;
43
+ tree_movefail1: string;
44
+ tree_movefail2: string;
45
+ internet_error: string;
46
+ server_error: string;
47
+ preload_error: string;
48
+ page: string;
49
+ page_text: {
50
+ first: string;
51
+ last: string;
52
+ next: string;
53
+ prev: string;
54
+ };
55
+ print_preview: string;
56
+ placeholder_input: string;
57
+ placeholder_select: string;
58
+ pulldown_refresh: string;
59
+ release_refresh: string;
60
+ pullup_refresh: string;
61
+ pullup_nomore: string;
62
+ download_start: string;
63
+ download_complete: string;
64
+ download_cannotopen: string;
65
+ download_fail: string;
66
+ tab_close: string;
67
+ tab_close_others: string;
68
+ tab_close_all: string;
69
+ sort_asc: string;
70
+ sort_desc: string;
71
+ sort_cancel: string;
72
+ column_choose: string;
73
+ connection_not_wifi: string;
74
+ debug: {
75
+ sorry: string;
76
+ view_more: string;
77
+ no_command: string;
78
+ no_combo: string;
79
+ error_template_type: string;
80
+ error_type: string;
81
+ tmpl_method_undefined: string;
82
+ };
83
+ form: {
84
+ required: string;
85
+ onlyone: string;
86
+ maxLength: string;
87
+ reach_maxLength: string;
88
+ over_maxLength: string;
89
+ minLength: string;
90
+ maxValue: string;
91
+ minValue: string;
92
+ maxSize: string;
93
+ minSize: string;
94
+ pattern: string;
95
+ password_weak: string;
96
+ password_middle: string;
97
+ password_strong: string;
98
+ number_invalid: string;
99
+ number_integer: string;
100
+ number_decimal_digit: string;
101
+ step_max_value: string;
102
+ step_min_value: string;
103
+ time_exceed: string;
104
+ time_format: string;
105
+ period_invalid: string;
106
+ beforeNow: string;
107
+ afterNow: string;
108
+ compare: string;
109
+ invalid_option: string;
110
+ need_valid_option: string;
111
+ choose_atleastone: string;
112
+ complete_required: string;
113
+ jigsaw_drag_right: string;
114
+ jigsaw_required: string;
115
+ jigsaw_errorimg: string;
116
+ upload_loading: string;
117
+ upload_invalid_file: string;
118
+ no_files: string;
119
+ upload_error: string;
120
+ upload_limit: string;
121
+ upload_invalid_file_type: string;
122
+ upload_invalid_data: string;
123
+ upload_no_data: string;
124
+ upload_maxfilesize: string;
125
+ upload_minfilesize: string;
126
+ };
127
+ year: string;
128
+ month: string;
129
+ day: string;
130
+ sky: string;
131
+ hour: string;
132
+ minute: string;
133
+ second: string;
134
+ calendar: {
135
+ now: string;
136
+ today: string;
137
+ weeknow: string;
138
+ monthnow: string;
139
+ yearnow: string;
140
+ day_title: string[];
141
+ day_title_1: string[];
142
+ y: string;
143
+ monthname: string[];
144
+ backdate: string;
145
+ picktime: string;
146
+ H: string;
147
+ m: string;
148
+ s: string;
149
+ from_to: string;
150
+ };
151
+ error: string;
152
+ ps(a: any, ...args: any[]): any;
153
+ end: string;
154
+ };
155
+ export default _default;
@@ -0,0 +1 @@
1
+ export default function (a: any): any;
@@ -0,0 +1,9 @@
1
+ /** 把任意值转换为数字(字符串先去除非法字符再 parse,失败返回 0) */
2
+ declare const number: (a: any) => number;
3
+ declare const isNumber: (a: any) => boolean;
4
+ declare const numRange: (a: any, b: any, c: any) => any;
5
+ declare const numAdd: (...args: any[]) => number;
6
+ declare const numFormat: (a: any, b?: any, c?: any, d?: any) => string;
7
+ declare const numDecimal: (a: any, b: any) => any;
8
+ declare const numScale: (a: any, b: any[], c?: boolean) => any[];
9
+ export { number, isNumber, numRange, numAdd, numFormat, numDecimal, numScale };
@@ -0,0 +1,6 @@
1
+ declare const rngSelection: () => any;
2
+ declare const rngElement: () => any;
3
+ declare const rngCursor: (a: any, b: any) => any;
4
+ declare const rngCursorOffset: () => any;
5
+ declare const rngText: (a: any, b?: any) => any;
6
+ export { rngSelection, rngElement, rngCursor, rngCursorOffset, rngText };
@@ -0,0 +1,5 @@
1
+ declare const offset: (a: any, b: any) => any;
2
+ declare const bcr: (a: any) => any;
3
+ declare const snap: (a: any, b: any, c: any, d: any, e: any, f: any, u: any) => any;
4
+ declare const snapTo: (a: any, b: any) => void;
5
+ export { bcr, offset, snap, snapTo };
@@ -0,0 +1,14 @@
1
+ /** 去除字符串首尾空白 */
2
+ declare const strTrim: (a: any) => string;
3
+ /** 任意值转字符串(null/undefined 转空串) */
4
+ declare const string: (a: any) => string;
5
+ declare const strQuot: (a: any, b?: boolean) => string;
6
+ declare const strFrom: (a: any, b: string, c?: boolean) => string;
7
+ declare const strTo: (a: any, b: string, c?: boolean) => string;
8
+ declare const strLen: (s: any, b?: number) => number;
9
+ declare const strExceed: (s: any, maxLength: number, b?: number) => number;
10
+ declare const strPad: (a: any, b?: number, c?: any) => string;
11
+ declare const strFormat: (a: any, b: any, c?: boolean, d?: boolean) => any;
12
+ declare const strEscape: (s: any) => string;
13
+ declare const strHighlight: (a: any, b: any, c?: number, d?: string) => string;
14
+ export { string, strTrim, strEscape, strQuot, strFrom, strTo, strPad, strLen, strExceed, strFormat, strHighlight };
@@ -0,0 +1 @@
1
+ export default function (o?: any): string;
@@ -0,0 +1,8 @@
1
+ declare function formIgnore(el: any, bind: any): void;
2
+ declare const _default: {
3
+ formIgnore: {
4
+ created: typeof formIgnore;
5
+ updated: typeof formIgnore;
6
+ };
7
+ };
8
+ export default _default;
@@ -0,0 +1,167 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {
2
+ html_class(): "w-horizontal";
3
+ }, {
4
+ x_default(): {
5
+ gap: number;
6
+ br: boolean;
7
+ valign: string;
8
+ };
9
+ }, import('vue').DefineComponent<import('vue').ExtractPropTypes<{
10
+ br: import('vue').PropType<boolean>;
11
+ reverse: import('vue').PropType<boolean>;
12
+ }>, {}, {}, {
13
+ dir(): "h";
14
+ compatGap(): any;
15
+ html_props_on(): void;
16
+ html_props(): any;
17
+ html_scroll_cont_style(): {};
18
+ }, {
19
+ html_slots(): any;
20
+ }, import('vue').DefineComponent<import('vue').ExtractPropTypes<{
21
+ scrollX: import('vue').PropType<boolean>;
22
+ scrollY: import('vue').PropType<boolean>;
23
+ scrollView: import('vue').PropType<string>;
24
+ scrollFlex: import('vue').PropType<boolean>;
25
+ }>, {}, {
26
+ wScrollPercentX: boolean;
27
+ wScrollPercentY: boolean;
28
+ wScrollSizeX: boolean;
29
+ wScrollSizeY: boolean;
30
+ scrollXPosition: string;
31
+ scrollYPosition: string;
32
+ isDeactivated: boolean;
33
+ }, {
34
+ hasScrollX(): any;
35
+ hasScrollY(): any;
36
+ html_scroll_cont_style(): void;
37
+ html_scroll_class(): {
38
+ 'w-scroll': any;
39
+ 'w-scroll-x': any;
40
+ 'w-scroll-y': any;
41
+ 'w-scroll-flex': any;
42
+ };
43
+ }, {
44
+ onScroll(e: any): void;
45
+ onScrollPosition(): void;
46
+ onScrollAttributeChange(e: any): void;
47
+ onScrollResize(): void;
48
+ scrollTo(e: any, y: any, x: any, p: any, q: any, r: any): any;
49
+ scrollToY(e: any, y: any, p: any, q: any, r: any): any;
50
+ scrollToX(e: any, x: any, p: any, q: any, r: any): any;
51
+ ovf(): any;
52
+ html_scroll_slots(s: any): any;
53
+ scrollState(): {
54
+ x: any;
55
+ y: any;
56
+ };
57
+ initScroll(): void;
58
+ scroll_observe_overflow(ob: any): void;
59
+ scroll_observe(ob: any): void;
60
+ }, import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').DefineComponent<import('vue').ExtractPropTypes<{
61
+ data: import('vue').PropType<any>;
62
+ width: import('vue').PropType<string | number>;
63
+ height: import('vue').PropType<string | number>;
64
+ colspan: import('vue').PropType<number>;
65
+ rowspan: import('vue').PropType<number>;
66
+ ownproperty: import('vue').PropType<boolean>;
67
+ orientUid: import('vue').PropType<string>;
68
+ }>, {}, {
69
+ isWidget: boolean;
70
+ uid: any;
71
+ runtimeX: {};
72
+ x: any;
73
+ }, {
74
+ dfish(): import('../dfish').Dfish;
75
+ ownerView(): any;
76
+ pubParent(): any;
77
+ parentNode(): any;
78
+ tagName(): "div";
79
+ html_attrs(): {
80
+ id: any;
81
+ class: any[];
82
+ style: any[];
83
+ 'w-key': any;
84
+ 'w-width': string;
85
+ 'w-height': string;
86
+ };
87
+ html_style(): void;
88
+ html_class(): void;
89
+ html_props(): void;
90
+ html_binds(): {
91
+ [x: string]: unknown;
92
+ };
93
+ }, {
94
+ x_default(): void;
95
+ getDefaultProp(): any;
96
+ attr(name: any, value: any): any;
97
+ ajax(cmd: any): any;
98
+ submit(request: any, cmd: any): Promise<unknown>;
99
+ pop(template: any, props: any, options: any): any;
100
+ closePop(template: any): void;
101
+ createEvent(type: any, props: any): any;
102
+ trigger(ev: any, ...args: any[]): void;
103
+ getOn(type: any): any;
104
+ getKey(): any;
105
+ closest(target: any, range: any): any;
106
+ contains(a: any): any;
107
+ el(a: any): any;
108
+ snapElem(): any;
109
+ scrollIntoView(opt?: any): void;
110
+ hasBubble(a: any): any;
111
+ bind(name: any, fn: any): any;
112
+ slots_children(name: any): any;
113
+ slot(name?: string): any;
114
+ html_icon(src: any, cls: any, onclick: any): import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
115
+ [key: string]: any;
116
+ }>;
117
+ html_slots(): any;
118
+ html_self(a: any): import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
119
+ [key: string]: any;
120
+ }>;
121
+ html(): any;
122
+ }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
123
+ data: import('vue').PropType<any>;
124
+ width: import('vue').PropType<string | number>;
125
+ height: import('vue').PropType<string | number>;
126
+ colspan: import('vue').PropType<number>;
127
+ rowspan: import('vue').PropType<number>;
128
+ ownproperty: import('vue').PropType<boolean>;
129
+ orientUid: import('vue').PropType<string>;
130
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>, import('vue').ComponentOptionsMixin, ("resize" | "scroll")[], "resize" | "scroll", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
131
+ scrollX: import('vue').PropType<boolean>;
132
+ scrollY: import('vue').PropType<boolean>;
133
+ scrollView: import('vue').PropType<string>;
134
+ scrollFlex: import('vue').PropType<boolean>;
135
+ }>> & Readonly<{
136
+ onResize?: (...args: any[]) => any;
137
+ onScroll?: (...args: any[]) => any;
138
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any> | import('vue').DefineComponent<import('vue').ExtractPropTypes<{
139
+ align: import('vue').PropType<string>;
140
+ valign: import('vue').PropType<string>;
141
+ gap: import('vue').PropType<string | number>;
142
+ }>, {}, {}, {
143
+ dir(): "h";
144
+ html_align_class(): string[];
145
+ }, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
146
+ align: import('vue').PropType<string>;
147
+ valign: import('vue').PropType<string>;
148
+ gap: import('vue').PropType<string | number>;
149
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
150
+ br: import('vue').PropType<boolean>;
151
+ reverse: import('vue').PropType<boolean>;
152
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, () => {
153
+ provideLayout: any;
154
+ provideCompatGap: any;
155
+ }, true, {}, any> | import('vue').DefineComponent<import('vue').ExtractPropTypes<{
156
+ pub: import('vue').PropType<any>;
157
+ current: import('vue').PropType<any>;
158
+ }>, {}, {}, {}, {
159
+ inCurrent(target: any): any;
160
+ isCurrentChild(current: any, target: any): true;
161
+ }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
162
+ pub: import('vue').PropType<any>;
163
+ current: import('vue').PropType<any>;
164
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, () => {
165
+ providePubParent: any;
166
+ }, true, {}, any>, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
167
+ export default _default;