dfish-widget 1.1.13 → 2.0.0-beta.0

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 @@
1
+ export declare const SVGICON = "<svg style=\"display:none;width:0;height:0\" width=\"0\" height=\"0\" focusable=\"false\" aria-hidden=\"true\">\n <symbol id=\"f-svg-loading\" viewBox=\"0 0 50 50\">\n <path\n d=\"M43.935,25.145c0-10.318-8.364-18.683-18.683-18.683c-10.318,0-18.683,8.365-18.683,18.683h4.068c0-8.071,6.543-14.615,14.615-14.615c8.072,0,14.615,6.543,14.615,14.615H43.935z\"\n transform=\"rotate(86.9154 25 25)\">\n </path>\n </symbol>\n <symbol id=\"f-svg-loading-1\" viewBox=\"0 0 50 50\">\n <circle cx=\"25\" cy=\"25\" r=\"20\" />\n </symbol>\n <symbol id=\"f-svg-loading-2\" viewBox=\"0 0 24 30\">\n <rect x=\"0\" y=\"8.66115\" width=\"4\" height=\"12.6777\" opacity=\"0.2\">\n <animate attributeName=\"opacity\" values=\"0.2; 1; .2\" begin=\"0s\" dur=\"0.6s\"\n repeatCount=\"indefinite\"></animate>\n <animate attributeName=\"height\" values=\"10; 20; 10\" begin=\"0s\" dur=\"0.6s\"\n repeatCount=\"indefinite\"></animate>\n <animate attributeName=\"y\" values=\"10; 5; 10\" begin=\"0s\" dur=\"0.6s\"\n repeatCount=\"indefinite\"></animate>\n </rect>\n <rect x=\"8\" y=\"6.16115\" width=\"4\" height=\"17.6777\" opacity=\"0.2\">\n <animate attributeName=\"opacity\" values=\"0.2; 1; .2\" begin=\"0.15s\" dur=\"0.6s\"\n repeatCount=\"indefinite\"></animate>\n <animate attributeName=\"height\" values=\"10; 20; 10\" begin=\"0.15s\" dur=\"0.6s\"\n repeatCount=\"indefinite\"></animate>\n <animate attributeName=\"y\" values=\"10; 5; 10\" begin=\"0.15s\" dur=\"0.6s\"\n repeatCount=\"indefinite\"></animate>\n </rect>\n <rect x=\"16\" y=\"6.33885\" width=\"4\" height=\"17.3223\" opacity=\"0.2\">\n <animate attributeName=\"opacity\" values=\"0.2; 1; .2\" begin=\"0.3s\" dur=\"0.6s\"\n repeatCount=\"indefinite\"></animate>\n <animate attributeName=\"height\" values=\"10; 20; 10\" begin=\"0.3s\" dur=\"0.6s\"\n repeatCount=\"indefinite\"></animate>\n <animate attributeName=\"y\" values=\"10; 5; 10\" begin=\"0.3s\" dur=\"0.6s\"\n repeatCount=\"indefinite\"></animate>\n </rect>\n </symbol>\n <symbol id=\"f-svg-loading-3\" viewBox=\"0 0 1024 1024\">\n <path\n d=\"M514.048 337.715a32 32 0 0 1-32-32V135.168a32 32 0 1 1 64 0v170.534a32 32 0 0 1-32 32z m-1.28 581.799a32 32 0 0 1-32-32V714.406a32 32 0 1 1 64 0v173.095a32 32 0 0 1-32 32zM305.011 543.347H135.744a32 32 0 0 1 0-64h169.267a32 32 0 0 1 0 64z m583.079 0H713.83a32 32 0 0 1 0-64h174.26a32 32 0 1 1 0 64zM245.978 806.4a32 32 0 0 1-22.656-54.669L342.643 632.32a32 32 0 0 1 45.325 45.325L268.646 796.979a31.898 31.898 0 0 1-22.668 9.344z m408.435-408.5a32 32 0 0 1-22.656-54.68l123.558-123.56a32 32 0 1 1 45.325 45.3L677.12 388.544a31.898 31.898 0 0 1-22.669 9.357z m121.523 411.06a31.885 31.885 0 0 1-22.669-9.344l-122.15-122.15a32 32 0 1 1 45.325-45.325l122.15 122.15a32 32 0 0 1-22.656 54.669zM364.672 397.632a31.923 31.923 0 0 1-22.669-9.344L221.273 267.52a32 32 0 1 1 45.325-45.325l120.73 120.743a32 32 0 0 1-22.656 54.668z m0 0\"\n p-id=\"4486\"></path>\n </symbol>\n </svg>";
package/lib/dfish.d.ts ADDED
@@ -0,0 +1,22 @@
1
+ /**
2
+ * dfish 全局对象 $ 的类型。
3
+ * $ 既是一个可调用函数(根据元素/事件/uid 反查 widget 实例),
4
+ * 又通过 Object.assign 挂载了大量工具方法与运行期配置。
5
+ * 这里用索引签名兜底承载全部动态成员,保证旧版 JS 的 `$.xxx` 调用方式不变。
6
+ */
7
+ export interface Dfish {
8
+ (o?: any): any;
9
+ /** 运行期全局配置($.config() 会合并进来) */
10
+ x?: Record<string, any>;
11
+ /** widget uid -> widget 实例 的映射 */
12
+ vueMap?: Map<string, any>;
13
+ /** 按组件名缓存的 class 级别默认配置 */
14
+ dfclsCache?: Record<string, any>;
15
+ /** 根 DocView 实例 */
16
+ docView?: any;
17
+ /** 默认配置刷新标记(用于判断缓存是否失效) */
18
+ config_uid?: string;
19
+ [key: string]: any;
20
+ }
21
+ declare const $: Dfish;
22
+ export default $;
@@ -0,0 +1,5 @@
1
+ declare const _default: {
2
+ mounted(el: any, bind: any): void;
3
+ unmounted(el: any): void;
4
+ };
5
+ export default _default;
@@ -0,0 +1,6 @@
1
+ declare function formIgnore(el: any, bind: any): void;
2
+ declare const _default: {
3
+ created: typeof formIgnore;
4
+ updated: typeof formIgnore;
5
+ };
6
+ export default _default;
@@ -0,0 +1 @@
1
+ export default function (Vue: any): void;
@@ -0,0 +1,6 @@
1
+ declare function labelWidth(el: any, bind: any): void;
2
+ declare const _default: {
3
+ created: typeof labelWidth;
4
+ updated: typeof labelWidth;
5
+ };
6
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import { Directive } from 'vue';
2
+ /** v-tip 指令定义 */
3
+ declare const tip: Directive;
4
+ export default tip;