inl-ui 0.1.13 → 0.1.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/README.md CHANGED
@@ -1,49 +1,49 @@
1
- # 工业PC ui库
2
-
3
- 前端通用库,包括组件、hooks、utils等。
4
-
5
- ### 运行
6
-
7
- + 开发模式 yarn dev
8
- + 生产打包 yarn build
9
- + 生成文档 yarn build:docs
10
- + 打包图扑工具 yarn buildtp
11
-
12
- ### 使用方法
13
-
14
- ```javascript
15
- import inl from 'inl-ui';
16
- import 'inl-ui/dist/style.css';
17
-
18
- vue.use(inl)
19
- ```
20
-
21
-
22
-
23
- ### 激活主题
24
-
25
- **vite.config.ts**
26
-
27
- ```javascript
28
- const additionalData = require("inl-ui/dist/theme").default;
29
-
30
- ...
31
-
32
- css: {
33
- preprocessorOptions: {
34
- less: {
35
- javascriptEnabled: true,
36
- additionalData,
37
- },
38
- },
39
- },
40
- ```
41
-
42
- ### 文档链接
43
-
44
- ##### [组件文档](./src/components/README.md)
45
-
46
- ##### [hooks文档](./src/hooks/README.md)
47
-
48
- ##### [Utils文档](./src/utils/README.md)
49
-
1
+ # 工业PC ui库
2
+
3
+ 前端通用库,包括组件、hooks、utils等。
4
+
5
+ ### 运行
6
+
7
+ + 开发模式 yarn dev
8
+ + 生产打包 yarn build
9
+ + 生成文档 yarn build:docs
10
+ + 打包图扑工具 yarn buildtp
11
+
12
+ ### 使用方法
13
+
14
+ ```javascript
15
+ import inl from 'inl-ui';
16
+ import 'inl-ui/dist/style.css';
17
+
18
+ vue.use(inl)
19
+ ```
20
+
21
+
22
+
23
+ ### 激活主题
24
+
25
+ **vite.config.ts**
26
+
27
+ ```javascript
28
+ const additionalData = require("inl-ui/dist/theme").default;
29
+
30
+ ...
31
+
32
+ css: {
33
+ preprocessorOptions: {
34
+ less: {
35
+ javascriptEnabled: true,
36
+ additionalData,
37
+ },
38
+ },
39
+ },
40
+ ```
41
+
42
+ ### 文档链接
43
+
44
+ ##### [组件文档](./src/components/README.md)
45
+
46
+ ##### [hooks文档](./src/hooks/README.md)
47
+
48
+ ##### [Utils文档](./src/utils/README.md)
49
+
@@ -11072,14 +11072,25 @@ const FontSelect = vue.defineComponent({
11072
11072
  emits: ["update:value", "change"],
11073
11073
  props: {
11074
11074
  value: String,
11075
- selectOptions: Object
11075
+ selectOptions: Object,
11076
+ suffix: {
11077
+ type: Array,
11078
+ default: () => []
11079
+ },
11080
+ prefix: {
11081
+ type: Array,
11082
+ default: () => []
11083
+ }
11076
11084
  },
11077
11085
  setup(props, {
11078
11086
  emit
11079
11087
  }) {
11080
11088
  const modelValue = core.useVModel(props, "value", emit);
11089
+ const options = vue.computed(() => {
11090
+ return _.concat(props.prefix, fonts, props.suffix);
11091
+ });
11081
11092
  return () => vue.createVNode(vue.resolveComponent("a-select"), vue.mergeProps({
11082
- "options": fonts,
11093
+ "options": options.value,
11083
11094
  "onChange": e => emit("change", e)
11084
11095
  }, props.selectOptions, {
11085
11096
  "value": modelValue.value,
@@ -963,13 +963,32 @@ declare const getMenuDetail: () => vue.DefineComponent<{
963
963
  declare const _default$1: vue.DefineComponent<{
964
964
  value: StringConstructor;
965
965
  selectOptions: ObjectConstructor;
966
+ suffix: {
967
+ type: ArrayConstructor;
968
+ default: () => never[];
969
+ };
970
+ prefix: {
971
+ type: ArrayConstructor;
972
+ default: () => never[];
973
+ };
966
974
  }, () => 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<{
967
975
  value: StringConstructor;
968
976
  selectOptions: ObjectConstructor;
977
+ suffix: {
978
+ type: ArrayConstructor;
979
+ default: () => never[];
980
+ };
981
+ prefix: {
982
+ type: ArrayConstructor;
983
+ default: () => never[];
984
+ };
969
985
  }>> & {
970
986
  onChange?: ((...args: any[]) => any) | undefined;
971
987
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
972
- }, {}, {}>;
988
+ }, {
989
+ suffix: unknown[];
990
+ prefix: unknown[];
991
+ }, {}>;
973
992
 
974
993
  declare const _default: vue.DefineComponent<{
975
994
  zxIp: {
@@ -4,7 +4,7 @@ import { useRoute, useRouter } from 'vue-router';
4
4
  import { useMounted, resolveRef, useThrottleFn, useVModel, useMagicKeys, whenever, watchArray, useEventListener, useSessionStorage, useFullscreen, useLocalStorage, useToggle, useElementBounding, useMemory, useWindowSize, useClipboard, useBreakpoints, breakpointsAntDesign } from '@vueuse/core';
5
5
  import axios from 'axios';
6
6
  import { message, Menu, MenuItem, Input as Input$1, Badge, Avatar as Avatar$1, MenuDivider, Modal, SubMenu, Dropdown, Tooltip, Select, Layout as Layout$1, LayoutHeader, LayoutSider, LayoutContent, Form, Row, Col, FormItem, SelectOption, Switch, InputNumber } from 'ant-design-vue';
7
- import _, { isPlainObject, omit, differenceBy, isObject as isObject$1 } from 'lodash';
7
+ import _, { isPlainObject, omit, differenceBy, isObject as isObject$1, concat } from 'lodash';
8
8
  import dayjs from 'dayjs';
9
9
  import { loadMicroApp } from 'qiankun';
10
10
  import 'vite-plugin-qiankun';
@@ -11062,14 +11062,25 @@ const FontSelect = defineComponent({
11062
11062
  emits: ["update:value", "change"],
11063
11063
  props: {
11064
11064
  value: String,
11065
- selectOptions: Object
11065
+ selectOptions: Object,
11066
+ suffix: {
11067
+ type: Array,
11068
+ default: () => []
11069
+ },
11070
+ prefix: {
11071
+ type: Array,
11072
+ default: () => []
11073
+ }
11066
11074
  },
11067
11075
  setup(props, {
11068
11076
  emit
11069
11077
  }) {
11070
11078
  const modelValue = useVModel(props, "value", emit);
11079
+ const options = computed(() => {
11080
+ return concat(props.prefix, fonts, props.suffix);
11081
+ });
11071
11082
  return () => createVNode(resolveComponent("a-select"), mergeProps({
11072
- "options": fonts,
11083
+ "options": options.value,
11073
11084
  "onChange": e => emit("change", e)
11074
11085
  }, props.selectOptions, {
11075
11086
  "value": modelValue.value,