@jetlinks-web/components 2.0.15 → 2.0.16
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/es/FullPage/FullPage.js +1 -1
- package/es/Search/Advanced/SaveHistory.js +1 -1
- package/es/Search/Item.js +1 -1
- package/es/Search/Search.js +1 -1
- package/es/TimeFormat/index.js +5 -0
- package/es/TimeFormat/timeFormat.js +43 -0
- package/es/components.js +2 -1
- package/lib/FullPage/FullPage.js +1 -1
- package/lib/Search/Advanced/SaveHistory.js +1 -1
- package/lib/Search/Item.js +1 -1
- package/lib/Search/Search.js +1 -1
- package/lib/TimeFormat/index.js +12 -0
- package/lib/TimeFormat/timeFormat.js +43 -0
- package/lib/components.js +7 -0
- package/package.json +5 -4
package/es/FullPage/FullPage.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
} */
|
|
7
7
|
import { defineComponent as _defineComponent } from 'vue';
|
|
8
8
|
import { unref as _unref, renderSlot as _renderSlot, createElementVNode as _createElementVNode, normalizeStyle as _normalizeStyle, openBlock as _openBlock, createElementBlock as _createElementBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
|
|
9
|
-
const _withScopeId = n => (_pushScopeId("data-v-
|
|
9
|
+
const _withScopeId = n => (_pushScopeId("data-v-1714966010974"), n = n(), _popScopeId(), n);
|
|
10
10
|
const _hoisted_1 = { class: "full-page-warp-content" };
|
|
11
11
|
import { ref } from 'vue';
|
|
12
12
|
import { useElementBounding } from '@vueuse/core';
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
} */
|
|
22
22
|
import { defineComponent as _defineComponent } from 'vue';
|
|
23
23
|
import { unref as _unref, createVNode as _createVNode, withCtx as _withCtx, createTextVNode as _createTextVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createBlock as _createBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
|
|
24
|
-
const _withScopeId = n => (_pushScopeId("data-v-
|
|
24
|
+
const _withScopeId = n => (_pushScopeId("data-v-1714966014305"), n = n(), _popScopeId(), n);
|
|
25
25
|
const _hoisted_1 = {
|
|
26
26
|
key: 0,
|
|
27
27
|
style: { "width": "240px" }
|
package/es/Search/Item.js
CHANGED
|
@@ -78,7 +78,7 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
|
|
|
78
78
|
} */
|
|
79
79
|
import { defineComponent as _defineComponent } from 'vue';
|
|
80
80
|
import { unref as _unref, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, createElementBlock as _createElementBlock, createVNode as _createVNode, Fragment as _Fragment, normalizeStyle as _normalizeStyle, mergeProps as _mergeProps, resolveDynamicComponent as _resolveDynamicComponent, withCtx as _withCtx, createElementVNode as _createElementVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
|
|
81
|
-
const _withScopeId = n => (_pushScopeId("data-v-
|
|
81
|
+
const _withScopeId = n => (_pushScopeId("data-v-1714966012895"), n = n(), _popScopeId(), n);
|
|
82
82
|
const _hoisted_1 = { class: "JSearch-item" };
|
|
83
83
|
const _hoisted_2 = {
|
|
84
84
|
key: 0,
|
package/es/Search/Search.js
CHANGED
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
} */
|
|
37
37
|
import { defineComponent as _defineComponent } from 'vue';
|
|
38
38
|
import { renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createVNode as _createVNode, unref as _unref, withCtx as _withCtx, createBlock as _createBlock, renderSlot as _renderSlot, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, normalizeStyle as _normalizeStyle, createElementVNode as _createElementVNode, normalizeClass as _normalizeClass, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
|
|
39
|
-
const _withScopeId = n => (_pushScopeId("data-v-
|
|
39
|
+
const _withScopeId = n => (_pushScopeId("data-v-1714966013274"), n = n(), _popScopeId(), n);
|
|
40
40
|
const _hoisted_1 = { class: "JSearch-content simple" };
|
|
41
41
|
const _hoisted_2 = { class: "JSearch-items" };
|
|
42
42
|
import { Button, Row, Col, Form, FormItemRest, } from 'ant-design-vue';
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/* Analyzed bindings: {
|
|
2
|
+
"time": "props",
|
|
3
|
+
"format": "props",
|
|
4
|
+
"dayjs": "setup-maybe-ref",
|
|
5
|
+
"props": "setup-reactive-const",
|
|
6
|
+
"handleValue": "setup-const",
|
|
7
|
+
"timeFormat": "setup-maybe-ref"
|
|
8
|
+
} */
|
|
9
|
+
import { unref as _unref, toDisplayString as _toDisplayString, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
|
|
10
|
+
import dayjs from "dayjs";
|
|
11
|
+
const __sfc_main__ = Object.assign({
|
|
12
|
+
name: 'TimeFormat'
|
|
13
|
+
}, {
|
|
14
|
+
props: {
|
|
15
|
+
time: {
|
|
16
|
+
type: [String, Number, undefined]
|
|
17
|
+
},
|
|
18
|
+
format: {
|
|
19
|
+
type: String
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
setup(__props) {
|
|
23
|
+
const props = __props;
|
|
24
|
+
const handleValue = (time, format) => {
|
|
25
|
+
const value = Number(time);
|
|
26
|
+
const _format = format || 'YYYY-MM-DD HH:mm:ss';
|
|
27
|
+
if (!isNaN(value)) {
|
|
28
|
+
return dayjs(value).format(_format);
|
|
29
|
+
}
|
|
30
|
+
return time;
|
|
31
|
+
};
|
|
32
|
+
const timeFormat = computed(() => {
|
|
33
|
+
if (props.time) {
|
|
34
|
+
return handleValue(props.time, props.format);
|
|
35
|
+
}
|
|
36
|
+
return props.time;
|
|
37
|
+
});
|
|
38
|
+
return (_ctx, _cache) => {
|
|
39
|
+
return (_openBlock(), _createElementBlock("span", null, _toDisplayString(_unref(timeFormat)), 1 /* TEXT */));
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
export default __sfc_main__;
|
package/es/components.js
CHANGED
|
@@ -14,4 +14,5 @@ export { default as ProLayout, PageContainer } from './ProLayout';
|
|
|
14
14
|
export { default as ProTable } from './ProTable';
|
|
15
15
|
export { default as Scrollbar } from './Scrollbar';
|
|
16
16
|
export { default as Search, AdvancedSearch } from './Search';
|
|
17
|
-
export { default as ValueItem } from './ValueItem';
|
|
17
|
+
export { default as ValueItem } from './ValueItem';
|
|
18
|
+
export { default as TimeFormat } from './TimeFormat';
|
package/lib/FullPage/FullPage.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
} */
|
|
7
7
|
import { defineComponent as _defineComponent } from 'vue';
|
|
8
8
|
import { unref as _unref, renderSlot as _renderSlot, createElementVNode as _createElementVNode, normalizeStyle as _normalizeStyle, openBlock as _openBlock, createElementBlock as _createElementBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
|
|
9
|
-
const _withScopeId = n => (_pushScopeId("data-v-
|
|
9
|
+
const _withScopeId = n => (_pushScopeId("data-v-1714966010953"), n = n(), _popScopeId(), n);
|
|
10
10
|
const _hoisted_1 = { class: "full-page-warp-content" };
|
|
11
11
|
import { ref } from 'vue';
|
|
12
12
|
import { useElementBounding } from '@vueuse/core';
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
} */
|
|
22
22
|
import { defineComponent as _defineComponent } from 'vue';
|
|
23
23
|
import { unref as _unref, createVNode as _createVNode, withCtx as _withCtx, createTextVNode as _createTextVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createBlock as _createBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
|
|
24
|
-
const _withScopeId = n => (_pushScopeId("data-v-
|
|
24
|
+
const _withScopeId = n => (_pushScopeId("data-v-1714966014322"), n = n(), _popScopeId(), n);
|
|
25
25
|
const _hoisted_1 = {
|
|
26
26
|
key: 0,
|
|
27
27
|
style: { "width": "240px" }
|
package/lib/Search/Item.js
CHANGED
|
@@ -78,7 +78,7 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
|
|
|
78
78
|
} */
|
|
79
79
|
import { defineComponent as _defineComponent } from 'vue';
|
|
80
80
|
import { unref as _unref, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, createElementBlock as _createElementBlock, createVNode as _createVNode, Fragment as _Fragment, normalizeStyle as _normalizeStyle, mergeProps as _mergeProps, resolveDynamicComponent as _resolveDynamicComponent, withCtx as _withCtx, createElementVNode as _createElementVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
|
|
81
|
-
const _withScopeId = n => (_pushScopeId("data-v-
|
|
81
|
+
const _withScopeId = n => (_pushScopeId("data-v-1714966013072"), n = n(), _popScopeId(), n);
|
|
82
82
|
const _hoisted_1 = { class: "JSearch-item" };
|
|
83
83
|
const _hoisted_2 = {
|
|
84
84
|
key: 0,
|
package/lib/Search/Search.js
CHANGED
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
} */
|
|
37
37
|
import { defineComponent as _defineComponent } from 'vue';
|
|
38
38
|
import { renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createVNode as _createVNode, unref as _unref, withCtx as _withCtx, createBlock as _createBlock, renderSlot as _renderSlot, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, normalizeStyle as _normalizeStyle, createElementVNode as _createElementVNode, normalizeClass as _normalizeClass, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
|
|
39
|
-
const _withScopeId = n => (_pushScopeId("data-v-
|
|
39
|
+
const _withScopeId = n => (_pushScopeId("data-v-1714966013299"), n = n(), _popScopeId(), n);
|
|
40
40
|
const _hoisted_1 = { class: "JSearch-content simple" };
|
|
41
41
|
const _hoisted_2 = { class: "JSearch-items" };
|
|
42
42
|
import { Button, Row, Col, Form, FormItemRest, } from 'ant-design-vue';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.default = void 0;
|
|
8
|
+
var _timeFormat = _interopRequireDefault(require("./timeFormat.js"));
|
|
9
|
+
_timeFormat.default.install = function (app) {
|
|
10
|
+
app.component(_timeFormat.default.name, _timeFormat.default);
|
|
11
|
+
};
|
|
12
|
+
var _default = exports.default = _timeFormat.default;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/* Analyzed bindings: {
|
|
2
|
+
"time": "props",
|
|
3
|
+
"format": "props",
|
|
4
|
+
"dayjs": "setup-maybe-ref",
|
|
5
|
+
"props": "setup-reactive-const",
|
|
6
|
+
"handleValue": "setup-const",
|
|
7
|
+
"timeFormat": "setup-maybe-ref"
|
|
8
|
+
} */
|
|
9
|
+
import { unref as _unref, toDisplayString as _toDisplayString, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
|
|
10
|
+
import dayjs from "dayjs";
|
|
11
|
+
const __sfc_main__ = Object.assign({
|
|
12
|
+
name: 'TimeFormat'
|
|
13
|
+
}, {
|
|
14
|
+
props: {
|
|
15
|
+
time: {
|
|
16
|
+
type: [String, Number, undefined]
|
|
17
|
+
},
|
|
18
|
+
format: {
|
|
19
|
+
type: String
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
setup(__props) {
|
|
23
|
+
const props = __props;
|
|
24
|
+
const handleValue = (time, format) => {
|
|
25
|
+
const value = Number(time);
|
|
26
|
+
const _format = format || 'YYYY-MM-DD HH:mm:ss';
|
|
27
|
+
if (!isNaN(value)) {
|
|
28
|
+
return dayjs(value).format(_format);
|
|
29
|
+
}
|
|
30
|
+
return time;
|
|
31
|
+
};
|
|
32
|
+
const timeFormat = computed(() => {
|
|
33
|
+
if (props.time) {
|
|
34
|
+
return handleValue(props.time, props.format);
|
|
35
|
+
}
|
|
36
|
+
return props.time;
|
|
37
|
+
});
|
|
38
|
+
return (_ctx, _cache) => {
|
|
39
|
+
return (_openBlock(), _createElementBlock("span", null, _toDisplayString(_unref(timeFormat)), 1 /* TEXT */));
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
export default __sfc_main__;
|
package/lib/components.js
CHANGED
|
@@ -107,6 +107,12 @@ Object.defineProperty(exports, "Search", {
|
|
|
107
107
|
return _Search.default;
|
|
108
108
|
}
|
|
109
109
|
});
|
|
110
|
+
Object.defineProperty(exports, "TimeFormat", {
|
|
111
|
+
enumerable: true,
|
|
112
|
+
get: function get() {
|
|
113
|
+
return _TimeFormat.default;
|
|
114
|
+
}
|
|
115
|
+
});
|
|
110
116
|
Object.defineProperty(exports, "ValueItem", {
|
|
111
117
|
enumerable: true,
|
|
112
118
|
get: function get() {
|
|
@@ -130,5 +136,6 @@ var _ProTable = _interopRequireDefault(require("./ProTable"));
|
|
|
130
136
|
var _Scrollbar = _interopRequireDefault(require("./Scrollbar"));
|
|
131
137
|
var _Search = _interopRequireWildcard(require("./Search"));
|
|
132
138
|
var _ValueItem = _interopRequireDefault(require("./ValueItem"));
|
|
139
|
+
var _TimeFormat = _interopRequireDefault(require("./TimeFormat"));
|
|
133
140
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
134
141
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jetlinks-web/components",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.16",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -22,7 +22,6 @@
|
|
|
22
22
|
"sortablejs": "^1.15.2"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"ant-design-vue": "3.2.20",
|
|
26
25
|
"@babel/cli": "^7.8.4",
|
|
27
26
|
"@babel/core": "^7.10.5",
|
|
28
27
|
"@babel/plugin-proposal-class-properties": "^7.8.3",
|
|
@@ -55,6 +54,7 @@
|
|
|
55
54
|
"@vitejs/plugin-vue-jsx": "^1.3.10",
|
|
56
55
|
"@vue/babel-plugin-jsx": "^1.0.0",
|
|
57
56
|
"@vue/compiler-sfc": "^3.4.21",
|
|
57
|
+
"ant-design-vue": "3.2.20",
|
|
58
58
|
"autoprefixer": "^10.2.0",
|
|
59
59
|
"babel-eslint": "^10.0.1",
|
|
60
60
|
"babel-loader": "^8.0.0",
|
|
@@ -70,6 +70,7 @@
|
|
|
70
70
|
"compute-scroll-into-view": "^3.0.0",
|
|
71
71
|
"css-loader": "^6.7.3",
|
|
72
72
|
"css-minimizer-webpack-plugin": "^3.0.0",
|
|
73
|
+
"dayjs": "^1.11.8",
|
|
73
74
|
"duplicate-package-checker-webpack-plugin": "^3.0.0",
|
|
74
75
|
"esbuild": "~0.12.29",
|
|
75
76
|
"esbuild-loader": "^2.18.0",
|
|
@@ -133,9 +134,9 @@
|
|
|
133
134
|
"webpack-dev-server": "^4.0.0",
|
|
134
135
|
"webpack-merge": "^5.0.0",
|
|
135
136
|
"webpackbar": "^5.0.2",
|
|
136
|
-
"@jetlinks-web/hooks": "^1.0.12",
|
|
137
137
|
"@jetlinks-web/constants": "^1.0.2",
|
|
138
|
-
"@jetlinks-web/utils": "^1.0.6"
|
|
138
|
+
"@jetlinks-web/utils": "^1.0.6",
|
|
139
|
+
"@jetlinks-web/hooks": "^1.0.12"
|
|
139
140
|
},
|
|
140
141
|
"publishConfig": {
|
|
141
142
|
"registry": "https://registry.npmjs.org/",
|