Giter Club home page Giter Club logo

amis-widget's People

Contributors

2betop avatar wibetter avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

amis-widget's Issues

引入amis注册模块

Uncaught (in promise) TypeError: Class constructor MyReactSelect cannot be invoked without 'new'

page css 丢失问题

在page里面定义css , 然后就会自动转换丢失, css就没有办法重新定义了,可以帮忙解答一下嘛谢谢啦
_20230228155531

bug

关于 vue3-amis-widget

文档中提到 有个 vue3-amis-widget 请问这个仓库开源了吗?

目前支持的技术栈:jQuery、vue2、react,vue3.0技术栈在vue3-amis-widget中支持

demo中react自定义组件自己嵌套自己也存在问题, 会报''类型错误,无法渲染"

@demo中react自定义组件自己嵌套自己也存在问题, 会报''类型错误,无法渲染"

info-card.jsx 中添加了渲染子组件的代码

{render('body', body) /*渲染孩子节点*/}

scaffold = {
type: 'react-info-card',
label: 'react-info-card',
name: 'react-info-card',
body:[{
type: 'wrapper',
body:[
{
type: 'react-info-card',
label: 'react-info-card',
name: 'react-info-card',
body:[]
}
]
}]
};

如何把vue的组件的方法/动作暴露给amis其它组件使用

我有一个vue组件,要如何处理才能实现把方法/动作暴露给其它amis组件使用,其它amis组件可以使用Action来触发,比如下面的例子,我的组件名是tabs-vue,需要使用amis的按纽点击后选中某个选项卡.

{ "type": "page", "body": [ { "type": "button", "label": "选中选项卡2", "level": "primary", "className": "mr-3 mb-3", "onEvent": { "click": { "actions": [ { "actionType": "changeActiveKey", "componentId": "tabs-change-receiver", "args": { "activeKey": 2 } } ] } } }, { "id": "tabs-change-receiver", "type": "tabs-vue", "mode": "line", "tabs": [ { "title": "选项卡1", "body": "选项卡内容1" }, { "title": "选项卡2", "body": "选项卡内容2" }, { "title": "选项卡3", "body": "选项卡内容3" } ] } ] }

文档里说的如下,但vue的自定义如何处理,请指教。

`

自定义组件接入事件动作

需求场景主要是想要自定义组件的内部事件暴露出去,能够通过对事件的监听来执行所需动作,并希望自定义组件自身的动作能够被其他组件调用。接入方法是通过props.dispatchEvent派发自身的各种事件,使其具备更灵活的交互设计能力;通过实现doAction方法实现其他组件对其专属动作的调用,需要注意的是,此处依赖内部的 Scoped Context来实现自身的注册,可以参考 组件间通信
`

amis-widget只是一个Npm包吗?

你好!首先感谢在百忙中恢复我的issue,最近在调研低代码,看到了amis这个产品,感觉很适合我们,现在有几个疑问点,麻烦抽空回复下:(我们的需求其实都用不上这么多组件,只是需要托拉拽针对echarts设置及回显)
1.阅读了下源码amis底层是基于react+ts编写的,我们的项目是vue3+js,直接引入进来的话这种模式是否有文档?还是说我要将ts语法改写为js?
2.amis-widget这个项目clone后是否可以直接运行?(我clone后安装依赖跑起来控制台报错了,所以这个是不是只是纯源码,外部使用直接安装依赖即可)
再次感谢!

env中配置requestAdaptor无效

state中的 amisEnv,配置为{
enableAMISDebug:true,
requestAdaptor:function(api){
alert(api)
api.headers = api.headers || {};
api.headers["Authorization"]=Cookies.get("Data-Token");
console.log(111,api);
return {...api};
},

没有效果,没有拦截到请求

自定义 vue 组件 使用onEvent 触发actions 不生效

@wibetter

自定义 vue 组件 使用onEvent 触发actions 不生效
版本 amis sdk @ 2.7.2

json:
{ "type": "form", "title": "表单", "body": [ { "label": "文本框", "type": "input-text", "name": "text" }, { "type": "datamodel-select", "label": "模型下拉-数据", "name": "datamodel-select", "id": "u:65a6bf9c0d15", "option": { "datatype": "xxx", "apiCode": "xxxxxx", "label": "linkName", "value": "linkCode", "multiple": false, "filterCondition": [ ], "valueBackFill": [ { "field": "pkId", "target": "text" } ], "fetchUrl": "xxxx", "fetchMethod": "post" }, "onEvent": { "change": { // 监听点击事件 "actions": [ // 执行的动作列表 { "actionType": "toast", // 执行toast提示动作 "args": { // 动作参数 "msgType": "info", "msg": "派发点击事件" } } ] }, "onChange": { // 监听点击事件 "actions": [ { "script": "alert(1)", "actionType": "custom" }, { "actionType": "custom", "script": "alert(0)" }, // 执行的动作列表 { "actionType": "toast", // 执行toast提示动作 "args": { // 动作参数 "msgType": "info", "msg": "派发点击事件" } } ] } } } ], "id": "u:fbc6d0fec7b3", "debug": true }

问题:
onChange 触发了里面的值也设置进form了,但是actions 没触发,也不报错

怎么才能事件触发amis 的actions

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.