Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
genary
uni-app
提交
af7d3af5
U
uni-app
项目概览
genary
/
uni-app
与 Fork 源项目一致
Fork自
DCloud / uni-app
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
U
uni-app
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
af7d3af5
编写于
10月 13, 2022
作者:
fxy060608
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
wip(uts): compiler
上级
ac36a3e5
变更
9
展开全部
隐藏空白更改
内联
并排
Showing
9 changed file
with
23 addition
and
18 deletion
+23
-18
packages/uni-app-plus/dist/uni-app-view.umd.js
packages/uni-app-plus/dist/uni-app-view.umd.js
+1
-1
packages/uni-components/src/vue/editor/quill/index.ts
packages/uni-components/src/vue/editor/quill/index.ts
+0
-1
packages/uni-h5/dist/uni-h5.es.js
packages/uni-h5/dist/uni-h5.es.js
+16
-15
packages/uni-mp-compiler/src/transforms/transformSlot.ts
packages/uni-mp-compiler/src/transforms/transformSlot.ts
+0
-1
packages/uni-mp-weixin/dist/uni.compiler.js
packages/uni-mp-weixin/dist/uni.compiler.js
+6
-0
packages/uts-darwin-arm64/uts.darwin-arm64.node
packages/uts-darwin-arm64/uts.darwin-arm64.node
+0
-0
packages/uts-darwin-x64/uts.darwin-x64.node
packages/uts-darwin-x64/uts.darwin-x64.node
+0
-0
packages/uts-win32-ia32-msvc/uts.win32-ia32-msvc.node
packages/uts-win32-ia32-msvc/uts.win32-ia32-msvc.node
+0
-0
packages/uts-win32-x64-msvc/uts.win32-x64-msvc.node
packages/uts-win32-x64-msvc/uts.win32-x64-msvc.node
+0
-0
未找到文件。
packages/uni-app-plus/dist/uni-app-view.umd.js
浏览文件 @
af7d3af5
此差异已折叠。
点击以展开。
packages/uni-components/src/vue/editor/quill/index.ts
浏览文件 @
af7d3af5
...
...
@@ -69,7 +69,6 @@ export function useQuill(
let
quillReady
:
boolean
let
skipMatcher
:
boolean
let
quill
:
QuillExt
let
textChanging
:
Boolean
=
false
watch
(
()
=>
props
.
readOnly
,
(
value
)
=>
{
...
...
packages/uni-h5/dist/uni-h5.es.js
浏览文件 @
af7d3af5
...
...
@@ -8342,7 +8342,6 @@ function useQuill(props2, rootRef, trigger) {
let quillReady;
let skipMatcher;
let quill;
let textChanging = false;
watch(
() => props2.readOnly,
(value) => {
...
...
@@ -8444,6 +8443,9 @@ function useQuill(props2, rootRef, trigger) {
trigger("statuschange", {}, status);
}
}
function textChangeHandler() {
trigger("input", {}, getContents());
}
function initQuill(imageResizeModules) {
const Quill = window.Quill;
register(Quill);
...
...
@@ -8484,11 +8486,7 @@ function useQuill(props2, rootRef, trigger) {
}
});
});
quill.on("text-change", () => {
if (!textChanging) {
trigger("input", {}, getContents());
}
});
quill.on("text-change", textChangeHandler);
quill.on("selection-change", updateStatus);
quill.on("scroll-optimize", () => {
const range = quill.selection.getRange()[0];
...
...
@@ -8589,22 +8587,25 @@ function useQuill(props2, rootRef, trigger) {
data: data2 = {}
} = options;
const path = getRealPath(src);
quill.insertEmbed(range.index, "image", path, "
user
");
quill.insertEmbed(range.index, "image", path, "
silent
");
const local = /^(file|blob):/.test(path) ? path : false;
textChanging = true;
quill.formatText(range.index, 1, "data-local", local);
quill.formatText(range.index, 1, "alt", alt);
quill.formatText(range.index, 1, "width", width);
quill.formatText(range.index, 1, "height", height);
quill.formatText(range.index, 1, "class", extClass);
textChanging = false;
quill.formatText(range.index, 1, "data-local", local, "silent");
quill.formatText(range.index, 1, "alt", alt, "silent");
quill.formatText(range.index, 1, "width", width, "silent");
quill.formatText(range.index, 1, "height", height, "silent");
quill.formatText(range.index, 1, "class", extClass, "silent");
quill.formatText(
range.index,
1,
"data-custom",
Object.keys(data2).map((key) => `${key}=${data2[key]}`).join("&")
Object.keys(data2).map((key) => `${key}=${data2[key]}`).join("&"),
"silent"
);
quill.setSelection(range.index + 1, 0, "silent");
quill.scrollIntoView();
setTimeout(() => {
textChangeHandler();
}, 1e3);
}
break;
case "insertText":
...
...
packages/uni-mp-compiler/src/transforms/transformSlot.ts
浏览文件 @
af7d3af5
...
...
@@ -61,7 +61,6 @@ export function rewriteSlot(node: SlotOutletNode, context: TransformContext) {
'
)
'
,
])
let
slotKey
debugger
const
keys
=
parseVForKeyAlias
(
context
)
if
(
keys
.
length
)
{
const
babelNode
=
parseExpr
(
p
.
exp
,
context
)
...
...
packages/uni-mp-weixin/dist/uni.compiler.js
浏览文件 @
af7d3af5
...
...
@@ -149,6 +149,12 @@ const miniProgram = {
arg
:
[
'
ready
'
],
},
],
'
scroll-view
'
:
[
{
name
:
'
on
'
,
arg
:
[
'
dragstart
'
,
'
dragging
'
,
'
dragend
'
],
},
],
// iOS 平台需要延迟
input
:
[{
name
:
'
bind
'
,
arg
:
[
'
type
'
]
}],
textarea
:
[{
name
:
'
on
'
,
arg
:
[
'
input
'
]
}],
...
...
packages/uts-darwin-arm64/uts.darwin-arm64.node
浏览文件 @
af7d3af5
无法预览此类型文件
packages/uts-darwin-x64/uts.darwin-x64.node
浏览文件 @
af7d3af5
无法预览此类型文件
packages/uts-win32-ia32-msvc/uts.win32-ia32-msvc.node
浏览文件 @
af7d3af5
无法预览此类型文件
packages/uts-win32-x64-msvc/uts.win32-x64-msvc.node
浏览文件 @
af7d3af5
无法预览此类型文件
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录