zzz-pc-view 0.0.143 → 0.0.145
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 +1 -1
- package/src/index.es.js +78 -29
- package/src/index.umd.js +2 -2
- package/src/utils/math/unitConvertor.d.ts +1 -1
package/package.json
CHANGED
package/src/index.es.js
CHANGED
|
@@ -150,9 +150,52 @@ const EMPTY_OBJECT = {};
|
|
|
150
150
|
const baseUnitConfig = {
|
|
151
151
|
// 单位列表,每个子数组表示一组可转换的单位
|
|
152
152
|
list: [
|
|
153
|
-
[
|
|
154
|
-
|
|
155
|
-
|
|
153
|
+
[
|
|
154
|
+
"mg/l",
|
|
155
|
+
1,
|
|
156
|
+
"g/m3",
|
|
157
|
+
1,
|
|
158
|
+
"g/m³",
|
|
159
|
+
1e3,
|
|
160
|
+
"mg/m3",
|
|
161
|
+
1,
|
|
162
|
+
"mg/m³",
|
|
163
|
+
1e3,
|
|
164
|
+
"μg/m3",
|
|
165
|
+
1,
|
|
166
|
+
"μg/m³",
|
|
167
|
+
1,
|
|
168
|
+
"ug/m3",
|
|
169
|
+
1,
|
|
170
|
+
"ug/m³",
|
|
171
|
+
1e3,
|
|
172
|
+
"ng/m3",
|
|
173
|
+
1,
|
|
174
|
+
"ng/m³"
|
|
175
|
+
],
|
|
176
|
+
[
|
|
177
|
+
"ppml",
|
|
178
|
+
1,
|
|
179
|
+
"ppmL",
|
|
180
|
+
1,
|
|
181
|
+
"ppmL",
|
|
182
|
+
1e3,
|
|
183
|
+
"ppm",
|
|
184
|
+
1,
|
|
185
|
+
"ppm",
|
|
186
|
+
1e3,
|
|
187
|
+
"ppb",
|
|
188
|
+
1,
|
|
189
|
+
"ppb",
|
|
190
|
+
1,
|
|
191
|
+
"ppb",
|
|
192
|
+
1,
|
|
193
|
+
"ppb",
|
|
194
|
+
1e3,
|
|
195
|
+
"ppt",
|
|
196
|
+
1,
|
|
197
|
+
"ppt"
|
|
198
|
+
],
|
|
156
199
|
["kg", 1e3, "g", 1e3, "mg", 1e3, "μg"],
|
|
157
200
|
["psi", 6.895, "kpa", 10, "hpa", 100, "pa", 75e-4, "mm hg"],
|
|
158
201
|
["km", 1e3, "m"],
|
|
@@ -175,14 +218,6 @@ const mappingConfigs = [
|
|
|
175
218
|
positive: (n) => (value, weight, mol = MOL) => value * n / weight * mol,
|
|
176
219
|
// 负转换函数,考虑重量和摩尔的转换
|
|
177
220
|
negative: (n) => (value, weight, mol = MOL) => value / n * weight / mol
|
|
178
|
-
},
|
|
179
|
-
{
|
|
180
|
-
// 输入单位列表、转换因子和输出单位列表
|
|
181
|
-
list: [list[2], 1, list[1]],
|
|
182
|
-
// 正转换函数,考虑重量和摩尔的转换
|
|
183
|
-
positive: (n) => (value, weight, mol = MOL) => value * n / weight * mol,
|
|
184
|
-
// 负转换函数,考虑重量和摩尔的转换
|
|
185
|
-
negative: (n) => (value, weight, mol = MOL) => value / n * weight / mol
|
|
186
221
|
}
|
|
187
222
|
];
|
|
188
223
|
const unitConverterMap = mappingConfigs.reduce(
|
|
@@ -12601,29 +12636,43 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
12601
12636
|
prop: _ctx.prop
|
|
12602
12637
|
}, null, 8, ["viewHandler", "model", "prop"]);
|
|
12603
12638
|
}), 128)) : createCommentVNode("", true),
|
|
12604
|
-
|
|
12605
|
-
|
|
12606
|
-
|
|
12607
|
-
|
|
12608
|
-
|
|
12609
|
-
|
|
12610
|
-
|
|
12611
|
-
|
|
12612
|
-
|
|
12613
|
-
|
|
12614
|
-
|
|
12615
|
-
|
|
12616
|
-
|
|
12617
|
-
|
|
12639
|
+
!_ctx.hideEditorBtn ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
12640
|
+
_ctx.viewHandler.permission.Edit ? (openBlock(), createBlock(_component_el_link, {
|
|
12641
|
+
key: 0,
|
|
12642
|
+
title: _ctx.viewHandler.permission.Edit.title,
|
|
12643
|
+
type: "primary",
|
|
12644
|
+
underline: "never",
|
|
12645
|
+
onClick: _cache[0] || (_cache[0] = withModifiers(($event) => _ctx.viewHandler.onEditorBtnClick(unref(ZDecorators).CurdKey.EditTypeEnum.UPDATE, _ctx.model), ["stop"]))
|
|
12646
|
+
}, {
|
|
12647
|
+
default: withCtx(() => _cache[3] || (_cache[3] = [
|
|
12648
|
+
createTextVNode("编辑")
|
|
12649
|
+
])),
|
|
12650
|
+
_: 1
|
|
12651
|
+
}, 8, ["title"])) : _ctx.viewHandler.permission.Detail ? (openBlock(), createBlock(_component_el_link, {
|
|
12652
|
+
key: 1,
|
|
12653
|
+
title: _ctx.viewHandler.permission.Detail.title,
|
|
12654
|
+
underline: "never",
|
|
12655
|
+
onClick: _cache[1] || (_cache[1] = withModifiers(($event) => _ctx.viewHandler.onEditorBtnClick(unref(ZDecorators).CurdKey.EditTypeEnum.DETAIL, _ctx.model), ["stop"]))
|
|
12656
|
+
}, {
|
|
12657
|
+
default: withCtx(() => _cache[4] || (_cache[4] = [
|
|
12658
|
+
createTextVNode("详情")
|
|
12659
|
+
])),
|
|
12660
|
+
_: 1
|
|
12661
|
+
}, 8, ["title"])) : createCommentVNode("", true)
|
|
12662
|
+
], 64)) : createCommentVNode("", true),
|
|
12618
12663
|
_ctx.viewHandler.permission.Delete ? (openBlock(), createBlock(_component_el_link, {
|
|
12619
|
-
key:
|
|
12664
|
+
key: 2,
|
|
12620
12665
|
title: _ctx.viewHandler.permission.Delete.title,
|
|
12621
12666
|
type: "danger",
|
|
12622
|
-
icon: "Delete",
|
|
12623
12667
|
underline: "never",
|
|
12624
12668
|
onClick: _cache[2] || (_cache[2] = withModifiers(($event) => _ctx.viewHandler.onDeleteBtnClick(_ctx.model), ["stop"]))
|
|
12625
|
-
},
|
|
12626
|
-
|
|
12669
|
+
}, {
|
|
12670
|
+
default: withCtx(() => _cache[5] || (_cache[5] = [
|
|
12671
|
+
createTextVNode("删除")
|
|
12672
|
+
])),
|
|
12673
|
+
_: 1
|
|
12674
|
+
}, 8, ["title"])) : createCommentVNode("", true),
|
|
12675
|
+
Array.isArray(_ctx.operatorAfterComponents) ? (openBlock(true), createElementBlock(Fragment, { key: 3 }, renderList(_ctx.operatorAfterComponents, (operatorComponent, index2) => {
|
|
12627
12676
|
return openBlock(), createBlock(resolveDynamicComponent(operatorComponent), {
|
|
12628
12677
|
key: index2,
|
|
12629
12678
|
viewHandler: _ctx.viewHandler,
|