tianheng-ui 0.0.50 → 0.0.53

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,7 +1,7 @@
1
1
  {
2
2
  "name": "tianheng-ui",
3
3
  "description": "A Vue.js project",
4
- "version": "0.0.50",
4
+ "version": "0.0.53",
5
5
  "author": "shu lang <403732931@qq.com>",
6
6
  "license": "MIT",
7
7
  "private": false,
@@ -27,9 +27,10 @@
27
27
  </div>
28
28
  </div>
29
29
  <slot></slot>
30
- <slot v-if="$slots.footer" slot="footer">
30
+
31
+ <template v-if="$slots.footer" slot="footer">
31
32
  <slot name="footer"></slot>
32
- </slot>
33
+ </template>
33
34
  <span v-else slot="footer">
34
35
  <el-button
35
36
  v-if="showAffirm"
@@ -108,7 +108,6 @@ export default {
108
108
  }
109
109
  }
110
110
  });
111
- // console.log(this.models)
112
111
  },
113
112
  generateRules(item) {
114
113
  if (this.rules[item.model]) {
@@ -163,7 +162,6 @@ export default {
163
162
  value: {
164
163
  deep: true,
165
164
  handler(val) {
166
- console.log(JSON.stringify(val));
167
165
  this.models = { ...this.models, ...val };
168
166
  }
169
167
  }
@@ -686,7 +686,6 @@ export default {
686
686
  this.selectWidget = row.columns[colIndex].list[newIndex];
687
687
  },
688
688
  handleWidgetTabAdd($event, row, colIndex) {
689
- console.log(row, colIndex);
690
689
  const newIndex = $event.newIndex;
691
690
  const oldIndex = $event.oldIndex;
692
691
  const item = $event.item;
@@ -11,7 +11,6 @@
11
11
  v-model="params[item.options.prop]"
12
12
  :style="{ width: item.options.width + 'px' }"
13
13
  :placeholder="item.options.placeholder || '请输入'"
14
- :size="item.options.size"
15
14
  :disabled="item.options.disabled"
16
15
  clearable
17
16
  ></el-input>
@@ -22,10 +21,10 @@
22
21
  :type="item.options.dateType || 'date'"
23
22
  :format="item.options.format"
24
23
  :value-format="item.options.valueFormat"
25
- :size="item.options.size"
26
24
  range-separator="至"
27
25
  start-placeholder="开始日期"
28
26
  end-placeholder="结束日期"
27
+ clearable
29
28
  >
30
29
  </el-date-picker>
31
30
  <el-select
@@ -33,20 +32,30 @@
33
32
  v-model="params[item.options.prop]"
34
33
  :style="{ width: item.options.width + 'px' }"
35
34
  :placeholder="item.options.placeholder || '请选择'"
36
- :size="item.options.size"
37
35
  :multiple="item.options.multiple"
38
36
  :multiple-limit="item.options.multipleLimit"
39
37
  :filterable="item.options.filterable"
40
38
  :disabled="item.options.disabled"
41
39
  clearable
42
40
  >
43
- <el-option
44
- v-for="option in item.options.options"
45
- :key="option.value"
46
- :label="option.label"
47
- :value="option.value"
48
- >
49
- </el-option>
41
+ <template v-if="item.options.remote">
42
+ <el-option
43
+ v-for="option in item.options.options"
44
+ :key="option[item.option.props.value]"
45
+ :label="option[item.option.props.label]"
46
+ :value="option[item.option.props.value]"
47
+ >
48
+ </el-option>
49
+ </template>
50
+ <template v-else>
51
+ <el-option
52
+ v-for="option in item.options.options"
53
+ :key="option.value"
54
+ :label="option.label"
55
+ :value="option.value"
56
+ >
57
+ </el-option>
58
+ </template>
50
59
  </el-select>
51
60
  </div>
52
61
 
@@ -108,10 +117,17 @@ export default {
108
117
 
109
118
  <style lang="less" scoped>
110
119
  .th-table-search {
111
- margin-bottom: 10px;
120
+ margin-bottom: 15px;
112
121
  &-item {
113
122
  display: inline-block;
114
123
  margin-right: 15px;
124
+ margin-bottom: 10px;
125
+ &-title {
126
+ font-size: 14px;
127
+ }
128
+ }
129
+ .th-table-search-item:last-child {
130
+ margin-right: 20px !important;
115
131
  }
116
132
  }
117
133
  </style>