在哪里复制Extjs 6.0新的`ux`类? [英] Where copy Extjs 6.0 new `ux` classes?

查看:76
本文介绍了在哪里复制Extjs 6.0新的`ux`类?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Extjs 6.0.1开发Web应用程序.我开发了一个类,如下所示:

I'm developing web application using Extjs 6.0.1. I developed an class as follow:

Ext.define('Admin.view.main.Me', {
   extend: 'Ext.panel.Panel',
   xtype: 'ud_mf',
   .
   .
   .
});

现在我想将其发布为ux.在Extjs 6.0.0中,我不知道将方向复制到哪里.我的工作区方向如下:

Now I want to publish it as ux. In Extjs 6.0.0 I don't know where direction copy my class. My workspace direction is as follow:

.sencha
Admin
build
ext
packages
workspace.json

我该怎么办?

推荐答案

  1. 在根目录中创建一个名为Ux的文件夹
  2. 使用名称空间Ux在此处添加所有代码
  3. 使用此代码在app.json中添加此文件夹

  1. Create a Folder named Ux and this in root directory
  2. Add all code there with namespace Ux
  3. Add this Folder in app.json in this code

"classpath": [
"app",
"Ux", // this is your folder
"${toolkit.name}/src"
],

  • 在app.js文件中添加要求类似于"Ux.*"

  • In app.js file add in requires like 'Ux.*'

    这篇关于在哪里复制Extjs 6.0新的`ux`类?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

  • 查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