init
This commit is contained in:
9
xhs-mini-demos/component-case/eval/eval.css
Normal file
9
xhs-mini-demos/component-case/eval/eval.css
Normal file
@@ -0,0 +1,9 @@
|
||||
.input {
|
||||
margin: 15px auto;
|
||||
width: 80%;
|
||||
/* border-bottom: 1px solid black; */
|
||||
}
|
||||
.text {
|
||||
margin: 15px auto;
|
||||
width: 80%;
|
||||
}
|
||||
21
xhs-mini-demos/component-case/eval/eval.js
Normal file
21
xhs-mini-demos/component-case/eval/eval.js
Normal file
@@ -0,0 +1,21 @@
|
||||
Page({
|
||||
data: {
|
||||
value: '',
|
||||
},
|
||||
|
||||
onShareAppMessage() {
|
||||
return {
|
||||
title: 'eval',
|
||||
path: 'packageAPI/pages/eval/eval',
|
||||
};
|
||||
},
|
||||
handle() {
|
||||
const self = this;
|
||||
self.setData({ value: '' });
|
||||
if (!globalThis.eval) {
|
||||
self.setData({ value: '不支持' });
|
||||
} else {
|
||||
self.setData({ value: '支持' });
|
||||
}
|
||||
},
|
||||
});
|
||||
4
xhs-mini-demos/component-case/eval/eval.json
Normal file
4
xhs-mini-demos/component-case/eval/eval.json
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"usingComponents": {},
|
||||
"navigationBarTitleText": "eval"
|
||||
}
|
||||
11
xhs-mini-demos/component-case/eval/eval.xhsml
Normal file
11
xhs-mini-demos/component-case/eval/eval.xhsml
Normal file
@@ -0,0 +1,11 @@
|
||||
<view class="container">
|
||||
<template is="head" data="{{title: 'eval'}}" />
|
||||
<view class="page-body">
|
||||
<view class="page-section">
|
||||
<text>
|
||||
{{value}}
|
||||
</text>
|
||||
<button bindtap="handle">执行eval</button>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
Reference in New Issue
Block a user