Commit 1fb98ef1 authored by Leopoldthecoder's avatar Leopoldthecoder Committed by 杨奕

Chore: misc updates

parent 8ae2defa
...@@ -20,8 +20,6 @@ const components = [ ...@@ -20,8 +20,6 @@ const components = [
]; ];
const install = function(Vue, opts = {}) { const install = function(Vue, opts = {}) {
/* istanbul ignore if */
if (install.installed) return;
locale.use(opts.locale); locale.use(opts.locale);
locale.i18n(opts.i18n); locale.i18n(opts.i18n);
......
var fs = require('fs'); var fs = require('fs');
var path = require('path'); var path = require('path');
var version = process.env.VERSION || require('../../package.json').version; var version = process.env.VERSION || require('../../package.json').version;
var content = { '1.0.9': '1.0', '1.1.6': '1.1', '1.2.9': '1.2', '1.3.7': '1.3', '1.4.11': '1.4' }; var content = { '1.4.12': '1.4' };
if (!content[version]) content[version] = '2.0'; if (!content[version]) content[version] = '2.0';
fs.writeFileSync(path.resolve(__dirname, '../../examples/versions.json'), JSON.stringify(content)); fs.writeFileSync(path.resolve(__dirname, '../../examples/versions.json'), JSON.stringify(content));
...@@ -1777,7 +1777,7 @@ ...@@ -1777,7 +1777,7 @@
### 合并行或列 ### 合并行或列
多行或多列共用一个数据时,可以合并行或列。 多行或多列共用一个数据时,可以合并行或列。
:::demo 通过给`table`传入`span-method`方法可以实现合并行或列,方法的参数是一个对象,里面包含当前行`row`、当前列`column`、当前行号`rowIndex`、当前列号`columnIndex`四个属性。该函数可以返回一个包含两个元素的数组,第一个元素代表`rowspan`,第二个元素代表`colspan`。 也可以返回一个键名为`rowsapn``colspan`的对象。 :::demo 通过给`table`传入`span-method`方法可以实现合并行或列,方法的参数是一个对象,里面包含当前行`row`、当前列`column`、当前行号`rowIndex`、当前列号`columnIndex`四个属性。该函数可以返回一个包含两个元素的数组,第一个元素代表`rowspan`,第二个元素代表`colspan`。 也可以返回一个键名为`rowspan``colspan`的对象。
```html ```html
<template> <template>
......
{"1.0.9":"1.0","1.1.6":"1.1","1.2.9":"1.2","1.3.7":"1.3","1.4.11":"1.4","2.0.7":"2.0"} {"1.4.12":"1.4","2.0.7":"2.0"}
\ No newline at end of file \ No newline at end of file
...@@ -25,8 +25,8 @@ $--color-primary-light-7: mix($--color-white, $--color-primary, 70%) !default; / ...@@ -25,8 +25,8 @@ $--color-primary-light-7: mix($--color-white, $--color-primary, 70%) !default; /
$--color-primary-light-8: mix($--color-white, $--color-primary, 80%) !default; /* d9ecff */ $--color-primary-light-8: mix($--color-white, $--color-primary, 80%) !default; /* d9ecff */
$--color-primary-light-9: mix($--color-white, $--color-primary, 90%) !default; /* ecf5ff */ $--color-primary-light-9: mix($--color-white, $--color-primary, 90%) !default; /* ecf5ff */
$--color-success: #67c23a !default; $--color-success: #5cb87a !default;
$--color-warning: #eb9e05 !default; $--color-warning: #e6a23c !default;
$--color-danger: #fa5555 !default; $--color-danger: #fa5555 !default;
$--color-info: #878d99 !default; $--color-info: #878d99 !default;
......
...@@ -171,6 +171,7 @@ ...@@ -171,6 +171,7 @@
width: 24px; width: 24px;
text-align: center; text-align: center;
font-size: 18px; font-size: 18px;
vertical-align: middle;
} }
& * { & * {
vertical-align: middle; vertical-align: middle;
......
...@@ -434,6 +434,7 @@ ...@@ -434,6 +434,7 @@
vertical-align: middle; vertical-align: middle;
cursor: pointer; cursor: pointer;
overflow: initial; overflow: initial;
position: relative;
} }
.sort-caret { .sort-caret {
......
...@@ -142,8 +142,6 @@ const components = [ ...@@ -142,8 +142,6 @@ const components = [
]; ];
const install = function(Vue, opts = {}) { const install = function(Vue, opts = {}) {
/* istanbul ignore if */
if (install.installed) return;
locale.use(opts.locale); locale.use(opts.locale);
locale.i18n(opts.i18n); locale.i18n(opts.i18n);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment