sctj-components 1.0.5 → 1.0.7
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 +9 -2
- package/lib/sctj-components.es.js +4 -4
- package/lib/sctj-components.umd.js +1 -1
- package/lib/style.css +1 -1
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -47,8 +47,9 @@ import { createApp } from 'vue'
|
|
|
47
47
|
import ElementPlus from 'element-plus'
|
|
48
48
|
import 'element-plus/dist/index.css'
|
|
49
49
|
import SctjComponents from 'sctj-components'
|
|
50
|
-
//
|
|
51
|
-
import 'sctj-components/
|
|
50
|
+
// 引入组件库样式
|
|
51
|
+
import 'sctj-components/style.css' // 推荐写法
|
|
52
|
+
// import 'sctj-components/lib/style.css' // 兼容旧写法(已在 exports 中兼容)
|
|
52
53
|
|
|
53
54
|
const app = createApp(App)
|
|
54
55
|
app.use(ElementPlus)
|
|
@@ -58,6 +59,12 @@ app.mount('#app')
|
|
|
58
59
|
|
|
59
60
|
#### 按需引入
|
|
60
61
|
|
|
62
|
+
即便按需引入组件,也需要全局引入一次样式:
|
|
63
|
+
```javascript
|
|
64
|
+
import 'sctj-components/style.css' // 推荐写法
|
|
65
|
+
// import 'sctj-components/lib/style.css' // 兼容旧写法
|
|
66
|
+
```
|
|
67
|
+
|
|
61
68
|
组件名称均带前缀 `SCTJ`:
|
|
62
69
|
```javascript
|
|
63
70
|
import { SCTJDictTag, SCTJTable, SCTJSearch } from 'sctj-components'
|
|
@@ -5072,8 +5072,8 @@ const _sfc_main$6 = {
|
|
|
5072
5072
|
};
|
|
5073
5073
|
}
|
|
5074
5074
|
};
|
|
5075
|
-
const
|
|
5076
|
-
const _withScopeId$2 = (n) => (pushScopeId("data-v-
|
|
5075
|
+
const index_vue_vue_type_style_index_0_scoped_9c88ab2c_lang = "";
|
|
5076
|
+
const _withScopeId$2 = (n) => (pushScopeId("data-v-9c88ab2c"), n = n(), popScopeId(), n);
|
|
5077
5077
|
const _hoisted_1$3 = {
|
|
5078
5078
|
key: 0,
|
|
5079
5079
|
class: "search-container"
|
|
@@ -5150,7 +5150,7 @@ const _sfc_main$5 = {
|
|
|
5150
5150
|
open: false,
|
|
5151
5151
|
title: ""
|
|
5152
5152
|
});
|
|
5153
|
-
const queryColumns = computed(() => {
|
|
5153
|
+
const queryColumns = computed$1(() => {
|
|
5154
5154
|
return props.tableColumns.filter((item) => item.query);
|
|
5155
5155
|
});
|
|
5156
5156
|
const data = reactive({
|
|
@@ -5574,7 +5574,7 @@ const _sfc_main$5 = {
|
|
|
5574
5574
|
};
|
|
5575
5575
|
}
|
|
5576
5576
|
};
|
|
5577
|
-
const SCTJDialogTable = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-
|
|
5577
|
+
const SCTJDialogTable = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-9c88ab2c"]]);
|
|
5578
5578
|
const index_vue_vue_type_style_index_0_scoped_24729613_lang = "";
|
|
5579
5579
|
const _hoisted_1$2 = { class: "action-container" };
|
|
5580
5580
|
const _hoisted_2$2 = {
|