keuby

Results 14 issues of keuby

In SFC less style block, when values such as `p-1.5` and `w-12.5` are used, the 0.5 is ignored, for example ```less .custom-class { @apply pt-1.5; } ``` Theoretically it should...

修改 simulator 加载顺序,将其放在资源加载之前。 ### 原因 在加载画布本身的同时,可能还需要加载一些框架运行时,比如 vue 的运行时,而一些资源加载的时候(比如 vue 组件库),是需依赖于 vue 运行时的,故而将 simulator 加载提前

stale

## 简介 希望 JSSchema 能够支持插槽参数的的解构,现有的 schema 结构仅能支持插槽的参数提取 ## 示例 ### 字符串 - schema ```json { "componentName": "Slot", "params": ["p1", "p2"] } ``` - compile ```js const slotFn = (p1, p2)...

enhancement
help wanted

## 问题描述 子应用中插入元素到 body 上时,会有可能插入到基座应用的 body 上。这个问题在 https://github.com/micro-zoe/micro-app/issues/260 上有提到。 并且经过我调试以及对源代码的理解,我发现是否会插入到 body 与是否使用 Promise 等延时执行的微任务或宏任务中做插入操作并没有直接联系。 这边提供两段在 微任务中执行的代码,都是微任务中执行的,代码 1 能正常插入到 micro-app-body 中,而代码 2 会插入到基座应用的 body 中 ```ts // 代码 1 Promise.resolve().then(() =>...

sandbox

Support for modifying renderer behavior like this: ```ts import { setRendererOptions, createApp } from 'vue'; setRendererOptions((raw) => { return { createElement(...args) { // do something before createElement return raw.createElement(...args); }...

![image](https://user-images.githubusercontent.com/32365592/66711631-139ceb00-edc2-11e9-9e0b-48f22ce78c52.png) 主屏幕除了有阴影以外一切正常,副屏幕顶部最大化会留下顶栏高度的空白

If `type=script` is transformed, the vue file will have two ids

在 iframe 沙箱中调用 `history.go` 方法,如果传入的不是非0的数字,浏览器会执行 location.reload,导致 iframe 重新加载,iframe 沙箱就挂了。 因此劫持 `history.go` 方法,如果传入的不是非0的数字,就代理到基座应用到 `location.reload` 方法,达到和独立运行时,执行`history.go(0)` 会刷新页面相同的行为表现。

iframe 沙箱中支持使用 instanceof 来判断dom 元素以及基座应用中触发的事件