Coder Social home page Coder Social logo

Comments (13)

chestnutchen avatar chestnutchen commented on August 24, 2024

具体是哪一个控件呢?之前我也遇到过,记得是特定控件不行,但是后来忘记跟这个问题了。提供一下我去看看

from bat-ria.

Justineo avatar Justineo commented on August 24, 2024

因为正则规则只抓取了 /data-ui-type="(\w+)"/g

可以扩充一下正则为 /data-ui-type="(\w+)"|data-ui="(?:[^"]*;)?(type:(\w+)\b)/g,不过后面得改成:

var type = match[1] || match[3];

from bat-ria.

acelan86 avatar acelan86 commented on August 24, 2024

@chestnutchen Table,如果是bat-ria初始化要用到的控件,比如Tab等就可以,可以断点到刚初始化结束没有进入action的时候从esui里面看到可以用的ui

from bat-ria.

otakustay avatar otakustay commented on August 24, 2024

一个HTML属性对应一个控件属性多好,扩展啥嘛……倒是自定义标签可以给加上

from bat-ria.

acelan86 avatar acelan86 commented on August 24, 2024

@Justineo 谢谢10,我临时用上面的方法改了,测试中,没提pr

from bat-ria.

acelan86 avatar acelan86 commented on August 24, 2024

@otakustay 写起来麻烦,还长。。。

from bat-ria.

otakustay avatar otakustay commented on August 24, 2024

@acelan86 说白了就是失去了自动require的能力,原来已经加载过的还是能正常用的因为esui是会分析data-ui="xxx"

from bat-ria.

otakustay avatar otakustay commented on August 24, 2024

@acelan86 怕写起来长就应该直接上自定义标签,除了少数几个控件外都OK

from bat-ria.

acelan86 avatar acelan86 commented on August 24, 2024

@otakustay 多谢灰大,是个解决方案,但是感觉需要统一,既然两种都支持,这里感觉也要两种都支持,不然很容易入坑

from bat-ria.

Justineo avatar Justineo commented on August 24, 2024

主要是 ESUI 两种 data-ui 的配置方式都支持所以有人掉坑里了。
不过话说本来 ub-ria / bat-ria 这种就没想让外面团队的人用的……

from bat-ria.

acelan86 avatar acelan86 commented on August 24, 2024

@Justineo 不要这么把自己限定死啊。。我是死忠啊。。。

from bat-ria.

otakustay avatar otakustay commented on August 24, 2024

嗯,如果这是esui的话我肯定说两者必须支持,这是功能的缺失

不过像bat-ria这种,他的使用原本就是建立在团队的开发规范之上的,所以具体就是 @Justineo 的判断了,ub-ria的话我肯定就直接不干,因为我们统一就必须分开写,分开写我还能做tpl block复用呢- -

不过我相信 @Justineo 会比我更开放(这锅你背)

from bat-ria.

acelan86 avatar acelan86 commented on August 24, 2024

(这锅你背)哈哈哈哈。。。行,看两位大神决策了,因为没有对外释放规范,所以我就认为是个缺失了

from bat-ria.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.