@xilonglab/vue-main 0.9.5 → 0.9.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xilonglab/vue-main",
3
- "version": "0.9.5",
3
+ "version": "0.9.7",
4
4
  "description": "xilong vue main",
5
5
  "main": "packages/index.js",
6
6
  "scripts": {
@@ -37,7 +37,7 @@ const onConfirm = async () => {
37
37
  if (validation) {
38
38
  emits('confirm');
39
39
  const code = await props.callback()
40
- if (!code) {
40
+ if (code) {
41
41
  hide();
42
42
  emits('finish');
43
43
  }
@@ -75,7 +75,7 @@ defineExpose({
75
75
  >
76
76
  <component
77
77
  :is="`xl-${col.form.type || 'input'}`"
78
- v-model="obj.value[col.prop]"
78
+ v-model="obj[col.prop]"
79
79
  v-bind="col.form || {}"
80
80
  />
81
81
  </xl-form-col>
@@ -0,0 +1,59 @@
1
+ <script setup>
2
+ defineOptions({ name: "XlSingleTabView" })
3
+
4
+ import { ref } from 'vue'
5
+
6
+ const props = defineProps({
7
+ l: {
8
+ type: String,
9
+ default: '',
10
+ },
11
+ })
12
+
13
+ const tabIndex = ref('0')
14
+ </script>
15
+
16
+ <template>
17
+ <div class="xl-single-tab-view">
18
+ <el-tabs class="tabs" v-model="tabIndex">
19
+ <el-tab-pane
20
+ :key="l"
21
+ :label="l"
22
+ name="0"
23
+ />
24
+ </el-tabs>
25
+ <template class="frame">
26
+ <slot/>
27
+ </template>
28
+ </div>
29
+ </template>
30
+
31
+ <style lang="less" scoped>
32
+ .xl-single-tab-view {
33
+ display: flex;
34
+ flex-flow: column;
35
+ flex-grow: 1;
36
+ position: relative;
37
+ background: #fff;
38
+ color: #000;
39
+
40
+ .tabs {
41
+ height: 40px;
42
+
43
+ :deep(.el-tabs__nav-wrap) {
44
+ padding-left: 10px;
45
+ }
46
+
47
+ :deep(.el-tabs__header) {
48
+ margin: 0;
49
+ }
50
+ }
51
+
52
+ .frame {
53
+ flex-grow: 1;
54
+ overflow-y: scroll;
55
+ display: flex;
56
+ flex-flow: column;
57
+ }
58
+ }
59
+ </style>