@xjw_/vue3-npm-system 1.0.0 → 1.0.1
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 +5 -5
- package/dist/index.es.js +7 -11
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +6 -10
- package/dist/index.umd.js.map +1 -1
- package/dist/types/components/JcButton/index.vue.d.ts.map +1 -1
- package/dist/vue3-npm-system.css +1 -44
- package/package.json +9 -2
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @
|
|
1
|
+
# @xjw_/vue3-npm-system
|
|
2
2
|
|
|
3
3
|
基于 Vue 3 + Element Plus 的企业级组件库
|
|
4
4
|
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
## 安装
|
|
14
14
|
|
|
15
15
|
```bash
|
|
16
|
-
npm install @
|
|
16
|
+
npm install @xjw_/vue3-npm-system
|
|
17
17
|
```
|
|
18
18
|
|
|
19
19
|
## 快速开始
|
|
@@ -24,7 +24,7 @@ npm install @jc/vue3-npm-system
|
|
|
24
24
|
import { createApp } from 'vue'
|
|
25
25
|
import ElementPlus from 'element-plus'
|
|
26
26
|
import 'element-plus/dist/index.css'
|
|
27
|
-
import JcVue3NpmSystem from '@
|
|
27
|
+
import JcVue3NpmSystem from '@xjw_/vue3-npm-system'
|
|
28
28
|
import App from './App.vue'
|
|
29
29
|
|
|
30
30
|
const app = createApp(App)
|
|
@@ -75,7 +75,7 @@ app.mount('#app')
|
|
|
75
75
|
import { ref, reactive } from 'vue'
|
|
76
76
|
|
|
77
77
|
// 使用工具函数
|
|
78
|
-
import { utils } from '@
|
|
78
|
+
import { utils } from '@xjw_/vue3-npm-system'
|
|
79
79
|
|
|
80
80
|
const { debounce, throttle, formatDate, storage } = utils
|
|
81
81
|
</script>
|
|
@@ -177,7 +177,7 @@ Element Plus Button 的二次封装,增加了一些实用功能。
|
|
|
177
177
|
### debounce - 防抖函数
|
|
178
178
|
|
|
179
179
|
```typescript
|
|
180
|
-
import { utils } from '@
|
|
180
|
+
import { utils } from '@xjw_/vue3-npm-system'
|
|
181
181
|
|
|
182
182
|
const debouncedFn = utils.debounce(() => {
|
|
183
183
|
console.log('执行')
|
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent,
|
|
1
|
+
import { defineComponent, resolveComponent, openBlock, createBlock, withCtx, renderSlot, createTextVNode, toDisplayString, createElementBlock, createElementVNode, ref, computed, resolveDirective, createVNode, createCommentVNode, unref, withDirectives, Fragment, renderList, mergeProps, createSlots, resolveDynamicComponent } from "vue";
|
|
2
2
|
import { ElInput, ElCheckboxGroup, ElRadioGroup, ElDatePicker, ElSelect, ElMessage } from "element-plus";
|
|
3
3
|
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
4
4
|
...{
|
|
@@ -17,30 +17,26 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
17
17
|
setup(__props, { emit: __emit }) {
|
|
18
18
|
const props = __props;
|
|
19
19
|
const emit = __emit;
|
|
20
|
-
const mergedProps = computed(() => ({
|
|
21
|
-
...props,
|
|
22
|
-
class: ["jc-button", `jc-button--${props.type}`]
|
|
23
|
-
}));
|
|
24
20
|
const handleClick = (e) => {
|
|
25
21
|
if (props.disabled || props.autoLoading && props.loading) return;
|
|
26
22
|
emit("click", e);
|
|
27
23
|
};
|
|
28
24
|
return (_ctx, _cache) => {
|
|
29
25
|
const _component_el_button = resolveComponent("el-button");
|
|
30
|
-
return openBlock(), createBlock(_component_el_button,
|
|
31
|
-
loading: _ctx.loading,
|
|
32
|
-
disabled: _ctx.disabled,
|
|
26
|
+
return openBlock(), createBlock(_component_el_button, {
|
|
33
27
|
type: _ctx.type,
|
|
34
28
|
size: _ctx.size,
|
|
29
|
+
disabled: _ctx.disabled,
|
|
30
|
+
loading: _ctx.loading,
|
|
35
31
|
onClick: handleClick
|
|
36
|
-
}
|
|
32
|
+
}, {
|
|
37
33
|
default: withCtx(() => [
|
|
38
34
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
39
35
|
createTextVNode(toDisplayString(_ctx.text), 1)
|
|
40
36
|
], true)
|
|
41
37
|
]),
|
|
42
38
|
_: 3
|
|
43
|
-
},
|
|
39
|
+
}, 8, ["type", "size", "disabled", "loading"]);
|
|
44
40
|
};
|
|
45
41
|
}
|
|
46
42
|
});
|
|
@@ -51,7 +47,7 @@ const _export_sfc = (sfc, props) => {
|
|
|
51
47
|
}
|
|
52
48
|
return target;
|
|
53
49
|
};
|
|
54
|
-
const JcButton = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-
|
|
50
|
+
const JcButton = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-1d880bdc"]]);
|
|
55
51
|
/*! Element Plus Icons Vue v2.3.1 */
|
|
56
52
|
var download_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
57
53
|
name: "Download",
|