htui-yllkbz 1.2.31 → 1.2.35

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.
@@ -4,10 +4,14 @@
4
4
  * @Author: hutao
5
5
  * @Date: 2021-11-15 14:41:40
6
6
  * @LastEditors: hutao
7
- * @LastEditTime: 2021-12-15 15:46:44
7
+ * @LastEditTime: 2021-12-22 09:58:13
8
8
  -->
9
9
  <template>
10
10
  <div>
11
+
12
+ <HtMd v-model="state.content"
13
+ @save="save"
14
+ placeholder="请输入"></HtMd>
11
15
  <HtTable :data="state.data"
12
16
  @onchange="test"
13
17
  :height="200"
@@ -19,12 +23,8 @@
19
23
  <el-tag>{{row.age}}</el-tag>
20
24
  </div>
21
25
  <div slot="header_name">测试名字</div>
22
- <!-- <div slot="header_age"
23
- slot-scope="{column,$index}">
24
- <el-tag>年龄{{$index}}</el-tag>
25
- </div> -->
26
26
  </HtTable>
27
- <el-dropdown>
27
+ <!-- <el-dropdown>
28
28
  <el-select placeholder="请选择">
29
29
  </el-select>
30
30
 
@@ -37,27 +37,31 @@
37
37
  <el-dropdown-item>双皮奶</el-dropdown-item>
38
38
  <el-dropdown-item>蚵仔煎</el-dropdown-item>
39
39
  </el-dropdown-menu>
40
- </el-dropdown>
40
+ </el-dropdown> -->
41
41
  </div>
42
42
  </template>
43
43
  <script lang='ts'>
44
44
  import { Component, Vue } from "vue-property-decorator";
45
45
  import HtTable from "@/packages/HtTable/index.vue";
46
+ import HtMd from "@/packages/HtMd/index.vue";
46
47
  interface State {
47
48
  /** 数据状态 */
48
49
  loading: boolean;
49
50
  columns: any;
50
51
  data: any;
52
+ content: string;
51
53
  }
52
54
  @Component({
53
55
  components: {
54
56
  HtTable,
57
+ HtMd,
55
58
  },
56
59
  })
57
60
  export default class Index extends Vue {
58
61
  /** 数据 */
59
62
  state: State = {
60
63
  loading: false,
64
+ content: "",
61
65
  data: [
62
66
  { name: "胡涛", age: 12, sex: 0, id: 1, test: { title: "测试" } },
63
67
  { name: "胡涛", age: 12, sex: 1, id: 2, test: { title: "测试" } },
@@ -89,6 +93,9 @@ export default class Index extends Vue {
89
93
  test() {
90
94
  //console.log("ee", e);
91
95
  }
96
+ save(e: string, f: string) {
97
+ console.log("e,f", e, f);
98
+ }
92
99
  /** 监听 */
93
100
  /** 计算属性 */
94
101
  }