@dcloudio/uni-app-x 0.7.121 → 0.7.122
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +87 -0
- package/package.json +1 -1
- package/types/dom2-internal/UniCommon.d.ts +7 -2
- package/types/dom2-internal/UniNativeDefines.d.ts +7 -2
- package/types/uni/uts-plugin-api/global.d.ts +8 -0
- package/types/uni/uts-plugin-api/index.d.ts +8 -0
- package/types/uni/uts-plugin-api/lib/uni-accelerometer/utssdk/global.d.ts +35 -0
- package/types/uni/uts-plugin-api/lib/uni-accelerometer/utssdk/index.d.ts +17 -0
- package/types/uni/uts-plugin-api/lib/uni-accelerometer/utssdk/interface.d.ts +359 -0
- package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/interface.d.ts +323 -1294
- package/types/uni/uts-plugin-api/lib/uni-calendar/utssdk/global.d.ts +35 -0
- package/types/uni/uts-plugin-api/lib/uni-calendar/utssdk/index.d.ts +17 -0
- package/types/uni/uts-plugin-api/lib/uni-calendar/utssdk/interface.d.ts +944 -0
- package/types/uni/uts-plugin-api/lib/uni-canvas-dom2/utssdk/interface.d.ts +2 -1
- package/types/uni/{uts-plugin-extend → uts-plugin-api}/lib/uni-compass/utssdk/global.d.ts +16 -6
- package/types/uni/{uts-plugin-extend → uts-plugin-api}/lib/uni-compass/utssdk/index.d.ts +9 -3
- package/types/uni/uts-plugin-api/lib/uni-compass/utssdk/interface.d.ts +353 -0
- package/types/uni/uts-plugin-api/lib/uni-editor/utssdk/global.d.ts +2 -0
- package/types/uni/uts-plugin-api/lib/uni-editor/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-api/lib/uni-editor/utssdk/interface.d.ts +144 -110
- package/types/uni/uts-plugin-api/lib/uni-gyroscope/utssdk/global.d.ts +35 -0
- package/types/uni/uts-plugin-api/lib/uni-gyroscope/utssdk/index.d.ts +17 -0
- package/types/uni/uts-plugin-api/lib/uni-gyroscope/utssdk/interface.d.ts +362 -0
- package/types/uni/uts-plugin-api/lib/uni-memorywarning/utssdk/global.d.ts +21 -0
- package/types/uni/uts-plugin-api/lib/uni-memorywarning/utssdk/index.d.ts +10 -0
- package/types/uni/uts-plugin-api/lib/uni-memorywarning/utssdk/interface.d.ts +20 -0
- package/types/uni/uts-plugin-api/lib/uni-openLocation/utssdk/global.d.ts +23 -0
- package/types/uni/uts-plugin-api/lib/uni-openLocation/utssdk/index.d.ts +11 -0
- package/types/uni/uts-plugin-api/lib/uni-openLocation/utssdk/interface.d.ts +418 -0
- package/types/uni/uts-plugin-api/lib/uni-phoneContact/utssdk/global.d.ts +49 -0
- package/types/uni/uts-plugin-api/lib/uni-phoneContact/utssdk/index.d.ts +24 -0
- package/types/uni/uts-plugin-api/lib/uni-phoneContact/utssdk/interface.d.ts +349 -0
- package/types/uni/uts-plugin-api/lib/uni-privacy/utssdk/global.d.ts +2 -0
- package/types/uni/uts-plugin-api/lib/uni-privacy/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-api/lib/uni-privacy/utssdk/interface.d.ts +83 -124
- package/types/uni/uts-plugin-api/lib/uni-screenBrightness/utssdk/interface.d.ts +3 -3
- package/types/uni/uts-plugin-api/lib/uni-vibrate/utssdk/global.d.ts +27 -0
- package/types/uni/uts-plugin-api/lib/uni-vibrate/utssdk/index.d.ts +13 -0
- package/types/uni/uts-plugin-api/lib/uni-vibrate/utssdk/interface.d.ts +88 -0
- package/types/uni/uts-plugin-biz/global.d.ts +9 -0
- package/types/uni/uts-plugin-biz/index.d.ts +9 -0
- package/types/uni/uts-plugin-biz/lib/uni-accelerometer/utssdk/global.d.ts +35 -0
- package/types/uni/uts-plugin-biz/lib/uni-accelerometer/utssdk/index.d.ts +17 -0
- package/types/uni/uts-plugin-biz/lib/uni-accelerometer/utssdk/interface.d.ts +359 -0
- package/types/uni/uts-plugin-biz/lib/uni-authentication/utssdk/global.d.ts +59 -0
- package/types/uni/uts-plugin-biz/lib/uni-authentication/utssdk/index.d.ts +29 -0
- package/types/uni/uts-plugin-biz/lib/uni-authentication/utssdk/interface.d.ts +371 -0
- package/types/uni/uts-plugin-biz/lib/uni-calendar/utssdk/global.d.ts +35 -0
- package/types/uni/uts-plugin-biz/lib/uni-calendar/utssdk/index.d.ts +17 -0
- package/types/uni/uts-plugin-biz/lib/uni-calendar/utssdk/interface.d.ts +944 -0
- package/types/uni/uts-plugin-biz/lib/uni-compass/utssdk/global.d.ts +35 -0
- package/types/uni/uts-plugin-biz/lib/uni-compass/utssdk/index.d.ts +17 -0
- package/types/uni/uts-plugin-biz/lib/uni-compass/utssdk/interface.d.ts +353 -0
- package/types/uni/uts-plugin-biz/lib/uni-gyroscope/utssdk/global.d.ts +35 -0
- package/types/uni/uts-plugin-biz/lib/uni-gyroscope/utssdk/index.d.ts +17 -0
- package/types/uni/uts-plugin-biz/lib/uni-gyroscope/utssdk/interface.d.ts +362 -0
- package/types/uni/uts-plugin-biz/lib/uni-memorywarning/utssdk/global.d.ts +21 -0
- package/types/uni/uts-plugin-biz/lib/uni-memorywarning/utssdk/index.d.ts +10 -0
- package/types/uni/uts-plugin-biz/lib/uni-memorywarning/utssdk/interface.d.ts +20 -0
- package/types/uni/uts-plugin-biz/lib/uni-phoneContact/utssdk/global.d.ts +49 -0
- package/types/uni/uts-plugin-biz/lib/uni-phoneContact/utssdk/index.d.ts +24 -0
- package/types/uni/uts-plugin-biz/lib/uni-phoneContact/utssdk/interface.d.ts +349 -0
- package/types/uni/uts-plugin-biz/lib/uni-screenBrightness/utssdk/global.d.ts +57 -0
- package/types/uni/uts-plugin-biz/lib/uni-screenBrightness/utssdk/index.d.ts +28 -0
- package/types/uni/uts-plugin-biz/lib/uni-screenBrightness/utssdk/interface.d.ts +1172 -0
- package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +6 -1
- package/types/uni/uts-plugin-biz/lib/uni-vibrate/utssdk/global.d.ts +27 -0
- package/types/uni/uts-plugin-biz/lib/uni-vibrate/utssdk/index.d.ts +13 -0
- package/types/uni/uts-plugin-biz/lib/uni-vibrate/utssdk/interface.d.ts +88 -0
- package/types/uni/uts-plugin-component/global.d.ts +8 -1
- package/types/uni/uts-plugin-component/index.d.ts +8 -1
- package/types/uni/uts-plugin-component/lib/uni-accelerometer/utssdk/global.d.ts +35 -0
- package/types/uni/uts-plugin-component/lib/uni-accelerometer/utssdk/index.d.ts +17 -0
- package/types/uni/uts-plugin-component/lib/uni-accelerometer/utssdk/interface.d.ts +359 -0
- package/types/uni/uts-plugin-component/lib/uni-authentication/utssdk/interface.d.ts +1342 -371
- package/types/uni/uts-plugin-component/lib/uni-calendar/utssdk/global.d.ts +35 -0
- package/types/uni/uts-plugin-component/lib/uni-calendar/utssdk/index.d.ts +17 -0
- package/types/uni/uts-plugin-component/lib/uni-calendar/utssdk/interface.d.ts +944 -0
- package/types/uni/uts-plugin-component/lib/uni-canvas-dom2/utssdk/interface.d.ts +2 -1
- package/types/uni/uts-plugin-component/lib/uni-compass/utssdk/global.d.ts +35 -0
- package/types/uni/uts-plugin-component/lib/uni-compass/utssdk/index.d.ts +17 -0
- package/types/uni/uts-plugin-component/lib/uni-compass/utssdk/interface.d.ts +353 -0
- package/types/uni/uts-plugin-component/lib/uni-editor/utssdk/global.d.ts +2 -0
- package/types/uni/uts-plugin-component/lib/uni-editor/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-component/lib/uni-editor/utssdk/interface.d.ts +144 -110
- package/types/uni/uts-plugin-component/lib/uni-editor-global/utssdk/interface.d.ts +13 -4
- package/types/uni/uts-plugin-component/lib/uni-gyroscope/utssdk/global.d.ts +35 -0
- package/types/uni/uts-plugin-component/lib/uni-gyroscope/utssdk/index.d.ts +17 -0
- package/types/uni/uts-plugin-component/lib/uni-gyroscope/utssdk/interface.d.ts +362 -0
- package/types/uni/uts-plugin-component/lib/uni-memorywarning/utssdk/global.d.ts +21 -0
- package/types/uni/uts-plugin-component/lib/uni-memorywarning/utssdk/index.d.ts +10 -0
- package/types/uni/uts-plugin-component/lib/uni-memorywarning/utssdk/interface.d.ts +20 -0
- package/types/uni/uts-plugin-component/lib/uni-openLocation/utssdk/global.d.ts +23 -0
- package/types/uni/uts-plugin-component/lib/uni-openLocation/utssdk/index.d.ts +11 -0
- package/types/uni/uts-plugin-component/lib/uni-openLocation/utssdk/interface.d.ts +420 -0
- package/types/uni/uts-plugin-component/lib/uni-phoneContact/utssdk/global.d.ts +49 -0
- package/types/uni/uts-plugin-component/lib/uni-phoneContact/utssdk/index.d.ts +24 -0
- package/types/uni/uts-plugin-component/lib/uni-phoneContact/utssdk/interface.d.ts +349 -0
- package/types/uni/uts-plugin-component/lib/uni-privacy/utssdk/global.d.ts +2 -0
- package/types/uni/uts-plugin-component/lib/uni-privacy/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-component/lib/uni-privacy/utssdk/interface.d.ts +132 -75
- package/types/uni/uts-plugin-component/lib/uni-screenBrightness/utssdk/interface.d.ts +3 -3
- package/types/uni/uts-plugin-component/lib/uni-vibrate/utssdk/global.d.ts +27 -0
- package/types/uni/uts-plugin-component/lib/uni-vibrate/utssdk/index.d.ts +13 -0
- package/types/uni/uts-plugin-component/lib/uni-vibrate/utssdk/interface.d.ts +88 -0
- package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/global.d.ts +0 -12
- package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/index.d.ts +0 -1
- package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/interface.d.ts +0 -917
- package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/interface.d.ts +0 -1095
- package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/interface.d.ts +0 -253
|
@@ -33,6 +33,15 @@ export type UniEditorElementInsertTextOptions = {
|
|
|
33
33
|
complete ?: ((res : UniEditorElementOptionsCompleteRes) => void) | null
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
+
export type UniEditorElementInsertLinkOptions = {
|
|
37
|
+
text?: string | null,
|
|
38
|
+
href: string,
|
|
39
|
+
success ?: ((res : UniEditorElementOptionsSuccessRes) => void) | null
|
|
40
|
+
fail ?: ((res : UniEditorElementOptionsFailRes) => void) | null
|
|
41
|
+
complete ?: ((res : UniEditorElementOptionsCompleteRes) => void) | null
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
|
|
36
45
|
export type UniEditorElementInsertMentionOptions = {
|
|
37
46
|
/**
|
|
38
47
|
* 被 @ 的人 id
|
|
@@ -99,6 +108,7 @@ export interface IUniEditorElement extends UniElement {
|
|
|
99
108
|
insertDivider(options : UniEditorElementOptions | null) : void
|
|
100
109
|
insertImage(options : UniEditorElementInsertImageOptions | null) : void
|
|
101
110
|
insertText(options : UniEditorElementInsertTextOptions | null) : void
|
|
111
|
+
insertLink(options : UniEditorElementInsertLinkOptions | null) : void
|
|
102
112
|
insertMention(options ?: UniEditorElementInsertMentionOptions | null) : void
|
|
103
113
|
setContents(options : UniEditorElementSetContentsOptions | null) : void
|
|
104
114
|
getContents(options : UniEditorElementGetContentsOptions | null) : void
|
|
@@ -122,33 +132,33 @@ export type CreateEditorContextAsyncOptions = {
|
|
|
122
132
|
* "android": {
|
|
123
133
|
* "osVer": "5.0",
|
|
124
134
|
* "uniVer": "x",
|
|
125
|
-
* "unixVer": "5.
|
|
135
|
+
* "unixVer": "5.08",
|
|
126
136
|
* "unixVaporVer": "x"
|
|
127
137
|
* },
|
|
128
138
|
* "ios": {
|
|
129
139
|
* "osVer": "10.0",
|
|
130
140
|
* "uniVer": "x",
|
|
131
|
-
* "unixVer": "5.
|
|
141
|
+
* "unixVer": "5.08",
|
|
132
142
|
* "unixVaporVer": "x"
|
|
133
143
|
* },
|
|
134
144
|
* "harmony": {
|
|
135
145
|
* "osVer": "5.0.0",
|
|
136
146
|
* "uniVer": "x",
|
|
137
|
-
* "unixVer": "5.
|
|
138
|
-
* "unixVaporVer": "5.
|
|
147
|
+
* "unixVer": "5.08",
|
|
148
|
+
* "unixVaporVer": "5.08"
|
|
139
149
|
* }
|
|
140
150
|
* },
|
|
141
151
|
* "web": {
|
|
142
152
|
* "uniVer": "√",
|
|
143
|
-
* "unixVer": "5.
|
|
144
|
-
* "unixVaporVer": "5.
|
|
153
|
+
* "unixVer": "5.08",
|
|
154
|
+
* "unixVaporVer": "5.08"
|
|
145
155
|
* },
|
|
146
156
|
* "mp":{
|
|
147
157
|
* "weixin": {
|
|
148
158
|
* "hostVer": "√",
|
|
149
|
-
* "uniVer": "5.
|
|
150
|
-
* "unixVer": "5.
|
|
151
|
-
* "unixVaporVer": "5.
|
|
159
|
+
* "uniVer": "5.08",
|
|
160
|
+
* "unixVer": "5.08",
|
|
161
|
+
* "unixVaporVer": "5.08"
|
|
152
162
|
* },
|
|
153
163
|
* "alipay": {
|
|
154
164
|
* "hostVer": "x",
|
|
@@ -196,33 +206,33 @@ export type CreateEditorContextAsyncOptions = {
|
|
|
196
206
|
* "android": {
|
|
197
207
|
* "osVer": "5.0",
|
|
198
208
|
* "uniVer": "x",
|
|
199
|
-
* "unixVer": "5.
|
|
209
|
+
* "unixVer": "5.08",
|
|
200
210
|
* "unixVaporVer": "x"
|
|
201
211
|
* },
|
|
202
212
|
* "ios": {
|
|
203
213
|
* "osVer": "10.0",
|
|
204
214
|
* "uniVer": "x",
|
|
205
|
-
* "unixVer": "5.
|
|
215
|
+
* "unixVer": "5.08",
|
|
206
216
|
* "unixVaporVer": "x"
|
|
207
217
|
* },
|
|
208
218
|
* "harmony": {
|
|
209
219
|
* "osVer": "5.0.0",
|
|
210
220
|
* "uniVer": "x",
|
|
211
|
-
* "unixVer": "5.
|
|
212
|
-
* "unixVaporVer": "5.
|
|
221
|
+
* "unixVer": "5.08",
|
|
222
|
+
* "unixVaporVer": "5.08"
|
|
213
223
|
* }
|
|
214
224
|
* },
|
|
215
225
|
* "web": {
|
|
216
226
|
* "uniVer": "√",
|
|
217
|
-
* "unixVer": "5.
|
|
218
|
-
* "unixVaporVer": "5.
|
|
227
|
+
* "unixVer": "5.08",
|
|
228
|
+
* "unixVaporVer": "5.08"
|
|
219
229
|
* },
|
|
220
230
|
* "mp":{
|
|
221
231
|
* "weixin": {
|
|
222
232
|
* "hostVer": "√",
|
|
223
|
-
* "uniVer": "5.
|
|
224
|
-
* "unixVer": "5.
|
|
225
|
-
* "unixVaporVer": "5.
|
|
233
|
+
* "uniVer": "5.08",
|
|
234
|
+
* "unixVer": "5.08",
|
|
235
|
+
* "unixVaporVer": "5.08"
|
|
226
236
|
* },
|
|
227
237
|
* "alipay": {
|
|
228
238
|
* "hostVer": "x",
|
|
@@ -270,33 +280,33 @@ export type CreateEditorContextAsyncOptions = {
|
|
|
270
280
|
* "android": {
|
|
271
281
|
* "osVer": "5.0",
|
|
272
282
|
* "uniVer": "x",
|
|
273
|
-
* "unixVer": "5.
|
|
283
|
+
* "unixVer": "5.08",
|
|
274
284
|
* "unixVaporVer": "x"
|
|
275
285
|
* },
|
|
276
286
|
* "ios": {
|
|
277
287
|
* "osVer": "10.0",
|
|
278
288
|
* "uniVer": "x",
|
|
279
|
-
* "unixVer": "5.
|
|
289
|
+
* "unixVer": "5.08",
|
|
280
290
|
* "unixVaporVer": "x"
|
|
281
291
|
* },
|
|
282
292
|
* "harmony": {
|
|
283
293
|
* "osVer": "5.0.0",
|
|
284
294
|
* "uniVer": "x",
|
|
285
|
-
* "unixVer": "5.
|
|
286
|
-
* "unixVaporVer": "5.
|
|
295
|
+
* "unixVer": "5.08",
|
|
296
|
+
* "unixVaporVer": "5.08"
|
|
287
297
|
* }
|
|
288
298
|
* },
|
|
289
299
|
* "web": {
|
|
290
300
|
* "uniVer": "√",
|
|
291
|
-
* "unixVer": "5.
|
|
292
|
-
* "unixVaporVer": "5.
|
|
301
|
+
* "unixVer": "5.08",
|
|
302
|
+
* "unixVaporVer": "5.08"
|
|
293
303
|
* },
|
|
294
304
|
* "mp":{
|
|
295
305
|
* "weixin": {
|
|
296
306
|
* "hostVer": "√",
|
|
297
|
-
* "uniVer": "5.
|
|
298
|
-
* "unixVer": "5.
|
|
299
|
-
* "unixVaporVer": "5.
|
|
307
|
+
* "uniVer": "5.08",
|
|
308
|
+
* "unixVer": "5.08",
|
|
309
|
+
* "unixVaporVer": "5.08"
|
|
300
310
|
* },
|
|
301
311
|
* "alipay": {
|
|
302
312
|
* "hostVer": "x",
|
|
@@ -344,33 +354,33 @@ export type CreateEditorContextAsyncOptions = {
|
|
|
344
354
|
* "android": {
|
|
345
355
|
* "osVer": "5.0",
|
|
346
356
|
* "uniVer": "x",
|
|
347
|
-
* "unixVer": "5.
|
|
357
|
+
* "unixVer": "5.08",
|
|
348
358
|
* "unixVaporVer": "x"
|
|
349
359
|
* },
|
|
350
360
|
* "ios": {
|
|
351
361
|
* "osVer": "10.0",
|
|
352
362
|
* "uniVer": "x",
|
|
353
|
-
* "unixVer": "5.
|
|
363
|
+
* "unixVer": "5.08",
|
|
354
364
|
* "unixVaporVer": "x"
|
|
355
365
|
* },
|
|
356
366
|
* "harmony": {
|
|
357
367
|
* "osVer": "5.0.0",
|
|
358
368
|
* "uniVer": "x",
|
|
359
|
-
* "unixVer": "5.
|
|
360
|
-
* "unixVaporVer": "5.
|
|
369
|
+
* "unixVer": "5.08",
|
|
370
|
+
* "unixVaporVer": "5.08"
|
|
361
371
|
* }
|
|
362
372
|
* },
|
|
363
373
|
* "web": {
|
|
364
374
|
* "uniVer": "√",
|
|
365
|
-
* "unixVer": "5.
|
|
366
|
-
* "unixVaporVer": "5.
|
|
375
|
+
* "unixVer": "5.08",
|
|
376
|
+
* "unixVaporVer": "5.08"
|
|
367
377
|
* },
|
|
368
378
|
* "mp":{
|
|
369
379
|
* "weixin": {
|
|
370
380
|
* "hostVer": "√",
|
|
371
|
-
* "uniVer": "5.
|
|
372
|
-
* "unixVer": "5.
|
|
373
|
-
* "unixVaporVer": "5.
|
|
381
|
+
* "uniVer": "5.08",
|
|
382
|
+
* "unixVer": "5.08",
|
|
383
|
+
* "unixVaporVer": "5.08"
|
|
374
384
|
* },
|
|
375
385
|
* "alipay": {
|
|
376
386
|
* "hostVer": "x",
|
|
@@ -418,33 +428,33 @@ export type CreateEditorContextAsyncOptions = {
|
|
|
418
428
|
* "android": {
|
|
419
429
|
* "osVer": "5.0",
|
|
420
430
|
* "uniVer": "x",
|
|
421
|
-
* "unixVer": "5.
|
|
431
|
+
* "unixVer": "5.08",
|
|
422
432
|
* "unixVaporVer": "x"
|
|
423
433
|
* },
|
|
424
434
|
* "ios": {
|
|
425
435
|
* "osVer": "10.0",
|
|
426
436
|
* "uniVer": "x",
|
|
427
|
-
* "unixVer": "5.
|
|
437
|
+
* "unixVer": "5.08",
|
|
428
438
|
* "unixVaporVer": "x"
|
|
429
439
|
* },
|
|
430
440
|
* "harmony": {
|
|
431
441
|
* "osVer": "5.0.0",
|
|
432
442
|
* "uniVer": "x",
|
|
433
|
-
* "unixVer": "5.
|
|
434
|
-
* "unixVaporVer": "5.
|
|
443
|
+
* "unixVer": "5.08",
|
|
444
|
+
* "unixVaporVer": "5.08"
|
|
435
445
|
* }
|
|
436
446
|
* },
|
|
437
447
|
* "web": {
|
|
438
448
|
* "uniVer": "√",
|
|
439
|
-
* "unixVer": "5.
|
|
440
|
-
* "unixVaporVer": "5.
|
|
449
|
+
* "unixVer": "5.08",
|
|
450
|
+
* "unixVaporVer": "5.08"
|
|
441
451
|
* },
|
|
442
452
|
* "mp":{
|
|
443
453
|
* "weixin": {
|
|
444
454
|
* "hostVer": "√",
|
|
445
|
-
* "uniVer": "5.
|
|
446
|
-
* "unixVer": "5.
|
|
447
|
-
* "unixVaporVer": "5.
|
|
455
|
+
* "uniVer": "5.08",
|
|
456
|
+
* "unixVer": "5.08",
|
|
457
|
+
* "unixVaporVer": "5.08"
|
|
448
458
|
* },
|
|
449
459
|
* "alipay": {
|
|
450
460
|
* "hostVer": "x",
|
|
@@ -495,18 +505,18 @@ export interface EditorContext {
|
|
|
495
505
|
* "android": {
|
|
496
506
|
* "osVer": "4.4",
|
|
497
507
|
* "uniVer": "x",
|
|
498
|
-
* "unixVer": "5.
|
|
508
|
+
* "unixVer": "5.08"
|
|
499
509
|
* },
|
|
500
510
|
* "ios": {
|
|
501
511
|
* "osVer": "12.0",
|
|
502
512
|
* "uniVer": "x",
|
|
503
|
-
* "unixVer": "5.
|
|
513
|
+
* "unixVer": "5.08"
|
|
504
514
|
* },
|
|
505
515
|
* "harmony": {
|
|
506
516
|
* "osVer": "√",
|
|
507
517
|
* "uniVer": "x",
|
|
508
|
-
* "unixVer": "5.
|
|
509
|
-
* "unixVaporVer": "5.
|
|
518
|
+
* "unixVer": "5.08",
|
|
519
|
+
* "unixVaporVer": "5.08"
|
|
510
520
|
* }
|
|
511
521
|
* },
|
|
512
522
|
* }
|
|
@@ -519,18 +529,18 @@ export interface EditorContext {
|
|
|
519
529
|
* "android": {
|
|
520
530
|
* "osVer": "4.4",
|
|
521
531
|
* "uniVer": "x",
|
|
522
|
-
* "unixVer": "5.
|
|
532
|
+
* "unixVer": "5.08"
|
|
523
533
|
* },
|
|
524
534
|
* "ios": {
|
|
525
535
|
* "osVer": "12.0",
|
|
526
536
|
* "uniVer": "x",
|
|
527
|
-
* "unixVer": "5.
|
|
537
|
+
* "unixVer": "5.08"
|
|
528
538
|
* },
|
|
529
539
|
* "harmony": {
|
|
530
540
|
* "osVer": "√",
|
|
531
541
|
* "uniVer": "x",
|
|
532
|
-
* "unixVer": "5.
|
|
533
|
-
* "unixVaporVer": "5.
|
|
542
|
+
* "unixVer": "5.08",
|
|
543
|
+
* "unixVaporVer": "5.08"
|
|
534
544
|
* }
|
|
535
545
|
* },
|
|
536
546
|
* }
|
|
@@ -543,18 +553,18 @@ export interface EditorContext {
|
|
|
543
553
|
* "android": {
|
|
544
554
|
* "osVer": "4.4",
|
|
545
555
|
* "uniVer": "x",
|
|
546
|
-
* "unixVer": "5.
|
|
556
|
+
* "unixVer": "5.08"
|
|
547
557
|
* },
|
|
548
558
|
* "ios": {
|
|
549
559
|
* "osVer": "12.0",
|
|
550
560
|
* "uniVer": "x",
|
|
551
|
-
* "unixVer": "5.
|
|
561
|
+
* "unixVer": "5.08"
|
|
552
562
|
* },
|
|
553
563
|
* "harmony": {
|
|
554
564
|
* "osVer": "√",
|
|
555
565
|
* "uniVer": "x",
|
|
556
|
-
* "unixVer": "5.
|
|
557
|
-
* "unixVaporVer": "5.
|
|
566
|
+
* "unixVer": "5.08",
|
|
567
|
+
* "unixVaporVer": "5.08"
|
|
558
568
|
* }
|
|
559
569
|
* },
|
|
560
570
|
* }
|
|
@@ -567,23 +577,47 @@ export interface EditorContext {
|
|
|
567
577
|
* "android": {
|
|
568
578
|
* "osVer": "4.4",
|
|
569
579
|
* "uniVer": "x",
|
|
570
|
-
* "unixVer": "5.
|
|
580
|
+
* "unixVer": "5.08"
|
|
571
581
|
* },
|
|
572
582
|
* "ios": {
|
|
573
583
|
* "osVer": "12.0",
|
|
574
584
|
* "uniVer": "x",
|
|
575
|
-
* "unixVer": "5.
|
|
585
|
+
* "unixVer": "5.08"
|
|
576
586
|
* },
|
|
577
587
|
* "harmony": {
|
|
578
588
|
* "osVer": "√",
|
|
579
589
|
* "uniVer": "x",
|
|
580
|
-
* "unixVer": "5.
|
|
581
|
-
* "unixVaporVer": "5.
|
|
590
|
+
* "unixVer": "5.08",
|
|
591
|
+
* "unixVaporVer": "5.08"
|
|
582
592
|
* }
|
|
583
593
|
* },
|
|
584
594
|
* }
|
|
585
595
|
*/
|
|
586
596
|
insertText(options ?: UniEditorElementInsertTextOptions | null) : void
|
|
597
|
+
/**
|
|
598
|
+
* 插入链接
|
|
599
|
+
* @uniPlatform {
|
|
600
|
+
* "app": {
|
|
601
|
+
* "android": {
|
|
602
|
+
* "osVer": "4.4",
|
|
603
|
+
* "uniVer": "x",
|
|
604
|
+
* "unixVer": "5.08"
|
|
605
|
+
* },
|
|
606
|
+
* "ios": {
|
|
607
|
+
* "osVer": "12.0",
|
|
608
|
+
* "uniVer": "x",
|
|
609
|
+
* "unixVer": "5.08"
|
|
610
|
+
* },
|
|
611
|
+
* "harmony": {
|
|
612
|
+
* "osVer": "√",
|
|
613
|
+
* "uniVer": "x",
|
|
614
|
+
* "unixVer": "5.08",
|
|
615
|
+
* "unixVaporVer": "5.08"
|
|
616
|
+
* }
|
|
617
|
+
* },
|
|
618
|
+
* }
|
|
619
|
+
*/
|
|
620
|
+
insertLink(options ?: UniEditorElementInsertLinkOptions | null) : void
|
|
587
621
|
/**
|
|
588
622
|
* 插入可整块删除的提及,提及文本默认为 @名字,当选区存在时覆盖选区文本,当选区不存在时插入到光标处
|
|
589
623
|
* @uniPlatform {
|
|
@@ -591,18 +625,18 @@ export interface EditorContext {
|
|
|
591
625
|
* "android": {
|
|
592
626
|
* "osVer": "4.4",
|
|
593
627
|
* "uniVer": "x",
|
|
594
|
-
* "unixVer": "5.
|
|
628
|
+
* "unixVer": "5.08"
|
|
595
629
|
* },
|
|
596
630
|
* "ios": {
|
|
597
631
|
* "osVer": "12.0",
|
|
598
632
|
* "uniVer": "x",
|
|
599
|
-
* "unixVer": "5.
|
|
633
|
+
* "unixVer": "5.08"
|
|
600
634
|
* },
|
|
601
635
|
* "harmony": {
|
|
602
636
|
* "osVer": "√",
|
|
603
637
|
* "uniVer": "x",
|
|
604
|
-
* "unixVer": "5.
|
|
605
|
-
* "unixVaporVer": "5.
|
|
638
|
+
* "unixVer": "5.08",
|
|
639
|
+
* "unixVaporVer": "5.08"
|
|
606
640
|
* }
|
|
607
641
|
* },
|
|
608
642
|
* }
|
|
@@ -615,18 +649,18 @@ export interface EditorContext {
|
|
|
615
649
|
* "android": {
|
|
616
650
|
* "osVer": "4.4",
|
|
617
651
|
* "uniVer": "x",
|
|
618
|
-
* "unixVer": "5.
|
|
652
|
+
* "unixVer": "5.08"
|
|
619
653
|
* },
|
|
620
654
|
* "ios": {
|
|
621
655
|
* "osVer": "12.0",
|
|
622
656
|
* "uniVer": "x",
|
|
623
|
-
* "unixVer": "5.
|
|
657
|
+
* "unixVer": "5.08"
|
|
624
658
|
* },
|
|
625
659
|
* "harmony": {
|
|
626
660
|
* "osVer": "√",
|
|
627
661
|
* "uniVer": "x",
|
|
628
|
-
* "unixVer": "5.
|
|
629
|
-
* "unixVaporVer": "5.
|
|
662
|
+
* "unixVer": "5.08",
|
|
663
|
+
* "unixVaporVer": "5.08"
|
|
630
664
|
* }
|
|
631
665
|
* },
|
|
632
666
|
* }
|
|
@@ -639,18 +673,18 @@ export interface EditorContext {
|
|
|
639
673
|
* "android": {
|
|
640
674
|
* "osVer": "4.4",
|
|
641
675
|
* "uniVer": "x",
|
|
642
|
-
* "unixVer": "5.
|
|
676
|
+
* "unixVer": "5.08"
|
|
643
677
|
* },
|
|
644
678
|
* "ios": {
|
|
645
679
|
* "osVer": "12.0",
|
|
646
680
|
* "uniVer": "x",
|
|
647
|
-
* "unixVer": "5.
|
|
681
|
+
* "unixVer": "5.08"
|
|
648
682
|
* },
|
|
649
683
|
* "harmony": {
|
|
650
684
|
* "osVer": "√",
|
|
651
685
|
* "uniVer": "x",
|
|
652
|
-
* "unixVer": "5.
|
|
653
|
-
* "unixVaporVer": "5.
|
|
686
|
+
* "unixVer": "5.08",
|
|
687
|
+
* "unixVaporVer": "5.08"
|
|
654
688
|
* }
|
|
655
689
|
* },
|
|
656
690
|
* }
|
|
@@ -663,18 +697,18 @@ export interface EditorContext {
|
|
|
663
697
|
* "android": {
|
|
664
698
|
* "osVer": "4.4",
|
|
665
699
|
* "uniVer": "x",
|
|
666
|
-
* "unixVer": "5.
|
|
700
|
+
* "unixVer": "5.08"
|
|
667
701
|
* },
|
|
668
702
|
* "ios": {
|
|
669
703
|
* "osVer": "12.0",
|
|
670
704
|
* "uniVer": "x",
|
|
671
|
-
* "unixVer": "5.
|
|
705
|
+
* "unixVer": "5.08"
|
|
672
706
|
* },
|
|
673
707
|
* "harmony": {
|
|
674
708
|
* "osVer": "√",
|
|
675
709
|
* "uniVer": "x",
|
|
676
|
-
* "unixVer": "5.
|
|
677
|
-
* "unixVaporVer": "5.
|
|
710
|
+
* "unixVer": "5.08",
|
|
711
|
+
* "unixVaporVer": "5.08"
|
|
678
712
|
* }
|
|
679
713
|
* },
|
|
680
714
|
* }
|
|
@@ -687,18 +721,18 @@ export interface EditorContext {
|
|
|
687
721
|
* "android": {
|
|
688
722
|
* "osVer": "4.4",
|
|
689
723
|
* "uniVer": "x",
|
|
690
|
-
* "unixVer": "5.
|
|
724
|
+
* "unixVer": "5.08"
|
|
691
725
|
* },
|
|
692
726
|
* "ios": {
|
|
693
727
|
* "osVer": "12.0",
|
|
694
728
|
* "uniVer": "x",
|
|
695
|
-
* "unixVer": "5.
|
|
729
|
+
* "unixVer": "5.08"
|
|
696
730
|
* },
|
|
697
731
|
* "harmony": {
|
|
698
732
|
* "osVer": "√",
|
|
699
733
|
* "uniVer": "x",
|
|
700
|
-
* "unixVer": "5.
|
|
701
|
-
* "unixVaporVer": "5.
|
|
734
|
+
* "unixVer": "5.08",
|
|
735
|
+
* "unixVaporVer": "5.08"
|
|
702
736
|
* }
|
|
703
737
|
* },
|
|
704
738
|
* }
|
|
@@ -711,18 +745,18 @@ export interface EditorContext {
|
|
|
711
745
|
* "android": {
|
|
712
746
|
* "osVer": "4.4",
|
|
713
747
|
* "uniVer": "x",
|
|
714
|
-
* "unixVer": "5.
|
|
748
|
+
* "unixVer": "5.08"
|
|
715
749
|
* },
|
|
716
750
|
* "ios": {
|
|
717
751
|
* "osVer": "12.0",
|
|
718
752
|
* "uniVer": "x",
|
|
719
|
-
* "unixVer": "5.
|
|
753
|
+
* "unixVer": "5.08"
|
|
720
754
|
* },
|
|
721
755
|
* "harmony": {
|
|
722
756
|
* "osVer": "√",
|
|
723
757
|
* "uniVer": "x",
|
|
724
|
-
* "unixVer": "5.
|
|
725
|
-
* "unixVaporVer": "5.
|
|
758
|
+
* "unixVer": "5.08",
|
|
759
|
+
* "unixVaporVer": "5.08"
|
|
726
760
|
* }
|
|
727
761
|
* },
|
|
728
762
|
* }
|
|
@@ -735,18 +769,18 @@ export interface EditorContext {
|
|
|
735
769
|
* "android": {
|
|
736
770
|
* "osVer": "4.4",
|
|
737
771
|
* "uniVer": "x",
|
|
738
|
-
* "unixVer": "5.
|
|
772
|
+
* "unixVer": "5.08"
|
|
739
773
|
* },
|
|
740
774
|
* "ios": {
|
|
741
775
|
* "osVer": "12.0",
|
|
742
776
|
* "uniVer": "x",
|
|
743
|
-
* "unixVer": "5.
|
|
777
|
+
* "unixVer": "5.08"
|
|
744
778
|
* },
|
|
745
779
|
* "harmony": {
|
|
746
780
|
* "osVer": "√",
|
|
747
781
|
* "uniVer": "x",
|
|
748
|
-
* "unixVer": "5.
|
|
749
|
-
* "unixVaporVer": "5.
|
|
782
|
+
* "unixVer": "5.08",
|
|
783
|
+
* "unixVaporVer": "5.08"
|
|
750
784
|
* }
|
|
751
785
|
* },
|
|
752
786
|
* }
|
|
@@ -759,18 +793,18 @@ export interface EditorContext {
|
|
|
759
793
|
* "android": {
|
|
760
794
|
* "osVer": "4.4",
|
|
761
795
|
* "uniVer": "x",
|
|
762
|
-
* "unixVer": "5.
|
|
796
|
+
* "unixVer": "5.08"
|
|
763
797
|
* },
|
|
764
798
|
* "ios": {
|
|
765
799
|
* "osVer": "12.0",
|
|
766
800
|
* "uniVer": "x",
|
|
767
|
-
* "unixVer": "5.
|
|
801
|
+
* "unixVer": "5.08"
|
|
768
802
|
* },
|
|
769
803
|
* "harmony": {
|
|
770
804
|
* "osVer": "√",
|
|
771
805
|
* "uniVer": "x",
|
|
772
|
-
* "unixVer": "5.
|
|
773
|
-
* "unixVaporVer": "5.
|
|
806
|
+
* "unixVer": "5.08",
|
|
807
|
+
* "unixVaporVer": "5.08"
|
|
774
808
|
* }
|
|
775
809
|
* },
|
|
776
810
|
* }
|
|
@@ -783,18 +817,18 @@ export interface EditorContext {
|
|
|
783
817
|
* "android": {
|
|
784
818
|
* "osVer": "4.4",
|
|
785
819
|
* "uniVer": "x",
|
|
786
|
-
* "unixVer": "5.
|
|
820
|
+
* "unixVer": "5.08"
|
|
787
821
|
* },
|
|
788
822
|
* "ios": {
|
|
789
823
|
* "osVer": "12.0",
|
|
790
824
|
* "uniVer": "x",
|
|
791
|
-
* "unixVer": "5.
|
|
825
|
+
* "unixVer": "5.08"
|
|
792
826
|
* },
|
|
793
827
|
* "harmony": {
|
|
794
828
|
* "osVer": "√",
|
|
795
829
|
* "uniVer": "x",
|
|
796
|
-
* "unixVer": "5.
|
|
797
|
-
* "unixVaporVer": "5.
|
|
830
|
+
* "unixVer": "5.08",
|
|
831
|
+
* "unixVaporVer": "5.08"
|
|
798
832
|
* }
|
|
799
833
|
* },
|
|
800
834
|
* }
|
|
@@ -807,18 +841,18 @@ export interface EditorContext {
|
|
|
807
841
|
* "android": {
|
|
808
842
|
* "osVer": "4.4",
|
|
809
843
|
* "uniVer": "x",
|
|
810
|
-
* "unixVer": "5.
|
|
844
|
+
* "unixVer": "5.08"
|
|
811
845
|
* },
|
|
812
846
|
* "ios": {
|
|
813
847
|
* "osVer": "12.0",
|
|
814
848
|
* "uniVer": "x",
|
|
815
|
-
* "unixVer": "5.
|
|
849
|
+
* "unixVer": "5.08"
|
|
816
850
|
* },
|
|
817
851
|
* "harmony": {
|
|
818
852
|
* "osVer": "√",
|
|
819
853
|
* "uniVer": "x",
|
|
820
|
-
* "unixVer": "5.
|
|
821
|
-
* "unixVaporVer": "5.
|
|
854
|
+
* "unixVer": "5.08",
|
|
855
|
+
* "unixVaporVer": "5.08"
|
|
822
856
|
* }
|
|
823
857
|
* },
|
|
824
858
|
* }
|
|
@@ -836,33 +870,33 @@ export interface Uni {
|
|
|
836
870
|
* "android": {
|
|
837
871
|
* "osVer": "5.0",
|
|
838
872
|
* "uniVer": "x",
|
|
839
|
-
* "unixVer": "5.
|
|
873
|
+
* "unixVer": "5.08",
|
|
840
874
|
* "unixVaporVer": "x"
|
|
841
875
|
* },
|
|
842
876
|
* "ios": {
|
|
843
877
|
* "osVer": "10.0",
|
|
844
878
|
* "uniVer": "x",
|
|
845
|
-
* "unixVer": "5.
|
|
879
|
+
* "unixVer": "5.08",
|
|
846
880
|
* "unixVaporVer": "x"
|
|
847
881
|
* },
|
|
848
882
|
* "harmony": {
|
|
849
883
|
* "osVer": "5.0.0",
|
|
850
884
|
* "uniVer": "x",
|
|
851
|
-
* "unixVer": "5.
|
|
852
|
-
* "unixVaporVer": "5.
|
|
885
|
+
* "unixVer": "5.08",
|
|
886
|
+
* "unixVaporVer": "5.08"
|
|
853
887
|
* }
|
|
854
888
|
* },
|
|
855
889
|
* "web": {
|
|
856
890
|
* "uniVer": "√",
|
|
857
|
-
* "unixVer": "5.
|
|
858
|
-
* "unixVaporVer": "5.
|
|
891
|
+
* "unixVer": "5.08",
|
|
892
|
+
* "unixVaporVer": "5.08"
|
|
859
893
|
* },
|
|
860
894
|
* "mp":{
|
|
861
895
|
* "weixin": {
|
|
862
896
|
* "hostVer": "√",
|
|
863
|
-
* "uniVer": "5.
|
|
864
|
-
* "unixVer": "5.
|
|
865
|
-
* "unixVaporVer": "5.
|
|
897
|
+
* "uniVer": "5.08",
|
|
898
|
+
* "unixVer": "5.08",
|
|
899
|
+
* "unixVaporVer": "5.08"
|
|
866
900
|
* },
|
|
867
901
|
* "alipay": {
|
|
868
902
|
* "hostVer": "x",
|
|
@@ -27,6 +27,7 @@ export type UniEditorStatusChangeEventDetail = {
|
|
|
27
27
|
italic?: boolean | null;
|
|
28
28
|
underline?: boolean | null;
|
|
29
29
|
strike?: boolean | null;
|
|
30
|
+
blockquote?: boolean | null;
|
|
30
31
|
align?: string | null;
|
|
31
32
|
lineHeight?: string | null;
|
|
32
33
|
letterSpacing?: string | null;
|
|
@@ -75,6 +76,13 @@ type UniEditorElementInsertTextOptions = {
|
|
|
75
76
|
fail?: ((res: UniEditorElementOptionsFailRes) => void) | null;
|
|
76
77
|
complete?: ((res: UniEditorElementOptionsCompleteRes) => void) | null;
|
|
77
78
|
};
|
|
79
|
+
type UniEditorElementInsertLinkOptions = {
|
|
80
|
+
text?: string | null;
|
|
81
|
+
href?: string | null;
|
|
82
|
+
success?: ((res: UniEditorElementOptionsSuccessRes) => void) | null;
|
|
83
|
+
fail?: ((res: UniEditorElementOptionsFailRes) => void) | null;
|
|
84
|
+
complete?: ((res: UniEditorElementOptionsCompleteRes) => void) | null;
|
|
85
|
+
};
|
|
78
86
|
type UniEditorElementSetContentsOptions = {
|
|
79
87
|
delta?: any | null;
|
|
80
88
|
html?: string | null;
|
|
@@ -106,10 +114,6 @@ export class UniEditorElement extends UniViewElementImpl {
|
|
|
106
114
|
tagName: string;
|
|
107
115
|
nodeName: string;
|
|
108
116
|
vm: any;
|
|
109
|
-
/**
|
|
110
|
-
* @internal 获取编辑器上下文对象,供组件内部调用,外部不建议使用
|
|
111
|
-
*/
|
|
112
|
-
private getContext;
|
|
113
117
|
/**
|
|
114
118
|
* 格式化文本
|
|
115
119
|
* @param name format name
|
|
@@ -131,6 +135,11 @@ export class UniEditorElement extends UniViewElementImpl {
|
|
|
131
135
|
* @param options 文本选项 { text, success, fail, complete }
|
|
132
136
|
*/
|
|
133
137
|
insertText(options: UniEditorElementInsertTextOptions | null): void;
|
|
138
|
+
/**
|
|
139
|
+
* 插入链接
|
|
140
|
+
* @param options 链接选项 { text, href, success, fail, complete }
|
|
141
|
+
*/
|
|
142
|
+
insertLink(options: UniEditorElementInsertLinkOptions | null): void;
|
|
134
143
|
/**
|
|
135
144
|
* 设置内容
|
|
136
145
|
* @param options 内容选项 { delta, html, success, fail, complete }
|