cnhis-design-vue 3.4.0-beta.34 → 3.4.0-beta.39
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/README.md +87 -87
- package/es/components/callback/src/components/render/popupMaps.d.ts +13 -0
- package/es/components/classification/src/index.vue2.js +7 -0
- package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +10 -10
- package/es/components/field-set/src/FieldColor.vue.d.ts +1 -1
- package/es/components/field-set/src/FieldFilter.vue.d.ts +1 -1
- package/es/components/field-set/src/FieldSet.vue.d.ts +1 -1
- package/es/components/field-set/src/components/table-row.vue.d.ts +1 -1
- package/es/components/iho-chat/src/components/ChatFooter.vue2.js +3 -0
- package/es/components/iho-chat/src/components/ChatMain.vue2.js +1 -1
- package/es/components/iho-chat/src/components/PersonProfile.vue2.js +1 -1
- package/es/components/iho-table/index.d.ts +13 -0
- package/es/components/iho-table/src/IhoTable.vue.d.ts +13 -0
- package/es/components/iho-table/src/IhoTable.vue2.js +7 -2
- package/es/components/info-header/index.d.ts +40 -2
- package/es/components/info-header/src/InfoHeader.vue.d.ts +40 -2
- package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +40 -2
- package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue2.js +2 -1
- package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +40 -2
- package/es/components/info-header/src/components/infoDescription/HiddenContent.vue.d.ts +20 -1
- package/es/components/info-header/src/components/infoDescription/InfoEllipsis.vue.d.ts +20 -1
- package/es/components/info-header/src/components/infoDescription/InfoEllipsis.vue2.js +9 -6
- package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +40 -2
- package/es/components/info-header/src/components/infoDescription/index.vue2.js +1 -1
- package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.js +9 -9
- package/es/env.d.ts +25 -25
- package/es/shared/components/Ellipsis/Ellipsis.d.ts +12 -0
- package/es/shared/components/Ellipsis/Ellipsis.js +86 -0
- package/es/shared/components/Ellipsis/index.d.ts +2 -0
- package/es/shared/components/Ellipsis/index.js +2 -0
- package/es/shared/package.json.js +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
@@ -1,87 +1,87 @@
|
|
1
|
-
# 安装
|
2
|
-
|
3
|
-
```shell
|
4
|
-
npm i cnhis-design-vue@[版本号]
|
5
|
-
# or
|
6
|
-
yarn add cnhis-design-vue@[版本号] #推荐
|
7
|
-
```
|
8
|
-
|
9
|
-
## 1.全局引入
|
10
|
-
|
11
|
-
```typescript
|
12
|
-
// main.ts
|
13
|
-
import { createApp } from 'vue';
|
14
|
-
import App from './App.vue';
|
15
|
-
import 'cnhis-design-vue/es/packages/index.css';
|
16
|
-
import cui from 'cnhis-design-vue';
|
17
|
-
|
18
|
-
const app = createApp(App);
|
19
|
-
app.use(cui).mount('#app');
|
20
|
-
```
|
21
|
-
|
22
|
-
## 2. 按需引入
|
23
|
-
|
24
|
-
组件现在支持了自动按需引入, 但是样式文件需要额外的处理
|
25
|
-
|
26
|
-
### 2.1 样式处理方式1 (按需引入样式)
|
27
|
-
|
28
|
-
```shell
|
29
|
-
# 安装自动导入样式的插件
|
30
|
-
npm i -d vite-plugin-style-import
|
31
|
-
```
|
32
|
-
|
33
|
-
```typescript
|
34
|
-
// vite.config.ts
|
35
|
-
import { defineConfig } from 'vite';
|
36
|
-
import { createStyleImportPlugin } from 'vite-plugin-style-import';
|
37
|
-
|
38
|
-
export default defineConfig({
|
39
|
-
plugins: [
|
40
|
-
// ...otherPlugins
|
41
|
-
createStyleImportPlugin({
|
42
|
-
libs: [
|
43
|
-
{
|
44
|
-
libraryName: 'cnhis-design-vue',
|
45
|
-
esModule: true,
|
46
|
-
ensureStyleFile: true,
|
47
|
-
resolveStyle: name => {
|
48
|
-
return `cnhis-design-vue/es/components/${ name.slice(2) }/style/index.css`;
|
49
|
-
}
|
50
|
-
}
|
51
|
-
]
|
52
|
-
})
|
53
|
-
]
|
54
|
-
});
|
55
|
-
```
|
56
|
-
|
57
|
-
### 2.2 样式处理方式2 (全局引入样式)
|
58
|
-
|
59
|
-
```typescript
|
60
|
-
// main.ts
|
61
|
-
import 'cnhis-design-vue/es/components/index.css';
|
62
|
-
```
|
63
|
-
|
64
|
-
## 3.FAQ
|
65
|
-
|
66
|
-
### 3.1 项目打包后样式丢失
|
67
|
-
|
68
|
-
处理方法, 将 cnhis-design-vue 从 vendor 包中移除 (没有出现此问题则不需要)
|
69
|
-
|
70
|
-
```typescript
|
71
|
-
// vite.config.ts
|
72
|
-
import { defineConfig } from 'vite';
|
73
|
-
|
74
|
-
export default defineConfig({
|
75
|
-
build: {
|
76
|
-
rollupOptions: {
|
77
|
-
// ..otherOptions
|
78
|
-
output: {
|
79
|
-
dir: './dist',
|
80
|
-
manualChunks: {
|
81
|
-
'cnhis-vendor': ['cnhis-design-vue']
|
82
|
-
}
|
83
|
-
}
|
84
|
-
}
|
85
|
-
}
|
86
|
-
});
|
87
|
-
```
|
1
|
+
# 安装
|
2
|
+
|
3
|
+
```shell
|
4
|
+
npm i cnhis-design-vue@[版本号]
|
5
|
+
# or
|
6
|
+
yarn add cnhis-design-vue@[版本号] #推荐
|
7
|
+
```
|
8
|
+
|
9
|
+
## 1.全局引入
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
// main.ts
|
13
|
+
import { createApp } from 'vue';
|
14
|
+
import App from './App.vue';
|
15
|
+
import 'cnhis-design-vue/es/packages/index.css';
|
16
|
+
import cui from 'cnhis-design-vue';
|
17
|
+
|
18
|
+
const app = createApp(App);
|
19
|
+
app.use(cui).mount('#app');
|
20
|
+
```
|
21
|
+
|
22
|
+
## 2. 按需引入
|
23
|
+
|
24
|
+
组件现在支持了自动按需引入, 但是样式文件需要额外的处理
|
25
|
+
|
26
|
+
### 2.1 样式处理方式1 (按需引入样式)
|
27
|
+
|
28
|
+
```shell
|
29
|
+
# 安装自动导入样式的插件
|
30
|
+
npm i -d vite-plugin-style-import
|
31
|
+
```
|
32
|
+
|
33
|
+
```typescript
|
34
|
+
// vite.config.ts
|
35
|
+
import { defineConfig } from 'vite';
|
36
|
+
import { createStyleImportPlugin } from 'vite-plugin-style-import';
|
37
|
+
|
38
|
+
export default defineConfig({
|
39
|
+
plugins: [
|
40
|
+
// ...otherPlugins
|
41
|
+
createStyleImportPlugin({
|
42
|
+
libs: [
|
43
|
+
{
|
44
|
+
libraryName: 'cnhis-design-vue',
|
45
|
+
esModule: true,
|
46
|
+
ensureStyleFile: true,
|
47
|
+
resolveStyle: name => {
|
48
|
+
return `cnhis-design-vue/es/components/${ name.slice(2) }/style/index.css`;
|
49
|
+
}
|
50
|
+
}
|
51
|
+
]
|
52
|
+
})
|
53
|
+
]
|
54
|
+
});
|
55
|
+
```
|
56
|
+
|
57
|
+
### 2.2 样式处理方式2 (全局引入样式)
|
58
|
+
|
59
|
+
```typescript
|
60
|
+
// main.ts
|
61
|
+
import 'cnhis-design-vue/es/components/index.css';
|
62
|
+
```
|
63
|
+
|
64
|
+
## 3.FAQ
|
65
|
+
|
66
|
+
### 3.1 项目打包后样式丢失
|
67
|
+
|
68
|
+
处理方法, 将 cnhis-design-vue 从 vendor 包中移除 (没有出现此问题则不需要)
|
69
|
+
|
70
|
+
```typescript
|
71
|
+
// vite.config.ts
|
72
|
+
import { defineConfig } from 'vite';
|
73
|
+
|
74
|
+
export default defineConfig({
|
75
|
+
build: {
|
76
|
+
rollupOptions: {
|
77
|
+
// ..otherOptions
|
78
|
+
output: {
|
79
|
+
dir: './dist',
|
80
|
+
manualChunks: {
|
81
|
+
'cnhis-vendor': ['cnhis-design-vue']
|
82
|
+
}
|
83
|
+
}
|
84
|
+
}
|
85
|
+
}
|
86
|
+
});
|
87
|
+
```
|
@@ -1081,6 +1081,10 @@ export declare const CallbackMaps: Map<string, {
|
|
1081
1081
|
type: BooleanConstructor;
|
1082
1082
|
default: boolean;
|
1083
1083
|
};
|
1084
|
+
experimental: {
|
1085
|
+
type: BooleanConstructor;
|
1086
|
+
default: boolean;
|
1087
|
+
};
|
1084
1088
|
nConfigProviderProps: {
|
1085
1089
|
type: import("vue").PropType<import("../../../../../shared/types").AnyObject>;
|
1086
1090
|
};
|
@@ -1116,6 +1120,10 @@ export declare const CallbackMaps: Map<string, {
|
|
1116
1120
|
type: BooleanConstructor;
|
1117
1121
|
default: boolean;
|
1118
1122
|
};
|
1123
|
+
experimental: {
|
1124
|
+
type: BooleanConstructor;
|
1125
|
+
default: boolean;
|
1126
|
+
};
|
1119
1127
|
nConfigProviderProps: {
|
1120
1128
|
type: import("vue").PropType<import("../../../../../shared/types").AnyObject>;
|
1121
1129
|
};
|
@@ -9396,6 +9404,10 @@ export declare const CallbackMaps: Map<string, {
|
|
9396
9404
|
type: BooleanConstructor;
|
9397
9405
|
default: boolean;
|
9398
9406
|
};
|
9407
|
+
experimental: {
|
9408
|
+
type: BooleanConstructor;
|
9409
|
+
default: boolean;
|
9410
|
+
};
|
9399
9411
|
nConfigProviderProps: {
|
9400
9412
|
type: import("vue").PropType<import("../../../../../shared/types").AnyObject>;
|
9401
9413
|
};
|
@@ -9451,6 +9463,7 @@ export declare const CallbackMaps: Map<string, {
|
|
9451
9463
|
tableConfig: import("../../../../../components/iho-table").IhoTableConfig;
|
9452
9464
|
tableData: import("../../../../../shared/types").AnyObject[];
|
9453
9465
|
developMode: boolean;
|
9466
|
+
experimental: boolean;
|
9454
9467
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
|
9455
9468
|
props: {
|
9456
9469
|
consumer?: undefined;
|
@@ -546,6 +546,13 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
546
546
|
immediate: true,
|
547
547
|
deep: true
|
548
548
|
});
|
549
|
+
watch(() => props.conditionSid, (val) => {
|
550
|
+
if ((val == null ? void 0 : val.length) > 0) {
|
551
|
+
initTree(val);
|
552
|
+
}
|
553
|
+
}, {
|
554
|
+
deep: true
|
555
|
+
});
|
549
556
|
return (_ctx, _cache) => {
|
550
557
|
var _a, _b;
|
551
558
|
return openBlock(), createElementBlock("div", {
|
@@ -249,6 +249,16 @@ function useCenter(canvas, propItems, emits, computedX, computedY, getXValue, ge
|
|
249
249
|
const [points1, points2] = pulsePoints;
|
250
250
|
let _arr1 = [];
|
251
251
|
let _arr2 = [];
|
252
|
+
const setData = () => {
|
253
|
+
const dataItem = [..._arr1, ..._arr2.reverse()];
|
254
|
+
const [firstPoint] = dataItem;
|
255
|
+
const lastPoint = last(dataItem);
|
256
|
+
if (firstPoint[0] === lastPoint[0] && firstPoint[1] === lastPoint[1])
|
257
|
+
dataItem.splice(-1, 1);
|
258
|
+
data.push(dataItem);
|
259
|
+
_arr1 = [];
|
260
|
+
_arr2 = [];
|
261
|
+
};
|
252
262
|
sames.forEach(({
|
253
263
|
time,
|
254
264
|
left: left2
|
@@ -271,16 +281,6 @@ function useCenter(canvas, propItems, emits, computedX, computedY, getXValue, ge
|
|
271
281
|
} else if (prevPoint2) {
|
272
282
|
_arr2.push(getXY(prevPoint2));
|
273
283
|
}
|
274
|
-
const setData = () => {
|
275
|
-
const dataItem = [..._arr1, ..._arr2.reverse()];
|
276
|
-
const [firstPoint] = dataItem;
|
277
|
-
const lastPoint = last(dataItem);
|
278
|
-
if (firstPoint[0] === lastPoint[0] && firstPoint[1] === lastPoint[1])
|
279
|
-
dataItem.splice(-1, 1);
|
280
|
-
data.push(dataItem);
|
281
|
-
_arr1 = [];
|
282
|
-
_arr2 = [];
|
283
|
-
};
|
284
284
|
const minYPoint = Math.min(currentPoint1.top, currentPoint2.top);
|
285
285
|
const maxYPoint = Math.max(currentPoint1.top, currentPoint2.top);
|
286
286
|
_arr1.push(getXY([currentPoint1, currentPoint2].find((point) => point.top === minYPoint)));
|
@@ -553,9 +553,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
553
553
|
hide: boolean;
|
554
554
|
}>;
|
555
555
|
draggable: boolean;
|
556
|
+
isHighlightRow: boolean;
|
556
557
|
idx: number;
|
557
558
|
isHighlight: boolean;
|
558
|
-
isHighlightRow: boolean;
|
559
559
|
isFieldSet: boolean;
|
560
560
|
fieldDescribeMode: "column" | "tooltip";
|
561
561
|
hideExpressionOption: AnyObject[];
|
@@ -594,9 +594,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
594
594
|
hide: boolean;
|
595
595
|
}>;
|
596
596
|
draggable: boolean;
|
597
|
+
isHighlightRow: boolean;
|
597
598
|
idx: number;
|
598
599
|
isHighlight: boolean;
|
599
|
-
isHighlightRow: boolean;
|
600
600
|
isFieldSet: boolean;
|
601
601
|
fieldDescribeMode: "column" | "tooltip";
|
602
602
|
hideExpressionOption: AnyObject[];
|
@@ -773,9 +773,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
773
773
|
hide: boolean;
|
774
774
|
}>;
|
775
775
|
draggable: boolean;
|
776
|
+
isHighlightRow: boolean;
|
776
777
|
idx: number;
|
777
778
|
isHighlight: boolean;
|
778
|
-
isHighlightRow: boolean;
|
779
779
|
isFieldSet: boolean;
|
780
780
|
fieldDescribeMode: "column" | "tooltip";
|
781
781
|
hideExpressionOption: AnyObject[];
|
@@ -384,9 +384,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
384
384
|
hide: boolean;
|
385
385
|
}>;
|
386
386
|
draggable: boolean;
|
387
|
+
isHighlightRow: boolean;
|
387
388
|
idx: number;
|
388
389
|
isHighlight: boolean;
|
389
|
-
isHighlightRow: boolean;
|
390
390
|
isFieldSet: boolean;
|
391
391
|
fieldDescribeMode: "column" | "tooltip";
|
392
392
|
hideExpressionOption: AnyObject[];
|
@@ -138,6 +138,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
138
138
|
const fragment = document.createRange().createContextualFragment(html);
|
139
139
|
inputRef.value.appendChild(fragment);
|
140
140
|
}
|
141
|
+
handleInput();
|
141
142
|
}
|
142
143
|
function selectEmoji(name) {
|
143
144
|
var _a;
|
@@ -315,6 +316,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
315
316
|
});
|
316
317
|
}
|
317
318
|
function clearInput() {
|
319
|
+
if (inputRef.value)
|
320
|
+
inputRef.value.innerHTML = "";
|
318
321
|
content.value = "";
|
319
322
|
}
|
320
323
|
function handleRelay({
|
@@ -601,7 +601,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
601
601
|
}, {
|
602
602
|
default: withCtx(() => [!unref(isAudioOrVideoMessage)(item.content) ? (openBlock(), createElementBlock(Fragment, {
|
603
603
|
key: 0
|
604
|
-
}, [createCommentVNode(' <n-button\
|
604
|
+
}, [createCommentVNode(' <n-button\n quaternary\n size="tiny"\n @click="(event: MouseEvent) => handleSelectLabel(event, item.id)"\n >\n <template #icon>\n <n-icon size="17" :component="HappyOutline" />\n </template>\n </n-button> '), createVNode(unref(NButton), {
|
605
605
|
quaternary: "",
|
606
606
|
size: "tiny",
|
607
607
|
onClick: () => setReferenceMsg(item)
|
@@ -170,7 +170,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
170
170
|
round: "",
|
171
171
|
size: 100,
|
172
172
|
onClickCapture: _cache[0] || (_cache[0] = ($event) => showLargeAvatar.value = true)
|
173
|
-
}, null, 8, ["src"]), createCommentVNode(' <n-upload abstract accept="image/*" @change="onChange">\
|
173
|
+
}, null, 8, ["src"]), createCommentVNode(' <n-upload abstract accept="image/*" @change="onChange">\n <n-upload-trigger #="{ handleClick }" abstract>\n <n-button\n circle\n secondary\n class="edit-avatar"\n v-show="userDetail.id === state.userInfo.id"\n @click="handleClick"\n >\n <template #icon>\n <n-icon size="16" color="#666666" :component="Camera" />\n </template>\n </n-button>\n </n-upload-trigger>\n </n-upload> '), createElementVNode("div", _hoisted_4, [createElementVNode("h4", null, [createElementVNode("label", _hoisted_5, toDisplayString(userDetail.name), 1), withDirectives(createElementVNode("label", {
|
174
174
|
class: normalizeClass(["iho-chatRole", unref(isDoctorRole)(userDetail.roleInfo) ? "isDoctor" : ""])
|
175
175
|
}, toDisplayString(unref(getRoleName)(userDetail.roleInfo)), 3), [[vShow, unref(getRoleName)(userDetail.roleInfo)]])]), createElementVNode("p", null, toDisplayString(userDetail.orgName), 1)]), createVNode(unref(NButton), {
|
176
176
|
strong: "",
|
@@ -37,6 +37,10 @@ declare const IhoTable: SFCWithInstall<import("vue").DefineComponent<import("vue
|
|
37
37
|
type: BooleanConstructor;
|
38
38
|
default: boolean;
|
39
39
|
};
|
40
|
+
experimental: {
|
41
|
+
type: BooleanConstructor;
|
42
|
+
default: boolean;
|
43
|
+
};
|
40
44
|
nConfigProviderProps: {
|
41
45
|
type: import("vue").PropType<import("../../shared/types").AnyObject>;
|
42
46
|
};
|
@@ -72,6 +76,10 @@ declare const IhoTable: SFCWithInstall<import("vue").DefineComponent<import("vue
|
|
72
76
|
type: BooleanConstructor;
|
73
77
|
default: boolean;
|
74
78
|
};
|
79
|
+
experimental: {
|
80
|
+
type: BooleanConstructor;
|
81
|
+
default: boolean;
|
82
|
+
};
|
75
83
|
nConfigProviderProps: {
|
76
84
|
type: import("vue").PropType<import("../../shared/types").AnyObject>;
|
77
85
|
};
|
@@ -8352,6 +8360,10 @@ declare const IhoTable: SFCWithInstall<import("vue").DefineComponent<import("vue
|
|
8352
8360
|
type: BooleanConstructor;
|
8353
8361
|
default: boolean;
|
8354
8362
|
};
|
8363
|
+
experimental: {
|
8364
|
+
type: BooleanConstructor;
|
8365
|
+
default: boolean;
|
8366
|
+
};
|
8355
8367
|
nConfigProviderProps: {
|
8356
8368
|
type: import("vue").PropType<import("../../shared/types").AnyObject>;
|
8357
8369
|
};
|
@@ -8407,5 +8419,6 @@ declare const IhoTable: SFCWithInstall<import("vue").DefineComponent<import("vue
|
|
8407
8419
|
tableConfig: import("../../components/iho-table/src/types").IhoTableConfig;
|
8408
8420
|
tableData: import("../../shared/types").AnyObject[];
|
8409
8421
|
developMode: boolean;
|
8422
|
+
experimental: boolean;
|
8410
8423
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
|
8411
8424
|
export default IhoTable;
|
@@ -35,6 +35,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
35
35
|
type: BooleanConstructor;
|
36
36
|
default: boolean;
|
37
37
|
};
|
38
|
+
experimental: {
|
39
|
+
type: BooleanConstructor;
|
40
|
+
default: boolean;
|
41
|
+
};
|
38
42
|
nConfigProviderProps: {
|
39
43
|
type: PropType<AnyObject>;
|
40
44
|
};
|
@@ -70,6 +74,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
70
74
|
type: BooleanConstructor;
|
71
75
|
default: boolean;
|
72
76
|
};
|
77
|
+
experimental: {
|
78
|
+
type: BooleanConstructor;
|
79
|
+
default: boolean;
|
80
|
+
};
|
73
81
|
nConfigProviderProps: {
|
74
82
|
type: PropType<AnyObject>;
|
75
83
|
};
|
@@ -8350,6 +8358,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
8350
8358
|
type: BooleanConstructor;
|
8351
8359
|
default: boolean;
|
8352
8360
|
};
|
8361
|
+
experimental: {
|
8362
|
+
type: BooleanConstructor;
|
8363
|
+
default: boolean;
|
8364
|
+
};
|
8353
8365
|
nConfigProviderProps: {
|
8354
8366
|
type: PropType<AnyObject>;
|
8355
8367
|
};
|
@@ -8405,5 +8417,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
8405
8417
|
tableConfig: IhoTableConfig;
|
8406
8418
|
tableData: AnyObject[];
|
8407
8419
|
developMode: boolean;
|
8420
|
+
experimental: boolean;
|
8408
8421
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
8409
8422
|
export default _default;
|
@@ -28,6 +28,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
28
28
|
uniqueCacheData: { type: Boolean, default: false },
|
29
29
|
parallelism: { type: Number, default: 3 },
|
30
30
|
developMode: { type: Boolean, default: false },
|
31
|
+
experimental: { type: Boolean, default: false },
|
31
32
|
nConfigProviderProps: { type: Object }
|
32
33
|
},
|
33
34
|
emits: [
|
@@ -237,8 +238,12 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
237
238
|
var _a2;
|
238
239
|
return (_a2 = props.tableData) == null ? void 0 : _a2.length;
|
239
240
|
}], () => {
|
240
|
-
|
241
|
-
|
241
|
+
if (props.experimental) {
|
242
|
+
updateTableDataRef();
|
243
|
+
} else {
|
244
|
+
dataChanged = true;
|
245
|
+
updateState();
|
246
|
+
}
|
242
247
|
});
|
243
248
|
updateConfigRef();
|
244
249
|
updateFieldListRef();
|
@@ -847,9 +847,23 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<import("v
|
|
847
847
|
type: import("vue").PropType<import("vue").CSSProperties>;
|
848
848
|
default: () => {};
|
849
849
|
};
|
850
|
+
keepShow: {
|
851
|
+
type: BooleanConstructor;
|
852
|
+
default: boolean;
|
853
|
+
};
|
850
854
|
}>, {
|
851
|
-
readonly NEllipsis: any;
|
852
855
|
readonly NTooltip: any;
|
856
|
+
readonly CEllipsis: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
857
|
+
style: ObjectConstructor;
|
858
|
+
tooltip: ObjectConstructor;
|
859
|
+
keepShow: BooleanConstructor;
|
860
|
+
}>, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
861
|
+
style: ObjectConstructor;
|
862
|
+
tooltip: ObjectConstructor;
|
863
|
+
keepShow: BooleanConstructor;
|
864
|
+
}>> & Readonly<{}>, {
|
865
|
+
keepShow: boolean;
|
866
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
853
867
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
854
868
|
content: {
|
855
869
|
type: (NumberConstructor | StringConstructor)[];
|
@@ -862,9 +876,14 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<import("v
|
|
862
876
|
type: import("vue").PropType<import("vue").CSSProperties>;
|
863
877
|
default: () => {};
|
864
878
|
};
|
879
|
+
keepShow: {
|
880
|
+
type: BooleanConstructor;
|
881
|
+
default: boolean;
|
882
|
+
};
|
865
883
|
}>> & Readonly<{}>, {
|
866
884
|
content: string | number;
|
867
885
|
contentStyle: import("vue").CSSProperties;
|
886
|
+
keepShow: boolean;
|
868
887
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
869
888
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
870
889
|
content: {
|
@@ -900,9 +919,23 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<import("v
|
|
900
919
|
type: import("vue").PropType<import("vue").CSSProperties>;
|
901
920
|
default: () => {};
|
902
921
|
};
|
922
|
+
keepShow: {
|
923
|
+
type: BooleanConstructor;
|
924
|
+
default: boolean;
|
925
|
+
};
|
903
926
|
}>, {
|
904
|
-
readonly NEllipsis: any;
|
905
927
|
readonly NTooltip: any;
|
928
|
+
readonly CEllipsis: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
929
|
+
style: ObjectConstructor;
|
930
|
+
tooltip: ObjectConstructor;
|
931
|
+
keepShow: BooleanConstructor;
|
932
|
+
}>, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
933
|
+
style: ObjectConstructor;
|
934
|
+
tooltip: ObjectConstructor;
|
935
|
+
keepShow: BooleanConstructor;
|
936
|
+
}>> & Readonly<{}>, {
|
937
|
+
keepShow: boolean;
|
938
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
906
939
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
907
940
|
content: {
|
908
941
|
type: (NumberConstructor | StringConstructor)[];
|
@@ -915,9 +948,14 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<import("v
|
|
915
948
|
type: import("vue").PropType<import("vue").CSSProperties>;
|
916
949
|
default: () => {};
|
917
950
|
};
|
951
|
+
keepShow: {
|
952
|
+
type: BooleanConstructor;
|
953
|
+
default: boolean;
|
954
|
+
};
|
918
955
|
}>> & Readonly<{}>, {
|
919
956
|
content: string | number;
|
920
957
|
contentStyle: import("vue").CSSProperties;
|
958
|
+
keepShow: boolean;
|
921
959
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
922
960
|
readonly SlotRender: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
923
961
|
renderer: {
|
@@ -841,9 +841,23 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
841
841
|
type: PropType<import("vue").CSSProperties>;
|
842
842
|
default: () => {};
|
843
843
|
};
|
844
|
+
keepShow: {
|
845
|
+
type: BooleanConstructor;
|
846
|
+
default: boolean;
|
847
|
+
};
|
844
848
|
}>, {
|
845
|
-
readonly NEllipsis: any;
|
846
849
|
readonly NTooltip: any;
|
850
|
+
readonly CEllipsis: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
851
|
+
style: ObjectConstructor;
|
852
|
+
tooltip: ObjectConstructor;
|
853
|
+
keepShow: BooleanConstructor;
|
854
|
+
}>, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
855
|
+
style: ObjectConstructor;
|
856
|
+
tooltip: ObjectConstructor;
|
857
|
+
keepShow: BooleanConstructor;
|
858
|
+
}>> & Readonly<{}>, {
|
859
|
+
keepShow: boolean;
|
860
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
847
861
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
848
862
|
content: {
|
849
863
|
type: (NumberConstructor | StringConstructor)[];
|
@@ -856,9 +870,14 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
856
870
|
type: PropType<import("vue").CSSProperties>;
|
857
871
|
default: () => {};
|
858
872
|
};
|
873
|
+
keepShow: {
|
874
|
+
type: BooleanConstructor;
|
875
|
+
default: boolean;
|
876
|
+
};
|
859
877
|
}>> & Readonly<{}>, {
|
860
878
|
content: string | number;
|
861
879
|
contentStyle: import("vue").CSSProperties;
|
880
|
+
keepShow: boolean;
|
862
881
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
863
882
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
864
883
|
content: {
|
@@ -894,9 +913,23 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
894
913
|
type: PropType<import("vue").CSSProperties>;
|
895
914
|
default: () => {};
|
896
915
|
};
|
916
|
+
keepShow: {
|
917
|
+
type: BooleanConstructor;
|
918
|
+
default: boolean;
|
919
|
+
};
|
897
920
|
}>, {
|
898
|
-
readonly NEllipsis: any;
|
899
921
|
readonly NTooltip: any;
|
922
|
+
readonly CEllipsis: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
923
|
+
style: ObjectConstructor;
|
924
|
+
tooltip: ObjectConstructor;
|
925
|
+
keepShow: BooleanConstructor;
|
926
|
+
}>, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
927
|
+
style: ObjectConstructor;
|
928
|
+
tooltip: ObjectConstructor;
|
929
|
+
keepShow: BooleanConstructor;
|
930
|
+
}>> & Readonly<{}>, {
|
931
|
+
keepShow: boolean;
|
932
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
900
933
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
901
934
|
content: {
|
902
935
|
type: (NumberConstructor | StringConstructor)[];
|
@@ -909,9 +942,14 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
909
942
|
type: PropType<import("vue").CSSProperties>;
|
910
943
|
default: () => {};
|
911
944
|
};
|
945
|
+
keepShow: {
|
946
|
+
type: BooleanConstructor;
|
947
|
+
default: boolean;
|
948
|
+
};
|
912
949
|
}>> & Readonly<{}>, {
|
913
950
|
content: string | number;
|
914
951
|
contentStyle: import("vue").CSSProperties;
|
952
|
+
keepShow: boolean;
|
915
953
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
916
954
|
readonly SlotRender: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
917
955
|
renderer: {
|
@@ -320,9 +320,23 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
320
320
|
type: import("vue").PropType<import("vue").CSSProperties>;
|
321
321
|
default: () => {};
|
322
322
|
};
|
323
|
+
keepShow: {
|
324
|
+
type: BooleanConstructor;
|
325
|
+
default: boolean;
|
326
|
+
};
|
323
327
|
}>, {
|
324
|
-
readonly NEllipsis: any;
|
325
328
|
readonly NTooltip: any;
|
329
|
+
readonly CEllipsis: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
330
|
+
style: ObjectConstructor;
|
331
|
+
tooltip: ObjectConstructor;
|
332
|
+
keepShow: BooleanConstructor;
|
333
|
+
}>, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
334
|
+
style: ObjectConstructor;
|
335
|
+
tooltip: ObjectConstructor;
|
336
|
+
keepShow: BooleanConstructor;
|
337
|
+
}>> & Readonly<{}>, {
|
338
|
+
keepShow: boolean;
|
339
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
326
340
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
327
341
|
content: {
|
328
342
|
type: (NumberConstructor | StringConstructor)[];
|
@@ -335,9 +349,14 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
335
349
|
type: import("vue").PropType<import("vue").CSSProperties>;
|
336
350
|
default: () => {};
|
337
351
|
};
|
352
|
+
keepShow: {
|
353
|
+
type: BooleanConstructor;
|
354
|
+
default: boolean;
|
355
|
+
};
|
338
356
|
}>> & Readonly<{}>, {
|
339
357
|
content: string | number;
|
340
358
|
contentStyle: import("vue").CSSProperties;
|
359
|
+
keepShow: boolean;
|
341
360
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
342
361
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
343
362
|
content: {
|
@@ -373,9 +392,23 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
373
392
|
type: import("vue").PropType<import("vue").CSSProperties>;
|
374
393
|
default: () => {};
|
375
394
|
};
|
395
|
+
keepShow: {
|
396
|
+
type: BooleanConstructor;
|
397
|
+
default: boolean;
|
398
|
+
};
|
376
399
|
}>, {
|
377
|
-
readonly NEllipsis: any;
|
378
400
|
readonly NTooltip: any;
|
401
|
+
readonly CEllipsis: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
402
|
+
style: ObjectConstructor;
|
403
|
+
tooltip: ObjectConstructor;
|
404
|
+
keepShow: BooleanConstructor;
|
405
|
+
}>, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
406
|
+
style: ObjectConstructor;
|
407
|
+
tooltip: ObjectConstructor;
|
408
|
+
keepShow: BooleanConstructor;
|
409
|
+
}>> & Readonly<{}>, {
|
410
|
+
keepShow: boolean;
|
411
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
379
412
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
380
413
|
content: {
|
381
414
|
type: (NumberConstructor | StringConstructor)[];
|
@@ -388,9 +421,14 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
388
421
|
type: import("vue").PropType<import("vue").CSSProperties>;
|
389
422
|
default: () => {};
|
390
423
|
};
|
424
|
+
keepShow: {
|
425
|
+
type: BooleanConstructor;
|
426
|
+
default: boolean;
|
427
|
+
};
|
391
428
|
}>> & Readonly<{}>, {
|
392
429
|
content: string | number;
|
393
430
|
contentStyle: import("vue").CSSProperties;
|
431
|
+
keepShow: boolean;
|
394
432
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
395
433
|
readonly SlotRender: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
396
434
|
renderer: {
|
@@ -174,10 +174,11 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
174
174
|
encrypted: _ctx.encrypted
|
175
175
|
}, null, 8, ["content", "tip", "content-style", "width", "encrypted"])) : (openBlock(), createBlock(InfoEllipsis, {
|
176
176
|
key: 1,
|
177
|
+
"keep-show": _ctx.infoItem.keepShow,
|
177
178
|
"content-style": ellipsisStyle.value,
|
178
179
|
content: _ctx.infoItem[_ctx.valueField],
|
179
180
|
tip: _ctx.infoItem.tip
|
180
|
-
}, null, 8, ["content-style", "content", "tip"]))
|
181
|
+
}, null, 8, ["keep-show", "content-style", "content", "tip"]))
|
181
182
|
], 512), [
|
182
183
|
[vShow, !_ctx.infoItem.edit || !_ctx.infoItem.formField]
|
183
184
|
]),
|
@@ -384,9 +384,23 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
384
384
|
type: import("vue").PropType<import("vue").CSSProperties>;
|
385
385
|
default: () => {};
|
386
386
|
};
|
387
|
+
keepShow: {
|
388
|
+
type: BooleanConstructor;
|
389
|
+
default: boolean;
|
390
|
+
};
|
387
391
|
}>, {
|
388
|
-
readonly NEllipsis: any;
|
389
392
|
readonly NTooltip: any;
|
393
|
+
readonly CEllipsis: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
394
|
+
style: ObjectConstructor;
|
395
|
+
tooltip: ObjectConstructor;
|
396
|
+
keepShow: BooleanConstructor;
|
397
|
+
}>, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
398
|
+
style: ObjectConstructor;
|
399
|
+
tooltip: ObjectConstructor;
|
400
|
+
keepShow: BooleanConstructor;
|
401
|
+
}>> & Readonly<{}>, {
|
402
|
+
keepShow: boolean;
|
403
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
390
404
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
391
405
|
content: {
|
392
406
|
type: (NumberConstructor | StringConstructor)[];
|
@@ -399,9 +413,14 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
399
413
|
type: import("vue").PropType<import("vue").CSSProperties>;
|
400
414
|
default: () => {};
|
401
415
|
};
|
416
|
+
keepShow: {
|
417
|
+
type: BooleanConstructor;
|
418
|
+
default: boolean;
|
419
|
+
};
|
402
420
|
}>> & Readonly<{}>, {
|
403
421
|
content: string | number;
|
404
422
|
contentStyle: import("vue").CSSProperties;
|
423
|
+
keepShow: boolean;
|
405
424
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
406
425
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
407
426
|
content: {
|
@@ -437,9 +456,23 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
437
456
|
type: import("vue").PropType<import("vue").CSSProperties>;
|
438
457
|
default: () => {};
|
439
458
|
};
|
459
|
+
keepShow: {
|
460
|
+
type: BooleanConstructor;
|
461
|
+
default: boolean;
|
462
|
+
};
|
440
463
|
}>, {
|
441
|
-
readonly NEllipsis: any;
|
442
464
|
readonly NTooltip: any;
|
465
|
+
readonly CEllipsis: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
466
|
+
style: ObjectConstructor;
|
467
|
+
tooltip: ObjectConstructor;
|
468
|
+
keepShow: BooleanConstructor;
|
469
|
+
}>, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
470
|
+
style: ObjectConstructor;
|
471
|
+
tooltip: ObjectConstructor;
|
472
|
+
keepShow: BooleanConstructor;
|
473
|
+
}>> & Readonly<{}>, {
|
474
|
+
keepShow: boolean;
|
475
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
443
476
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
444
477
|
content: {
|
445
478
|
type: (NumberConstructor | StringConstructor)[];
|
@@ -452,9 +485,14 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
452
485
|
type: import("vue").PropType<import("vue").CSSProperties>;
|
453
486
|
default: () => {};
|
454
487
|
};
|
488
|
+
keepShow: {
|
489
|
+
type: BooleanConstructor;
|
490
|
+
default: boolean;
|
491
|
+
};
|
455
492
|
}>> & Readonly<{}>, {
|
456
493
|
content: string | number;
|
457
494
|
contentStyle: import("vue").CSSProperties;
|
495
|
+
keepShow: boolean;
|
458
496
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
459
497
|
readonly SlotRender: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
460
498
|
renderer: {
|
@@ -55,9 +55,23 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
55
55
|
type: PropType<CSSProperties>;
|
56
56
|
default: () => {};
|
57
57
|
};
|
58
|
+
keepShow: {
|
59
|
+
type: BooleanConstructor;
|
60
|
+
default: boolean;
|
61
|
+
};
|
58
62
|
}>, {
|
59
|
-
readonly NEllipsis: any;
|
60
63
|
readonly NTooltip: any;
|
64
|
+
readonly CEllipsis: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
65
|
+
style: ObjectConstructor;
|
66
|
+
tooltip: ObjectConstructor;
|
67
|
+
keepShow: BooleanConstructor;
|
68
|
+
}>, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
69
|
+
style: ObjectConstructor;
|
70
|
+
tooltip: ObjectConstructor;
|
71
|
+
keepShow: BooleanConstructor;
|
72
|
+
}>> & Readonly<{}>, {
|
73
|
+
keepShow: boolean;
|
74
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
61
75
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
62
76
|
content: {
|
63
77
|
type: (NumberConstructor | StringConstructor)[];
|
@@ -70,9 +84,14 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
70
84
|
type: PropType<CSSProperties>;
|
71
85
|
default: () => {};
|
72
86
|
};
|
87
|
+
keepShow: {
|
88
|
+
type: BooleanConstructor;
|
89
|
+
default: boolean;
|
90
|
+
};
|
73
91
|
}>> & Readonly<{}>, {
|
74
92
|
content: string | number;
|
75
93
|
contentStyle: CSSProperties;
|
94
|
+
keepShow: boolean;
|
76
95
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
77
96
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
78
97
|
content: {
|
@@ -11,9 +11,23 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
11
11
|
type: PropType<CSSProperties>;
|
12
12
|
default: () => {};
|
13
13
|
};
|
14
|
+
keepShow: {
|
15
|
+
type: BooleanConstructor;
|
16
|
+
default: boolean;
|
17
|
+
};
|
14
18
|
}>, {
|
15
|
-
readonly NEllipsis: any;
|
16
19
|
readonly NTooltip: any;
|
20
|
+
readonly CEllipsis: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
21
|
+
style: ObjectConstructor;
|
22
|
+
tooltip: ObjectConstructor;
|
23
|
+
keepShow: BooleanConstructor;
|
24
|
+
}>, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
25
|
+
style: ObjectConstructor;
|
26
|
+
tooltip: ObjectConstructor;
|
27
|
+
keepShow: BooleanConstructor;
|
28
|
+
}>> & Readonly<{}>, {
|
29
|
+
keepShow: boolean;
|
30
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
17
31
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
18
32
|
content: {
|
19
33
|
type: (NumberConstructor | StringConstructor)[];
|
@@ -26,8 +40,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
26
40
|
type: PropType<CSSProperties>;
|
27
41
|
default: () => {};
|
28
42
|
};
|
43
|
+
keepShow: {
|
44
|
+
type: BooleanConstructor;
|
45
|
+
default: boolean;
|
46
|
+
};
|
29
47
|
}>> & Readonly<{}>, {
|
30
48
|
content: string | number;
|
31
49
|
contentStyle: CSSProperties;
|
50
|
+
keepShow: boolean;
|
32
51
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
33
52
|
export default _default;
|
@@ -1,12 +1,14 @@
|
|
1
1
|
import { defineComponent, openBlock, createBlock, unref, withCtx, createElementVNode, createVNode, normalizeStyle, createTextVNode, toDisplayString } from 'vue';
|
2
|
-
import { NTooltip
|
2
|
+
import { NTooltip } from 'naive-ui';
|
3
|
+
import script from '../../../../../shared/components/Ellipsis/Ellipsis.js';
|
3
4
|
|
4
5
|
var _sfc_main = /* @__PURE__ */ defineComponent({
|
5
6
|
__name: "InfoEllipsis",
|
6
7
|
props: {
|
7
8
|
content: { type: [String, Number], default: "" },
|
8
9
|
tip: { type: String },
|
9
|
-
contentStyle: { type: Object, default: () => ({}) }
|
10
|
+
contentStyle: { type: Object, default: () => ({}) },
|
11
|
+
keepShow: { type: Boolean, default: false }
|
10
12
|
},
|
11
13
|
setup(__props) {
|
12
14
|
return (_ctx, _cache) => {
|
@@ -14,10 +16,11 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
14
16
|
disabled: !__props.tip
|
15
17
|
}, {
|
16
18
|
trigger: withCtx(() => [
|
17
|
-
createElementVNode("
|
18
|
-
createVNode(unref(
|
19
|
+
createElementVNode("div", null, [
|
20
|
+
createVNode(unref(script), {
|
19
21
|
style: normalizeStyle(__props.contentStyle),
|
20
|
-
tooltip: { placement: __props.tip ? "bottom" : "top" }
|
22
|
+
tooltip: { placement: __props.tip ? "bottom" : "top" },
|
23
|
+
"keep-show": __props.keepShow
|
21
24
|
}, {
|
22
25
|
default: withCtx(() => {
|
23
26
|
var _a;
|
@@ -26,7 +29,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
26
29
|
];
|
27
30
|
}),
|
28
31
|
_: 1
|
29
|
-
}, 8, ["style", "tooltip"])
|
32
|
+
}, 8, ["style", "tooltip", "keep-show"])
|
30
33
|
])
|
31
34
|
]),
|
32
35
|
default: withCtx(() => [
|
@@ -437,9 +437,23 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
437
437
|
type: import("vue").PropType<import("vue").CSSProperties>;
|
438
438
|
default: () => {};
|
439
439
|
};
|
440
|
+
keepShow: {
|
441
|
+
type: BooleanConstructor;
|
442
|
+
default: boolean;
|
443
|
+
};
|
440
444
|
}>, {
|
441
|
-
readonly NEllipsis: any;
|
442
445
|
readonly NTooltip: any;
|
446
|
+
readonly CEllipsis: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
447
|
+
style: ObjectConstructor;
|
448
|
+
tooltip: ObjectConstructor;
|
449
|
+
keepShow: BooleanConstructor;
|
450
|
+
}>, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
451
|
+
style: ObjectConstructor;
|
452
|
+
tooltip: ObjectConstructor;
|
453
|
+
keepShow: BooleanConstructor;
|
454
|
+
}>> & Readonly<{}>, {
|
455
|
+
keepShow: boolean;
|
456
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
443
457
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
444
458
|
content: {
|
445
459
|
type: (NumberConstructor | StringConstructor)[];
|
@@ -452,9 +466,14 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
452
466
|
type: import("vue").PropType<import("vue").CSSProperties>;
|
453
467
|
default: () => {};
|
454
468
|
};
|
469
|
+
keepShow: {
|
470
|
+
type: BooleanConstructor;
|
471
|
+
default: boolean;
|
472
|
+
};
|
455
473
|
}>> & Readonly<{}>, {
|
456
474
|
content: string | number;
|
457
475
|
contentStyle: import("vue").CSSProperties;
|
476
|
+
keepShow: boolean;
|
458
477
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
459
478
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
460
479
|
content: {
|
@@ -490,9 +509,23 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
490
509
|
type: import("vue").PropType<import("vue").CSSProperties>;
|
491
510
|
default: () => {};
|
492
511
|
};
|
512
|
+
keepShow: {
|
513
|
+
type: BooleanConstructor;
|
514
|
+
default: boolean;
|
515
|
+
};
|
493
516
|
}>, {
|
494
|
-
readonly NEllipsis: any;
|
495
517
|
readonly NTooltip: any;
|
518
|
+
readonly CEllipsis: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
519
|
+
style: ObjectConstructor;
|
520
|
+
tooltip: ObjectConstructor;
|
521
|
+
keepShow: BooleanConstructor;
|
522
|
+
}>, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
523
|
+
style: ObjectConstructor;
|
524
|
+
tooltip: ObjectConstructor;
|
525
|
+
keepShow: BooleanConstructor;
|
526
|
+
}>> & Readonly<{}>, {
|
527
|
+
keepShow: boolean;
|
528
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
496
529
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
497
530
|
content: {
|
498
531
|
type: (NumberConstructor | StringConstructor)[];
|
@@ -505,9 +538,14 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
505
538
|
type: import("vue").PropType<import("vue").CSSProperties>;
|
506
539
|
default: () => {};
|
507
540
|
};
|
541
|
+
keepShow: {
|
542
|
+
type: BooleanConstructor;
|
543
|
+
default: boolean;
|
544
|
+
};
|
508
545
|
}>> & Readonly<{}>, {
|
509
546
|
content: string | number;
|
510
547
|
contentStyle: import("vue").CSSProperties;
|
548
|
+
keepShow: boolean;
|
511
549
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
512
550
|
readonly SlotRender: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
513
551
|
renderer: {
|
package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.js
CHANGED
@@ -46,11 +46,11 @@ const Maps = /* @__PURE__ */ new Map([
|
|
46
46
|
],
|
47
47
|
[
|
48
48
|
DatePresetValEnums.WEEK_START,
|
49
|
-
() => moment().
|
49
|
+
() => moment().startOf("isoWeek")
|
50
50
|
],
|
51
51
|
[
|
52
52
|
DatePresetValEnums.WEEK_END,
|
53
|
-
() => moment().
|
53
|
+
() => moment().endOf("isoWeek")
|
54
54
|
],
|
55
55
|
[
|
56
56
|
DatePresetValEnums.MONTH_START,
|
@@ -101,15 +101,15 @@ const dateRangeMapInner = /* @__PURE__ */ new Map([
|
|
101
101
|
],
|
102
102
|
[
|
103
103
|
DateRangeInnerValEnums.THIS_WEEK,
|
104
|
-
() => [moment().
|
104
|
+
() => [moment().startOf("isoWeek"), moment().endOf("isoWeek")]
|
105
105
|
],
|
106
106
|
[
|
107
107
|
DateRangeInnerValEnums.NEXT_WEEK,
|
108
|
-
() => [moment().add(1, "w").
|
108
|
+
() => [moment().add(1, "w").startOf("isoWeek"), moment().add(1, "w").endOf("isoWeek")]
|
109
109
|
],
|
110
110
|
[
|
111
111
|
DateRangeInnerValEnums.LAST_WEEK,
|
112
|
-
() => [moment().subtract(1, "w").
|
112
|
+
() => [moment().subtract(1, "w").startOf("isoWeek"), moment().subtract(1, "w").endOf("isoWeek")]
|
113
113
|
],
|
114
114
|
[
|
115
115
|
DateRangeInnerValEnums.PAST_WEEK,
|
@@ -187,17 +187,17 @@ const formatDateRangeInfo = (key, format = "x", optionSetting = WidgetOptionEnum
|
|
187
187
|
[
|
188
188
|
DateRangeInnerValEnums.THIS_WEEK,
|
189
189
|
() => [
|
190
|
-
isFutureTime ? currentTime : moment().
|
191
|
-
isPastTime ? currentTime : moment().
|
190
|
+
isFutureTime ? currentTime : moment().startOf("isoWeek"),
|
191
|
+
isPastTime ? currentTime : moment().endOf("isoWeek")
|
192
192
|
]
|
193
193
|
],
|
194
194
|
[
|
195
195
|
DateRangeInnerValEnums.NEXT_WEEK,
|
196
|
-
() => [moment().add(1, "w").
|
196
|
+
() => [moment().add(1, "w").startOf("isoWeek"), moment().add(1, "w").endOf("isoWeek")]
|
197
197
|
],
|
198
198
|
[
|
199
199
|
DateRangeInnerValEnums.LAST_WEEK,
|
200
|
-
() => [moment().subtract(1, "w").
|
200
|
+
() => [moment().subtract(1, "w").startOf("isoWeek"), moment().subtract(1, "w").endOf("isoWeek")]
|
201
201
|
],
|
202
202
|
[
|
203
203
|
DateRangeInnerValEnums.PAST_WEEK,
|
package/es/env.d.ts
CHANGED
@@ -1,25 +1,25 @@
|
|
1
|
-
/// <reference types="vite/client" />
|
2
|
-
|
3
|
-
interface ImportMetaEnv {
|
4
|
-
readonly VITE_APP_TYPE: string;
|
5
|
-
// 更多环境变量...
|
6
|
-
}
|
7
|
-
|
8
|
-
interface ImportMeta {
|
9
|
-
readonly env: ImportMetaEnv;
|
10
|
-
}
|
11
|
-
|
12
|
-
declare module '*.vue' {
|
13
|
-
// @ts-ignore
|
14
|
-
import type { App, defineComponent } from 'vue';
|
15
|
-
// // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types
|
16
|
-
// // const component: DefineComponent<{}, {}, any>
|
17
|
-
const component: ReturnType<typeof defineComponent> & {
|
18
|
-
install(app: App): void;
|
19
|
-
};
|
20
|
-
// @ts-ignore
|
21
|
-
export default component;
|
22
|
-
}
|
23
|
-
|
24
|
-
declare module '*.js';
|
25
|
-
|
1
|
+
/// <reference types="vite/client" />
|
2
|
+
|
3
|
+
interface ImportMetaEnv {
|
4
|
+
readonly VITE_APP_TYPE: string;
|
5
|
+
// 更多环境变量...
|
6
|
+
}
|
7
|
+
|
8
|
+
interface ImportMeta {
|
9
|
+
readonly env: ImportMetaEnv;
|
10
|
+
}
|
11
|
+
|
12
|
+
declare module '*.vue' {
|
13
|
+
// @ts-ignore
|
14
|
+
import type { App, defineComponent } from 'vue';
|
15
|
+
// // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types
|
16
|
+
// // const component: DefineComponent<{}, {}, any>
|
17
|
+
const component: ReturnType<typeof defineComponent> & {
|
18
|
+
install(app: App): void;
|
19
|
+
};
|
20
|
+
// @ts-ignore
|
21
|
+
export default component;
|
22
|
+
}
|
23
|
+
|
24
|
+
declare module '*.js';
|
25
|
+
|
@@ -0,0 +1,12 @@
|
|
1
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
2
|
+
style: ObjectConstructor;
|
3
|
+
tooltip: ObjectConstructor;
|
4
|
+
keepShow: BooleanConstructor;
|
5
|
+
}>, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
6
|
+
style: ObjectConstructor;
|
7
|
+
tooltip: ObjectConstructor;
|
8
|
+
keepShow: BooleanConstructor;
|
9
|
+
}>> & Readonly<{}>, {
|
10
|
+
keepShow: boolean;
|
11
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
12
|
+
export default _default;
|
@@ -0,0 +1,86 @@
|
|
1
|
+
import { defineComponent, ref, computed, createVNode, mergeProps } from 'vue';
|
2
|
+
import { CloseCircle } from '@vicons/ionicons5';
|
3
|
+
import { useElementSize } from '@vueuse/core';
|
4
|
+
import { NTooltip } from 'naive-ui';
|
5
|
+
|
6
|
+
var script = /* @__PURE__ */ defineComponent({
|
7
|
+
props: {
|
8
|
+
style: Object,
|
9
|
+
tooltip: Object,
|
10
|
+
keepShow: Boolean
|
11
|
+
},
|
12
|
+
setup(props, {
|
13
|
+
slots
|
14
|
+
}) {
|
15
|
+
const ellipsisRef = ref();
|
16
|
+
const ellipsisStyle = computed(() => ({
|
17
|
+
overflow: "hidden",
|
18
|
+
textOverflow: "ellipsis",
|
19
|
+
whiteSpace: "nowrap",
|
20
|
+
...props.style
|
21
|
+
}));
|
22
|
+
const {
|
23
|
+
width: ellipsisWidth
|
24
|
+
} = useElementSize(ellipsisRef);
|
25
|
+
const innerRef = ref();
|
26
|
+
const innerStyle = {
|
27
|
+
position: "absolute",
|
28
|
+
opacity: 0,
|
29
|
+
visibility: "hidden"
|
30
|
+
};
|
31
|
+
const {
|
32
|
+
width: innerWidth
|
33
|
+
} = useElementSize(innerRef);
|
34
|
+
const disabled = computed(() => {
|
35
|
+
return innerWidth.value <= ellipsisWidth.value;
|
36
|
+
});
|
37
|
+
const show = ref(!!props.keepShow);
|
38
|
+
function onUpdateShow(v) {
|
39
|
+
if (!props.keepShow)
|
40
|
+
return;
|
41
|
+
show.value = v;
|
42
|
+
}
|
43
|
+
const operationStyle = {
|
44
|
+
position: "absolute",
|
45
|
+
right: "-4px",
|
46
|
+
top: "-4px",
|
47
|
+
cursor: "pointer",
|
48
|
+
width: "16px",
|
49
|
+
borderRadius: "50%",
|
50
|
+
boxShadow: "0 0 4px 0 rgba(0, 0, 0, 0.4)"
|
51
|
+
};
|
52
|
+
return () => {
|
53
|
+
return createVNode(NTooltip, mergeProps(props.tooltip, {
|
54
|
+
"disabled": disabled.value,
|
55
|
+
"trigger": props.keepShow ? "manual" : "hover",
|
56
|
+
"show": props.keepShow ? show.value : void 0
|
57
|
+
}), {
|
58
|
+
trigger: () => {
|
59
|
+
var _a, _b;
|
60
|
+
return createVNode("div", {
|
61
|
+
"onClick": () => onUpdateShow(true)
|
62
|
+
}, [createVNode("div", {
|
63
|
+
"style": ellipsisStyle.value,
|
64
|
+
"ref": ellipsisRef
|
65
|
+
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]), createVNode("div", {
|
66
|
+
"style": innerStyle,
|
67
|
+
"ref": innerRef
|
68
|
+
}, [(_b = slots.default) == null ? void 0 : _b.call(slots)])]);
|
69
|
+
},
|
70
|
+
default: () => {
|
71
|
+
var _a;
|
72
|
+
return createVNode("div", {
|
73
|
+
"style": {
|
74
|
+
maxWidth: "300px"
|
75
|
+
}
|
76
|
+
}, [(_a = slots.default) == null ? void 0 : _a.call(slots), props.keepShow ? createVNode(CloseCircle, {
|
77
|
+
"style": operationStyle,
|
78
|
+
"onClick": () => onUpdateShow(false)
|
79
|
+
}, null) : null]);
|
80
|
+
}
|
81
|
+
});
|
82
|
+
};
|
83
|
+
}
|
84
|
+
});
|
85
|
+
|
86
|
+
export { script as default };
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "cnhis-design-vue",
|
3
|
-
"version": "3.4.0-beta.
|
3
|
+
"version": "3.4.0-beta.39",
|
4
4
|
"license": "ISC",
|
5
5
|
"module": "./es/components/index.js",
|
6
6
|
"main": "./es/components/index.js",
|
@@ -73,5 +73,5 @@
|
|
73
73
|
"iOS 7",
|
74
74
|
"last 3 iOS versions"
|
75
75
|
],
|
76
|
-
"gitHead": "
|
76
|
+
"gitHead": "d55312f4966c5a5631441207b127e301c021a2f0"
|
77
77
|
}
|