@dcloudio/uni-app
Advanced tools
Comparing version 3.0.0-alpha-3000020210618002 to 3.0.0-alpha-3000020210708001
@@ -8,2 +8,39 @@ 'use strict'; | ||
const EVENT_MAP = { | ||
onClick: '.e0', | ||
onChange: '.e1', | ||
onInput: '.e2', | ||
onLoad: '.e3', | ||
onError: '.e4', | ||
onTouchstart: '.e5', | ||
onTouchmove: '.e6', | ||
onTouchcancel: '.e7', | ||
onTouchend: '.e8', | ||
onLongpress: '.e9', | ||
onTransitionend: '.ea', | ||
onAnimationstart: '.eb', | ||
onAnimationiteration: '.ec', | ||
onAnimationend: '.ed', | ||
onTouchforcechange: '.ee', | ||
}; | ||
const OPTIONS = [ | ||
'Capture', | ||
'CaptureOnce', | ||
'CapturePassive', | ||
'CaptureOncePassive', | ||
'Once', | ||
'OncePassive', | ||
'Passive', | ||
]; | ||
/*#__PURE__*/ shared.extend({ | ||
class: '.c', | ||
style: '.s', | ||
}, Object.keys(EVENT_MAP).reduce((res, name) => { | ||
const value = EVENT_MAP[name]; | ||
res[name] = value; | ||
OPTIONS.forEach((v, i) => { | ||
res[name + v] = value + i; | ||
}); | ||
return res; | ||
}, Object.create(null))); | ||
const sanitise = (val) => (val && JSON.parse(JSON.stringify(val))) || val; | ||
@@ -10,0 +47,0 @@ const UNI_SSR = '__uniSSR'; |
import { shallowRef, ref, getCurrentInstance, isInSSRComponentSetup, injectHook } from 'vue'; | ||
import { hasOwn, isString } from '@vue/shared'; | ||
import { extend, hasOwn, isString } from '@vue/shared'; | ||
const EVENT_MAP = { | ||
onClick: '.e0', | ||
onChange: '.e1', | ||
onInput: '.e2', | ||
onLoad: '.e3', | ||
onError: '.e4', | ||
onTouchstart: '.e5', | ||
onTouchmove: '.e6', | ||
onTouchcancel: '.e7', | ||
onTouchend: '.e8', | ||
onLongpress: '.e9', | ||
onTransitionend: '.ea', | ||
onAnimationstart: '.eb', | ||
onAnimationiteration: '.ec', | ||
onAnimationend: '.ed', | ||
onTouchforcechange: '.ee', | ||
}; | ||
const OPTIONS = [ | ||
'Capture', | ||
'CaptureOnce', | ||
'CapturePassive', | ||
'CaptureOncePassive', | ||
'Once', | ||
'OncePassive', | ||
'Passive', | ||
]; | ||
/*#__PURE__*/ extend({ | ||
class: '.c', | ||
style: '.s', | ||
}, Object.keys(EVENT_MAP).reduce((res, name) => { | ||
const value = EVENT_MAP[name]; | ||
res[name] = value; | ||
OPTIONS.forEach((v, i) => { | ||
res[name + v] = value + i; | ||
}); | ||
return res; | ||
}, Object.create(null))); | ||
const sanitise = (val) => (val && JSON.parse(JSON.stringify(val))) || val; | ||
@@ -19,2 +56,5 @@ const UNI_SSR = '__uniSSR'; | ||
const valRef = shallow ? shallowRef(value) : ref(value); | ||
if (__PLATFORM__ !== 'h5') { | ||
return valRef; | ||
} | ||
const __uniSSR = window[UNI_SSR]; | ||
@@ -21,0 +61,0 @@ if (!__uniSSR) { |
{ | ||
"name": "@dcloudio/uni-app", | ||
"version": "3.0.0-alpha-3000020210618002", | ||
"version": "3.0.0-alpha-3000020210708001", | ||
"description": "@dcloudio/uni-app", | ||
@@ -21,3 +21,3 @@ "main": "./dist/uni-app.cjs.js", | ||
}, | ||
"gitHead": "91d7c6f34134dc2f2ec372b68008db6a58234099" | ||
"gitHead": "b151fe7e8364e3492054835f047ce902f39d8bf1" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
25482
331