@vtj/materials 0.9.29 → 0.10.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 (59) hide show
  1. package/dist/assets/antdv/index.umd.js +2 -2
  2. package/dist/assets/charts/index.umd.js +2 -2
  3. package/dist/assets/element/index.umd.js +2 -2
  4. package/dist/assets/ui/index.umd.js +2 -2
  5. package/dist/assets/uni-h5/index.umd.js +7 -0
  6. package/dist/assets/vant/index.umd.js +3 -3
  7. package/dist/deps/@vtj/charts/index.umd.js +2 -2
  8. package/dist/deps/@vtj/icons/index.umd.js +2 -2
  9. package/dist/deps/@vtj/icons/style.css +1 -1
  10. package/dist/deps/@vtj/ui/index.umd.js +2 -2
  11. package/dist/deps/@vtj/uni/index.umd.js +7 -0
  12. package/dist/deps/@vtj/uni/style.css +1 -0
  13. package/dist/deps/@vtj/utils/index.umd.js +3 -3
  14. package/dist/deps/@vueuse/core/index.iife.min.js +1 -1
  15. package/dist/deps/@vueuse/shared/index.iife.min.js +1 -1
  16. package/dist/deps/uni-app/index.umd.js +1 -0
  17. package/dist/deps/uni-h5/index.umd.js +19 -0
  18. package/dist/deps/uni-h5/style.css +1 -0
  19. package/dist/deps/uni-h5-vue/index.umd.js +8 -0
  20. package/dist/deps/xe-utils/xe-utils.umd.min.js +2 -2
  21. package/package.json +15 -8
  22. package/src/uni-app/index.ts +1 -0
  23. package/src/uni-h5/components/Switch.ts +36 -0
  24. package/src/uni-h5/components/audio.ts +69 -0
  25. package/src/uni-h5/components/button.ts +206 -0
  26. package/src/uni-h5/components/canvas.ts +50 -0
  27. package/src/uni-h5/components/checkbox.ts +81 -0
  28. package/src/uni-h5/components/coverImage.ts +18 -0
  29. package/src/uni-h5/components/coverView.ts +19 -0
  30. package/src/uni-h5/components/editor.ts +49 -0
  31. package/src/uni-h5/components/form.ts +53 -0
  32. package/src/uni-h5/components/icon.ts +44 -0
  33. package/src/uni-h5/components/image.ts +80 -0
  34. package/src/uni-h5/components/index.ts +119 -0
  35. package/src/uni-h5/components/input.ts +220 -0
  36. package/src/uni-h5/components/label.ts +17 -0
  37. package/src/uni-h5/components/map.ts +207 -0
  38. package/src/uni-h5/components/matchMedia.ts +59 -0
  39. package/src/uni-h5/components/movableArea.ts +31 -0
  40. package/src/uni-h5/components/movableView.ts +97 -0
  41. package/src/uni-h5/components/navigator.ts +90 -0
  42. package/src/uni-h5/components/picker.ts +81 -0
  43. package/src/uni-h5/components/pickerView.ts +163 -0
  44. package/src/uni-h5/components/progress.ts +71 -0
  45. package/src/uni-h5/components/radio.ts +127 -0
  46. package/src/uni-h5/components/richText.ts +67 -0
  47. package/src/uni-h5/components/scrollView.ts +157 -0
  48. package/src/uni-h5/components/slider.ts +75 -0
  49. package/src/uni-h5/components/swiper.ts +220 -0
  50. package/src/uni-h5/components/text.ts +38 -0
  51. package/src/uni-h5/components/textarea.ts +169 -0
  52. package/src/uni-h5/components/video.ts +276 -0
  53. package/src/uni-h5/components/view.ts +39 -0
  54. package/src/uni-h5/components/webView.ts +54 -0
  55. package/src/uni-h5/index.ts +11 -0
  56. package/src/uni-h5/style.scss +59 -0
  57. package/src/uni-h5-vue/index.ts +2 -0
  58. package/src/vant/tabbar.ts +1 -1
  59. package/src/version.ts +2 -2
@@ -2,6 +2,6 @@
2
2
  * Copyright (c) 2025, VTJ.PRO All rights reserved.
3
3
  * @name @vtj/charts
4
4
  * @author CHC chenhuachun1549@dingtalk.com
5
- * @version 0.9.29
5
+ * @version 0.10.0
6
6
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
7
- */const o="0.9.29";function f(n,u,i){const e=Vue.ref();return Vue.onMounted(()=>{const s=Vue.unref(u);s&&(e.value||(e.value=Vue.markRaw(n.init(s))),e.value&&e.value.setOption(i.value||{}))}),Vue.onUnmounted(()=>{e.value&&e.value.dispose()}),Vue.watch(i,s=>{e.value&&e.value.setOption(s||{})},{deep:!0}),VueUse.useResizeObserver(u,VtjUtils.debounce(()=>{e.value&&e.value.resize()},150)),{echartsInstance:e}}const a=Vue.defineComponent({name:"XChart",props:{width:{type:String,default:"100%"},height:{type:String,default:"400px"},option:{type:Object}},setup(n){const{width:u,height:i,option:e}=Vue.toRefs(n),s=Vue.ref(),l=Vue.computed(()=>({width:u.value,height:i.value})),{echartsInstance:d}=f(echarts,s,e);return{chartRef:s,option:e,styles:l,echartsInstance:d}},render(){const{styles:n}=this;return Vue.h("div",{class:"x-chart",ref:"chartRef",style:n})},expose:["chartRef","option","echartsInstance"]}),c=[a],r=Symbol("INSTALLED_KEY");function h(n){n[r]||(n[r]=!0,c.forEach(u=>{u.name&&n.component(u.name,u)}))}t.INSTALLED_KEY=r,t.VTJ_CHARTS_VERSION=o,t.XChart=a,t.components=c,t.install=h,Object.defineProperty(t,Symbol.toStringTag,{value:"Module"})});
7
+ */const o="0.10.0";function f(n,u,i){const e=Vue.ref();return Vue.onMounted(()=>{const s=Vue.unref(u);s&&(e.value||(e.value=Vue.markRaw(n.init(s))),e.value&&e.value.setOption(i.value||{}))}),Vue.onUnmounted(()=>{e.value&&e.value.dispose()}),Vue.watch(i,s=>{e.value&&e.value.setOption(s||{})},{deep:!0}),VueUse.useResizeObserver(u,VtjUtils.debounce(()=>{e.value&&e.value.resize()},150)),{echartsInstance:e}}const a=Vue.defineComponent({name:"XChart",props:{width:{type:String,default:"100%"},height:{type:String,default:"400px"},option:{type:Object}},setup(n){const{width:u,height:i,option:e}=Vue.toRefs(n),s=Vue.ref(),l=Vue.computed(()=>({width:u.value,height:i.value})),{echartsInstance:d}=f(echarts,s,e);return{chartRef:s,option:e,styles:l,echartsInstance:d}},render(){const{styles:n}=this;return Vue.h("div",{class:"x-chart",ref:"chartRef",style:n})},expose:["chartRef","option","echartsInstance"]}),c=[a],r=Symbol("INSTALLED_KEY");function h(n){n[r]||(n[r]=!0,c.forEach(u=>{u.name&&n.component(u.name,u)}))}t.INSTALLED_KEY=r,t.VTJ_CHARTS_VERSION=o,t.XChart=a,t.components=c,t.install=h,Object.defineProperty(t,Symbol.toStringTag,{value:"Module"})});