@a2simcode/ui 0.0.149 → 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.
@@ -9,7 +9,7 @@
9
9
  <code-mirror-basic />
10
10
  </template>
11
11
  <template #description>
12
- 使用 value 绑定,通过 mode 属性指定语言模式。
12
+ 使用 v-model(modelValue)绑定,通过 mode 属性指定语言模式。
13
13
  </template>
14
14
  </Demo>
15
15
 
@@ -1,7 +1,7 @@
1
1
  export default {
2
2
  "props": [
3
3
  {
4
- "name": "value",
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:value",
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": "value",
71
+ "name": "modelValue",
72
72
  "type": "string",
73
73
  "description": "值"
74
74
  },
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <div>
3
- <j-code-mirror :value="code" :height="300" mode="text/x-sql" />
3
+ <j-code-mirror v-model="code" :height="300" mode="text/x-sql" />
4
4
  </div>
5
5
  </template>
6
6
 
@@ -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 :value="code" :height="250" mode="text/x-sql" @change="handleCodeChange" />
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 :value="code" :height="height" mode="application/javascript" />
9
+ <j-code-mirror v-model="code" :height="height" mode="application/javascript" />
10
10
  </el-space>
11
11
  </div>
12
12
  </template>
@@ -8,7 +8,7 @@
8
8
  <el-radio value="text/x-sql">SQL</el-radio>
9
9
  </el-radio-group>
10
10
  </div>
11
- <j-code-mirror :value="code" :height="250" :mode="mode" />
11
+ <j-code-mirror v-model="code" :height="250" :mode="mode" />
12
12
  </el-space>
13
13
  </div>
14
14
  </template>
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <div>
3
- <j-code-mirror :value="code" :height="200" mode="application/javascript" :readonly="true" />
3
+ <j-code-mirror :model-value="code" :height="200" mode="application/javascript" :readonly="true" />
4
4
  </div>
5
5
  </template>
6
6
 
@@ -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
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@a2simcode/ui",
3
- "version": "0.0.149",
3
+ "version": "0.0.150",
4
4
  "description": "A Vue 3 UI Component Library",
5
5
  "type": "module",
6
6
  "main": "./dist/simcode-ui.umd.js",