@jx3box/jx3box-vue3-ui 0.4.11 → 0.4.12

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jx3box/jx3box-vue3-ui",
3
- "version": "0.4.11",
3
+ "version": "0.4.12",
4
4
  "description": "JX3BOX Vue3 UI",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/src/App.vue CHANGED
@@ -21,7 +21,7 @@
21
21
  </LeftSidebar>
22
22
 
23
23
  <Main :withoutLeft="false" :withoutRight="false">
24
- <!-- <Admin :fromList="true" :show="true" :postId="post_id"></Admin> -->
24
+ <!-- <Admin :fromList="true" :show="true" :postId="post_id" @update="update"></Admin> -->
25
25
  <!-- <clientBy @filter="filterMeta" :type="client"></clientBy>
26
26
 
27
27
  <markBy @filter="filterMeta"></markBy>
@@ -123,6 +123,9 @@ export default {
123
123
  },
124
124
  },
125
125
  methods: {
126
+ update(data) {
127
+ console.log(data);
128
+ },
126
129
  loadPost() {
127
130
  axios.get(`/api/cms/post/${this.post_id}`).then((res) => {
128
131
  this.post = res.data.data;
@@ -128,7 +128,7 @@ export default {
128
128
  default: false,
129
129
  },
130
130
  postId: {
131
- type: Number,
131
+ type: [Number, String],
132
132
  default: 0,
133
133
  },
134
134
  },
@@ -277,6 +277,7 @@ export default {
277
277
  push: function () {
278
278
  postSetting(this.data)
279
279
  .then(() => {
280
+ this.$emit("update", this.data);
280
281
  this.$message({
281
282
  message: "设置成功",
282
283
  type: "success",