@vipl520/dk-ui 1.0.45 → 1.0.46

Sign up to get free protection for your applications and to get access to all the features.
Files changed (114) hide show
  1. package/dist/attributes.json +16 -0
  2. package/dist/index.css +1 -1
  3. package/dist/index.js +1359 -525
  4. package/dist/index.min.js +4 -4
  5. package/dist/index.min.js.map +1 -1
  6. package/dist/index.min.mjs +4 -4
  7. package/dist/index.min.mjs.map +1 -1
  8. package/dist/index.mjs +1356 -526
  9. package/dist/tags.json +14 -0
  10. package/dist/uniicons.ttf +0 -0
  11. package/dist/web-types.json +69 -1
  12. package/es/dialog/src/dialog.vue2.mjs +1 -1
  13. package/es/dialog/src/dialog.vue2.mjs.map +1 -1
  14. package/es/form/index.d.ts +3 -15
  15. package/es/form/src/form.vue.d.ts +2 -10
  16. package/es/form/src/form.vue2.mjs +1 -0
  17. package/es/form/src/form.vue2.mjs.map +1 -1
  18. package/es/form/src/props.d.ts +1 -5
  19. package/es/form/src/props.mjs +1 -5
  20. package/es/form/src/props.mjs.map +1 -1
  21. package/es/index.d.ts +2 -0
  22. package/es/index.mjs +8 -2
  23. package/es/index.mjs.map +1 -1
  24. package/es/index.scss +2 -0
  25. package/es/page-diy/src/config/rule/min/common/DkMinTitle.d.ts +1 -0
  26. package/es/page-diy/src/config/rule/min/common/DkMinTitle.mjs +2 -1
  27. package/es/page-diy/src/config/rule/min/common/DkMinTitle.mjs.map +1 -1
  28. package/es/page-diy/src/config/rule/min/common/index.d.ts +2 -0
  29. package/es/page-diy/src/config/rule/min/index.d.ts +2 -0
  30. package/es/table/src/components/FieldRender.vue2.mjs +1 -1
  31. package/es/table/src/components/FieldRender.vue2.mjs.map +1 -1
  32. package/es/uni-icon/index.d.ts +174 -0
  33. package/es/uni-icon/index.mjs +8 -0
  34. package/es/uni-icon/index.mjs.map +1 -0
  35. package/es/uni-icon/src/props.d.ts +24 -0
  36. package/es/uni-icon/src/props.mjs +25 -0
  37. package/es/uni-icon/src/props.mjs.map +1 -0
  38. package/es/uni-icon/src/uni-icon.vue.d.ts +57 -0
  39. package/es/uni-icon/src/uni-icon.vue.mjs +7 -0
  40. package/es/uni-icon/src/uni-icon.vue.mjs.map +1 -0
  41. package/es/uni-icon/src/uni-icon.vue2.mjs +43 -0
  42. package/es/uni-icon/src/uni-icon.vue2.mjs.map +1 -0
  43. package/es/uni-icon/style/index.css +1 -0
  44. package/es/uni-icon/style/index.scss +17 -0
  45. package/es/uni-icon/style/uniicons.css +1 -0
  46. package/es/uni-icon/style/uniicons.scss +663 -0
  47. package/es/uni-icon/style/uniicons_file_vue.d.ts +4 -0
  48. package/es/uni-icon/style/uniicons_file_vue.mjs +649 -0
  49. package/es/uni-icon/style/uniicons_file_vue.mjs.map +1 -0
  50. package/es/uni-icon-input/index.d.ts +17 -0
  51. package/es/uni-icon-input/index.mjs +8 -0
  52. package/es/uni-icon-input/index.mjs.map +1 -0
  53. package/es/uni-icon-input/src/props.d.ts +11 -0
  54. package/es/uni-icon-input/src/props.mjs +11 -0
  55. package/es/uni-icon-input/src/props.mjs.map +1 -0
  56. package/es/uni-icon-input/src/uni-icon-input.vue.d.ts +16 -0
  57. package/es/uni-icon-input/src/uni-icon-input.vue.mjs +7 -0
  58. package/es/uni-icon-input/src/uni-icon-input.vue.mjs.map +1 -0
  59. package/es/uni-icon-input/src/uni-icon-input.vue2.mjs +112 -0
  60. package/es/uni-icon-input/src/uni-icon-input.vue2.mjs.map +1 -0
  61. package/es/uni-icon-input/style/index.css +1 -0
  62. package/es/uni-icon-input/style/index.scss +13 -0
  63. package/lib/dialog/src/dialog.vue2.js +1 -1
  64. package/lib/dialog/src/dialog.vue2.js.map +1 -1
  65. package/lib/form/index.d.ts +3 -15
  66. package/lib/form/src/form.vue.d.ts +2 -10
  67. package/lib/form/src/form.vue2.js +1 -0
  68. package/lib/form/src/form.vue2.js.map +1 -1
  69. package/lib/form/src/props.d.ts +1 -5
  70. package/lib/form/src/props.js +1 -5
  71. package/lib/form/src/props.js.map +1 -1
  72. package/lib/index.d.ts +2 -0
  73. package/lib/index.js +13 -3
  74. package/lib/index.js.map +1 -1
  75. package/lib/index.scss +2 -0
  76. package/lib/page-diy/src/config/rule/min/common/DkMinTitle.d.ts +1 -0
  77. package/lib/page-diy/src/config/rule/min/common/DkMinTitle.js +2 -1
  78. package/lib/page-diy/src/config/rule/min/common/DkMinTitle.js.map +1 -1
  79. package/lib/page-diy/src/config/rule/min/common/index.d.ts +2 -0
  80. package/lib/page-diy/src/config/rule/min/index.d.ts +2 -0
  81. package/lib/table/src/components/FieldRender.vue2.js +1 -1
  82. package/lib/table/src/components/FieldRender.vue2.js.map +1 -1
  83. package/lib/uni-icon/index.d.ts +174 -0
  84. package/lib/uni-icon/index.js +14 -0
  85. package/lib/uni-icon/index.js.map +1 -0
  86. package/lib/uni-icon/src/props.d.ts +24 -0
  87. package/lib/uni-icon/src/props.js +27 -0
  88. package/lib/uni-icon/src/props.js.map +1 -0
  89. package/lib/uni-icon/src/uni-icon.vue.d.ts +57 -0
  90. package/lib/uni-icon/src/uni-icon.vue.js +11 -0
  91. package/lib/uni-icon/src/uni-icon.vue.js.map +1 -0
  92. package/lib/uni-icon/src/uni-icon.vue2.js +47 -0
  93. package/lib/uni-icon/src/uni-icon.vue2.js.map +1 -0
  94. package/lib/uni-icon/style/index.css +1 -0
  95. package/lib/uni-icon/style/index.scss +17 -0
  96. package/lib/uni-icon/style/uniicons.css +1 -0
  97. package/lib/uni-icon/style/uniicons.scss +663 -0
  98. package/lib/uni-icon/style/uniicons_file_vue.d.ts +4 -0
  99. package/lib/uni-icon/style/uniicons_file_vue.js +651 -0
  100. package/lib/uni-icon/style/uniicons_file_vue.js.map +1 -0
  101. package/lib/uni-icon-input/index.d.ts +17 -0
  102. package/lib/uni-icon-input/index.js +14 -0
  103. package/lib/uni-icon-input/index.js.map +1 -0
  104. package/lib/uni-icon-input/src/props.d.ts +11 -0
  105. package/lib/uni-icon-input/src/props.js +13 -0
  106. package/lib/uni-icon-input/src/props.js.map +1 -0
  107. package/lib/uni-icon-input/src/uni-icon-input.vue.d.ts +16 -0
  108. package/lib/uni-icon-input/src/uni-icon-input.vue.js +11 -0
  109. package/lib/uni-icon-input/src/uni-icon-input.vue.js.map +1 -0
  110. package/lib/uni-icon-input/src/uni-icon-input.vue2.js +116 -0
  111. package/lib/uni-icon-input/src/uni-icon-input.vue2.js.map +1 -0
  112. package/lib/uni-icon-input/style/index.css +1 -0
  113. package/lib/uni-icon-input/style/index.scss +13 -0
  114. package/package.json +2 -1
