组件',
diff --git a/driver/js/examples/hippy-vue-demo/src/components/native-demos/demo-vue-native.vue b/driver/js/examples/hippy-vue-demo/src/components/native-demos/demo-vue-native.vue
index 70de5b0396d..74b9e686359 100644
--- a/driver/js/examples/hippy-vue-demo/src/components/native-demos/demo-vue-native.vue
+++ b/driver/js/examples/hippy-vue-demo/src/components/native-demos/demo-vue-native.vue
@@ -294,32 +294,6 @@
{{ cookiesValue }}
-
-
-
-
-
-
- {{ clipboardString }}
-
-
-
- {{ clipboardValue }}
-
-
@@ -343,8 +317,6 @@ export default {
screenIsVertical,
storageValue: '',
storageSetStatus: 'ready to set',
- clipboardString: 'ready to set',
- clipboardValue: '',
imageSize: '',
netInfoText: '正在获取...',
fetchText: '请求网址中...',
@@ -439,18 +411,6 @@ export default {
this.cookiesValue = cookies;
});
},
- setString() {
- Vue.Native.Clipboard.setString('hippy');
- this.clipboardString = 'copy "hippy" value succeed';
- },
- async getString() {
- const value = await Vue.Native.Clipboard.getString();
- if (value) {
- this.clipboardValue = value;
- } else {
- this.clipboardValue = 'undefined';
- }
- },
},
};
diff --git a/driver/js/examples/hippy-vue-next-demo/src/components/native-demo/demo-vue-native.vue b/driver/js/examples/hippy-vue-next-demo/src/components/native-demo/demo-vue-native.vue
index 2897b62fa4d..6405d34d68e 100644
--- a/driver/js/examples/hippy-vue-next-demo/src/components/native-demo/demo-vue-native.vue
+++ b/driver/js/examples/hippy-vue-next-demo/src/components/native-demo/demo-vue-native.vue
@@ -293,32 +293,6 @@
{{ cookiesValue }}
-
-
-
-
-
- {{ clipboardString }}
-
-
-
- {{ clipboardValue }}
-
-
-
{
- Native.Clipboard.setString('hippy');
- clipboardString.value = 'clipboard set "hippy" value succeed';
- };
-
- /**
- * get content of clipboard
- */
- const getString = async () => {
- const value = await Native.Clipboard.getString();
- if (value) {
- clipboardValue.value = value;
- } else {
- clipboardValue.value = 'undefined';
- }
- };
-
const getBoundingClientRect = async (relToContainer = false) => {
try {
const rect = await Native.getBoundingClientRect(rectRef.value as HippyNode, { relToContainer });
@@ -482,8 +434,6 @@ export default defineComponent({
rectRef,
storageValue,
storageSetStatus,
- clipboardString,
- clipboardValue,
imageSize,
netInfoText,
superProps,
@@ -494,8 +444,6 @@ export default defineComponent({
setItem,
getItem,
removeItem,
- setString,
- getString,
setCookie,
getCookie,
getBoundingClientRect,