uniapp使用自定义组件

 tt.vue中使用video-player组件

用到的目录如下:

pages.json

{
			"path": "pages/Tabbar/tt/tt",
			"style": {
				"navigationBarTitleText": "",
				"enablePullDownRefresh": false,
				// 使用自定义组件
				"usingComponents": {
					"video-player-dy": "/ttcomponents/videoPlayer/index"
				}
			}
		}

tt.vue

index.json

{
  "component": true,
  "usingComponents": {
	  "video-player":"ext://industry/video-player"
  }
}

index.ttml

index.js

Component({
	

	methods: {
		
	},
});

你可能感兴趣的:(java,前端,javascript)