@@ -0,0 +1,14 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var utils = require('@vipl520/utils');
6
+ var uniIconInput = require('./src/uni-icon-input.vue.js');
7
+ var props = require('./src/props.js');
8
+
9
+ const UniIconInput = utils.withInstall(uniIconInput.default);
10
+
11
+ exports.uniIconInputProps = props.uniIconInputProps;
12
+ exports.UniIconInput = UniIconInput;
13
+ exports.default = UniIconInput;
14
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../src/uni-icon-input/index.ts"],"sourcesContent":["import { withInstall } from '@vipl520/utils'\nimport _UniIconInput from './src/uni-icon-input.vue'\n\nexport const UniIconInput = withInstall(_UniIconInput)\nexport default UniIconInput\n\nexport * from './src/props'\n"],"names":["withInstall","_UniIconInput"],"mappings":";;;;;;;;AAGa,MAAA,YAAA,GAAeA,kBAAYC,oBAAa;;;;;;"}
@@ -0,0 +1,11 @@
1
+ import type { ExtractPropTypes } from 'vue';
2
+ export declare const uniIconInputProps: {
3
+ /**
4
+ * 类型定义
5
+ */
6
+ type: {
7
+ type: import("vue").PropType<string>;
8
+ default: string;
9
+ };
10
+ };
11
+ export type UniIconInputProps = ExtractPropTypes<typeof uniIconInputProps>;
@@ -0,0 +1,13 @@
1
+ 'use strict';
2
+
3
+ var utils = require('vant/lib/utils');
4
+
5
+ const uniIconInputProps = {
6
+ /**
7
+ * 类型定义
8
+ */
9
+ type: utils.makeStringProp("")
10
+ };
11
+
12
+ exports.uniIconInputProps = uniIconInputProps;
13
+ //# sourceMappingURL=props.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"props.js","sources":["../../../src/uni-icon-input/src/props.ts"],"sourcesContent":["import { makeStringProp } from 'vant/es/utils'\nimport type { ExtractPropTypes } from 'vue'\n\nexport const uniIconInputProps = {\n /**\n * 类型定义\n */\n type: makeStringProp(''),\n}\n\nexport type UniIconInputProps = ExtractPropTypes<typeof uniIconInputProps>\n"],"names":["makeStringProp"],"mappings":";;;;AAGO,MAAM,iBAAoB,GAAA;AAAA;AAAA;AAAA;AAAA,EAI/B,IAAA,EAAMA,qBAAe,EAAE,CAAA;AACzB;;;;"}
@@ -0,0 +1,16 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ modelValue: {
3
+ default: string;
4
+ type: StringConstructor;
5
+ };
6
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
7
+ modelValue: {
8
+ default: string;
9
+ type: StringConstructor;
10
+ };
11
+ }>> & {
12
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
13
+ }, {
14
+ modelValue: string;
15
+ }, {}>;
16
+ export default _default;
@@ -0,0 +1,11 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var uniIconInput_vue_vue_type_script_setup_true_lang = require('./uni-icon-input.vue2.js');
6
+ var _pluginVue_exportHelper = require('../../_virtual/_plugin-vue_export-helper.js');
7
+
8
+ var _UniIconInput = /* @__PURE__ */ _pluginVue_exportHelper.default(uniIconInput_vue_vue_type_script_setup_true_lang.default, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\uni-icon-input\\src\\uni-icon-input.vue"]]);
9
+
10
+ exports.default = _UniIconInput;
11
+ //# sourceMappingURL=uni-icon-input.vue.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"uni-icon-input.vue.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
@@ -0,0 +1,116 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var vue = require('vue');
6
+ var uniicons_file_vue = require('../../uni-icon/style/uniicons_file_vue.js');
7
+
8
+ const _hoisted_1 = { class: "dk-uni-icon-input" };
9
+ const _hoisted_2 = {
10
+ key: 0,
11
+ class: "uni-icon-content"
12
+ };
13
+ const _hoisted_3 = { class: "hover:border-blue border-1px border-solid border-white cursor-pointer hover:color-blue" };
14
+ const __default__ = vue.defineComponent({
15
+ name: "DkUniIconInput"
16
+ });
17
+ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
18
+ ...__default__,
19
+ props: {
20
+ modelValue: {
21
+ default: "",
22
+ type: String
23
+ }
24
+ },
25
+ emits: ["update:modelValue"],
26
+ setup(__props, { emit }) {
27
+ const props = __props;
28
+ const show = vue.ref(false);
29
+ const icon = vue.ref(props.modelValue);
30
+ const updateIcon = (value) => {
31
+ icon.value = value;
32
+ emit("update:modelValue", value);
33
+ show.value = false;
34
+ };
35
+ return (_ctx, _cache) => {
36
+ const _component_el_button = vue.resolveComponent("el-button");
37
+ const _component_el_input = vue.resolveComponent("el-input");
38
+ const _component_DkUniIcon = vue.resolveComponent("DkUniIcon");
39
+ const _component_el_col = vue.resolveComponent("el-col");
40
+ const _component_el_row = vue.resolveComponent("el-row");
41
+ const _component_el_dialog = vue.resolveComponent("el-dialog");
42
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
43
+ vue.createVNode(_component_el_input, {
44
+ modelValue: icon.value,
45
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => icon.value = $event)
46
+ }, {
47
+ append: vue.withCtx(() => [
48
+ vue.createVNode(_component_el_button, {
49
+ onClick: _cache[0] || (_cache[0] = ($event) => show.value = true)
50
+ }, {
51
+ default: vue.withCtx(() => [
52
+ vue.createTextVNode("\u9009\u62E9")
53
+ ]),
54
+ _: 1
55
+ /* STABLE */
56
+ })
57
+ ]),
58
+ _: 1
59
+ /* STABLE */
60
+ }, 8, ["modelValue"]),
61
+ icon.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2, [
62
+ vue.createVNode(_component_DkUniIcon, {
63
+ type: icon.value,
64
+ size: 48
65
+ }, null, 8, ["type"])
66
+ ])) : vue.createCommentVNode("v-if", true),
67
+ vue.createVNode(_component_el_dialog, {
68
+ modelValue: show.value,
69
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => show.value = $event),
70
+ title: "\u9009\u62E9\u56FE\u6807",
71
+ width: "1000px"
72
+ }, {
73
+ default: vue.withCtx(() => [
74
+ vue.createVNode(_component_el_row, { gutter: 20 }, {
75
+ default: vue.withCtx(() => [
76
+ (vue.openBlock(true), vue.createElementBlock(
77
+ vue.Fragment,
78
+ null,
79
+ vue.renderList(vue.unref(uniicons_file_vue.fontData).length, (key) => {
80
+ return vue.openBlock(), vue.createBlock(_component_el_col, {
81
+ key,
82
+ span: 2,
83
+ onClick: ($event) => updateIcon(vue.unref(uniicons_file_vue.fontData)[key]?.font_class)
84
+ }, {
85
+ default: vue.withCtx(() => [
86
+ vue.createElementVNode("div", _hoisted_3, [
87
+ vue.createVNode(_component_DkUniIcon, {
88
+ type: vue.unref(uniicons_file_vue.fontData)[key]?.font_class,
89
+ size: 36,
90
+ color: "#666",
91
+ class: "p2"
92
+ }, null, 8, ["type"])
93
+ ])
94
+ ]),
95
+ _: 2
96
+ /* DYNAMIC */
97
+ }, 1032, ["onClick"]);
98
+ }),
99
+ 128
100
+ /* KEYED_FRAGMENT */
101
+ ))
102
+ ]),
103
+ _: 1
104
+ /* STABLE */
105
+ })
106
+ ]),
107
+ _: 1
108
+ /* STABLE */
109
+ }, 8, ["modelValue"])
110
+ ]);
111
+ };
112
+ }
113
+ });
114
+
115
+ exports.default = _sfc_main;
116
+ //# sourceMappingURL=uni-icon-input.vue2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"uni-icon-input.vue2.js","sources":["../../../src/uni-icon-input/src/uni-icon-input.vue"],"sourcesContent":["<script lang=\"ts\">\nimport { defineComponent as __MACROS_defineComponent } from \"vue\";\nexport default /*#__PURE__*/ __MACROS_defineComponent({\n name: 'DkUniIconInput',\n});\n</script>\n<template>\n <div class=\"dk-uni-icon-input\">\n <el-input v-model=\"icon\">\n <template #append>\n <el-button @click=\"show = true\">选择</el-button>\n </template>\n </el-input>\n <div v-if=\"icon\" class=\"uni-icon-content\">\n <DkUniIcon :type=\"icon\" :size=\"48\"></DkUniIcon>\n </div>\n <el-dialog v-model=\"show\" title=\"选择图标\" width=\"1000px\">\n <el-row :gutter=\"20\">\n <el-col v-for=\"key in fontData.length\" :key=\"key\" :span=\"2\" @click=\"updateIcon(fontData[key]?.font_class)\">\n <div class=\"hover:border-blue border-1px border-solid border-white cursor-pointer hover:color-blue\">\n <DkUniIcon :type=\"fontData[key]?.font_class\" :size=\"36\" color=\"#666\" class=\"p2\"></DkUniIcon>\n </div>\n </el-col>\n </el-row>\n </el-dialog>\n </div>\n</template>\n\n<script setup lang=\"ts\">\nimport { ref } from 'vue'\nimport { fontData } from '../../uni-icon/style/uniicons_file_vue.js'\n\n\nconst show = ref(false)\nconst props = defineProps({\n modelValue: {\n default: '',\n type: String,\n },\n})\n\nconst emit = defineEmits(['update:modelValue'])\nconst icon = ref(props.modelValue)\n\nconst updateIcon = (value: string) => {\n icon.value = value\n emit('update:modelValue', value)\n show.value = false\n}\n</script>\n\n<style></style>\n"],"names":["__MACROS_defineComponent","ref"],"mappings":";;;;;;;;;;;;;AAEA,MAA6B,cAAAA,mBAAyB,CAAA;AAAA,EACpD,IAAM,EAAA,gBAAA;AACR,CAAC,CAAA,CAAA;;;;;;;;;;;;AA6BD,IAAM,MAAA,IAAA,GAAOC,QAAI,KAAK,CAAA,CAAA;AAStB,IAAM,MAAA,IAAA,GAAOA,OAAI,CAAA,KAAA,CAAM,UAAU,CAAA,CAAA;AAEjC,IAAM,MAAA,UAAA,GAAa,CAAC,KAAkB,KAAA;AACpC,MAAA,IAAA,CAAK,KAAQ,GAAA,KAAA,CAAA;AACb,MAAA,IAAA,CAAK,qBAAqB,KAAK,CAAA,CAAA;AAC/B,MAAA,IAAA,CAAK,KAAQ,GAAA,KAAA,CAAA;AAAA,KACf,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1 @@
1
+ .dk-uni-icon-input .uni-icon-content{margin-top:5px;border:1px solid #ccc;width:80px;height:80px;display:flex;align-items:center;justify-content:center}
@@ -0,0 +1,13 @@
1
+ /* stylelint-disable */
2
+ .dk-uni-icon-input {
3
+ .uni-icon-content {
4
+ margin-top: 5px;
5
+ border: 1px solid #ccc;
6
+ width: 80px;
7
+ height: 80px;
8
+ display: flex;
9
+ align-items: center;
10
+ justify-content: center;
11
+ }
12
+ }
13
+ /* stylelint-enable */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vipl520/dk-ui",
3
- "version": "1.0.45",
3
+ "version": "1.0.46",
4
4
  "description": "多客怪兽框架核心组件,支持diy、crud动态表格、上传组件等",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.mjs",
@@ -101,6 +101,7 @@
101
101
  "rollup-plugin-esbuild": "^5.0.0",
102
102
  "rollup-plugin-polyfill-node": "^0.12.0",
103
103
  "rollup-plugin-postcss": "^4.0.2",
104
+ "rollup-plugin-url": "^3.0.1",
104
105
  "sass": "^1.64.1",
105
106
  "tsx": "^3.12.7",
106
107
  "typescript": "^5.1.6",