diff --git a/History.md b/History.md index f2d408e..60983ec 100644 --- a/History.md +++ b/History.md @@ -1,3 +1,8 @@ +## 2.2.14 2020-07-27 + +- Allow add specific style for float and integer numbers [pr](https://github.com/chenfengjw163/vue-json-viewer/pull/51) + + ## 2.2.13 2020-07-14 - Add timeformat props to support custom time format [pr](https://github.com/chenfengjw163/vue-json-viewer/pull/48) \ No newline at end of file diff --git a/example/app.css b/example/app.css new file mode 100644 index 0000000..acce3ab --- /dev/null +++ b/example/app.css @@ -0,0 +1,3 @@ +.jv-number-float { + color: #faa !important; +} \ No newline at end of file diff --git a/example/app.js b/example/app.js index 4b53d83..b6fd71d 100644 --- a/example/app.js +++ b/example/app.js @@ -1,5 +1,6 @@ import Vue from 'vue' import JsonViewer from '../lib' +import './app.css' Vue.use(JsonViewer) @@ -47,6 +48,7 @@ new Vue({ total: 25, limit: 10, skip: 0, + numbers: 10.11, success: true, links: { previous: undefined, diff --git a/package.json b/package.json index bdc63c4..ea6877e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vue-json-viewer", - "version": "2.2.13", + "version": "2.2.14", "description": "vuejs展示json的组件", "main": "vue-json-viewer.js", "files": [