@a2simcode/ui 0.0.148 → 0.0.150
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/dist/components/code-mirror/index.d.ts +8 -8
- package/dist/components/code-mirror/src/code-mirror.vue.d.ts +4 -4
- package/dist/simcode-ui.es.js +3165 -3184
- package/dist/simcode-ui.umd.js +2 -2
- package/dist/stats.html +1 -1
- package/docs/components/code-mirror.md +1 -1
- package/docs/components/meta/code-mirror.ts +3 -3
- package/docs/examples/code-mirror/basic.vue +1 -1
- package/docs/examples/code-mirror/events.vue +1 -1
- package/docs/examples/code-mirror/height.vue +1 -1
- package/docs/examples/code-mirror/mode.vue +1 -1
- package/docs/examples/code-mirror/readonly.vue +1 -1
- package/docs/examples/form/basic.vue +6 -0
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
"props": [
|
|
3
3
|
{
|
|
4
|
-
"name": "
|
|
4
|
+
"name": "modelValue",
|
|
5
5
|
"description": "值",
|
|
6
6
|
"type": "string",
|
|
7
7
|
"default": "''"
|
|
@@ -45,7 +45,7 @@ export default {
|
|
|
45
45
|
],
|
|
46
46
|
"events": [
|
|
47
47
|
{
|
|
48
|
-
"name": "update:
|
|
48
|
+
"name": "update:modelValue",
|
|
49
49
|
"description": "",
|
|
50
50
|
"type": "string"
|
|
51
51
|
},
|
|
@@ -68,7 +68,7 @@ export default {
|
|
|
68
68
|
"name": "CodeMirrorProps",
|
|
69
69
|
"properties": [
|
|
70
70
|
{
|
|
71
|
-
"name": "
|
|
71
|
+
"name": "modelValue",
|
|
72
72
|
"type": "string",
|
|
73
73
|
"description": "值"
|
|
74
74
|
},
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
<el-button type="primary" @click="handleChange">更新代码</el-button>
|
|
6
6
|
<el-button @click="handleClear">清空</el-button>
|
|
7
7
|
</div>
|
|
8
|
-
<j-code-mirror
|
|
8
|
+
<j-code-mirror v-model="code" :height="250" mode="text/x-sql" @change="handleCodeChange" />
|
|
9
9
|
<div style="color: #666; font-size: 14px">
|
|
10
10
|
<div>代码长度: {{ codeLength }} 字符</div>
|
|
11
11
|
<div>最后修改时间: {{ lastModified }}</div>
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<el-slider v-model="height" :min="150" :max="500" style="width: 300px" />
|
|
7
7
|
<span style="margin-left: 10px">{{ height }}px</span>
|
|
8
8
|
</div>
|
|
9
|
-
<j-code-mirror
|
|
9
|
+
<j-code-mirror v-model="code" :height="height" mode="application/javascript" />
|
|
10
10
|
</el-space>
|
|
11
11
|
</div>
|
|
12
12
|
</template>
|
|
@@ -306,6 +306,11 @@ const schema = [
|
|
|
306
306
|
},
|
|
307
307
|
},
|
|
308
308
|
],
|
|
309
|
+
getCompConfig: (data) => {
|
|
310
|
+
return {
|
|
311
|
+
display: !(data.formData.radio === '1')
|
|
312
|
+
}
|
|
313
|
+
},
|
|
309
314
|
},
|
|
310
315
|
{
|
|
311
316
|
config: {
|
|
@@ -333,6 +338,7 @@ const schema = [
|
|
|
333
338
|
{
|
|
334
339
|
config: {
|
|
335
340
|
label: '基础信息',
|
|
341
|
+
active: true,
|
|
336
342
|
},
|
|
337
343
|
children: [
|
|
338
344
|
{
|