inl-ui 0.1.18 → 0.1.21

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/dist/index.cjs CHANGED
@@ -42,7 +42,7 @@ var axios__default = /*#__PURE__*/_interopDefaultLegacy(axios);
42
42
  var ___default = /*#__PURE__*/_interopDefaultLegacy(_);
43
43
  var dayjs__default = /*#__PURE__*/_interopDefaultLegacy(dayjs);
44
44
 
45
- var version = "0.1.17";
45
+ var version = "0.1.20";
46
46
 
47
47
  const setTheme = theme => {
48
48
  if (theme === "dark") {
@@ -5799,7 +5799,7 @@ const GetDeviceDetailOnce = async (codes, params) => {
5799
5799
  if (instance.thingInstCode === i) {
5800
5800
  for (let n of instance.detailGroupList) {
5801
5801
  for (let m of n.thingPropertyValueVoList) {
5802
- refhCodes[i] = filterDataByEventEnable(instance);
5802
+ refhCodes[i] = instance;
5803
5803
  }
5804
5804
  }
5805
5805
  }
@@ -5856,12 +5856,10 @@ const InjectDeviceCodeGetDetail = async (codes, params) => {
5856
5856
  if (!item) continue;
5857
5857
  for (let n in item.detailGroupList) {
5858
5858
  for (let m in item.detailGroupList[n].thingPropertyValueVoList) {
5859
- if (pcs.includes(item.detailGroupList[n].thingPropertyValueVoList[m].thingPropertyCode)) {
5860
- newResData[i] = {
5861
- pointCode: item.detailGroupList[n].thingPropertyValueVoList[m].pointCode,
5862
- value: item.detailGroupList[n].thingPropertyValueVoList[m].value
5863
- };
5864
- }
5859
+ newResData[i] = {
5860
+ pointCode: item.detailGroupList[n].thingPropertyValueVoList[m].pointCode,
5861
+ value: item.detailGroupList[n].thingPropertyValueVoList[m].value
5862
+ };
5865
5863
  }
5866
5864
  }
5867
5865
  }
@@ -12013,12 +12011,6 @@ const getMenuDetail = () => vue.defineComponent({
12013
12011
  });
12014
12012
 
12015
12013
  const fonts = [{
12016
- label: "\u9ED8\u8BA4",
12017
- value: ""
12018
- }, {
12019
- label: "Arial",
12020
- value: "Arial"
12021
- }, {
12022
12014
  label: "\u5FAE\u8F6F\u96C5\u9ED1",
12023
12015
  value: "Microsoft YaHei"
12024
12016
  }, {
@@ -12084,14 +12076,25 @@ const FontSelect = vue.defineComponent({
12084
12076
  emits: ["update:value", "change"],
12085
12077
  props: {
12086
12078
  value: String,
12087
- selectOptions: Object
12079
+ selectOptions: Object,
12080
+ suffix: {
12081
+ type: Array,
12082
+ default: () => []
12083
+ },
12084
+ prefix: {
12085
+ type: Array,
12086
+ default: () => []
12087
+ }
12088
12088
  },
12089
12089
  setup(props, {
12090
12090
  emit
12091
12091
  }) {
12092
12092
  const modelValue = core.useVModel(props, "value", emit);
12093
+ const options = vue.computed(() => {
12094
+ return _.concat(props.prefix, fonts, props.suffix);
12095
+ });
12093
12096
  return () => vue.createVNode(vue.resolveComponent("a-select"), vue.mergeProps({
12094
- "options": fonts,
12097
+ "options": options.value,
12095
12098
  "onChange": e => emit("change", e)
12096
12099
  }, props.selectOptions, {
12097
12100
  "value": modelValue.value,
package/dist/index.d.ts CHANGED
@@ -11,7 +11,7 @@ import { Key } from 'ant-design-vue/lib/table/interface';
11
11
  import * as vue_jsx_runtime from 'vue/jsx-runtime';
12
12
  import * as _ant_design_icons_vue_lib_components_IconFont from '@ant-design/icons-vue/lib/components/IconFont';
13
13
 
14
- var version = "0.1.17";
14
+ var version = "0.1.20";
15
15
 
16
16
  declare const _default$o: {
17
17
  set(theme: string): void;
@@ -1725,13 +1725,32 @@ declare const getMenuDetail: () => vue.DefineComponent<{
1725
1725
  declare const _default$2: vue.DefineComponent<{
1726
1726
  value: StringConstructor;
1727
1727
  selectOptions: ObjectConstructor;
1728
+ suffix: {
1729
+ type: ArrayConstructor;
1730
+ default: () => never[];
1731
+ };
1732
+ prefix: {
1733
+ type: ArrayConstructor;
1734
+ default: () => never[];
1735
+ };
1728
1736
  }, () => vue_jsx_runtime.JSX.Element, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, ("change" | "update:value")[], "change" | "update:value", vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
1729
1737
  value: StringConstructor;
1730
1738
  selectOptions: ObjectConstructor;
1739
+ suffix: {
1740
+ type: ArrayConstructor;
1741
+ default: () => never[];
1742
+ };
1743
+ prefix: {
1744
+ type: ArrayConstructor;
1745
+ default: () => never[];
1746
+ };
1731
1747
  }>> & {
1732
1748
  onChange?: ((...args: any[]) => any) | undefined;
1733
1749
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
1734
- }, {}, {}>;
1750
+ }, {
1751
+ prefix: unknown[];
1752
+ suffix: unknown[];
1753
+ }, {}>;
1735
1754
 
1736
1755
  declare const _default$1: vue.DefineComponent<{
1737
1756
  zxIp: {
package/dist/index.js CHANGED
@@ -3,7 +3,7 @@ import renderWithQiankun, { qiankunWindow } from 'vite-plugin-qiankun/dist/helpe
3
3
  import { defineComponent, createVNode, createApp, ref, watch, reactive, computed, onBeforeUnmount, inject, watchEffect, onActivated, onDeactivated, resolveComponent, isVNode, nextTick, Fragment, withDirectives, vShow, toRaw, provide, createTextVNode, onMounted, KeepAlive, shallowRef, onBeforeMount, mergeProps, onBeforeUpdate } from 'vue';
4
4
  import axios from 'axios';
5
5
  import { message, Menu, MenuItem, Input, Badge, Avatar, MenuDivider, Modal, SubMenu, Dropdown, Tooltip, Select, Layout as Layout$1, LayoutHeader, LayoutSider, LayoutContent, Form, Row, Col, FormItem, SelectOption, Switch, InputNumber } from 'ant-design-vue';
6
- import _, { isPlainObject, omit, cloneDeep, differenceBy, isObject as isObject$1 } from 'lodash';
6
+ import _, { isPlainObject, omit, cloneDeep, differenceBy, isObject as isObject$1, concat } from 'lodash';
7
7
  import { useIntervalFn, useEventBus, resolveRef, useEventListener, useMounted, useThrottleFn, useVModel, useMagicKeys, whenever, watchArray, useSessionStorage, useFullscreen, useLocalStorage, useToggle, useElementBounding, useMemory, useWindowSize, useClipboard, useBreakpoints, breakpointsAntDesign } from '@vueuse/core';
8
8
  import dayjs from 'dayjs';
9
9
  import { useRouter, useRoute } from 'vue-router';
@@ -12,7 +12,7 @@ import { loadMicroApp } from 'qiankun';
12
12
  import { XPopup, CommentBlock, setAxiosOption } from '@sszj-temp/mobile';
13
13
  import '@sszj-temp/mobile/style.css';
14
14
 
15
- var version = "0.1.17";
15
+ var version = "0.1.20";
16
16
 
17
17
  const setTheme = theme => {
18
18
  if (theme === "dark") {
@@ -5769,7 +5769,7 @@ const GetDeviceDetailOnce = async (codes, params) => {
5769
5769
  if (instance.thingInstCode === i) {
5770
5770
  for (let n of instance.detailGroupList) {
5771
5771
  for (let m of n.thingPropertyValueVoList) {
5772
- refhCodes[i] = filterDataByEventEnable(instance);
5772
+ refhCodes[i] = instance;
5773
5773
  }
5774
5774
  }
5775
5775
  }
@@ -5826,12 +5826,10 @@ const InjectDeviceCodeGetDetail = async (codes, params) => {
5826
5826
  if (!item) continue;
5827
5827
  for (let n in item.detailGroupList) {
5828
5828
  for (let m in item.detailGroupList[n].thingPropertyValueVoList) {
5829
- if (pcs.includes(item.detailGroupList[n].thingPropertyValueVoList[m].thingPropertyCode)) {
5830
- newResData[i] = {
5831
- pointCode: item.detailGroupList[n].thingPropertyValueVoList[m].pointCode,
5832
- value: item.detailGroupList[n].thingPropertyValueVoList[m].value
5833
- };
5834
- }
5829
+ newResData[i] = {
5830
+ pointCode: item.detailGroupList[n].thingPropertyValueVoList[m].pointCode,
5831
+ value: item.detailGroupList[n].thingPropertyValueVoList[m].value
5832
+ };
5835
5833
  }
5836
5834
  }
5837
5835
  }
@@ -11983,12 +11981,6 @@ const getMenuDetail = () => defineComponent({
11983
11981
  });
11984
11982
 
11985
11983
  const fonts = [{
11986
- label: "\u9ED8\u8BA4",
11987
- value: ""
11988
- }, {
11989
- label: "Arial",
11990
- value: "Arial"
11991
- }, {
11992
11984
  label: "\u5FAE\u8F6F\u96C5\u9ED1",
11993
11985
  value: "Microsoft YaHei"
11994
11986
  }, {
@@ -12054,14 +12046,25 @@ const FontSelect = defineComponent({
12054
12046
  emits: ["update:value", "change"],
12055
12047
  props: {
12056
12048
  value: String,
12057
- selectOptions: Object
12049
+ selectOptions: Object,
12050
+ suffix: {
12051
+ type: Array,
12052
+ default: () => []
12053
+ },
12054
+ prefix: {
12055
+ type: Array,
12056
+ default: () => []
12057
+ }
12058
12058
  },
12059
12059
  setup(props, {
12060
12060
  emit
12061
12061
  }) {
12062
12062
  const modelValue = useVModel(props, "value", emit);
12063
+ const options = computed(() => {
12064
+ return concat(props.prefix, fonts, props.suffix);
12065
+ });
12063
12066
  return () => createVNode(resolveComponent("a-select"), mergeProps({
12064
- "options": fonts,
12067
+ "options": options.value,
12065
12068
  "onChange": e => emit("change", e)
12066
12069
  }, props.selectOptions, {
12067
12070
  "value": modelValue.value,
@@ -1,70 +1,70 @@
1
- const less = require("less");
2
- const defaultVars = require("./scripts/default-vars");
3
-
4
- const dark = require("./scripts/dark-vars");
5
- const light = require("./scripts/light-vars");
6
-
7
- const path = require("path");
8
- const varDark = path.join(__dirname, ".", "style");
9
- const themeConfig = [
10
- {
11
- theme: "dark",
12
- htmlThemeAttr: "dark",
13
- modifyVars: {
14
- hack: `true;@import "${require.resolve(
15
- varDark + "/color/colorPalette.less"
16
- )}";@import "${require.resolve(varDark + "/themes/var-dark.less")}";`,
17
- ...defaultVars,
18
- ...dark,
19
- "root-entry-name": "dark",
20
- },
21
- },
22
- {
23
- theme: "light",
24
- htmlThemeAttr: "light",
25
- modifyVars: {
26
- // 引入除了变量外的其他内容
27
- hack: `true;@import "${require.resolve(
28
- varDark + "/color/colorPalette.less"
29
- )}";@import "${require.resolve(varDark + "/themes/var-default.less")}";`,
30
- ...defaultVars,
31
- ...light,
32
- "root-entry-name": "default",
33
- },
34
- },
35
- ];
36
- const additionalData = async (content, filename) => {
37
- const themePromises = themeConfig.map(async (t) => {
38
- const { htmlThemeAttr, modifyVars = {} } = t;
39
- const options = {
40
- javascriptEnabled: true,
41
- modifyVars,
42
- relativeUrls: true,
43
- filename,
44
- };
45
- try {
46
- const { css } = await less.render(content, options);
47
- let res = "";
48
- if (htmlThemeAttr && css) {
49
- res = `
50
- [data-doc-theme=${htmlThemeAttr}] {
51
- ${css}
52
- }
53
- `;
54
- }
55
- return Promise.resolve(res);
56
- } catch (error) {
57
- // eslint-disable-next-line no-console
58
- console.log(error);
59
- return Promise.reject(content);
60
- }
61
- });
62
- let res = content;
63
- for (const themePromise of themePromises) {
64
- const theme = await themePromise;
65
- res += theme;
66
- }
67
- return res;
68
- };
69
-
70
- exports.default = additionalData;
1
+ const less = require("less");
2
+ const defaultVars = require("./scripts/default-vars");
3
+
4
+ const dark = require("./scripts/dark-vars");
5
+ const light = require("./scripts/light-vars");
6
+
7
+ const path = require("path");
8
+ const varDark = path.join(__dirname, ".", "style");
9
+ const themeConfig = [
10
+ {
11
+ theme: "dark",
12
+ htmlThemeAttr: "dark",
13
+ modifyVars: {
14
+ hack: `true;@import "${require.resolve(
15
+ varDark + "/color/colorPalette.less"
16
+ )}";@import "${require.resolve(varDark + "/themes/var-dark.less")}";`,
17
+ ...defaultVars,
18
+ ...dark,
19
+ "root-entry-name": "dark",
20
+ },
21
+ },
22
+ {
23
+ theme: "light",
24
+ htmlThemeAttr: "light",
25
+ modifyVars: {
26
+ // 引入除了变量外的其他内容
27
+ hack: `true;@import "${require.resolve(
28
+ varDark + "/color/colorPalette.less"
29
+ )}";@import "${require.resolve(varDark + "/themes/var-default.less")}";`,
30
+ ...defaultVars,
31
+ ...light,
32
+ "root-entry-name": "default",
33
+ },
34
+ },
35
+ ];
36
+ const additionalData = async (content, filename) => {
37
+ const themePromises = themeConfig.map(async (t) => {
38
+ const { htmlThemeAttr, modifyVars = {} } = t;
39
+ const options = {
40
+ javascriptEnabled: true,
41
+ modifyVars,
42
+ relativeUrls: true,
43
+ filename,
44
+ };
45
+ try {
46
+ const { css } = await less.render(content, options);
47
+ let res = "";
48
+ if (htmlThemeAttr && css) {
49
+ res = `
50
+ [data-doc-theme=${htmlThemeAttr}] {
51
+ ${css}
52
+ }
53
+ `;
54
+ }
55
+ return Promise.resolve(res);
56
+ } catch (error) {
57
+ // eslint-disable-next-line no-console
58
+ console.log(error);
59
+ return Promise.reject(content);
60
+ }
61
+ });
62
+ let res = content;
63
+ for (const themePromise of themePromises) {
64
+ const theme = await themePromise;
65
+ res += theme;
66
+ }
67
+ return res;
68
+ };
69
+
70
+ exports.default = additionalData;
@@ -1,21 +1,21 @@
1
- /**
2
- * convert dark.less into js vars
3
- *
4
- * const darkVars = require('./dark-vars');
5
- */
6
- const fs = require("fs");
7
- const path = require("path");
8
- const lessToJs = require("less-vars-to-js");
9
-
10
- const stylePath = path.join(__dirname, "..", "style");
11
- const darkLess = fs.readFileSync(
12
- path.join(stylePath, "themes", "var-dark.less"),
13
- "utf8"
14
- );
15
-
16
- const darkPaletteLess = lessToJs(darkLess, {
17
- stripPrefix: true,
18
- resolveVariables: false,
19
- });
20
-
21
- module.exports = darkPaletteLess;
1
+ /**
2
+ * convert dark.less into js vars
3
+ *
4
+ * const darkVars = require('./dark-vars');
5
+ */
6
+ const fs = require("fs");
7
+ const path = require("path");
8
+ const lessToJs = require("less-vars-to-js");
9
+
10
+ const stylePath = path.join(__dirname, "..", "style");
11
+ const darkLess = fs.readFileSync(
12
+ path.join(stylePath, "themes", "var-dark.less"),
13
+ "utf8"
14
+ );
15
+
16
+ const darkPaletteLess = lessToJs(darkLess, {
17
+ stripPrefix: true,
18
+ resolveVariables: false,
19
+ });
20
+
21
+ module.exports = darkPaletteLess;
@@ -1,25 +1,25 @@
1
- /**
2
- * convert default.less into js vars
3
- *
4
- * const darkVars = require('./default-vars');
5
- */
6
- const fs = require("fs");
7
- const path = require("path");
8
- const lessToJs = require("less-vars-to-js");
9
-
10
- const stylePath = path.join(__dirname, "..", "style");
11
- const colorLess = fs.readFileSync(
12
- path.join(stylePath, "color", "colors.less"),
13
- "utf8"
14
- );
15
- const defaultLess = fs.readFileSync(
16
- path.join(stylePath, "themes", "default.less"),
17
- "utf8"
18
- );
19
-
20
- const defaultPaletteLess = lessToJs(`${colorLess}${defaultLess}`, {
21
- stripPrefix: true,
22
- resolveVariables: false,
23
- });
24
-
25
- module.exports = defaultPaletteLess;
1
+ /**
2
+ * convert default.less into js vars
3
+ *
4
+ * const darkVars = require('./default-vars');
5
+ */
6
+ const fs = require("fs");
7
+ const path = require("path");
8
+ const lessToJs = require("less-vars-to-js");
9
+
10
+ const stylePath = path.join(__dirname, "..", "style");
11
+ const colorLess = fs.readFileSync(
12
+ path.join(stylePath, "color", "colors.less"),
13
+ "utf8"
14
+ );
15
+ const defaultLess = fs.readFileSync(
16
+ path.join(stylePath, "themes", "default.less"),
17
+ "utf8"
18
+ );
19
+
20
+ const defaultPaletteLess = lessToJs(`${colorLess}${defaultLess}`, {
21
+ stripPrefix: true,
22
+ resolveVariables: false,
23
+ });
24
+
25
+ module.exports = defaultPaletteLess;
@@ -1,22 +1,22 @@
1
- /**
2
- * convert dark.less into js vars
3
- *
4
- * const darkVars = require('./dark-vars');
5
- */
6
- const fs = require("fs");
7
- const path = require("path");
8
- const lessToJs = require("less-vars-to-js");
9
-
10
- const stylePath = path.join(__dirname, "..", "style");
11
- const lightLess = fs.readFileSync(
12
- path.join(stylePath, "themes", "var-default.less"),
13
- "utf8"
14
- );
15
-
16
- // 注册变量,过滤其他内容
17
- const lightPaletteLess = lessToJs(lightLess, {
18
- stripPrefix: true,
19
- resolveVariables: false,
20
- });
21
-
22
- module.exports = lightPaletteLess;
1
+ /**
2
+ * convert dark.less into js vars
3
+ *
4
+ * const darkVars = require('./dark-vars');
5
+ */
6
+ const fs = require("fs");
7
+ const path = require("path");
8
+ const lessToJs = require("less-vars-to-js");
9
+
10
+ const stylePath = path.join(__dirname, "..", "style");
11
+ const lightLess = fs.readFileSync(
12
+ path.join(stylePath, "themes", "var-default.less"),
13
+ "utf8"
14
+ );
15
+
16
+ // 注册变量,过滤其他内容
17
+ const lightPaletteLess = lessToJs(lightLess, {
18
+ stripPrefix: true,
19
+ resolveVariables: false,
20
+ });
21
+
22
+ module.exports = lightPaletteLess;